LogoPixi’VN
pixi-jsFunctions

Function: tokenizeTaggedRuns()

> tokenizeTaggedRuns(runs): StyledToken[]

Defined in: node_modules/pixi.js/lib/scene/text/canvas/utils/measureTaggedText.d.ts:86

Internal

Tokenizes an array of TextStyleRuns into individual styled tokens. Each token is a word, space, or newline with its associated style. Tracks whether adjacent tokens across run boundaries form a continuous word.

Parameters

runs

TextStyleRun[]

The runs to tokenize

Returns

StyledToken[]

Array of styled tokens with continuation flags