Skip to content

Type Editor


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

PropertyTypeDescriptionDefined in
$anchorResolvedPosThe resolved position of the selection anchor (where the selection started).tables/src/utils/selection-range.ts:17
$headResolvedPosThe resolved position of the selection head (where the selection ended).tables/src/utils/selection-range.ts:22
indexesnumber[]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