From e62d4f4620f40b15f396cddf9b317de2d53c10ea Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 1 Mar 2015 00:10:47 +0200 Subject: client/graph_view: add a debug message, remove commented out code --- src/client/view/graph_view.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index ed2f8ff1..bdd73a8f 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -697,7 +697,7 @@ function GraphView(spec) { d.y = cy; } else { r = 60 + newnodes * 20; - a = -Math.PI + Math.PI * 2 * (tempcounter-1) / newnodes + 0.3; + a = -Math.PI + Math.PI * 2 * (tempcounter - 1) / newnodes + 0.3; d.x = cx + r * Math.cos(a); d.y = cy + r * Math.sin(a); } @@ -752,10 +752,11 @@ function GraphView(spec) { y: zcy + new_r * Math.sin(a)}; } + /** + * Recomputes all link and node locations according to force layout and + * bubble animation. + */ function tick(e) { - //console.log(e); - //$(".debug").html(force.alpha()); - // just hide them for now, and remove them from force layout afterwards, do not delete nodes/links themselves. var node = vis.selectAll(".node") .data(graph.nodes(), function(d) { return d.id; -- cgit v1.3.1