diff --git a/packages/element/src/textElement.ts b/packages/element/src/textElement.ts index ea27c318f..7eb78347b 100644 --- a/packages/element/src/textElement.ts +++ b/packages/element/src/textElement.ts @@ -50,7 +50,7 @@ export const redrawTextBoundingBox = ( text: textElement.text, width: textElement.width, height: textElement.height, - angle: container?.angle ?? textElement.angle, + angle: textElement.angle, }; boundTextUpdates.text = textElement.text; diff --git a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap index 9ffb97128..f84bf435f 100644 --- a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap @@ -4735,12 +4735,10 @@ History { "updated": Map { "id164" => Delta { "deleted": { - "angle": 0, "x": 15, "y": 15, }, "inserted": { - "angle": 0, "x": 15, "y": 15, }, @@ -4909,7 +4907,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and exports[`history > multiplayer undo/redo > conflicts in bound text elements and their containers > should redraw remotely added bound text when it's container is updated through the history > [end of test] element 1 1`] = ` { - "angle": 90, + "angle": 0, "autoResize": true, "backgroundColor": "transparent", "boundElements": null, diff --git a/packages/excalidraw/tests/history.test.tsx b/packages/excalidraw/tests/history.test.tsx index 8dd65c7a5..1281bc94b 100644 --- a/packages/excalidraw/tests/history.test.tsx +++ b/packages/excalidraw/tests/history.test.tsx @@ -4057,7 +4057,7 @@ describe("history", () => { // text element got redrawn! x: 205, y: 205, - angle: 90, + angle: 0, id: text.id, containerId: container.id, isDeleted: false, @@ -4101,7 +4101,7 @@ describe("history", () => { ...textProps, x: 205, y: 205, - angle: 90, + angle: 0, id: text.id, containerId: container.id, isDeleted: false, @@ -4123,7 +4123,6 @@ describe("history", () => { newElementWith(h.elements[0], { x: 205, y: 205, - angle: 90 as Radians, }), ], captureUpdate: CaptureUpdateAction.IMMEDIATELY,