mise a jours post wikithon winterschool 2024

This commit is contained in:
2024-02-02 13:42:50 +01:00
parent 47ce5c4d37
commit 7b287b57cd
46 changed files with 15305 additions and 382 deletions

View File

@@ -19,8 +19,8 @@ export class ForceNet {
// this.nodes = {};
this.simulation = forceSimulation()
//.velocityDecay(0.1)
.force("link", forceLink().id(d => d.title))
.force("charge", forceManyBody())
.force("link", forceLink().id(d => d.title).distance(800))
.force("charge", forceManyBody().distanceMin(800))
.force("radial", forceRadial(180, width/2, height/2));
// .force("center", forceCenter(width / 2, height / 2));
this.svg = null;