placeLabels
placeLabels(
anchors,transform,viewport):LabelBox[]
Defined in: labels/label-layer.ts:47
Project label anchors to screen px (screen = k·ref + (x,y) + the constant offset) and resolve
collisions, returning the survivors as LabelBoxes (carrying text/opacity). Shared by the
HTML overlay (LabelLayer.update) and the backend-native text path (#105 N7b-2) so both place
and cull labels identically — they differ only in how they render the survivors.
Parameters
Section titled “Parameters”anchors
Section titled “anchors”readonly LabelAnchor[]
transform
Section titled “transform”viewport
Section titled “viewport”height
Section titled “height”number
number
Returns
Section titled “Returns”LabelBox[]