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 (bottom of node + half of y gap), 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.