pixi-jsFunctions
Function: wordWrapTaggedLines()
> wordWrapTaggedLines(runsByLine, style, context, measureTextFn, canBreakCharsFn, wordWrapSplitFn): TextStyleRun[][]
Defined in: node_modules/pixi.js/lib/scene/text/canvas/utils/measureTaggedText.d.ts:77
Internal
Applies word wrapping to tagged text lines. Breaks runs at word boundaries while maintaining style information.
Parameters
runsByLine
TextStyleRun[][]
Array of run arrays, one per line
style
The base text style
context
The canvas 2D context
measureTextFn
Function to measure text width
canBreakCharsFn
Function to check if characters can be broken
wordWrapSplitFn
Function to split words into characters
Returns
TextStyleRun[][]
New runsByLine array with word wrap applied