pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
17 lines (16 loc) • 804 B
TypeScript
import { type SplitOptions } from '../../text-split/SplitText';
import { type TextSplitOutput } from '../../text-split/types';
import { BitmapText } from '../BitmapText';
/**
* 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.
* @param options - Configuration options for the text split operation.
* @returns An array of Text objects representing the split segments.
* @internal
*/
export declare function bitmapTextSplit(options: Pick<SplitOptions, 'text' | 'style'> & {
chars: BitmapText[];
}): TextSplitOutput<BitmapText>;