Interface WrappedChildrenData<NodeDatum, ChildData>

a wrapped children data operator that functions as a children operator

When creating a Hierarchy with a children data operator, the corresponding Hierarchy#children will be wrapped in this.

interface WrappedChildrenData<
    NodeDatum,
    ChildData extends ChildrenData<NodeDatum>,
> {
    wrapped: ChildData;
    (
        datum: NodeDatum,
        index: number,
    ): undefined | Iterable<NodeDatum, any, any>;
}

Type Parameters

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

Properties

Properties

wrapped: ChildData

the wrapped children data operator