Skip to main content

$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