Skip to content

Commit

Permalink
fixes line stroke-width behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Jul 12, 2016
1 parent e9285bf commit 61b9448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viz/helpers/shapes/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function(vars,selection,enter,exit) {
// point on the line.
//----------------------------------------------------------------------------

var stroke = vars.size.value || vars.data.stroke.width * 2,
var stroke = vars.size.value || vars.data.stroke.width,
discrete = vars[vars.axes.discrete],
hitarea = function(l){
var s = stroke;
Expand Down Expand Up @@ -105,7 +105,7 @@ module.exports = function(vars,selection,enter,exit) {
var rects = group.selectAll("rect.d3plus_anchor")
.data(nodes, function(d){
if (!d.d3plus) d.d3plus = {};
d.d3plus.r = vars.data.stroke.width * 2;
d.d3plus.r = stroke;
return d.d3plus.id;
});

Expand Down

0 comments on commit 61b9448

Please sign in to comment.