last changes before BREAKING some shit|

This commit is contained in:
Michael Murtaugh
2019-07-08 20:28:06 +02:00
parent 86ca425af0
commit 2f23dd9b46
6 changed files with 87 additions and 39 deletions

View File

@@ -18,7 +18,7 @@ export class ForceNet {
this.active_page = null;
// this.nodes = {};
this.simulation = forceSimulation()
.velocityDecay(0.1)
//.velocityDecay(0.1)
.force("link", forceLink().id(d => d.title))
.force("charge", forceManyBody())
.force("radial", forceRadial(180, width/2, height/2));
@@ -34,7 +34,7 @@ export class ForceNet {
init_svg (svg) {
this.svg = select(svg || "svg");
this.zoom = zoom()
.scaleExtent([1 / 16, 4])
.scaleExtent([1 / 16, 16])
.on("zoom", () => {
this.content.attr("transform", event.transform);
// console.log("transform", event.transform, this.content.attr("transform"));