Skip to content
pixi-silk
GitHub repository
Function

wordSegments

import { wordSegments } from 'pixi-silk/text';
function wordSegments(text: string): WordSegment[];

Splits text into words and the runs between them.

Parameters#

ParameterType
textstring

Returns#

WordSegment[]