Skip to content

LabelStyle

LabelStyle = { [P in Extract<keyof CSSStyleDeclaration, string> as CSSStyleDeclaration[P] extends string ? P : never]?: string }

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

Inline CSS for overlay label elements: camelCased CSS property → value (the string-valued subset of CSSStyleDeclaration), e.g. { color: "#1f2937", textShadow: "0 0 2px #fff" }. A plain, engine-agnostic shape, so it can lift as-is into other engines’ label overlays (#223).