Skip to content

haloStyle

haloStyle(halo): LabelStyle

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

The overlay CSS for a LabelHalo (#571): a text stroke twice the halo width, painted under the fill (paint-order), so it reaches width px beyond the glyphs as the Canvas/SVG stroke does, with the same miter joins. Chromium strokes HTML text that way whatever stroke-linejoin says; the join properties keep a browser that honours them on HTML text to the same stroke. Empty for no halo or width 0.

LabelHalo | undefined

LabelStyle