diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-07 19:44:40 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-09 06:38:17 +0300 |
| commit | 85d20659bc170577e6df5d5875755aae516b8cf0 (patch) | |
| tree | 934eb7b271c7c7578a384c3e193b3d147d50cac9 /src/client/view/layouts.js | |
| parent | 144e0a6047b90343fe0531f588dcab2cb99168e7 (diff) | |
client: graph_view,layouts: use atomic nodes_links
Diffstat (limited to 'src/client/view/layouts.js')
| -rw-r--r-- | src/client/view/layouts.js | 5 |
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: [], |
