Skip to content

Commit

Permalink
feat(simulation): adjust force-directed graph parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Stukova committed Jul 29, 2024
1 parent 33a0f6b commit 557897e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ export const defaultConfigValues = {
focusedPointRingColor: 'white',
useQuadtree: false,
simulation: {
decay: 1000,
gravity: 0,
decay: 5000,
gravity: 0.25,
center: 0,
repulsion: 0.1,
repulsionTheta: 1.7,
repulsion: 1.0,
repulsionTheta: 1.15,
repulsionQuadtreeLevels: 12,
linkSpring: 1,
linkDistance: 2,
linkDistance: 10,
linkDistRandomVariationRange: [1, 1.2],
repulsionFromMouse: 2,
friction: 0.85,
Expand Down

0 comments on commit 557897e

Please sign in to comment.