@@ -350,7 +350,6 @@ function getTransformToMoveOutsideBar(x0, x1, y0, y1, textBB, orientation, const
350350 }
351351
352352 // compute rotation and scale
353- var rotate = false ;
354353 var scale = 1 ;
355354 if ( constrained ) {
356355 scale = ( orientation === 'h' ) ?
@@ -365,14 +364,9 @@ function getTransformToMoveOutsideBar(x0, x1, y0, y1, textBB, orientation, const
365364 targetHeight ,
366365 targetX ,
367366 targetY ;
368- if ( rotate ) {
369- targetWidth = scale * textBB . height ;
370- targetHeight = scale * textBB . width ;
371- }
372- else {
373- targetWidth = scale * textBB . width ;
374- targetHeight = scale * textBB . height ;
375- }
367+
368+ targetWidth = scale * textBB . width ;
369+ targetHeight = scale * textBB . height ;
376370
377371 if ( orientation === 'h' ) {
378372 if ( x1 < x0 ) {
@@ -397,7 +391,7 @@ function getTransformToMoveOutsideBar(x0, x1, y0, y1, textBB, orientation, const
397391 }
398392 }
399393
400- return getTransform ( textX , textY , targetX , targetY , scale , rotate ) ;
394+ return getTransform ( textX , textY , targetX , targetY , scale , false ) ;
401395}
402396
403397function getTransform ( textX , textY , targetX , targetY , scale , rotate ) {
0 commit comments