UNPKG

646 BTypeScriptView Raw
1import { ViewDimensions } from './types/view-dimension.interface';
2import { StringOrNumberOrDate } from '../models/chart-data.model';
3export interface GridItem {
4 data: GridData;
5 height: number;
6 width: number;
7 x: number;
8 y: number;
9}
10export interface GridData {
11 extra?: any;
12 label: string;
13 name: StringOrNumberOrDate;
14 percent: number;
15 total: number;
16 value: number;
17}
18export declare function gridSize(dims: ViewDimensions, len: number, minWidth: number): [number, number];
19export declare function gridLayout(dims: ViewDimensions, data: GridData[], minWidth: number, designatedTotal: number): GridItem[];