Skip to content

LabelHalo

LabelHalo = object

Defined in: labels/label-layer.ts:98

A legibility halo (#571): a color stroke reaching width px beyond the glyph outlines, painted behind the fill. One shape for every backend — the HTML overlay (a CSS text stroke, haloStyle), Canvas strokeText and SVG <text>, exports included — so they draw the same halo. width 0 draws none.

color: string

Defined in: labels/label-layer.ts:98


width: number

Defined in: labels/label-layer.ts:98