Skip to content

Commit a360992

Browse files
committed
Use comma with translate transforms
1 parent 105bed9 commit a360992

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
4747
outlines.enter()
4848
.append('path')
4949
.attr('class', function(d) { return 'select-outline select-outline-' + d; })
50-
.attr('transform','translate(' + xs + ' ' + ys + ')')
50+
.attr('transform','translate(' + xs + ', ' + ys + ')')
5151
.attr('d', path0 + 'Z');
5252

5353
var corners = plot.append('path')
@@ -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)