Callable
- __call(root: T, index?: number): T[]
-
Parameters
-
root: T
-
Optional index: number
Returns T[]
Methods
children
- children(): function
- children(children: function): Tree<T>
-
Returns function
-
- (datum: T, index: number): T[]
-
Parameters
-
children: function
-
- (datum: T, index: number): T[]
Returns Tree<T>
links
- links(nodes: T[]): Link<T>[]
-
Parameters
Returns Link<T>[]
nodeSize
- nodeSize(): [number, number]
- nodeSize(size: [number, number]): Tree<T>
-
Returns [number, number]
-
Parameters
Returns Tree<T>
nodes
- nodes(root: T, index?: number): T[]
-
Parameters
-
root: T
-
Optional index: number
Returns T[]
separation
- separation(): function
- separation(separation: function): Tree<T>
-
Returns function
-
-
Parameters
Returns number
-
Parameters
-
separation: function
-
-
Parameters
Returns number
Returns Tree<T>
size
- size(): [number, number]
- size(size: [number, number]): Tree<T>
-
Returns [number, number]
-
Parameters
Returns Tree<T>
sort
- sort(): function
- sort(comparator: function): Tree<T>
-
Returns function
-
-
Parameters
Returns number
-
Parameters
-
comparator: function
-
-
Parameters
Returns number
Returns Tree<T>
value
- value(): function
- value(value: function): Tree<T>
-
Returns function
-
- (datum: T, index: number): number
-
Parameters
Returns number
-
Parameters
-
value: function
-
- (datum: T, index: number): number
-
Parameters
Returns number
Returns Tree<T>