Result of computeLabelPlacement. All values live in basis-space (u, v) — projection-plane 2D coordinates.

inscribedRadius is the largest gap between the placement anchor and any boundary edge of the polygon; the caller sizes the label to a fraction of this radius so it fits comfortably inside the polygon.

area is the polygon's signed-area sum across the triangle soup, in basis-space units². Callers can multiply by world-units-per-(u, v) (always 1 — the projection basis is orthonormal) for a world-space area. Useful for the optional "12.4 m²" subtitle and for the min-area cutoff filter.

interface LabelPlacement {
    area: number;
    inscribedRadius: number;
    u: number;
    v: number;
}

Properties

Properties

area: number
inscribedRadius: number
u: number
v: number