Interface ParentIds<NodeDatum>

The interface for getting the parent ids from data. This must return an array of the ids of every parent of this node. i will increment in the order nodes are processed.

This can be modified with the Stratify#parentIds method.

Type Parameters

  • in NodeDatum = never

Hierarchy

  • get parent ids from a node datum

    Parameters

    • datum: NodeDatum

      the node data to get parent ids from

    • index: number

      the order that the datum was encountered in

    Returns undefined | Iterable<string>

    parentIds - the parent ids that correspond to the node datum, undefined is the same as empty

Generated using TypeDoc