@@ -88,7 +88,6 @@ proto.makeFramework = function() {
88
88
'backplot' ,
89
89
'grids' ,
90
90
'frontplot' ,
91
- 'zoom' ,
92
91
'aaxis' , 'baxis' , 'caxis' , 'axlines'
93
92
] ;
94
93
var toplevel = _this . plotContainer . selectAll ( 'g.toplevel' )
@@ -263,7 +262,7 @@ proto.adjustLayout = function(ternaryLayout, graphSize) {
263
262
_this . layers . plotbg . select ( 'path' ) . attr ( 'd' , triangleClip ) ;
264
263
265
264
var plotTransform = 'translate(' + x0 + ',' + y0 + ')' ;
266
- _this . plotContainer . selectAll ( '.scatterlayer,.maplayer,.zoom ' )
265
+ _this . plotContainer . selectAll ( '.scatterlayer,.maplayer' )
267
266
. attr ( 'transform' , plotTransform ) ;
268
267
269
268
// TODO: shift axes to accommodate linewidth*sin(30) tick mark angle
@@ -382,7 +381,7 @@ proto.initInteractions = function() {
382
381
var _this = this ,
383
382
dragger = _this . layers . plotbg . select ( 'path' ) . node ( ) ,
384
383
gd = _this . graphDiv ,
385
- zoomContainer = _this . layers . zoom ;
384
+ zoomContainer = gd . _fullLayout . _zoomlayer ;
386
385
387
386
// use plotbg for the main interactions
388
387
var dragOptions = {
@@ -441,6 +440,7 @@ proto.initInteractions = function() {
441
440
442
441
zb = zoomContainer . append ( 'path' )
443
442
. attr ( 'class' , 'zoombox' )
443
+ . attr ( 'transform' , 'translate(' + _this . x0 + ', ' + _this . y0 + ')' )
444
444
. style ( {
445
445
'fill' : lum > 0.2 ? 'rgba(0,0,0,0)' : 'rgba(255,255,255,0)' ,
446
446
'stroke-width' : 0
@@ -449,6 +449,7 @@ proto.initInteractions = function() {
449
449
450
450
corners = zoomContainer . append ( 'path' )
451
451
. attr ( 'class' , 'zoombox-corners' )
452
+ . attr ( 'transform' , 'translate(' + _this . x0 + ', ' + _this . y0 + ')' )
452
453
. style ( {
453
454
fill : Color . background ,
454
455
stroke : Color . defaultLine ,
@@ -603,7 +604,7 @@ proto.initInteractions = function() {
603
604
// until we get around to persistent selections, remove the outline
604
605
// here. The selection itself will be removed when the plot redraws
605
606
// at the end.
606
- _this . plotContainer . selectAll ( '.select-outline' ) . remove ( ) ;
607
+ zoomContainer . selectAll ( '.select-outline' ) . remove ( ) ;
607
608
}
608
609
609
610
function doubleClick ( ) {
0 commit comments