UNPKG

@visualjs/grid

Version:
25 lines (24 loc) 1.12 kB
import Grid from "../../grid"; import { CellPosition, Coordinate } from "../../types"; import CellRange from "../../selection/CellRange"; import { FillRange } from "../../selection/FillRange"; import { Ref } from "preact"; interface Props { grid: Grid; pinnedTopRows: string[]; pinnedBottomRows: string[]; normalRows: string[]; getCoordinate: (row: string, column: string) => Coordinate; getCoordLocatedRange: (coord: Coordinate) => CellRange | undefined; hoverRow: (row: string) => void; selectCells: (start: Coordinate, end: Coordinate) => void; setEditing: (pos?: CellPosition) => void; setFilling: (filling?: FillRange) => void; onWheelHorizontal?: (ev: WheelEvent) => void; pinnedTopRowsRef?: Ref<HTMLDivElement>; pinnedBottomRowsRef?: Ref<HTMLDivElement>; getScrollXNode?: (node: HTMLDivElement) => void; getScrollYNode?: (node: HTMLDivElement) => void; } declare const _default: (props: Omit<Omit<Props, "grid">, "selectCells" | "setEditing" | "setFilling" | "getCoordinate" | "getCoordLocatedRange" | "hoverRow">) => JSX.Element; export default _default;