! Rushabh | Linux Shill - is this the correct a...

is this the correct approach for Group anchor offset overlay https://github.com/tscircuit/pcb-viewer/pull/483#discussion_r2553373419
2 Replies
! Rushabh | Linux Shill
GroupAnchorOffsetOverlay sits inside MouseElementTracker because it needs the tracker’s hover payload (highlighted primitives, mouse coords, container size). It’s the same pattern one line above with ElementOverlayBox: both overlays rely on that internal hover state, so they live alongside it, while the rest of the overlays, those that only need elements and transform, so they stay in the outer stack. Is this not corrent ?? @Seve Hey @Seve is this correct
Seve
Seve3w ago
Its in the wrong plave You should be using a context pattern But we can merge for now

Did you find this page helpful?