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 two adjacent nodes should be

    The first node is the one on the left (or above, when layering) and the second the one on the right (or below); undefined stands for the edge of the layout.

    Type Parameters

    • in NodeDatum = never
    • in LinkDatum = never

    Type Declaration

    separation should not depend on how the nodes are related in the graph.