Skip to content

Commit 14ae77c

Browse files
committed
rename variable plot to more appropriate zoomLayer
- a follow-up to #448
1 parent e4c1c8c commit 14ae77c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plots/cartesian/select.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var MINSELECT = constants.MINSELECT;
2323
function getAxId(ax) { return ax._id; }
2424

2525
module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
26-
var plot = dragOptions.gd._fullLayout._zoomlayer,
26+
var zoomLayer = dragOptions.gd._fullLayout._zoomlayer,
2727
dragBBox = dragOptions.element.getBoundingClientRect(),
2828
xs = dragOptions.plotinfo.xaxis._offset,
2929
ys = dragOptions.plotinfo.yaxis._offset,
@@ -43,15 +43,15 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
4343
pts = filteredPolygon([[x0, y0]], constants.BENDPX);
4444
}
4545

46-
var outlines = plot.selectAll('path.select-outline').data([1, 2]);
46+
var outlines = zoomLayer.selectAll('path.select-outline').data([1, 2]);
4747

4848
outlines.enter()
4949
.append('path')
5050
.attr('class', function(d) { return 'select-outline select-outline-' + d; })
5151
.attr('transform', 'translate(' + xs + ', ' + ys + ')')
5252
.attr('d', path0 + 'Z');
5353

54-
var corners = plot.append('path')
54+
var corners = zoomLayer.append('path')
5555
.attr('class', 'zoombox-corners')
5656
.style({
5757
fill: color.background,

0 commit comments

Comments
 (0)