(editor: Editor)
| 9 | const TABLE_ROW_OPTIONS = new WeakMap<Editor, TableRowOptions>() |
| 10 | |
| 11 | export const getOptions = (editor: Editor): Required<TableRowOptions> => { |
| 12 | const options = TABLE_ROW_OPTIONS.get(editor) ?? {} |
| 13 | |
| 14 | if (!options.minRowHeight) options.minRowHeight = defaultTableMinRowHeight |
| 15 | |
| 16 | return options as Required<TableRowOptions> |
| 17 | } |
| 18 | |
| 19 | export const setOptions = (editor: Editor, { minRowHeight }: TableRowOptions) => { |
| 20 | TABLE_ROW_OPTIONS.set(editor, { minRowHeight }) |
no test coverage detected
searching dependent graphs…