handsontable
Version:
Handsontable is a JavaScript Spreadsheet Component available for React, Angular and Vue.
52 lines (48 loc) • 1.84 kB
TypeScript
import CellCoords from './coords';
export default class CellRange {
constructor(highlight: CellCoords, from?: CellCoords, to?: CellCoords);
highlight: CellCoords;
from: CellCoords;
to: CellCoords;
setHighlight(coords: CellCoords): CellRange;
setFrom(coords: CellCoords): CellRange;
setTo(coords: CellCoords): CellRange;
isValid(wot: any): boolean;
isSingle(): boolean;
getOuterHeight(): number;
getOuterWidth(): number;
getHeight(): number;
getWidth(): number;
includes(cellCoords: CellCoords): boolean;
includesRange(cellRange: CellRange): boolean;
isEqual(cellRange: CellRange): boolean;
overlaps(cellRange: CellRange): boolean;
isSouthEastOf(cellRange: CellRange): boolean;
isNorthWestOf(cellRange: CellRange): boolean;
isOverlappingHorizontally(cellRange: CellRange): boolean;
isOverlappingVertically(cellRange: CellRange): boolean;
expand(cellCoords: CellCoords): boolean;
expandByRange(expandingRange: CellRange): boolean;
getDirection(): string;
setDirection(direction: string): void;
getVerticalDirection(): string;
getHorizontalDirection(): string;
flipDirectionVertically(): void;
flipDirectionHorizontally(): void;
getTopLeftCorner(): CellCoords;
getBottomRightCorner(): CellCoords;
getTopRightCorner(): CellCoords;
getBottomLeftCorner(): CellCoords;
getOuterTopLeftCorner(): CellCoords;
getOuterBottomRightCorner(): CellCoords;
getOuterTopRightCorner(): CellCoords;
getOuterBottomLeftCorner(): CellCoords;
isCorner(coords: CellCoords, expandedRange?: CellRange): boolean;
getOppositeCorner(coords: CellCoords, expandedRange?: CellRange): CellCoords;
getBordersSharedWith(range: CellRange): any[];
getInner(): any[];
getAll(): any[];
forAll(callback: (row: number, column: number) => boolean): void;
clone(): CellRange;
toObject(): any;
}