Skip to main content
Modular Documentation
Guides
Reference
Reference
/
@modular/sdk/editor
$caretFromPoint
function
function $caretFromPoint<D extends CaretDirection>(point: Pick<PointType, 'type' | 'key' | 'offset'>, direction: D): PointCaret<D>
Import
import { $caretFromPoint } from '@modular/sdk/editor';
Notes
returns
a PointCaret for the point