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#
| Parameter | Type |
|---|---|
text | string |
Returns#
number[]