UNPKG

957 BTypeScriptView Raw
1import type { DrawHorizontalLine, DrawVerticalLine, SpanningCellConfig } from './types/api';
2import type { CellCoordinates, ColumnConfig, ResolvedRangeConfig, Row } from './types/internal';
3export declare type SpanningCellManager = {
4 getContainingRange: (cell: CellCoordinates, options?: {
5 mapped: true;
6 }) => ResolvedRangeConfig | undefined;
7 inSameRange: (cell1: CellCoordinates, cell2: CellCoordinates) => boolean;
8 rowHeights: number[];
9 setRowHeights: (rowHeights: number[]) => void;
10};
11export declare type SpanningCellParameters = {
12 spanningCellConfigs: SpanningCellConfig[];
13 rows: Row[];
14 columnsConfig: ColumnConfig[];
15 drawVerticalLine: DrawVerticalLine;
16 drawHorizontalLine: DrawHorizontalLine;
17};
18export declare type SpanningCellContext = SpanningCellParameters & {
19 rowHeights: number[];
20};
21export declare const createSpanningCellManager: (parameters: SpanningCellParameters) => SpanningCellManager;