diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsx index d1412583bb..7e552bfac6 100644 --- a/packages/excalidraw/components/App.tsx +++ b/packages/excalidraw/components/App.tsx @@ -939,17 +939,20 @@ class App extends React.Component { "Missing last pointer move coords when changing bind skip mode for arrow start", ); const elementsMap = this.scene.getNonDeletedElementsMap(); - const hoveredElement = getHoveredElementForBinding( - elementsMap.get( - this.state.selectedLinearElement.elementId, - ) as ExcalidrawArrowElement, - pointFrom( - this.lastPointerMoveCoords.x, - this.lastPointerMoveCoords.y, - ), - this.scene.getNonDeletedElements(), - elementsMap, - ); + const arrow = elementsMap.get( + this.state.selectedLinearElement.elementId, + ) as ExcalidrawArrowElement | undefined; + const hoveredElement = + arrow && + getHoveredElementForBinding( + arrow, + pointFrom( + this.lastPointerMoveCoords.x, + this.lastPointerMoveCoords.y, + ), + this.scene.getNonDeletedElements(), + elementsMap, + ); const element = LinearElementEditor.getElement( this.state.selectedLinearElement.elementId, elementsMap, diff --git a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap index cb548f5b62..7162ed5f91 100644 --- a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap @@ -979,7 +979,6 @@ exports[`contextMenu element > right-clicking on a group should select whole gro "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -1173,7 +1172,6 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -1388,7 +1386,6 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -1720,7 +1717,6 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2052,7 +2048,6 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2265,7 +2260,6 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2509,7 +2503,6 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2813,7 +2806,6 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3181,7 +3173,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3675,7 +3666,6 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3999,7 +3989,6 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -4326,7 +4315,6 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -5612,7 +5600,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -6832,7 +6819,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -7786,7 +7772,6 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -8786,7 +8771,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -9781,7 +9765,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, diff --git a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap index c34fe62f43..fd57911e3e 100644 --- a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap @@ -1293,7 +1293,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -1654,7 +1653,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2017,7 +2015,6 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2768,7 +2765,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3072,7 +3068,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3392,7 +3387,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3687,7 +3681,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3974,7 +3967,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -4210,7 +4202,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -4468,7 +4459,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -4740,7 +4730,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -4970,7 +4959,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -5200,7 +5188,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -5448,7 +5435,6 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -5705,7 +5691,6 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -5963,7 +5948,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -6293,7 +6277,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -6724,7 +6707,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -7105,7 +7087,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -7700,7 +7681,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -7931,7 +7911,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -8284,7 +8263,6 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -8643,7 +8621,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -9325,7 +9302,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -9590,7 +9566,6 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -9856,7 +9831,6 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -10090,7 +10064,6 @@ exports[`history > multiplayer undo/redo > should override remotely added groups "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -10703,7 +10676,6 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -10943,7 +10915,6 @@ exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end o "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -11868,7 +11839,6 @@ exports[`history > multiplayer undo/redo > should update history entries after r "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -12127,7 +12097,6 @@ exports[`history > singleplayer undo/redo > remounting undo/redo buttons should "showHyperlinkPopup": false, "showWelcomeScreen": false, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -12365,7 +12334,6 @@ exports[`history > singleplayer undo/redo > should clear the redo stack on eleme "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -12997,7 +12965,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on e "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -13205,7 +13172,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on e "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -14013,7 +13979,6 @@ exports[`history > singleplayer undo/redo > should create new history entry on s "showHyperlinkPopup": false, "showWelcomeScreen": false, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -14258,7 +14223,6 @@ exports[`history > singleplayer undo/redo > should disable undo/redo buttons whe "showHyperlinkPopup": false, "showWelcomeScreen": false, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -14496,7 +14460,6 @@ exports[`history > singleplayer undo/redo > should end up with no history entry "showHyperlinkPopup": false, "showWelcomeScreen": false, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -14734,7 +14697,6 @@ exports[`history > singleplayer undo/redo > should iterate through the history w "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -14982,7 +14944,6 @@ exports[`history > singleplayer undo/redo > should not clear the redo stack on s "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -15315,7 +15276,6 @@ exports[`history > singleplayer undo/redo > should not collapse when applying co "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -15488,7 +15448,6 @@ exports[`history > singleplayer undo/redo > should not end up with history entry "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -15771,7 +15730,6 @@ exports[`history > singleplayer undo/redo > should not end up with history entry "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -16035,7 +15993,6 @@ exports[`history > singleplayer undo/redo > should not modify anything on unrela "showHyperlinkPopup": false, "showWelcomeScreen": false, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -16190,7 +16147,6 @@ exports[`history > singleplayer undo/redo > should not override appstate changes "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -16472,7 +16428,6 @@ exports[`history > singleplayer undo/redo > should support appstate name or view "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -20199,7 +20154,6 @@ exports[`history > singleplayer undo/redo > should support changes in elements' "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -20682,7 +20636,6 @@ exports[`history > singleplayer undo/redo > should support duplication of groups "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -21189,7 +21142,6 @@ exports[`history > singleplayer undo/redo > should support element creation, del "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, diff --git a/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap index a8dd2f4450..3f836165fc 100644 --- a/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap @@ -106,7 +106,6 @@ exports[`given element A and group of elements B and given both are selected whe "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -535,7 +534,6 @@ exports[`given element A and group of elements B and given both are selected whe "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -943,7 +941,6 @@ exports[`regression tests > Cmd/Ctrl-click exclusively select element under poin "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -1510,7 +1507,6 @@ exports[`regression tests > Drags selected element when hitting only bounding bo "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -1723,7 +1719,6 @@ exports[`regression tests > adjusts z order when grouping > [end of test] appSta "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2105,7 +2100,6 @@ exports[`regression tests > alt-drag duplicates an element > [end of test] appSt "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2349,7 +2343,6 @@ exports[`regression tests > arrow keys > [end of test] appState 1`] = ` "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2532,7 +2525,6 @@ exports[`regression tests > can drag element that covers another element, while "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -2856,7 +2848,6 @@ exports[`regression tests > change the properties of a shape > [end of test] app "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3114,7 +3105,6 @@ exports[`regression tests > click on an element and drag it > [dragged] appState "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3356,7 +3346,6 @@ exports[`regression tests > click on an element and drag it > [end of test] appS "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3593,7 +3582,6 @@ exports[`regression tests > click to select a shape > [end of test] appState 1`] "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -3853,7 +3841,6 @@ exports[`regression tests > click-drag to select a group > [end of test] appStat "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -4167,7 +4154,6 @@ exports[`regression tests > deleting last but one element in editing group shoul "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -4631,7 +4617,6 @@ exports[`regression tests > deselects group of selected elements on pointer down "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -4887,7 +4872,6 @@ exports[`regression tests > deselects group of selected elements on pointer up w "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -5191,7 +5175,6 @@ exports[`regression tests > deselects selected element on pointer down when poin "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -5372,7 +5355,6 @@ exports[`regression tests > deselects selected element, on pointer up, when clic "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -5573,7 +5555,6 @@ exports[`regression tests > double click to edit a group > [end of test] appStat "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -5971,7 +5952,6 @@ exports[`regression tests > drags selected elements from point inside common bou "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -7057,7 +7037,6 @@ exports[`regression tests > given a group of selected elements with an element t "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -7392,7 +7371,6 @@ exports[`regression tests > given a selected element A and a not selected elemen "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -7671,7 +7649,6 @@ exports[`regression tests > given selected element A with lower z-index than uns "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -7907,7 +7884,6 @@ exports[`regression tests > given selected element A with lower z-index than uns "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -8146,7 +8122,6 @@ exports[`regression tests > key 2 selects rectangle tool > [end of test] appStat "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -8327,7 +8302,6 @@ exports[`regression tests > key 3 selects diamond tool > [end of test] appState "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -8508,7 +8482,6 @@ exports[`regression tests > key 4 selects ellipse tool > [end of test] appState "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -9578,7 +9551,6 @@ exports[`regression tests > key d selects diamond tool > [end of test] appState "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -9990,7 +9962,6 @@ exports[`regression tests > key o selects ellipse tool > [end of test] appState "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -10363,7 +10334,6 @@ exports[`regression tests > key r selects rectangle tool > [end of test] appStat "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -10552,7 +10522,6 @@ exports[`regression tests > make a group and duplicate it > [end of test] appSta "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -11078,7 +11047,6 @@ exports[`regression tests > noop interaction after undo shouldn't create history "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -11355,7 +11323,6 @@ exports[`regression tests > pinch-to-zoom works > [end of test] appState 1`] = ` "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -11481,7 +11448,6 @@ exports[`regression tests > shift click on selected element should deselect it o "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -11686,7 +11652,6 @@ exports[`regression tests > shift-click to multiselect, then drag > [end of test "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -12008,7 +11973,6 @@ exports[`regression tests > should group elements and ungroup them > [end of tes "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -12442,7 +12406,6 @@ exports[`regression tests > single-clicking on a subgroup of a selected group sh "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -13074,7 +13037,6 @@ exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] a "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -13202,7 +13164,6 @@ exports[`regression tests > supports nested groups > [end of test] appState 1`] "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -13863,7 +13824,6 @@ exports[`regression tests > switches from group of selected elements to another "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -14202,7 +14162,6 @@ exports[`regression tests > switches selected element on pointer down > [end of "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -14435,7 +14394,6 @@ exports[`regression tests > two-finger scroll works > [end of test] appState 1`] "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -14924,7 +14882,6 @@ exports[`regression tests > updates fontSize & fontFamily appState > [end of tes "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, @@ -15051,7 +15008,6 @@ exports[`regression tests > zoom hotkeys > [end of test] appState 1`] = ` "showHyperlinkPopup": false, "showWelcomeScreen": true, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3, diff --git a/packages/utils/tests/__snapshots__/export.test.ts.snap b/packages/utils/tests/__snapshots__/export.test.ts.snap index f59d0a9e84..67c2273766 100644 --- a/packages/utils/tests/__snapshots__/export.test.ts.snap +++ b/packages/utils/tests/__snapshots__/export.test.ts.snap @@ -98,7 +98,6 @@ exports[`exportToSvg > with default arguments 1`] = ` "showHyperlinkPopup": false, "showWelcomeScreen": false, "snapLines": [], - "startBoundElement": null, "stats": { "open": false, "panels": 3,