summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-01-05 15:45:32 +0200
committerAlon Levy <alon@pobox.com>2015-01-05 15:45:32 +0200
commit419e6243acf2265ff8edf26d3026ce578d081a7b (patch)
tree46e6f557dbc5a3b2f5919202af49f89a314f782f /src/client/view/graph_view.js
parent7b8ec362ed10808ce53f9f665afcded70f1cd277 (diff)
client: fix link selection (still have links appearing above nodes)
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 8f43d9ea..082338ca 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -233,12 +233,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(d)].join(' ');
+ return ["graph link", temp_and, selection.selected_class__link(d)].join(' ');
});
link.selectAll('path.link')
.attr('class', function(d) {
- return [d.state || "perm", selection.selected_class(d), "link graph"].join(' ');
+ return [d.state || "perm", selection.selected_class__link(d), "link graph"].join(' ');
});
link.exit().remove();
@@ -255,7 +255,7 @@ function GraphView(spec) {
.append("text")
.attr('id', function(d){ return d.id; }) // append link id to enable data->visual mapping
.attr("class", function(d) {
- return ["linklabel graph", selection.selected_class(d)].join(' ');
+ return ["linklabel graph", selection.selected_class__link(d)].join(' ');
})
.attr("text-anchor", "middle")
.on("click", function(d, i) {
@@ -306,7 +306,7 @@ function GraphView(spec) {
if (selection.node_selected(d)) {
ontop.push(this);
}
- return ['node', selection.selected_class(d)].join(' ');
+ return ['node', selection.selected_class__node(d)].join(' ');
});
function reparent(new_parent, element) {
if (element.parentNode == new_parent) {