UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

24 lines (23 loc) 981 B
import type { PointLike } from '@antv/g'; import type { ColCell } from '../../cell/col-cell'; import type { OnUpdateCells, ViewMeta } from '../../common/interface'; import type { Node } from '../../facet/layout/node'; import { BaseBrushSelection } from './base-brush-selection'; export declare class ColCellBrushSelection extends BaseBrushSelection { displayedCells: ColCell[]; brushRangeCells: ColCell[]; bindEvents(): void; protected bindMouseDown(): void; protected isPointInCanvas(point: PointLike): boolean; protected bindMouseMove(): void; protected setDisplayedCells(): void; /** * 用户判断 colCell 是否在当前刷选的范围内 * @param meta colCell 位置等属性存储的对象 * @returns boolean */ protected isInBrushRange(meta: ViewMeta | Node): boolean; protected updateSelectedCells(event: MouseEvent): void; protected addBrushIntercepts(): void; protected onUpdateCells: OnUpdateCells; }