Function forceCollide

  • Creates a new circle collision force with the specified radius. If radius is not specified, it defaults to the constant one for all nodes.

    Type Parameters

    Parameters

    • Optional radius: number | ((node, i, nodes) => number)

    Returns ForceCollide<NodeDatum>