d3-dag
    Preparing search index...

    Type Alias Separation<NodeDatum, LinkDatum>

    Separation: (
        first: GraphNode<NodeDatum, LinkDatum> | undefined,
        second: GraphNode<NodeDatum, LinkDatum> | undefined,
    ) => number

    A separation function that indicates how far apart nodes should be the layering / height assignment.

    Type Parameters

    • in NodeDatum = never
    • in LinkDatum = never

    Type Declaration

    upper and lower are historic, since arbitrary graphs are handled, there is no longer a notion of upper or lower and separation should return the correct separation independent of nodes relations in the graph.