PointRef
PointRef objects keep a specific point in a document synced over time as new operations are applied to the editor. You can access their property current at any time for the up-to-date Point value.
1
interface PointRef {
2
current: Point | null
3
affinity: 'forward' | 'backward' | null
4
unref(): Point | null
5
}
Copied!

Static methods

Transform methods

PointRef.transform(ref: PointRef, op: Operation)

Transform the point refs current value by an op.
Last modified 6mo ago