Skip to content

Type Editor


Type Editor / @type-editor/tables / tablemap/compute-map

tablemap/compute-map

Functions

FunctionDescription

computeMap

Compute a table map for the given table node.

The map is a flat array where each element represents a cell in the grid. The value at each position is the table-relative offset of the cell that covers that grid position. Cells with colspan/rowspan will appear multiple times in the array.

Throws

If the provided node is not a table