UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

32 lines (31 loc) 1.35 kB
import type { DataCell } from '../../cell'; import type { CellMeta, S2CellType } from '../../common/interface'; import type { SpreadSheet } from '../../sheet-type'; /** * @description Determine if the current cell belongs to Cells * @param cells active cells * @param currentCell current activated cell */ export declare const includeCell: (cells: CellMeta[], currentCell: S2CellType) => boolean; export declare const getDataCellId: (rowId: string, colId: string) => string; export declare const shouldUpdateBySelectedCellsHighlight: (s2: SpreadSheet) => boolean | undefined; export declare const isDataCell: (cell: CellMeta) => boolean; /** * highlight cells of the row * @param cells cells selected * @param dataCell cell to render */ export declare const updateCurrentRowCellState: (cells: CellMeta[], dataCell: DataCell) => void; /** * highlight cells of the column * @param cells cells selected * @param dataCell cell to render */ export declare const updateCurrentColumnCellState: (cells: CellMeta[], dataCell: DataCell) => void; /** * highlight cells * @param cells cells selected * @param dataCell cell to render */ export declare const updateCurrentCellState: (cells: CellMeta[], dataCell: DataCell) => void; export declare const updateBySelectedCellsHighlight: (cells: CellMeta[], dataCell: DataCell, s2: SpreadSheet) => void;