API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classTextStyle

@codexo/exojs / rendering / stable

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.

18
props
3
methods
1
events
Import
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.

Constructors 1
new(options: TextStyleOptions): TextStyle
Methods 3
clone(): TextStyle
consumeDirty(): StyleChangeHint | null
copy(style: TextStyle): this
Properties 18
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
Events 1
onChange: Signal<[]>
Source