CaretStop
import type { CaretStop } from 'pixi-silk/text';
A caret stop: a source offset and the side it goes with, as caretVisual returns it.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
index | number | Source offset. | packages/pixi-silk/src/text/layout.ts:1037 |
leading | boolean | True when the caret goes with the character after index (see LayoutLine.leads). | packages/pixi-silk/src/text/layout.ts:1039 |