fix(cctv): paint count markers on the world overlay canvas

The scene renders at CSS resolution and is stretched on a high-density
display, so a count marker drawn as a scene sprite looked coarse next
to the camera callouts, which the world overlay paints at device
density.

Paint the markers through the overlay's custom paint lane instead, in
the callouts' typeface. Each paint reprojects the group centres; a
click is resolved against the rectangles painted in the last frame and
still zooms to the group without choosing a camera. A marker that would
cover HUD chrome is skipped, as overlay entries are.

With no aggregate sprites left, the contact sweep no longer needs to
skip them, so that exclusion is removed.
This commit is contained in:
German Khokhlov committed 2026-11-18 15:31:20 +04:00
1 parent 87bff9957b
commit aabfa5e084
12 files changed
+583 -249

No files matched your search

+2 -1
View File
@@ -42,7 +42,8 @@ export function createSelection({
return input.onClick((event) => {
if (!isTrackingClickGesture(event.gesture)) return;
const cell =
layerState._enabled && layerState._counts?.pickedCell(event.drawHit);
layerState._enabled &&
layerState._counts?.pickedCell(event.screenPosition);
if (cell) {
parts.navigation.zoomToCell(cell);
return;