TextSelection
import type { TextSelection } from 'pixi-silk/ui/textedit';
A selection: where it started (anchor) and where the caret is (focus). Equal for a plain caret.
Properties#
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
anchor | readonly | number | Offset where the selection started. | ui/textedit.ts:24 |
focus | readonly | number | Offset of the caret, the end that moves. | ui/textedit.ts:26 |