Skip to main content

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?​

optional children: 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?​

optional value: number

Defined in: src/mobjects/graphing/treemapLayout.ts:23

Value of a leaf node. Ignored when children is present.