mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-17 14:30:32 +02:00
fix: image elements not flipping its content
This commit is contained in:
@@ -25,6 +25,7 @@ import {
|
||||
isArrowElement,
|
||||
isBoundToContainer,
|
||||
isFreeDrawElement,
|
||||
isImageElement,
|
||||
isLinearElement,
|
||||
isTextElement,
|
||||
} from "./typeChecks";
|
||||
@@ -694,6 +695,7 @@ const resizeMultipleElements = (
|
||||
points?: Point[];
|
||||
fontSize?: number;
|
||||
baseline?: number;
|
||||
scale?: [-1 | 1, -1 | 1];
|
||||
} = {
|
||||
width,
|
||||
height,
|
||||
@@ -737,6 +739,10 @@ const resizeMultipleElements = (
|
||||
}
|
||||
}
|
||||
|
||||
if (isImageElement(element.orig)) {
|
||||
update.scale = [flipFactorX, flipFactorY];
|
||||
}
|
||||
|
||||
updateBoundElements(element.latest, { newSize: { width, height } });
|
||||
|
||||
mutateElement(element.latest, update);
|
||||
|
Reference in New Issue
Block a user