diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-16 00:16:15 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-16 00:16:15 +0200 |
| commit | 946691b1b04d2c81c2bda9e176bc7e30d1e66f0a (patch) | |
| tree | f3c2b563fc2cdfbf5a7fa46ba2113906c40d3bc0 /src/client/view/graph_view.js | |
| parent | 35d6590983da1d669299839e5ebf49228c0aba87 (diff) | |
client: node radius change on image remove: fix
Diffstat (limited to 'src/client/view/graph_view.js')
| -rw-r--r-- | src/client/view/graph_view.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 48485c9c..646e0532 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -787,11 +787,14 @@ function GraphView(spec) { var clip_path = nodeEnter .append('clipPath') + .attr('class', 'node_clippath') .attr('id', function (d) { return clip_path_id(d.id); }) .append('circle') - .attr('r', node__radius) .attr('cx', 0) .attr('cy', 0); + d3.selectAll('.node_clippath circle') + .data(visible_nodes, function (d) { return d.id; }) + .attr('r', node__radius); circle = nodeEnter.insert("circle"); node.select('g.node > circle') .attr("class", function(d) { |
