resolveLabelStyle
resolveLabelStyle(
className,style,text?):LabelStyle|undefined
Defined in: labels/label-layer.ts:158
The engine-label styling policy (#224): the overlay CSS for a label set’s LabelText — its
font (overlayFont) and colour, the halo’s stroke (haloStyle) — with the caller’s
inline LabelStyle for anything else. The resolved font and colour win over style’s: they
already fold style.font/style.color in (#577), so the overlay draws what Canvas/SVG draw. When a
className is given, return only the explicit style (possibly undefined): the class’s CSS keeps
full control, since an inline default would beat it. text defaults to what style alone resolves
to. Shared so every engine lifts the exact same policy (#223); pass the result as LabelLayer’s style.
Parameters
Section titled “Parameters”className
Section titled “className”string | undefined
LabelStyle | undefined
LabelText = ...
Returns
Section titled “Returns”LabelStyle | undefined