UNPKG

@true-directive/base

Version:

The set of base classes for the TrueDirective Grid

32 lines (31 loc) 885 B
import { CellPosition } from './cell-position.class'; import { SelectionMode } from './enums'; /** * Range of cells * Rectangular area in the grid. Defined by: * - fromCell: CellPosition - starting cell. * - toCell: CellPosition - ending cell. */ export declare class CellRange { fromCell: CellPosition; toCell: CellPosition; /** * Always lower row index */ readonly fromRow: number; /** * Always higher row index */ readonly toRow: number; readonly fromField: string; readonly toField: string; equals(range: CellRange, sm: SelectionMode): boolean; clone(): CellRange; /** * Extends range to a given cell position. * @param pos Cell position. * @return Is range changed. */ extend(pos: CellPosition): boolean; constructor(fromCell: CellPosition); }