@@ -148,7 +148,7 @@ module.exports = function draw(gd) {
148
148
// and these values are mutated in repositionLegend.
149
149
var gs = fullLayout . _size ,
150
150
lx = gs . l + gs . w * opts . x ,
151
- ly = gs . t + gs . h * ( 1 - opts . y ) ;
151
+ ly = gs . t + gs . h * ( 1 - opts . y ) ;
152
152
153
153
if ( anchorUtils . isRightAnchor ( opts ) ) {
154
154
lx -= opts . width ;
@@ -251,7 +251,7 @@ module.exports = function draw(gd) {
251
251
252
252
scrollHandler ( scrollBarY , scrollBoxY ) ;
253
253
254
- legend . on ( 'wheel' , null ) ;
254
+ legend . on ( 'wheel' , null ) ;
255
255
legend . on ( 'wheel' , function ( ) {
256
256
scrollBoxY = Lib . constrain (
257
257
scrollBox . attr ( 'data-scroll' ) -
@@ -263,8 +263,8 @@ module.exports = function draw(gd) {
263
263
d3 . event . preventDefault ( ) ;
264
264
} ) ;
265
265
266
- scrollBar . on ( '.drag' , null ) ;
267
- scrollBox . on ( '.drag' , null ) ;
266
+ scrollBar . on ( '.drag' , null ) ;
267
+ scrollBox . on ( '.drag' , null ) ;
268
268
var drag = d3 . behavior . drag ( ) . on ( 'drag' , function ( ) {
269
269
scrollBarY = Lib . constrain (
270
270
d3 . event . y - constants . scrollBarHeight / 2 ,
@@ -317,8 +317,8 @@ module.exports = function draw(gd) {
317
317
318
318
Lib . setTranslate ( legend , newX , newY ) ;
319
319
320
- xf = dragElement . align ( newX , 0 , gs . l , gs . l + gs . w , opts . xanchor ) ;
321
- yf = dragElement . align ( newY , 0 , gs . t + gs . h , gs . t , opts . yanchor ) ;
320
+ xf = dragElement . align ( newX , 0 , gs . l , gs . l + gs . w , opts . xanchor ) ;
321
+ yf = dragElement . align ( newY , 0 , gs . t + gs . h , gs . t , opts . yanchor ) ;
322
322
} ,
323
323
doneFn : function ( dragged ) {
324
324
if ( dragged && xf !== undefined && yf !== undefined ) {
@@ -500,7 +500,7 @@ function computeLegendDimensions(gd, groups, traces) {
500
500
opts . height += 10 + borderwidth * 2 ;
501
501
502
502
if ( isGrouped ) {
503
- opts . height += ( opts . _lgroupsLength - 1 ) * opts . tracegroupgap ;
503
+ opts . height += ( opts . _lgroupsLength - 1 ) * opts . tracegroupgap ;
504
504
}
505
505
506
506
traces . selectAll ( '.legendtoggle' )
0 commit comments