数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
957 B

import type { DrawHorizontalLine, DrawVerticalLine, SpanningCellConfig } from './types/api';
import type { CellCoordinates, ColumnConfig, ResolvedRangeConfig, Row } from './types/internal';
export declare type SpanningCellManager = {
getContainingRange: (cell: CellCoordinates, options?: {
mapped: true;
}) => ResolvedRangeConfig | undefined;
inSameRange: (cell1: CellCoordinates, cell2: CellCoordinates) => boolean;
rowHeights: number[];
setRowHeights: (rowHeights: number[]) => void;
};
export declare type SpanningCellParameters = {
spanningCellConfigs: SpanningCellConfig[];
rows: Row[];
columnsConfig: ColumnConfig[];
drawVerticalLine: DrawVerticalLine;
drawHorizontalLine: DrawHorizontalLine;
};
export declare type SpanningCellContext = SpanningCellParameters & {
rowHeights: number[];
};
export declare const createSpanningCellManager: (parameters: SpanningCellParameters) => SpanningCellManager;