diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-12 19:36:54 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-12 19:36:56 +0200 |
| commit | 3e0d24858628a8e104aa26c727d8ff3c9538db01 (patch) | |
| tree | 0b4e5ee8df150951a1fc906255f7ed95a068e935 /src/client | |
| parent | 08f78f94147614f1f109a2ca8f972d0cbfa78999 (diff) | |
client: fix node name opacity on selection regression
Whereas node text class was not set correctly on selection.
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/view/graph_view.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 3c97383f..34d38bb2 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -450,7 +450,6 @@ function GraphView(spec) { d3.event.stopPropagation(); }) .insert("text") - .attr("class", "nodetext graph") .attr("dy", node_text_dy); node_text.exit().remove(); var nodeText = function(d) { @@ -471,6 +470,9 @@ function GraphView(spec) { }; node_text.select('text').text(nodeText) .attr("dx", nodeTextX); + node_text.attr('class', function(d) { + return ['nodetext graph', selection.class__node(d, temporary)].join(' '); + }); } var link_on_hover = function (d, debug_name) { |
