Interface Children<NodeDatum>

an accessor specifying how to get the children from a node

The interface for getting child data from node data. This function must return data for every child given the data for the current node. i will increment for each node processed.

Can be modified with Hierarchy#children.

Type Parameters

  • in out NodeDatum

Hierarchy (View Summary)

  • get children 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<NodeDatum, any, any>

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