(editor: Editor)
| 9 | const CURSORS_TO_EDITABLE = new WeakMap<Editor, UseBoundStore<StoreApi<CursorStore>>>() |
| 10 | |
| 11 | export const getCursorsStore = (editor: Editor) => { |
| 12 | let store = CURSORS_TO_EDITABLE.get(editor) |
| 13 | if (!store) { |
| 14 | store = create(() => ({ |
| 15 | clientIds: { |
| 16 | added: [], |
| 17 | removed: [], |
| 18 | updated: [], |
| 19 | }, |
| 20 | states: {}, |
| 21 | })) |
| 22 | CURSORS_TO_EDITABLE.set(editor, store) |
| 23 | } |
| 24 | return store |
| 25 | } |
no test coverage detected
searching dependent graphs…