@motion-script/core / TextCaret
Interface: TextCaret
Defined in: runtime/text-geometry.ts:46
One caret slot: the line an editor would draw for a cursor at this offset.
Properties
bottom
bottom:
Vector2
Defined in: runtime/text-geometry.ts:51
offset
offset:
number
Defined in: runtime/text-geometry.ts:48
Character offset this slot sits before.
top
top:
Vector2
Defined in: runtime/text-geometry.ts:50
Top and bottom of the cursor, viewport space.