LogoPixi’VN
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

TextStyle

The base text style

context

ICanvasRenderingContext2D

The canvas 2D context

measureTextFn

MeasureTextFn

Function to measure text width

canBreakCharsFn

CanBreakCharsFn

Function to check if characters can be broken

wordWrapSplitFn

WordWrapSplitFn

Function to split words into characters

Returns

TextStyleRun[][]

New runsByLine array with word wrap applied