mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 17:22:19 +00:00
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:
1 parent
87bff9957b
commit
aabfa5e084
12 files changed
+583
-249
No files matched your search
@@ -243,6 +243,9 @@ const _customPaintFrame = {
|
||||
cameraHeight: Number.NaN,
|
||||
occluder: null,
|
||||
keyhole: null,
|
||||
// Anchored custom glyphs yield to the same below-host chrome as entries.
|
||||
overlapsHardUi: (rect) =>
|
||||
overlayRectIntersectsAnyHard(rect, _uiOcclusionRects),
|
||||
uiRects: _uiOcclusionRects,
|
||||
uiRectCount: 0,
|
||||
layoutRevision: 0,
|
||||
|
||||
Reference in new issue
Block a user