mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
revert: image elements not flipping its content
This reverts commit cb989a6c66e62a02a8c04ce41f12507806c8d0a0.
This commit is contained in:
parent
c7667cc7d7
commit
0949e060b5
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue