diff options
| author | Alon Levy <alon@pobox.com> | 2015-03-24 17:26:27 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-03-24 17:26:27 +0200 |
| commit | 4218f8fdf7c47ce8b8baa8f6fd2b95f1d93f358a (patch) | |
| tree | 886dacc39dc9543f8589d797467c1cd55b574721 /src/client/view | |
| parent | d22f1572941370c3585305d736ef2ee76290a620 (diff) | |
client/view/graph_view: force recalculation of linkDistance on each force__load_graph
Diffstat (limited to 'src/client/view')
| -rw-r--r-- | src/client/view/graph_view.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 82e25ff7..cb7ba020 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -577,7 +577,8 @@ function GraphView(spec) { function force__load_graph() { force.nodes(graph.nodes().filter(node__is_shown)) - .links(graph.links().filter(link__is_shown)); + .links(graph.links().filter(link__is_shown)) + .start(); } function segment_in_segment(inner_low, inner_high, outer_low, outer_high) |
