MCPcopy Create free account
hub / github.com/editablejs/editable / removeStoredPosition

Function removeStoredPosition

packages/plugins/yjs/src/plugin/with-yjs.ts:115–122  ·  view source on GitHub ↗
(editor: YjsEditor, key: string)

Source from the content-addressed store, hash-verified

113 },
114
115 removeStoredPosition(editor: YjsEditor, key: string): void {
116 const { sharedRoot, positionStorageOrigin: locationStorageOrigin } = editor
117 assertDocumentAttachment(sharedRoot)
118
119 sharedRoot.doc.transact(() => {
120 removeStoredPosition(sharedRoot, key)
121 }, locationStorageOrigin)
122 },
123
124 position(editor: YjsEditor, key: string): Point | null | undefined {
125 const position = getStoredPosition(editor.sharedRoot, key)

Callers

nothing calls this directly

Calls 2

assertDocumentAttachmentFunction · 0.90
removeStoredPositionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…