Callable
- __call(root: T, index?: number): T[]
-
Parameters
-
root: T
-
Optional index: number
Returns T[]
Methods
children
- children(): function
- children(children: function): Treemap<T>
-
Returns function
-
- (node: T, depth: number): T[]
-
Parameters
-
children: function
-
- (node: T, depth: number): T[]
links
- links(nodes: T[]): Link<T>[]
-
Parameters
Returns Link<T>[]
mode
- mode(): string
- mode(mode: "squarify"): Treemap<T>
- mode(mode: "slice"): Treemap<T>
- mode(mode: "dice"): Treemap<T>
- mode(mode: "slice-dice"): Treemap<T>
- mode(mode: string): Treemap<T>
-
Returns string
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
nodes
- nodes(root: T, index?: number): T[]
-
Parameters
-
root: T
-
Optional index: number
Returns T[]
padding
-
Returns function
-
Parameters
-
Parameters
ratio
- ratio(): number
- ratio(ratio: number): Treemap<T>
-
Returns number
-
Parameters
round
- round(): boolean
- round(round: boolean): Treemap<T>
-
Returns boolean
-
Parameters
size
- size(): [number, number]
- size(size: [number, number]): Treemap<T>
-
Returns [number, number]
-
Parameters
sort
- sort(): function
- sort(comparator: function): Treemap<T>
-
Returns function
-
-
Parameters
Returns number
-
Parameters
-
comparator: function
-
-
Parameters
Returns number
sticky
- sticky(): boolean
- sticky(sticky: boolean): boolean
-
Returns boolean
-
Parameters
Returns boolean
value
- value(): function
- value(value: function): Treemap<T>
-
Returns function
-
- (node: T, index: number): number
-
Parameters
Returns number
-
Parameters
-
value: function
-
- (node: T, index: number): number
-
Parameters
Returns number