OptionalalignDefault 'left'.
OptionalcaretCaret color used by the edit overlay. Defaults to the text color when
fill is solid; falls back to #000 for non-solid paints.
OptionalfillDefault { fill: 'solid', color: '#000' }.
OptionalfontDefault 'sans-serif'.
OptionalfontFont size in world units. Default 16.
OptionalfontDefault 'normal'.
OptionalfontDefault 400.
OptionalletterExtra advance added after each glyph, in world units. Default 0.
OptionallineMultiplier applied to fontSize. Default 1.2.
OptionalselectionSelection background color used by the edit overlay's ::selection
pseudo-element. Defaults to a 25%-opacity tint of caretColor via CSS
color-mix. Pass 'none' to fall back to the browser-native highlight.
OptionalselectionSelection text color paired with selectionBackground. Default: inherits text color.
OptionalstrikethroughDefault false.
OptionalstrokeOutline painted over the glyph fill. Omitted (the default) means no outline — there is no such thing as a default text stroke.
Only glyphs on the outline tier are stroked: above
textOutlineMinScreenSize a glyph is a real PolygonPath, so it gets
the ordinary tessellated ribbon with real joins, caps and miters, in any
paint. Below it a glyph is a sampled distance field with no geometry to
stroke, and it renders unstroked rather than approximated. width is in
world units, like every other stroke in the kit — it does not scale with
fontSize.
OptionalunderlineDefault false.
User-facing text style. All fields optional; defaults applied at render time via
resolveTextStyle.