(editor: Editor)
| 10 | const ALIGN_OPTIONS = new WeakMap<Editor, AlignOptions>() |
| 11 | |
| 12 | export const getOptions = (editor: Editor): AlignOptions => { |
| 13 | return ALIGN_OPTIONS.get(editor) ?? {} |
| 14 | } |
| 15 | |
| 16 | export const setOptions = (editor: Editor, options: AlignOptions) => { |
| 17 | ALIGN_OPTIONS.set(editor, options) |
no test coverage detected
searching dependent graphs…