summaryrefslogtreecommitdiff
path: root/src/client/view/layouts.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/view/layouts.js')
-rw-r--r--src/client/view/layouts.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/view/layouts.js b/src/client/view/layouts.js
index 8af9e9b6..7d67011e 100644
--- a/src/client/view/layouts.js
+++ b/src/client/view/layouts.js
@@ -95,6 +95,11 @@ function(consts, $, d3, _, rz_core) {
restore: restore,
stop: save,
start: restore,
+ nodes_links: function (nodes, links) {
+ // to update nodes and links atomically, required for stp and other changes
+ layout.nodes(nodes);
+ return layout.links(links);
+ },
// data
graph: graph,
_nodes: [],