summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-12 14:13:57 +0200
committerAlon Levy <alon@pobox.com>2015-04-12 14:13:59 +0200
commit7c5c6a917c8bce9d538c51becaf9a06fb1741bf5 (patch)
treef60cb36ddca2e612e44756defcaafda9c39a8a50 /src/client/view/graph_view.js
parent8d16cbce9ec8aa139404f1823c4b68e0b4c1c02a (diff)
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.
Diffstat (limited to 'src/client/view/graph_view.js')
-rw-r--r--src/client/view/graph_view.js8
1 files changed, 4 insertions, 4 deletions
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