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:
Call consumeDirty at the start of each frame to get the accumulated hint and clear the flag.
new(options: TextStyleOptions): TextStyle clone(): TextStyle consumeDirty(): StyleChangeHint | null copy(style: TextStyle): this align: TextAlignment fillColor: Color font: string fontFamily: string fontSize: number fontStyle: "normal" | "italic" fontWeight: FontWeight gradientAxis: GradientAxis gradientColors: [Color, Color] | null leading: number lineHeight: number outlineColor: Color outlineWidth: number shadowAlpha: number shadowBlur: number shadowColor: Color shadowOffsetX: number shadowOffsetY: number onChange: Signal<[]>