@@ -308,7 +308,7 @@ function _draw(gd, legendObj) {
308
308
}
309
309
310
310
if ( gd . _context . edits . legendPosition ) {
311
- var xf , yf , x0 , y0 , legend_width , legend_height ;
311
+ var xf , yf , x0 , y0 , legendWidth , legendHeight ;
312
312
313
313
legend . classed ( 'cursor-move' , true ) ;
314
314
@@ -320,16 +320,16 @@ function _draw(gd, legendObj) {
320
320
x0 = transform . x ;
321
321
y0 = transform . y ;
322
322
var bbox = legend . node ( ) . getBBox ( ) ;
323
- legend_width = bbox . width ;
324
- legend_height = bbox . height ;
323
+ legendWidth = bbox . width ;
324
+ legendHeight = bbox . height ;
325
325
} ,
326
326
moveFn : function ( dx , dy ) {
327
327
var newX = x0 + dx ;
328
328
var newY = y0 + dy ;
329
329
330
330
Drawing . setTranslate ( legend , newX , newY ) ;
331
- xf = dragElement . align ( newX , legend_width , gs . l , gs . l + gs . w , legendObj . xanchor ) ;
332
- yf = dragElement . align ( newY + legend_height , - legend_height , gs . t + gs . h , gs . t , legendObj . yanchor ) ;
331
+ xf = dragElement . align ( newX , legendWidth , gs . l , gs . l + gs . w , legendObj . xanchor ) ;
332
+ yf = dragElement . align ( newY + legendHeight , - legendHeight , gs . t + gs . h , gs . t , legendObj . yanchor ) ;
333
333
} ,
334
334
doneFn : function ( ) {
335
335
if ( xf !== undefined && yf !== undefined ) {
0 commit comments