Interface WrappedChildren<NodeDatum, Child>

a wrapped children operator that functions as a children data operator

When creating a Hierarchy with a children operator, the corresponding Hierarchy#childrenData will be wrapped in this. This version returns undefined for all link data.

interface WrappedChildren<NodeDatum, Child extends Children<NodeDatum>> {
    wrapped: Child;
    (
        datum: NodeDatum,
        index: number,
    ): undefined | Iterable<readonly [NodeDatum, undefined], any, any>;
}

Type Parameters

Hierarchy (View Summary)

  • 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, undefined], any, any>

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

Properties

Properties

wrapped: Child

the wrapped children operator