diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-05 12:12:48 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-05 13:54:23 +0300 |
| commit | fb67d553eaf8966d301b7c038e515cd771aa917a (patch) | |
| tree | a44203d76df4e13c390672aff6e3181f45a61baf /src/client/view/graph_view.js | |
| parent | f56d42f3ed53c37e7c9cb5a88206431e1d12abbb (diff) | |
client: add distinct links selection
Diffstat (limited to 'src/client/view/graph_view.js')
| -rw-r--r-- | src/client/view/graph_view.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 6a9ba41b..634ff7a5 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -420,7 +420,7 @@ function GraphView(spec) { } function nodes__visible() { - return zen_mode ? selection.related() : nodes__filtered(); + return zen_mode ? selection.related_nodes() : nodes__filtered(); } function links__filtered() { @@ -428,7 +428,7 @@ function GraphView(spec) { } function links__visible() { - return zen_mode ? graph.find_links__by_nodes(selection.related()) : links__filtered(); + return zen_mode ? graph.find_links__by_nodes(selection.related_nodes()) : links__filtered(); } function node__transform(d) { @@ -1380,7 +1380,7 @@ function GraphView(spec) { parent_element[0][0].parentElement.addEventListener('mousedown', disable_zen_mode_auto_center); function center_on_selection_related() { - nodes__user_visible(selection.related(), true, 100 /* ms, duration of animation */); + nodes__user_visible(selection.related_nodes(), true, 100 /* ms, duration of animation */); } gv.link__pass_filter = link__pass_filter; |
