Skip to content
pixi-silk
GitHub repository
Interface

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#

PropertyModifierTypeDescriptionDefined in
anchorreadonlynumberOffset where the selection started.ui/textedit.ts:24
focusreadonlynumberOffset of the caret, the end that moves.ui/textedit.ts:26