Skip to content
pixi-silk
GitHub repository
Interface

CaretRect

import type { CaretRect } from 'pixi-silk/text';

A caret position in layout units: a vertical segment from top to bottom at x.

Properties#

PropertyTypeDescriptionDefined in
bottomnumberBottom of the caret: the font’s descent below the baseline.text/layout.ts:339
linenumberLine the caret is on.text/layout.ts:341
topnumberTop of the caret: the font’s ascent above the baseline.text/layout.ts:337
xnumberx of the caret.text/layout.ts:335