fix: Fix inconsistency in resizing while maintaining aspect ratio (#9116)
This commit is contained in:
parent
c8f4a4cb41
commit
c329470b73
@ -771,8 +771,8 @@ const getResizedOrigin = (
|
|||||||
x: x + ((prevWidth - newWidth) / 2) * (Math.cos(angle) + 1),
|
x: x + ((prevWidth - newWidth) / 2) * (Math.cos(angle) + 1),
|
||||||
y:
|
y:
|
||||||
y +
|
y +
|
||||||
(newHeight - prevHeight) / 2 +
|
((prevWidth - newWidth) / 2) * Math.sin(angle) +
|
||||||
((prevWidth - newWidth) / 2) * Math.sin(angle),
|
(prevHeight - newHeight) / 2,
|
||||||
};
|
};
|
||||||
case "west-side":
|
case "west-side":
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user