@visualjs/grid
Version:
JavaScript Data Table
25 lines (24 loc) • 803 B
TypeScript
import CellRange from "../../../selection/CellRange";
import { FillRange } from "../../../selection/FillRange";
import { Store as BaseStore } from "../../../grid/store";
import { CellPosition, Coordinate } from "../../../types";
export interface Actions {
selectCells: {
start: Coordinate;
end: Coordinate;
} | undefined;
setEditing: CellPosition | undefined;
setFilling: FillRange | undefined;
}
export interface State {
editing?: CellPosition;
selections: CellRange[];
filling?: FillRange;
}
export declare class Store extends BaseStore<State, Actions> {
constructor(initial?: Partial<State>);
setEditing(pos?: CellPosition): void;
stopEditing(): void;
getCoordLocatedRange(coord: Coordinate): CellRange | undefined;
}
export default Store;