Expand description
Platform-independent pointer hit testing; coordinates are CSS client pixels.
Structs§
- HitRect
- Rectangle measured in client coordinates.
Functions§
- drop_
placement - Resolve before/after bands (12 × zoom) and the central child target. LEFT/RIGHT/SIDE siblings are vertical; DOWN siblings are horizontal.
- edge_
pan - Per-pointer-step edge pan within a 50px band, independent of document history.
- fit
- Viewport that fits the canvas-space box
a..binto a view ofsize, centred, with a 24px margin and magnification at most 100%. - is_drag
- The upstream five client-pixel threshold avoids moving nodes on clicks.