summaryrefslogtreecommitdiff
path: root/src/client/rz_core.js
diff options
context:
space:
mode:
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")