caretRect
import { caretRect } from 'pixi-silk/text';
function caretRect(
layout: TextLayout,
index: number,
upstream?: boolean
): CaretRect;
Where to draw a caret at index, in the layout’s units.
Parameters#
| Parameter | Type | Default value |
|---|---|---|
layout | TextLayout | undefined |
index | number | undefined |
upstream | boolean | false |