Skip to content

labelGeometry

labelGeometry(box): LabelGeometry

Defined in: labels/cull.ts:140

Resolve a LabelBox to its on-screen geometry. Plain labels get an axis-aligned box placed by textAnchor/baseline (default: the historical top-left box); oriented labels (rotation) place the text along the rotated axis, vertically centred on the anchor, with the optional upright flip folded in. The collision corners and the CSS transform come from the same computation, so render and culling stay consistent.

LabelBox

LabelGeometry