d3-dag
    Preparing search index...

    Function tweakGrid

    • This tweak adds extra control points to the grid layout

      The grid layout often looks best with rounded corners. This tweak adds extra control points to edges so that d3.curveBasis curves produce nice rounded edges, including on self loops.

      rounding should be set somewhere between 0 and nodeSize. No rounding goes past the middle of a segment, so short segments get less.

      Parameters

      • rounding: readonly [number, number]

      Returns Tweak<unknown, unknown>