diff options
| author | Alon Levy <alon@pobox.com> | 2014-10-29 00:00:49 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-10-29 00:00:49 +0200 |
| commit | b60bbc2c0945a729c1c10cde9074b42efe1f3078 (patch) | |
| tree | 3785bb06816a5d77596f5d6dc7a3d23ce4d734cf | |
| parent | 17e5aa9fbf95c38c7896d9121fe53ac4f522d327 (diff) | |
save/load xy position
| -rw-r--r-- | scripts/rhizicore.js | 6 |
1 files changed, 6 insertions, 0 deletions
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++){ |
