Skip to content
pixi-silk
GitHub repository
Interface

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#

PropertyTypeDescriptionDefined in
indexnumberSource offset.packages/pixi-silk/src/text/layout.ts:1037
leadingbooleanTrue when the caret goes with the character after index (see LayoutLine.leads).packages/pixi-silk/src/text/layout.ts:1039