From b60bbc2c0945a729c1c10cde9074b42efe1f3078 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 29 Oct 2014 00:00:49 +0200 Subject: save/load xy position --- scripts/rhizicore.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 4d1a74a0..09dc3526 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -62,6 +62,8 @@ function myGraph(el) { "end": spec.end, "status": spec.status, 'url': spec.url, + 'x': spec.x, + 'y': spec.y, }; nodes.push(new_node); } @@ -527,6 +529,8 @@ function myGraph(el) { end:new Date(node.end), status:node.status, url:node.url, + x: node.x, + y: node.y, }); textanalysis.autoSuggestAddName(node.id); } @@ -553,6 +557,8 @@ function myGraph(el) { "end":node.end, "status": node.status, "url": node.url, + "x": node.x, + "y": node.y, }); } for(var j=0 ; j < links.length ; j++){ -- cgit v1.3.1