New
LoroDoc
forkAt(frontiers: Frontiers): Fork the document at the given frontiers.getChangedContainersIn(id: ID, len: number): Gets container IDs modified in the given ID range.- “
LoroText
getEditorOf(pos: number): Get the editor of the text at the given position.push(s: string): Push a string to the end of the text.
LoroMap
getLastEditor(key: string): Get the peer id of the last editor on the given entry
LoroList
getIdAt(pos: number): Get the ID of the list item at the given position.pushContainer(child: Container): Push a container to the end of the list.
LoroMovableList
getCreatorAt(pos: number): Get the creator of the list item at the given position.getLastMoverAt(pos: number): Get the last mover of the list item at the given position.getLastEditorAt(pos: number): Get the last editor of the list item at the given position.pushContainer(child: Container): Push a container to the end of the list.
LoroTree
toJSON(): Get JSON format of the LoroTreeNode.