From fb67d553eaf8966d301b7c038e515cd771aa917a Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 5 May 2015 12:12:48 +0300 Subject: client: add distinct links selection --- src/client/view/graph_view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/view/graph_view.js') 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; -- cgit v1.3.1