API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTextStyle
Describes how a Text node renders its string. Every setter marks the style dirty with a StyleChangeHint so that the owning node can batch-rebuild efficiently on the next frame: - `'tint'` - only updates `Mesh.tint`, no atlas work - `'layout'` - rebuilds the glyph mesh, reuses cached atlas glyphs - `'font'` - atlas lookup + full mesh rebuild Call consumeDirty at the start of each frame to get the accumulated hint and clear the flag.
import { TextStyle } from '@codexo/exojs'Describes how a Text node renders its string.
Every setter marks the style dirty with a StyleChangeHint so that the owning node can batch-rebuild efficiently on the next frame: - `'tint'` - only updates `Mesh.tint`, no atlas work - `'layout'` - rebuilds the glyph mesh, reuses cached atlas glyphs - `'font'` - atlas lookup + full mesh rebuild
Call consumeDirty at the start of each frame to get the accumulated hint and clear the flag.
copy(style: TextStyleText styling options carried by a TextObject.): thisdecorationOffset: numberdecorationThickness: numberfont: stringfontFamily: stringfontSize: numberleading: numberlineHeight: numberoutlineWidth: numbershadowAlpha: numbershadowBlur: numbershadowOffsetX: numbershadowOffsetY: numberstrikethrough: booleanunderline: boolean