UNPKG

731 BTypeScriptView Raw
1import type { Node } from 'd3-hierarchy';
2type Layout = {
3 tile?: 'treemapBinary' | 'treemapDice' | 'treemapSlice' | 'treemapSliceDice' | 'treemapSquarify' | 'treemapResquarify';
4 size?: [number, number];
5 round?: boolean;
6 ignoreParentValue?: boolean;
7 ratio?: number;
8 padding?: number;
9 paddingInner?: number;
10 paddingOuter?: number;
11 paddingTop?: number;
12 paddingRight?: number;
13 paddingBottom?: number;
14 paddingLeft?: number;
15 sort?(a: any, b: any): number;
16 path?: (d: any) => any;
17 /** The granularity of Display layer. */
18 layer?: number | ((d: any) => any);
19};
20export declare function treeDataTransform(data: any, layout: Layout, encode: any): [Node[], Node[]];
21export {};
22
\No newline at end of file