Skip to content

Commit cbee319

Browse files
committed
Use comma with translate transforms
1 parent 7631d7b commit cbee319

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/plots/cartesian/dragbox.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ module.exports = function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
170170
'fill': lum>0.2 ? 'rgba(0,0,0,0)' : 'rgba(255,255,255,0)',
171171
'stroke-width': 0
172172
})
173-
.attr('transform','translate(' + xs + ' ' + ys + ')')
173+
.attr('transform','translate(' + xs + ', ' + ys + ')')
174174
.attr('d', path0 + 'Z');
175175

176176
corners = zoomlayer.append('path')
@@ -181,7 +181,7 @@ module.exports = function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
181181
'stroke-width': 1,
182182
opacity: 0
183183
})
184-
.attr('transform','translate(' + xs + ' ' + ys + ')')
184+
.attr('transform','translate(' + xs + ', ' + ys + ')')
185185
.attr('d','M0,0Z');
186186

187187
clearSelect();

src/plots/cartesian/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
5757
stroke: color.defaultLine,
5858
'stroke-width': 1
5959
})
60-
.attr('transform','translate(' + xs + ' ' + ys + ')')
60+
.attr('transform','translate(' + xs + ', ' + ys + ')')
6161
.attr('d','M0,0Z');
6262

6363

0 commit comments

Comments
 (0)