d3-dag
    Preparing search index...

    Type Alias ParentData<NodeDatum, LinkDatum>

    ParentData: (
        datum: NodeDatum,
        index: number,
    ) => Iterable<readonly [string, LinkDatum]> | undefined

    The interface for getting the parent ids and link data from the current node data. This must return an array of parent ids coupled with data (i.e. an array of two element arrays of the form ["Parent Id", data]) for the link between this node and the parent id.

    This can be modified with the Stratify#parentData method.

    Type Parameters

    • in NodeDatum = never
    • out LinkDatum = unknown

    Type Declaration

      • (
            datum: NodeDatum,
            index: number,
        ): Iterable<readonly [string, LinkDatum]> | undefined
      • Parameters

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