@antv/graphlib / Exports / TreeData
TreeData is a nested data structure that contains nodes represent a tree.
Name |
---|
D |
• Optional
children: TreeData
<D
>[]
Children nodes. Each node itself is a TreeData object, allowing for an arbitrary depth of nesting.
• data: D
An object with string key and any value.
• id: ID
Tree node IDs must be unique within the whole graph, not only the current tree.