mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
test: Update snapshot tests to use Point type
- Modified snapshot tests that previously used the `{ x: number, y: number }` type to now use the `Point` type.
This commit is contained in:
parent
9e4ded71a8
commit
819403be3c
4 changed files with 128 additions and 128 deletions
|
@ -945,10 +945,10 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -7758,10 +7758,10 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -9754,10 +9754,10 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
|
|
@ -1178,10 +1178,10 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -1550,10 +1550,10 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -1923,10 +1923,10 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -2634,10 +2634,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -2937,10 +2937,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -3225,10 +3225,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -3523,10 +3523,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -3813,10 +3813,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -4052,10 +4052,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -4315,10 +4315,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -4592,10 +4592,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -4827,10 +4827,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -5062,10 +5062,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -5295,10 +5295,10 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -5528,10 +5528,10 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -6937,10 +6937,10 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -9984,10 +9984,10 @@ exports[`history > multiplayer undo/redo > should override remotely added groups
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -10872,10 +10872,10 @@ exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end o
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -12476,10 +12476,10 @@ exports[`history > singleplayer undo/redo > should create new history entry on s
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -13804,10 +13804,10 @@ exports[`history > singleplayer undo/redo > should not collapse when applying co
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -14272,10 +14272,10 @@ exports[`history > singleplayer undo/redo > should not end up with history entry
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -14822,10 +14822,10 @@ exports[`history > singleplayer undo/redo > should support appstate name or view
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
|
|
@ -8569,10 +8569,10 @@ exports[`regression tests > key 5 selects arrow tool > [end of test] appState 1`
|
||||||
"value": null,
|
"value": null,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"pointerOffset": {
|
"pointerOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"segmentMidPointHoveredCoords": null,
|
"segmentMidPointHoveredCoords": null,
|
||||||
"selectedPointsIndices": null,
|
"selectedPointsIndices": null,
|
||||||
"startBindingElement": "keep",
|
"startBindingElement": "keep",
|
||||||
|
@ -8793,10 +8793,10 @@ exports[`regression tests > key 6 selects line tool > [end of test] appState 1`]
|
||||||
"value": null,
|
"value": null,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"pointerOffset": {
|
"pointerOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"segmentMidPointHoveredCoords": null,
|
"segmentMidPointHoveredCoords": null,
|
||||||
"selectedPointsIndices": null,
|
"selectedPointsIndices": null,
|
||||||
"startBindingElement": "keep",
|
"startBindingElement": "keep",
|
||||||
|
@ -9211,10 +9211,10 @@ exports[`regression tests > key a selects arrow tool > [end of test] appState 1`
|
||||||
"value": null,
|
"value": null,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"pointerOffset": {
|
"pointerOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"segmentMidPointHoveredCoords": null,
|
"segmentMidPointHoveredCoords": null,
|
||||||
"selectedPointsIndices": null,
|
"selectedPointsIndices": null,
|
||||||
"startBindingElement": "keep",
|
"startBindingElement": "keep",
|
||||||
|
@ -9616,10 +9616,10 @@ exports[`regression tests > key l selects line tool > [end of test] appState 1`]
|
||||||
"value": null,
|
"value": null,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"pointerOffset": {
|
"pointerOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"segmentMidPointHoveredCoords": null,
|
"segmentMidPointHoveredCoords": null,
|
||||||
"selectedPointsIndices": null,
|
"selectedPointsIndices": null,
|
||||||
"startBindingElement": "keep",
|
"startBindingElement": "keep",
|
||||||
|
@ -12812,10 +12812,10 @@ exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] a
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
@ -14766,10 +14766,10 @@ exports[`regression tests > zoom hotkeys > [end of test] appState 1`] = `
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
|
|
@ -69,10 +69,10 @@ exports[`exportToSvg > with default arguments 1`] = `
|
||||||
"openMenu": null,
|
"openMenu": null,
|
||||||
"openPopup": null,
|
"openPopup": null,
|
||||||
"openSidebar": null,
|
"openSidebar": null,
|
||||||
"originSnapOffset": {
|
"originSnapOffset": [
|
||||||
"x": 0,
|
0,
|
||||||
"y": 0,
|
0,
|
||||||
},
|
],
|
||||||
"pasteDialog": {
|
"pasteDialog": {
|
||||||
"data": null,
|
"data": null,
|
||||||
"shown": false,
|
"shown": false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue