revert: image elements not flipping its content

This reverts commit cb989a6c66e62a02a8c04ce41f12507806c8d0a0.
This commit is contained in:
Alex Kim 2022-12-19 20:48:40 +03:00
parent c7667cc7d7
commit 0949e060b5
No known key found for this signature in database
GPG key ID: CEE74CFA44D238D7

View file

@ -25,7 +25,6 @@ import {
isArrowElement, isArrowElement,
isBoundToContainer, isBoundToContainer,
isFreeDrawElement, isFreeDrawElement,
isImageElement,
isLinearElement, isLinearElement,
isTextElement, isTextElement,
} from "./typeChecks"; } from "./typeChecks";
@ -702,7 +701,6 @@ export const resizeMultipleElements = (
points?: Point[]; points?: Point[];
fontSize?: number; fontSize?: number;
baseline?: number; baseline?: number;
scale?: [-1 | 1, -1 | 1];
} = { } = {
width, width,
height, height,
@ -746,10 +744,6 @@ export const resizeMultipleElements = (
} }
} }
if (isImageElement(element.orig)) {
update.scale = [flipFactorX, flipFactorY];
}
updateBoundElements(element.latest, { newSize: { width, height } }); updateBoundElements(element.latest, { newSize: { width, height } });
mutateElement(element.latest, update); mutateElement(element.latest, update);