A force that tries to keep Nodes a certain distance (radius) from a center point. This achieves the effect of them being arranged concentrically around a point.
Sets (or gets) the point that will be used as the center for this force. If called with no arguments this method returns the current value for center.
the center point, or a function that computes the center point for each node
this ConcentricForce if called with one argument, the current value if called with no arguments
Sets (or gets) the radius that will be used. If called with no arguments this method returns the current value for radius. The default value is 100.
the radius, or a function that computes the radius for each node
this ConcentricForce if called with one argument, the current value if called with no arguments
Sets (or gets) the strength of this force. If called with no arguments this method returns the current value for strength. The default value is 1.
the strength, or a function that computes the strength for each node
this ConcentricForce if called with one argument, the current value if called with no arguments
Gets (or sets) whether this force is enabled. If passed with no arguments, returns true if this force is enabled. If passed with a boolean, it enables or disables the Force and returns this Force.
true or false if called with no arguments, this force if called with one.