fix: Undo for elbow arrows create incorrect routing (#9046)

This commit is contained in:
Márk Tolmács
2025-01-24 20:18:08 +01:00
committed by GitHub
parent 8f20b29b73
commit 49f1276ef2
3 changed files with 125 additions and 126 deletions
+4 -5
View File
@@ -2077,16 +2077,15 @@ describe("history", () => {
storeAction: StoreAction.UPDATE,
});
Keyboard.redo();
Keyboard.undo();
const modifiedArrow = h.elements.filter(
(el) => el.type === "arrow",
)[0] as ExcalidrawElbowArrowElement;
expect(modifiedArrow.points).toEqual([
expect(modifiedArrow.points).toCloselyEqualPoints([
[0, 0],
[225.95000000000005, 0],
[225.95000000000005, 448.10100010002003],
[451.9000000000001, 448.10100010002003],
[178.9, 0],
[178.9, 236.1],
]);
});