Expand description
Laid-out geometry queries — hit-testing, box-model lookup, anchor-to-fragments, selection rects.
Cf. Hekate doc §“Layout/Fragment Plane”. The trait is the permanent ABI; internal plane storage (IndexVec / FxHashMap / whatever) stays each lane’s implementation detail.
Structs§
- BoxModel
- CSS box-model for one source node’s fragment. The four nested
rectangles — content / padding / border / margin — are each in
viewport coordinates. Consumers wanting
getBoundingClientRectshape readborder(the border-edge rect). - Fragment
Hit - What
hit_testreturns. Carries the lane’s fragment id, the containing source node, and the local hit point inside the fragment (so consumers can drive caret positioning without re-walking).
Traits§
- Fragment
Query - Common-minimum laid-out-geometry queries. Each lane that has a
layout phase implements this. Internal
FragmentIdtype is per- lane (opaque to consumers — only used as a map key).