MCPcopy Create free account
hub / github.com/editablejs/editable / getOptions

Function getOptions

packages/plugins/table/src/row/options.ts:11–17  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

9const TABLE_ROW_OPTIONS = new WeakMap<Editor, TableRowOptions>()
10
11export 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
19export const setOptions = (editor: Editor, { minRowHeight }: TableRowOptions) => {
20 TABLE_ROW_OPTIONS.set(editor, { minRowHeight })

Callers 2

RowFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…