File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -390,9 +390,11 @@ def anchored_position(self):
390
390
+ round (self ._anchor_point [0 ] * self ._boundingbox [2 ] * self ._scale )
391
391
),
392
392
int (
393
- self .y
394
- + (self ._anchor_point [1 ] * self ._boundingbox [3 ] * self ._scale )
395
- - round ((self ._boundingbox [3 ] * self ._scale ) / 2.0 )
393
+ round (
394
+ self .y
395
+ + (self ._anchor_point [1 ] * self ._boundingbox [3 ] * self ._scale )
396
+ - ((self ._boundingbox [3 ] * self ._scale ) / 2.0 )
397
+ )
396
398
),
397
399
)
398
400
@@ -405,9 +407,11 @@ def anchored_position(self, new_position):
405
407
- round (self ._anchor_point [0 ] * (self ._boundingbox [2 ] * self ._scale ))
406
408
)
407
409
new_y = int (
408
- new_position [1 ]
409
- - (self ._anchor_point [1 ] * self ._boundingbox [3 ] * self ._scale )
410
- + round ((self ._boundingbox [3 ] * self ._scale ) / 2.0 )
410
+ round (
411
+ new_position [1 ]
412
+ - (self ._anchor_point [1 ] * self ._boundingbox [3 ] * self ._scale )
413
+ + ((self ._boundingbox [3 ] * self ._scale ) / 2.0 )
414
+ )
411
415
)
412
416
self .x = new_x
413
417
self .y = new_y
You can’t perform that action at this time.
0 commit comments