UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

30 lines (29 loc) 779 B
import type { AgChartLegendOrientation } from 'ag-charts-types'; import type { BBox } from '../scene/bbox'; export type Page = { columns: Column[]; pageWidth: number; pageHeight: number; startIndex: number; endIndex: number; }; type Column = { columnWidth: number; columnHeight: number; indices: number[]; bboxes: BBox[]; }; export declare function gridLayout({ orientation, bboxes, maxHeight, maxWidth, itemPaddingY, itemPaddingX, forceResult, }: { orientation: AgChartLegendOrientation; bboxes: BBox[]; maxHeight: number; maxWidth: number; itemPaddingY?: number; itemPaddingX?: number; forceResult?: boolean; }): { pages: Page[]; maxPageWidth: number; maxPageHeight: number; } | undefined; export {};