From 7c5c6a917c8bce9d538c51becaf9a06fb1741bf5 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 12 Apr 2015 14:13:57 +0200 Subject: client/selection: rename: selected & related selected nodes - nodes the user selected directly, via search or click. related - nodes that we choose to show the user as a result of the selection made. --- src/client/view/graph_view.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 5195312f..4041f177 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -543,12 +543,12 @@ function GraphView(spec) { link.attr("class", function(d, i){ var temp_and = (d.name && d.name.replace(/ /g,"")=="and" && temporary) ? "temp_and" : ""; - return ["graph link", temp_and, selection.selected_class__link(d, temporary)].join(' '); + return ["graph link", temp_and, selection.class__link(d, temporary)].join(' '); }); link.selectAll('path.link') .attr('class', function(d) { - return [d.state || "perm", selection.selected_class__link(d, temporary), "link graph"].join(' '); + return [d.state || "perm", selection.class__link(d, temporary), "link graph"].join(' '); }); link.exit().remove(); @@ -585,7 +585,7 @@ function GraphView(spec) { return link_text__short(d); }) .attr("class", function(d) { - return ["linklabel graph", selection.selected_class__link(d, temporary)].join(' '); + return ["linklabel graph", selection.class__link(d, temporary)].join(' '); }); link_text.exit().remove(); @@ -604,7 +604,7 @@ function GraphView(spec) { .call(drag); node.attr('class', function(d) { - return ['node', selection.selected_class__node(d, temporary)].join(' '); + return ['node', selection.class__node(d, temporary)].join(' '); }) .each(function (d) { d.zoom_obj = zoom_obj; // FIXME new object NodeView pointing to Node and Zoom -- cgit v1.3.1