mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: add flipping multiple elements with a command
This commit is contained in:
parent
b9a185d098
commit
c7667cc7d7
2 changed files with 20 additions and 165 deletions
|
@ -587,7 +587,7 @@ export const resizeSingleElement = (
|
|||
}
|
||||
};
|
||||
|
||||
const resizeMultipleElements = (
|
||||
export const resizeMultipleElements = (
|
||||
pointerDownState: PointerDownState,
|
||||
selectedElements: readonly NonDeletedExcalidrawElement[],
|
||||
transformHandleType: "nw" | "ne" | "sw" | "se",
|
||||
|
@ -684,6 +684,7 @@ const resizeMultipleElements = (
|
|||
const x = anchorX + flipFactorX * (offsetX * scale + flipAdjustX);
|
||||
const y = anchorY + flipFactorY * (offsetY * scale + flipAdjustY);
|
||||
|
||||
// TODO curved lines adjustment
|
||||
// readjust points for linear & free draw elements
|
||||
const rescaledPoints = rescalePointsInElement(
|
||||
element.orig,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue