@@ -148,7 +148,7 @@ module.exports = function draw(gd) {
148148 // and these values are mutated in repositionLegend.
149149 var gs = fullLayout . _size ,
150150 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 ) ;
152152
153153 if ( anchorUtils . isRightAnchor ( opts ) ) {
154154 lx -= opts . width ;
@@ -251,7 +251,7 @@ module.exports = function draw(gd) {
251251
252252 scrollHandler ( scrollBarY , scrollBoxY ) ;
253253
254- legend . on ( 'wheel' , null ) ;
254+ legend . on ( 'wheel' , null ) ;
255255 legend . on ( 'wheel' , function ( ) {
256256 scrollBoxY = Lib . constrain (
257257 scrollBox . attr ( 'data-scroll' ) -
@@ -263,8 +263,8 @@ module.exports = function draw(gd) {
263263 d3 . event . preventDefault ( ) ;
264264 } ) ;
265265
266- scrollBar . on ( '.drag' , null ) ;
267- scrollBox . on ( '.drag' , null ) ;
266+ scrollBar . on ( '.drag' , null ) ;
267+ scrollBox . on ( '.drag' , null ) ;
268268 var drag = d3 . behavior . drag ( ) . on ( 'drag' , function ( ) {
269269 scrollBarY = Lib . constrain (
270270 d3 . event . y - constants . scrollBarHeight / 2 ,
@@ -317,8 +317,8 @@ module.exports = function draw(gd) {
317317
318318 Lib . setTranslate ( legend , newX , newY ) ;
319319
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 ) ;
322322 } ,
323323 doneFn : function ( dragged ) {
324324 if ( dragged && xf !== undefined && yf !== undefined ) {
@@ -500,7 +500,7 @@ function computeLegendDimensions(gd, groups, traces) {
500500 opts . height += 10 + borderwidth * 2 ;
501501
502502 if ( isGrouped ) {
503- opts . height += ( opts . _lgroupsLength - 1 ) * opts . tracegroupgap ;
503+ opts . height += ( opts . _lgroupsLength - 1 ) * opts . tracegroupgap ;
504504 }
505505
506506 traces . selectAll ( '.legendtoggle' )
0 commit comments