Skip to content

Latest commit

 

History

History
55 lines (30 loc) · 1.03 KB

TreeData.md

File metadata and controls

55 lines (30 loc) · 1.03 KB

@antv/graphlib / Exports / TreeData

Interface: TreeData<D>

TreeData is a nested data structure that contains nodes represent a tree.

Type parameters

Name
D

Table of contents

Properties

Properties

children

Optional children: TreeData<D>[]

Children nodes. Each node itself is a TreeData object, allowing for an arbitrary depth of nesting.

Defined in

src/types.ts:63


data

data: D

An object with string key and any value.

Defined in

src/types.ts:58


id

id: ID

Tree node IDs must be unique within the whole graph, not only the current tree.

Defined in

src/types.ts:53