import { IStoreState, ID, IDimension } from '../../index.data'; interface ISheetScope { fromI: number; toI: number; fromJ: number; toJ: number; } export declare function getSelectionScope(state: IStoreState): ISheetScope; /** * 获取当前选择内容的dimensions * 由于 rowIndicator 和 colIndicator 的存在, 所以需要offset * @param state * @param offset 计算出的left需要加上offset.x, 计算出的right需要加上offset.y * @returns dimensions */ export declare function getSelectedDimensions(state: IStoreState): IDimension; /** * 取得fromCellId与toCellId的包裹wrapper的dimension * @param state * @param cellRange * @returns {width, height, left, top} */ export declare function getCellRangeDimensions(state: IStoreState, [fromCellId, toCellId]: [ID, ID]): IDimension; export declare function getColumnRangeDimensions(state: IStoreState, [fromColumnId, toColumnId]: [ID, ID]): IDimension; export declare function getRowRangeDimensions(state: IStoreState, [fromRowId, toRowId]: [ID, ID]): IDimension; /** * 获得column的左上角和右下角坐标 */ export declare function getColumnDimensions(state: IStoreState, columnId: ID): IDimension; /** * 获得row的左上角和右下角坐标 */ export declare function getRowDimensions(state: IStoreState, rowId: ID): IDimension; /** * 获得cell的左上角和右下角坐标 */ export declare function getCellDimensions(state: IStoreState, _cellId: ID): IDimension; export declare function selectionIsOneCell(state: IStoreState): boolean; export declare function getPresentCell(state: IStoreState): ID | null; export declare function getActivedCell(state: IStoreState): ID | null; export declare function isCellSingleSelected(state: IStoreState, id: ID): boolean; export {};