Type Editor / @type-editor/tables / utils/selection-cell
utils/selection-cell
Functions
| Function | Description |
|---|---|
Gets the resolved position of the "main" cell in the current selection. For cell selections, returns the position of the cell that is furthest in document order (comparing anchor and head). For node selections of a cell, returns the anchor position. For other selections, finds the nearest cell. Throws RangeError if no cell can be found around the selection. Example typescript |