From 1e37dbd60e13402b0ad413c0257508932f79a9fd Mon Sep 17 00:00:00 2001 From: David Luzar <5153846+dwelle@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:37:43 +0100 Subject: [PATCH] feat: change frame resizing behavior (#7307) --- src/components/App.tsx | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 42080e83..ccb01030 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -8317,39 +8317,6 @@ class App extends React.Component { const elementsToHighlight = new Set(); selectedFrames.forEach((frame) => { - const elementsInFrame = getFrameChildren( - this.scene.getNonDeletedElements(), - frame.id, - ); - - // keep elements' positions relative to their frames on frames resizing - if (transformHandleType) { - if (transformHandleType.includes("w")) { - elementsInFrame.forEach((element) => { - mutateElement(element, { - x: - frame.x + - (frameElementsOffsetsMap.get(frame.id + element.id)?.x || 0), - y: - frame.y + - (frameElementsOffsetsMap.get(frame.id + element.id)?.y || 0), - }); - }); - } - if (transformHandleType.includes("n")) { - elementsInFrame.forEach((element) => { - mutateElement(element, { - x: - frame.x + - (frameElementsOffsetsMap.get(frame.id + element.id)?.x || 0), - y: - frame.y + - (frameElementsOffsetsMap.get(frame.id + element.id)?.y || 0), - }); - }); - } - } - getElementsInResizingFrame( this.scene.getNonDeletedElements(), frame,