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.

    rounding should be set somewhere between 0 and nodeSize.

    Parameters

    • rounding: readonly [number, number]

    Returns Tweak<unknown, unknown>