Increased spring length, added node overlap avoidance, and enlarged node size.

This commit is contained in:
Benjamin Arntzen (aider)
2024-06-27 10:22:36 +01:00
parent 15ef89570b
commit 4034d7bb18
+3 -3
View File
@@ -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',