Type Editor / @type-editor/tables / utils/selection-range / CellSelectionRange
Interface: CellSelectionRange
Defined in: tables/src/utils/selection-range.ts:13
Represents a rectangular selection range within a table.
This interface describes the anchor and head positions for a cell selection, along with the indexes of all columns or rows included in the selection.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
$anchor | ResolvedPos | The resolved position of the selection anchor (where the selection started). | tables/src/utils/selection-range.ts:17 |
$head | ResolvedPos | The resolved position of the selection head (where the selection ended). | tables/src/utils/selection-range.ts:22 |
indexes | number[] | An array of column or row indexes included in the selection. For column selections, these are column indexes; for row selections, these are row indexes. | tables/src/utils/selection-range.ts:28 |