Adjust force-directed layout parameters for better stability
This commit is contained in:
parent
fe72b9d65d
commit
1a7c164e33
1 changed files with 2 additions and 2 deletions
|
|
@ -218,8 +218,8 @@ const LayoutsControl = () => {
|
|||
maxIterations: maxIterations,
|
||||
settings: {
|
||||
attraction: 0.0003, // Lower attraction force to reduce oscillation
|
||||
repulsion: 0.01, // Lower repulsion force to reduce oscillation
|
||||
gravity: 0.01, // Increase gravity to make nodes converge to center faster
|
||||
repulsion: 0.02, // Lower repulsion force to reduce oscillation
|
||||
gravity: 0.02, // Increase gravity to make nodes converge to center faster
|
||||
inertia: 0.4, // Lower inertia to add damping effect
|
||||
maxMove: 100 // Limit maximum movement per step to prevent large jumps
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue