Skip to content

labelTextY

labelTextY(box): number

Defined in: labels/cull.ts:155

The y a backend drawing native text with a "middle" baseline must use — the vertical centre of the same box. Mirrors labelGeometry’s vertical placement (a unit test pins the two against each other), so overlay and native text sit on the same line. An oriented label is centred on its axis, so this is its anchor y, the point it rotates about.

LabelBox

number