summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-03-01 00:10:47 +0200
committerAlon Levy <alon@pobox.com>2015-03-01 00:10:47 +0200
commite62d4f4620f40b15f396cddf9b317de2d53c10ea (patch)
tree67bda196e5bf6c7781abf296fc5ebcfedf3648e4 /src
parent196f1dc3bb53dfbc3d905506672575f0dffd4663 (diff)
client/graph_view: add a debug message, remove commented out code
Diffstat (limited to 'src')
-rw-r--r--src/client/view/graph_view.js9
1 files changed, 5 insertions, 4 deletions
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;