SplitTextComponentOptions
Defined in: packages/renderer/src/SplitTextComponent.ts:46
Options for creating a SplitTextComponent.
Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:number
Defined in: packages/renderer/src/SplitTextComponent.ts:75
Alpha (opacity). Default: 1.
autoSplit?
Section titled “autoSplit?”
optionalautoSplit?:boolean
Defined in: packages/renderer/src/SplitTextComponent.ts:67
Re-split automatically when text / style change. Default true.
Set false and call SplitTextComponent.resplit to batch updates.
bitmap?
Section titled “bitmap?”
optionalbitmap?:boolean
Defined in: packages/renderer/src/SplitTextComponent.ts:56
Render the segments with a bitmap font (SplitBitmapText) instead of
canvas Text (SplitText). Pass the installed/baked font name as
style.fontFamily (and glyph size as style.fontSize).
charAnchor?
Section titled “charAnchor?”
optionalcharAnchor?:SegmentAnchor
Defined in: packages/renderer/src/SplitTextComponent.ts:58
Transform origin for each character. Default 0 (top-left).
layer?
Section titled “layer?”
optionallayer?:string
Defined in: packages/renderer/src/SplitTextComponent.ts:69
Render layer name. Default: “default”.
lineAnchor?
Section titled “lineAnchor?”
optionallineAnchor?:SegmentAnchor
Defined in: packages/renderer/src/SplitTextComponent.ts:62
Transform origin for each line. Default 0 (top-left).
style?
Section titled “style?”
optionalstyle?:TextStyleOptions
Defined in: packages/renderer/src/SplitTextComponent.ts:50
Text style — forwards to PixiJS TextStyleOptions (CSS-like font properties).
text:
string
Defined in: packages/renderer/src/SplitTextComponent.ts:48
The text string to render and segment.
optionaltint?:number
Defined in: packages/renderer/src/SplitTextComponent.ts:73
Tint color applied to the whole text (cascades to every segment).
visible?
Section titled “visible?”
optionalvisible?:boolean
Defined in: packages/renderer/src/SplitTextComponent.ts:71
Initial visibility. Default: true.
wordAnchor?
Section titled “wordAnchor?”
optionalwordAnchor?:SegmentAnchor
Defined in: packages/renderer/src/SplitTextComponent.ts:60
Transform origin for each word. Default 0 (top-left).