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