Maximal distance between two nodes.
Defaults to 3 * distanceMin
.
Minimal distance between two nodes.
List of nodes that must remain their positions. All other nodes are arranged around these fixed nodes.
Angle of gravity in radians.
0.0
is rightward direction.
Math.PI * 0.5
is upward direction.
Defaults to Math.PI * 1.5
(downward).
Strength of gravity.
0.0
disables the gravity.
1.0
means that nodes push each other away
with the equal force as gravity pulls them towards gravityAngle
.
2.0
means that gravity is twice as strong as nodes repulsion.
Defaults to 0.0
.
Generated using TypeDoc
Number from 0.0 to 1.0 representing how fast the distance between two nodes declines with each layer.
0.0
means it will always remaindistanceMax
1.0
means it will jump and stay atdistanceMin
starting from the second layer.Defaults to
0.3
.