diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-11 16:04:58 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-11 16:05:13 +0200 |
| commit | 349520a1b5fc4e6044cc13c395308d7913f492f5 (patch) | |
| tree | 8034720e825ae447d3a2e4dfcb9747089d0aba33 /src | |
| parent | 4dbf124c2a8a8ec1f73951baa146332cb1c8bf6f (diff) | |
client/graph_view: disable reordering of links for now; Fixes #213
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/view/graph_view.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index a6639f48..00bb10de 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -301,6 +301,9 @@ function GraphView(spec) { .attr('visibility', 'hidden') // made visible on first tick .call(drag); + node.attr('class', function(d) { + return ['node', selection.selected_class__node(d)].join(' '); + }); // reorder nodes so selected are last, and so rendered last, and so on top. // FIXME: with b-ubble removed this is probably broken. actually also before. links are not correctly ordered. (function () { @@ -308,12 +311,9 @@ function GraphView(spec) { node.each(function (d) { this.node = d; - }) - .attr('class', function(d) { if (selection.node_selected(d)) { ontop.push(this); } - return ['node', selection.selected_class__node(d)].join(' '); }); function reparent(new_parent, element) { if (element.parentNode == new_parent) { @@ -348,7 +348,7 @@ function GraphView(spec) { var count_links = function() { return selected_link_group.childElementCount + unselected_link_group.childElementCount; }; - })(); + }); //(); nodetext = nodeEnter.insert("text") .attr("class", "nodetext graph") |
