@@ -350,7 +350,6 @@ function getTransformToMoveOutsideBar(x0, x1, y0, y1, textBB, orientation, const
350
350
}
351
351
352
352
// compute rotation and scale
353
- var rotate = false ;
354
353
var scale = 1 ;
355
354
if ( constrained ) {
356
355
scale = ( orientation === 'h' ) ?
@@ -365,14 +364,9 @@ function getTransformToMoveOutsideBar(x0, x1, y0, y1, textBB, orientation, const
365
364
targetHeight ,
366
365
targetX ,
367
366
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 ;
376
370
377
371
if ( orientation === 'h' ) {
378
372
if ( x1 < x0 ) {
@@ -397,7 +391,7 @@ function getTransformToMoveOutsideBar(x0, x1, y0, y1, textBB, orientation, const
397
391
}
398
392
}
399
393
400
- return getTransform ( textX , textY , targetX , targetY , scale , rotate ) ;
394
+ return getTransform ( textX , textY , targetX , targetY , scale , false ) ;
401
395
}
402
396
403
397
function getTransform ( textX , textY , targetX , targetY , scale , rotate ) {
0 commit comments