Interface: TextStyle
Experimental
Style shared by all labels (TextData.style) and overridable per label.
Extended by
Properties
| Property | Type | Description |
|---|---|---|
align? | "center" | "left" | "right" | Experimental Alignment of lines within a multi-line block. Default: follows anchorX. |
anchorX? | TextAnchorX | Experimental Default left. |
anchorY? | TextAnchorY | Experimental Default baseline. |
angle? | number | Experimental Rotation in degrees, Plotly textangle / tickangle convention: clockwise positive on screen, about the anchor point. Default 0. |
color? | RGBA | Experimental sRGB 0–1 RGBA, straight alpha. Default opaque black. |
font? | Partial<TextFont> | Experimental Merged field-by-field: { ...defaults, ...style.font, ...label.font }. |
lineHeight? | number | Experimental Line advance as a multiple of the font size. Default TEXT_DEFAULT_LINE_HEIGHT. |
maxWidth? | number | Experimental Max line width in px (font units). Default: unlimited. |
offset? | readonly [number, number] | Experimental Screen-space offset from the anchor in px, [dx, dy] with +y down. Not rotated by angle. |
outline? | TextOutline | null | Experimental Outline/halo/shadow; null disables an outline inherited from the shared style. An outline takes precedence over font.shadow, which otherwise becomes the outline pass (a CSS shadow is an outline of width 0 with blur and offset). |
overflow? | TextOverflow | Experimental Default wrap. Only used when maxWidth is finite. |