summaryrefslogtreecommitdiff
path: root/src/client/rz_core.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-30 13:04:30 +0200
committerAlon Levy <alon@pobox.com>2015-01-05 13:23:57 +0200
commit16f40ddbfe483fef01a9623ec584e5f08a863d22 (patch)
tree98f1587067fe00abed76aad95ecb418f36749fef /src/client/rz_core.js
parent54aa65a3dab029f28741875eb11a40adb06aff51 (diff)
wip fixes from week 52 refactor
Diffstat (limited to 'src/client/rz_core.js')
-rw-r--r--src/client/rz_core.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/client/rz_core.js b/src/client/rz_core.js
index 91a25196..85a58e93 100644
--- a/src/client/rz_core.js
+++ b/src/client/rz_core.js
@@ -218,7 +218,11 @@ var initDrawingArea = function () {
graph = new model_graph.Graph();
graph.diffBus.onValue(function (diff) {
var relayout = (false == model_diff.is_attr_diff(diff));
- console.log('*************');
+ if (relayout) {
+ console.log('****** graph relayout *******');
+ } else {
+ console.log('****** graph update *******');
+ }
console.dir(diff);
update_view__graph(relayout);
});
@@ -464,6 +468,8 @@ function update_view__graph(relayout) {
.data(graph.nodes(), function(d) {
return d.id;
});
+ console.log("update update update update");
+ console.dir(node);
var nodeEnter = node.enter()
.append("g")
@@ -657,7 +663,7 @@ function tick(e) {
//console.log(e);
//$(".debug").html(force.alpha());
var node = vis.selectAll(".node")
- .data(force.nodes(), function(d) {
+ .data(graph.nodes(), function(d) {
return d.id;
});
var link = vis.selectAll("path.link")