(editor: YjsEditor, key: string, point: Point)
| 102 | }, |
| 103 | |
| 104 | storePosition(editor: YjsEditor, key: string, point: Point): void { |
| 105 | const { sharedRoot, positionStorageOrigin: locationStorageOrigin } = editor |
| 106 | assertDocumentAttachment(sharedRoot) |
| 107 | |
| 108 | const position = editorPointToRelativePosition(sharedRoot, editor, point) |
| 109 | |
| 110 | sharedRoot.doc.transact(() => { |
| 111 | setStoredPosition(sharedRoot, key, position) |
| 112 | }, locationStorageOrigin) |
| 113 | }, |
| 114 | |
| 115 | removeStoredPosition(editor: YjsEditor, key: string): void { |
| 116 | const { sharedRoot, positionStorageOrigin: locationStorageOrigin } = editor |
nothing calls this directly
no test coverage detected
searching dependent graphs…