Skip to main content
Module

x/automerge/index.ts>next.getCursorPosition

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Latest
function next.getCursorPosition
import { next } from "https://deno.land/x/automerge@2.2.2/index.ts";
const { getCursorPosition } = next;

Returns the current index of the cursor.

Parameters

doc: Doc<T>
  • The document
path: stable.Prop[]
  • The path to the string
cursor: Cursor
  • The cursor

Returns

number