diff --git a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap index 349dd9e64..3807caa94 100644 --- a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap @@ -945,10 +945,10 @@ exports[`contextMenu element > right-clicking on a group should select whole gro "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -7758,10 +7758,10 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -9754,10 +9754,10 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, diff --git a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap index 9ffb97128..d3effcaa9 100644 --- a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap @@ -1178,10 +1178,10 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -1550,10 +1550,10 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -1923,10 +1923,10 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -2634,10 +2634,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -2937,10 +2937,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -3225,10 +3225,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -3523,10 +3523,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -3813,10 +3813,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -4052,10 +4052,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -4315,10 +4315,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -4592,10 +4592,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -4827,10 +4827,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -5062,10 +5062,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -5295,10 +5295,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -5528,10 +5528,10 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -6937,10 +6937,10 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -9984,10 +9984,10 @@ exports[`history > multiplayer undo/redo > should override remotely added groups "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -10872,10 +10872,10 @@ exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end o "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -12476,10 +12476,10 @@ exports[`history > singleplayer undo/redo > should create new history entry on s "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -13804,10 +13804,10 @@ exports[`history > singleplayer undo/redo > should not collapse when applying co "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -14272,10 +14272,10 @@ exports[`history > singleplayer undo/redo > should not end up with history entry "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -14822,10 +14822,10 @@ exports[`history > singleplayer undo/redo > should support appstate name or view "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, diff --git a/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap index 319287792..5a8a2a935 100644 --- a/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap @@ -8569,10 +8569,10 @@ exports[`regression tests > key 5 selects arrow tool > [end of test] appState 1` "value": null, }, }, - "pointerOffset": { - "x": 0, - "y": 0, - }, + "pointerOffset": [ + 0, + 0, + ], "segmentMidPointHoveredCoords": null, "selectedPointsIndices": null, "startBindingElement": "keep", @@ -8793,10 +8793,10 @@ exports[`regression tests > key 6 selects line tool > [end of test] appState 1`] "value": null, }, }, - "pointerOffset": { - "x": 0, - "y": 0, - }, + "pointerOffset": [ + 0, + 0, + ], "segmentMidPointHoveredCoords": null, "selectedPointsIndices": null, "startBindingElement": "keep", @@ -9211,10 +9211,10 @@ exports[`regression tests > key a selects arrow tool > [end of test] appState 1` "value": null, }, }, - "pointerOffset": { - "x": 0, - "y": 0, - }, + "pointerOffset": [ + 0, + 0, + ], "segmentMidPointHoveredCoords": null, "selectedPointsIndices": null, "startBindingElement": "keep", @@ -9616,10 +9616,10 @@ exports[`regression tests > key l selects line tool > [end of test] appState 1`] "value": null, }, }, - "pointerOffset": { - "x": 0, - "y": 0, - }, + "pointerOffset": [ + 0, + 0, + ], "segmentMidPointHoveredCoords": null, "selectedPointsIndices": null, "startBindingElement": "keep", @@ -12812,10 +12812,10 @@ exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] a "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, @@ -14766,10 +14766,10 @@ exports[`regression tests > zoom hotkeys > [end of test] appState 1`] = ` "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false, diff --git a/packages/utils/tests/__snapshots__/export.test.ts.snap b/packages/utils/tests/__snapshots__/export.test.ts.snap index 91108a600..1bf6cdaa2 100644 --- a/packages/utils/tests/__snapshots__/export.test.ts.snap +++ b/packages/utils/tests/__snapshots__/export.test.ts.snap @@ -69,10 +69,10 @@ exports[`exportToSvg > with default arguments 1`] = ` "openMenu": null, "openPopup": null, "openSidebar": null, - "originSnapOffset": { - "x": 0, - "y": 0, - }, + "originSnapOffset": [ + 0, + 0, + ], "pasteDialog": { "data": null, "shown": false,