(editor: Editable)
| 12 | const SIDETOOLBAR_CAPTURED_DATA_WEAK_MAP = new WeakMap<Editable, CapturedData>() |
| 13 | |
| 14 | export const getCapturedData = (editor: Editable): CapturedData | undefined => { |
| 15 | return SIDETOOLBAR_CAPTURED_DATA_WEAK_MAP.get(editor) |
| 16 | } |
| 17 | |
| 18 | export const setCapturedData = (editor: Editable, data: CapturedData) => { |
| 19 | SIDETOOLBAR_CAPTURED_DATA_WEAK_MAP.set(editor, data) |
no test coverage detected
searching dependent graphs…