mise a jours post wikithon winterschool 2024
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user