Skip to content
pixi-silk
GitHub repository
Function

graphemeStops

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

Offsets where a caret can sit: 0, every grapheme cluster boundary, and the text’s length.

Parameters#

ParameterType
textstring

Returns#

number[]