Increased spring length, added node overlap avoidance, and enlarged node size.
This commit is contained in:
+3
-3
@@ -177,9 +177,9 @@ const options = {
|
||||
gravitationalConstant: -50,
|
||||
centralGravity: 0.01,
|
||||
springConstant: 0.08,
|
||||
springLength: 100,
|
||||
springLength: 140, // Increased from 100 to 140
|
||||
damping: 0.4,
|
||||
avoidOverlap: 0
|
||||
avoidOverlap: 0.1 // Changed from 0 to 0.1
|
||||
},
|
||||
stabilization: {
|
||||
enabled: true,
|
||||
@@ -191,7 +191,7 @@ const options = {
|
||||
},
|
||||
nodes: {
|
||||
shape: 'circle',
|
||||
size: 20,
|
||||
size: 28, // Increased from 20 to 28 (40% increase)
|
||||
borderWidth: 1,
|
||||
color: {
|
||||
border: '#c0c0c0',
|
||||
|
||||
Reference in New Issue
Block a user