pixi-jsFunctions
Function: bitmapTextSplit()
> bitmapTextSplit(options): TextSplitOutput<BitmapText>
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/utils/bitmapTextSplit.d.ts:14
Internal
Splits a Text object into segments based on the text's layout and style, and adds these segments as individual Text objects to a specified container.
This function handles word wrapping, alignment, and letter spacing, ensuring that each segment is rendered correctly according to the original text's style.
Parameters
options
Pick<SplitOptions, "text" | "style"> & object
Configuration options for the text split operation.
Returns
An array of Text objects representing the split segments.