Type Editor / @type-editor/tables / utils/convert
utils/convert
Type Aliases
| Type Alias | Description |
|---|---|
A matrix representation of table cells, where each element is either a Node (for the top-left cell of a merged region) or null (for continuation cells that are part of a merged cell spanning from above or left). |
Functions
| Function | Description |
|---|---|
Converts a matrix of table cells back into a table node. This function reconstructs a table node from a 2D array representation, typically used after modifying the table structure or cell contents. The matrix should follow the same format produced by convertTableNodeToArrayOfRows, where Example typescript | |
Transforms a table node into a matrix of rows and columns, respecting merged cells. For cells spanning multiple rows or columns, only the top-left cell of the merged region contains the actual Node; all other positions in the span are represented as Example Given this table structure: The result will be: javascript |