Interface: TreemapNode
Defined in: src/mobjects/graphing/treemapLayout.ts:19
One node in the input hierarchy.
A leaf sets value. An internal node sets children; its value is the sum
of its children, so an explicit value on an internal node is ignored.
Negative values are clamped to 0, because an area cannot be negative.
Properties
children?
optionalchildren:TreemapNode[]
Defined in: src/mobjects/graphing/treemapLayout.ts:25
Child nodes. Present on internal nodes.
name
name:
string
Defined in: src/mobjects/graphing/treemapLayout.ts:21
Display name of the node.
value?
optionalvalue:number
Defined in: src/mobjects/graphing/treemapLayout.ts:23
Value of a leaf node. Ignored when children is present.