d3-dag
    Preparing search index...

    Function tweakGridHandles

    • tweak grid edge bend points to the midpoint of the gap between rows

      Grid layouts place bend points at source or target y-levels, which can cause edges to kink when rendered with handle-based frameworks like React Flow. This tweak moves interior bend points to the midpoint of the gap between rows, toward the link's other node (half the node's height plus half of y gap from its center), producing smoother edges.

      Type Parameters

      • N
      • L

      Parameters

      • nodeSize: NodeSize<N, L>
      • gap: readonly [number, number]

      Returns Tweak<N, L>

      This should be applied before flip tweaks.