mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-21 02:32:18 +00:00
Installations: a label takes a click only where nothing else is drawn
An interactive overlay entry is a card that takes every click from what is drawn under it, so a base's label kept an aircraft or vessel under it from being selected. The labels are no longer interactive entries. The layer claims a click on a label box through the pick registry's click claim, as CCTV counts do, only where nothing another layer draws is under it; over the map or the layer's own dots and fills the label takes it, and another layer's card painted over the label keeps its click. The label box is read from the box the overlay painted for it (overlayHost.paintRect).
This commit is contained in:
1 parent
7b7eb2318a
commit
dac8738b80
9 files changed
+229
-102
No files matched your search
@@ -3025,10 +3025,13 @@ with the arrows' easing on a slower clock (250 ms time constant, about
|
||||
`prefers-reduced-motion`. A single click on a site's marker, or on the label
|
||||
box the overlay paints for it, focuses it too: the click is resolved through
|
||||
the layer's own lookup (`findAt`: `scene.pick` for a named marker's
|
||||
`{ installationId }` or a site entity, else the overlay's hit rect for the
|
||||
label, which the installation entries now register as interactive; from
|
||||
orbit the dot is 7 px, so the label is what a click lands on). The map's own
|
||||
click selection reads the label the same way. A click anywhere else
|
||||
`{ installationId }` or a site entity, else the box the overlay painted for
|
||||
the label; from orbit the dot is 7 px, so the label is what a click lands
|
||||
on). The map's own click selection reads the label the same way, through a
|
||||
click claim (`registerClickClaim`) rather than as an interactive card: the
|
||||
label takes a click only where nothing another layer draws is under it, so
|
||||
an aircraft or vessel drawn under a base's label stays selectable, and
|
||||
another layer's card painted over the label keeps its click. A click anywhere else
|
||||
(a site beyond the reach included), the
|
||||
focused site's row, NADIR, Home or `0` ends the focus and the view eases
|
||||
back to nadir on the same clock; an arrow ends it (or the ease back) and
|
||||
|
||||
Reference in new issue
Block a user