Skip to content

Commit

Permalink
Put the graph forces back to default
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbrandB committed Jun 21, 2024
1 parent 0f8b4de commit 686e95a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/Pages/Items/Graph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const configs = reactive(
return d3
.forceSimulation(nodes)
.force("edge", forceLink.distance(40).strength(0.5))
.force("charge", d3.forceManyBody().strength(-1000))
.force("center", d3.forceCenter().strength(0.01))
.force("charge", d3.forceManyBody().strength(-800))
.force("center", d3.forceCenter().strength(0.05))
.alphaMin(0.001)
}
}),
Expand Down

0 comments on commit 686e95a

Please sign in to comment.