Interface ChildrenData<NodeDatum, LinkDatum>

The interface for getting children data and associated link data from node data. This function must return data for every child of the given node, and data for link between the two. i will increment for each node processed.

Can be modified with Hierarchy#childrenData.

Type Parameters

  • in out NodeDatum

  • out LinkDatum = unknown

Hierarchy

  • get children data from a node

    Parameters

    • datum: NodeDatum

      the datum to get children of

    • index: number

      the index with which the data was encountered

    Returns undefined | Iterable<readonly [NodeDatum, LinkDatum]>

    childrenData - all the children data of this node, or undefined if there are no children

Generated using TypeDoc