diff --git a/packages/element/tests/__snapshots__/linearElementEditor.test.tsx.snap b/packages/element/tests/__snapshots__/linearElementEditor.test.tsx.snap index 00857987c..a4a60e128 100644 --- a/packages/element/tests/__snapshots__/linearElementEditor.test.tsx.snap +++ b/packages/element/tests/__snapshots__/linearElementEditor.test.tsx.snap @@ -44,14 +44,3 @@ exports[`Test Linear Elements > Test bound text element > should resize and posi "Online whiteboard collaboration made easy" `; - -exports[`Test Linear Elements > Test bound text element > should wrap the bound text when arrow bound container moves 1`] = ` -"Online whiteboard -collaboration made easy" -`; - -exports[`Test Linear Elements > Test bound text element > should wrap the bound text when arrow bound container moves 2`] = ` -"Online whiteboard -collaboration made -easy" -`; diff --git a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap index 080d8fbf0..b9a5bdd0a 100644 --- a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap @@ -81,14 +81,14 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "penMode": false, "pendingImageElementId": null, "previousSelectedElementIds": { - "id691": true, + "id661": true, }, "resizingElement": null, "scrollX": 0, "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id691": true, + "id661": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -126,7 +126,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id687", + "id": "id657", "index": "a0", "isDeleted": false, "link": null, @@ -158,7 +158,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id688", + "id": "id658", "index": "a1", "isDeleted": false, "link": null, @@ -189,7 +189,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elbowed": false, "endArrowhead": "arrow", "endBinding": { - "elementId": "id702", + "elementId": "id672", "fixedPoint": [ "0.50000", 1, @@ -201,7 +201,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": "102.45605", - "id": "id691", + "id": "id661", "index": "a2", "isDeleted": false, "lastCommittedPoint": null, @@ -242,7 +242,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "backgroundColor": "transparent", "boundElements": [ { - "id": "id691", + "id": "id661", "type": "arrow", }, ], @@ -251,7 +251,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 50, - "id": "id702", + "id": "id672", "index": "a3", "isDeleted": false, "link": null, @@ -290,23 +290,23 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "added": {}, "removed": {}, "updated": { - "id688": { + "id658": { "deleted": { "boundElements": [], }, "inserted": { "boundElements": [ { - "id": "id691", + "id": "id661", "type": "arrow", }, ], }, }, - "id691": { + "id661": { "deleted": { "endBinding": { - "elementId": "id702", + "elementId": "id672", "fixedPoint": [ "0.50000", 1, @@ -326,14 +326,14 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl ], ], "startBinding": { - "elementId": "id687", + "elementId": "id657", "focus": "0.02970", "gap": 1, }, }, "inserted": { "endBinding": { - "elementId": "id688", + "elementId": "id658", "focus": "-0.02000", "gap": 1, }, @@ -349,17 +349,17 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl ], ], "startBinding": { - "elementId": "id687", + "elementId": "id657", "focus": "0.02000", "gap": 1, }, }, }, - "id702": { + "id672": { "deleted": { "boundElements": [ { - "id": "id691", + "id": "id661", "type": "arrow", }, ], @@ -370,7 +370,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, }, }, - "id": "id709", + "id": "id679", }, { "appState": AppStateDelta { @@ -383,20 +383,20 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "added": {}, "removed": {}, "updated": { - "id687": { + "id657": { "deleted": { "boundElements": [], }, "inserted": { "boundElements": [ { - "id": "id691", + "id": "id661", "type": "arrow", }, ], }, }, - "id691": { + "id661": { "deleted": { "height": "102.45584", "points": [ @@ -425,7 +425,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl ], ], "startBinding": { - "elementId": "id687", + "elementId": "id657", "focus": "0.02970", "gap": 1, }, @@ -434,7 +434,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, }, }, - "id": "id710", + "id": "id680", }, ] `; @@ -451,7 +451,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elements": { "added": {}, "removed": { - "id687": { + "id657": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -482,7 +482,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "isDeleted": true, }, }, - "id688": { + "id658": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -516,16 +516,16 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "updated": {}, }, - "id": "id690", + "id": "id660", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id691": true, + "id661": true, }, - "selectedLinearElementId": "id691", + "selectedLinearElementId": "id661", }, "inserted": { "selectedElementIds": {}, @@ -536,7 +536,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elements": { "added": {}, "removed": { - "id691": { + "id661": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -586,7 +586,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "updated": {}, }, - "id": "id693", + "id": "id663", }, ] `; @@ -672,14 +672,14 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "penMode": false, "pendingImageElementId": null, "previousSelectedElementIds": { - "id668": true, + "id638": true, }, "resizingElement": null, "scrollX": 0, "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id668": true, + "id638": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -717,7 +717,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id664", + "id": "id634", "index": "a0", "isDeleted": false, "link": null, @@ -749,7 +749,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id665", + "id": "id635", "index": "a1", "isDeleted": false, "link": null, @@ -784,7 +784,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 0, - "id": "id668", + "id": "id638", "index": "a2", "isDeleted": false, "lastCommittedPoint": null, @@ -836,20 +836,20 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "added": {}, "removed": {}, "updated": { - "id665": { + "id635": { "deleted": { "boundElements": [], }, "inserted": { "boundElements": [ { - "id": "id668", + "id": "id638", "type": "arrow", }, ], }, }, - "id668": { + "id638": { "deleted": { "endBinding": null, "points": [ @@ -865,7 +865,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "inserted": { "endBinding": { - "elementId": "id665", + "elementId": "id635", "focus": -0, "gap": 1, }, @@ -883,7 +883,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, }, }, - "id": "id685", + "id": "id655", }, { "appState": AppStateDelta { @@ -896,20 +896,20 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "added": {}, "removed": {}, "updated": { - "id664": { + "id634": { "deleted": { "boundElements": [], }, "inserted": { "boundElements": [ { - "id": "id668", + "id": "id638", "type": "arrow", }, ], }, }, - "id668": { + "id638": { "deleted": { "points": [ [ @@ -935,7 +935,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl ], ], "startBinding": { - "elementId": "id664", + "elementId": "id634", "focus": 0, "gap": 1, }, @@ -943,7 +943,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, }, }, - "id": "id686", + "id": "id656", }, ] `; @@ -960,7 +960,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elements": { "added": {}, "removed": { - "id664": { + "id634": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -991,7 +991,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "isDeleted": true, }, }, - "id665": { + "id635": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -1025,16 +1025,16 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "updated": {}, }, - "id": "id667", + "id": "id637", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id668": true, + "id638": true, }, - "selectedLinearElementId": "id668", + "selectedLinearElementId": "id638", }, "inserted": { "selectedElementIds": {}, @@ -1045,7 +1045,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elements": { "added": {}, "removed": { - "id668": { + "id638": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -1095,7 +1095,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "updated": {}, }, - "id": "id670", + "id": "id640", }, ] `; @@ -1224,7 +1224,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elbowed": false, "endArrowhead": null, "endBinding": { - "elementId": "id712", + "elementId": "id682", "fixedPoint": [ "0.50000", 1, @@ -1236,7 +1236,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": "1.30038", - "id": "id715", + "id": "id685", "index": "Zz", "isDeleted": false, "lastCommittedPoint": null, @@ -1259,7 +1259,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "startArrowhead": null, "startBinding": { - "elementId": "id711", + "elementId": "id681", "fixedPoint": [ 1, "0.50000", @@ -1285,7 +1285,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "backgroundColor": "transparent", "boundElements": [ { - "id": "id715", + "id": "id685", "type": "arrow", }, ], @@ -1294,7 +1294,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id711", + "id": "id681", "index": "a0", "isDeleted": false, "link": null, @@ -1322,7 +1322,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "backgroundColor": "transparent", "boundElements": [ { - "id": "id715", + "id": "id685", "type": "arrow", }, ], @@ -1331,7 +1331,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id712", + "id": "id682", "index": "a1", "isDeleted": false, "link": null, @@ -1371,7 +1371,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elements": { "added": {}, "removed": { - "id711": { + "id681": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -1402,7 +1402,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "isDeleted": true, }, }, - "id712": { + "id682": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -1435,10 +1435,10 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, }, "updated": { - "id715": { + "id685": { "deleted": { "endBinding": { - "elementId": "id712", + "elementId": "id682", "fixedPoint": [ "0.50000", 1, @@ -1447,7 +1447,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "gap": 1, }, "startBinding": { - "elementId": "id711", + "elementId": "id681", "fixedPoint": [ 1, "0.50000", @@ -1463,7 +1463,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, }, }, - "id": "id719", + "id": "id689", }, ] `; @@ -1592,7 +1592,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elbowed": false, "endArrowhead": null, "endBinding": { - "elementId": "id721", + "elementId": "id691", "fixedPoint": [ 1, "0.50000", @@ -1604,7 +1604,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": "1.30038", - "id": "id725", + "id": "id695", "index": "a0", "isDeleted": false, "lastCommittedPoint": null, @@ -1627,7 +1627,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "startArrowhead": null, "startBinding": { - "elementId": "id720", + "elementId": "id690", "fixedPoint": [ "0.50000", 1, @@ -1653,7 +1653,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "backgroundColor": "transparent", "boundElements": [ { - "id": "id725", + "id": "id695", "type": "arrow", }, ], @@ -1662,7 +1662,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id720", + "id": "id690", "index": "a0V", "isDeleted": false, "link": null, @@ -1690,7 +1690,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "backgroundColor": "transparent", "boundElements": [ { - "id": "id725", + "id": "id695", "type": "arrow", }, ], @@ -1699,7 +1699,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id721", + "id": "id691", "index": "a1", "isDeleted": false, "link": null, @@ -1739,7 +1739,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elements": { "added": {}, "removed": { - "id725": { + "id695": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -1748,7 +1748,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elbowed": false, "endArrowhead": null, "endBinding": { - "elementId": "id721", + "elementId": "id691", "fixedPoint": [ 1, "0.50000", @@ -1782,7 +1782,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "startArrowhead": null, "startBinding": { - "elementId": "id720", + "elementId": "id690", "fixedPoint": [ "0.50000", 1, @@ -1804,11 +1804,11 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, }, "updated": { - "id720": { + "id690": { "deleted": { "boundElements": [ { - "id": "id725", + "id": "id695", "type": "arrow", }, ], @@ -1817,11 +1817,11 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "boundElements": [], }, }, - "id721": { + "id691": { "deleted": { "boundElements": [ { - "id": "id725", + "id": "id695", "type": "arrow", }, ], @@ -1832,7 +1832,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, }, }, - "id": "id731", + "id": "id701", }, ] `; @@ -1962,7 +1962,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id732", + "id": "id702", "index": "a0", "isDeleted": false, "link": null, @@ -1994,7 +1994,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "frameId": null, "groupIds": [], "height": 100, - "id": "id733", + "id": "id703", "index": "a1", "isDeleted": false, "link": null, @@ -2034,7 +2034,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elements": { "added": {}, "removed": { - "id732": { + "id702": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -2065,7 +2065,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "isDeleted": true, }, }, - "id733": { + "id703": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -2099,7 +2099,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "updated": {}, }, - "id": "id735", + "id": "id705", }, ] `; @@ -2189,9 +2189,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "scrollX": 0, "scrollY": 0, "searchMatches": null, - "selectedElementIds": { - "id740": true, - }, + "selectedElementIds": {}, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, "selectionElement": null, @@ -2222,18 +2220,13 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl { "angle": 0, "backgroundColor": "transparent", - "boundElements": [ - { - "id": "id740", - "type": "arrow", - }, - ], + "boundElements": null, "customData": undefined, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 100, - "id": "id736", + "id": "id706", "index": "a0", "isDeleted": false, "link": null, @@ -2248,7 +2241,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 7, + "version": 2, "width": 100, "x": -100, "y": -50, @@ -2259,18 +2252,13 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl { "angle": 0, "backgroundColor": "transparent", - "boundElements": [ - { - "id": "id740", - "type": "arrow", - }, - ], + "boundElements": null, "customData": undefined, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 100, - "id": "id737", + "id": "id707", "index": "a1", "isDeleted": false, "link": null, @@ -2285,10 +2273,10 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 8, + "version": 2, "width": 100, - "x": 500, - "y": -500, + "x": 100, + "y": -50, } `; @@ -2300,18 +2288,14 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id737", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], - "height": "374.05754", - "id": "id740", + "height": 0, + "id": "id710", "index": "a2", - "isDeleted": false, + "isDeleted": true, "lastCommittedPoint": null, "link": null, "locked": false, @@ -2322,8 +2306,8 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl 0, ], [ - "502.78936", - "-374.05754", + 100, + 0, ], ], "roughness": 1, @@ -2331,28 +2315,97 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id736", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, "type": "arrow", "updated": 1, - "version": 10, - "width": "502.78936", - "x": "-0.83465", - "y": "-36.58211", + "version": 5, + "width": 100, + "x": 0, + "y": 0, } `; exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] number of elements 1`] = `3`; -exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] number of renders 1`] = `9`; +exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] number of renders 1`] = `7`; -exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] redo stack 1`] = `[]`; +exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] redo stack 1`] = ` +[ + { + "appState": AppStateDelta { + "delta": Delta { + "deleted": { + "selectedElementIds": {}, + "selectedLinearElementId": null, + }, + "inserted": { + "selectedElementIds": { + "id710": true, + }, + "selectedLinearElementId": "id710", + }, + }, + }, + "elements": { + "added": { + "id710": { + "deleted": { + "isDeleted": true, + }, + "inserted": { + "angle": 0, + "backgroundColor": "transparent", + "boundElements": null, + "customData": undefined, + "elbowed": false, + "endArrowhead": "arrow", + "endBinding": null, + "fillStyle": "solid", + "frameId": null, + "groupIds": [], + "height": 0, + "index": "a2", + "isDeleted": false, + "lastCommittedPoint": null, + "link": null, + "locked": false, + "opacity": 100, + "points": [ + [ + 0, + 0, + ], + [ + 100, + 0, + ], + ], + "roughness": 1, + "roundness": { + "type": 2, + }, + "startArrowhead": null, + "startBinding": null, + "strokeColor": "#1e1e1e", + "strokeStyle": "solid", + "strokeWidth": 2, + "type": "arrow", + "width": 100, + "x": 0, + "y": 0, + }, + }, + }, + "removed": {}, + "updated": {}, + }, + "id": "id713", + }, +] +`; exports[`history > multiplayer undo/redo > conflicts in arrows and their bindable elements > should update bound element points when rectangle was remotely moved and arrow is added back through the history > [end of test] undo stack 1`] = ` [ @@ -2366,7 +2419,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "elements": { "added": {}, "removed": { - "id736": { + "id706": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -2397,7 +2450,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "isDeleted": true, }, }, - "id737": { + "id707": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -2431,112 +2484,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl }, "updated": {}, }, - "id": "id739", - }, - { - "appState": AppStateDelta { - "delta": Delta { - "deleted": { - "selectedElementIds": { - "id740": true, - }, - "selectedLinearElementId": "id740", - }, - "inserted": { - "selectedElementIds": {}, - "selectedLinearElementId": null, - }, - }, - }, - "elements": { - "added": {}, - "removed": { - "id740": { - "deleted": { - "angle": 0, - "backgroundColor": "transparent", - "boundElements": null, - "customData": undefined, - "elbowed": false, - "endArrowhead": "arrow", - "endBinding": { - "elementId": "id737", - "focus": -0, - "gap": 1, - }, - "fillStyle": "solid", - "frameId": null, - "groupIds": [], - "height": 0, - "index": "a2", - "isDeleted": false, - "lastCommittedPoint": null, - "link": null, - "locked": false, - "opacity": 100, - "points": [ - [ - 0, - 0, - ], - [ - 100, - 0, - ], - ], - "roughness": 1, - "roundness": { - "type": 2, - }, - "startArrowhead": null, - "startBinding": { - "elementId": "id736", - "focus": 0, - "gap": 1, - }, - "strokeColor": "#1e1e1e", - "strokeStyle": "solid", - "strokeWidth": 2, - "type": "arrow", - "width": 100, - "x": 0, - "y": 0, - }, - "inserted": { - "isDeleted": true, - }, - }, - }, - "updated": { - "id736": { - "deleted": { - "boundElements": [ - { - "id": "id740", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - "id737": { - "deleted": { - "boundElements": [ - { - "id": "id740", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - }, - }, - "id": "id744", + "id": "id709", }, ] `; @@ -2662,7 +2610,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "backgroundColor": "transparent", "boundElements": [ { - "id": "id618", + "id": "id588", "type": "text", }, ], @@ -2671,7 +2619,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id613", + "id": "id583", "index": "a0", "isDeleted": false, "link": null, @@ -2707,7 +2655,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id614", + "id": "id584", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -2740,7 +2688,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id613", + "containerId": "id583", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -2748,7 +2696,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 25, - "id": "id618", + "id": "id588", "index": "a2", "isDeleted": false, "lineHeight": "1.25000", @@ -2792,7 +2740,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "added": {}, "removed": {}, "updated": { - "id613": { + "id583": { "deleted": { "isDeleted": false, }, @@ -2823,7 +2771,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "y": 10, }, }, - "id614": { + "id584": { "deleted": { "containerId": null, }, @@ -2833,7 +2781,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, }, - "id": "id622", + "id": "id592", }, ] `; @@ -2961,7 +2909,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "backgroundColor": "transparent", "boundElements": [ { - "id": "id628", + "id": "id598", "type": "text", }, ], @@ -2970,7 +2918,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id623", + "id": "id593", "index": "Zz", "isDeleted": false, "link": null, @@ -2998,7 +2946,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id623", + "containerId": "id593", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -3006,7 +2954,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id624", + "id": "id594", "index": "a0", "isDeleted": true, "lineHeight": "1.25000", @@ -3039,7 +2987,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id623", + "containerId": "id593", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -3047,7 +2995,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 25, - "id": "id628", + "id": "id598", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -3089,9 +3037,9 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, "elements": { "added": { - "id624": { + "id594": { "deleted": { - "containerId": "id623", + "containerId": "id593", "isDeleted": true, }, "inserted": { @@ -3102,14 +3050,14 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, "removed": {}, "updated": { - "id623": { + "id593": { "deleted": { "boundElements": [], }, "inserted": { "boundElements": [ { - "id": "id624", + "id": "id594", "type": "text", }, ], @@ -3117,7 +3065,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, }, - "id": "id632", + "id": "id602", }, ] `; @@ -3245,7 +3193,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "backgroundColor": "transparent", "boundElements": [ { - "id": "id582", + "id": "id552", "type": "text", }, ], @@ -3254,7 +3202,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id577", + "id": "id547", "index": "a0", "isDeleted": false, "link": null, @@ -3282,7 +3230,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id577", + "containerId": "id547", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -3290,7 +3238,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 25, - "id": "id582", + "id": "id552", "index": "a0V", "isDeleted": false, "lineHeight": "1.25000", @@ -3331,7 +3279,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 25, - "id": "id578", + "id": "id548", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -3375,11 +3323,11 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "added": {}, "removed": {}, "updated": { - "id577": { + "id547": { "deleted": { "boundElements": [ { - "id": "id582", + "id": "id552", "type": "text", }, ], @@ -3387,23 +3335,23 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "inserted": { "boundElements": [ { - "id": "id578", + "id": "id548", "type": "text", }, ], }, }, - "id578": { + "id548": { "deleted": { "containerId": null, }, "inserted": { - "containerId": "id577", + "containerId": "id547", }, }, - "id582": { + "id552": { "deleted": { - "containerId": "id577", + "containerId": "id547", }, "inserted": { "containerId": null, @@ -3411,7 +3359,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, }, - "id": "id586", + "id": "id556", }, ] `; @@ -3543,7 +3491,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id587", + "id": "id557", "index": "a0", "isDeleted": false, "link": null, @@ -3571,7 +3519,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "backgroundColor": "transparent", "boundElements": [ { - "id": "id588", + "id": "id558", "type": "text", }, ], @@ -3580,7 +3528,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 60, - "id": "id592", + "id": "id562", "index": "a0V", "isDeleted": false, "link": null, @@ -3608,7 +3556,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id592", + "containerId": "id562", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -3616,7 +3564,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 50, - "id": "id588", + "id": "id558", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -3661,32 +3609,32 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "added": {}, "removed": {}, "updated": { - "id587": { + "id557": { "deleted": { "boundElements": [], }, "inserted": { "boundElements": [ { - "id": "id588", + "id": "id558", "type": "text", }, ], }, }, - "id588": { + "id558": { "deleted": { - "containerId": "id592", + "containerId": "id562", }, "inserted": { - "containerId": "id587", + "containerId": "id557", }, }, - "id592": { + "id562": { "deleted": { "boundElements": [ { - "id": "id588", + "id": "id558", "type": "text", }, ], @@ -3697,7 +3645,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, }, - "id": "id596", + "id": "id566", }, ] `; @@ -3829,7 +3777,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id568", + "id": "id538", "index": "a0", "isDeleted": false, "link": null, @@ -3865,7 +3813,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 25, - "id": "id569", + "id": "id539", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -3909,30 +3857,30 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "added": {}, "removed": {}, "updated": { - "id568": { + "id538": { "deleted": { "boundElements": [], }, "inserted": { "boundElements": [ { - "id": "id569", + "id": "id539", "type": "text", }, ], }, }, - "id569": { + "id539": { "deleted": { "containerId": null, }, "inserted": { - "containerId": "id568", + "containerId": "id538", }, }, }, }, - "id": "id576", + "id": "id546", }, ] `; @@ -4060,7 +4008,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "backgroundColor": "transparent", "boundElements": [ { - "id": "id598", + "id": "id568", "type": "text", }, ], @@ -4069,7 +4017,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id597", + "id": "id567", "index": "a0", "isDeleted": false, "link": null, @@ -4097,7 +4045,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id597", + "containerId": "id567", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -4105,7 +4053,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 25, - "id": "id598", + "id": "id568", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -4150,7 +4098,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "elements": { "added": {}, "removed": { - "id597": { + "id567": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -4183,9 +4131,9 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, "updated": { - "id598": { + "id568": { "deleted": { - "containerId": "id597", + "containerId": "id567", }, "inserted": { "containerId": null, @@ -4193,7 +4141,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, }, - "id": "id604", + "id": "id574", }, ] `; @@ -4319,7 +4267,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "backgroundColor": "transparent", "boundElements": [ { - "id": "id606", + "id": "id576", "type": "text", }, ], @@ -4328,7 +4276,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id605", + "id": "id575", "index": "Zz", "isDeleted": false, "link": null, @@ -4356,7 +4304,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id605", + "containerId": "id575", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -4364,7 +4312,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 25, - "id": "id606", + "id": "id576", "index": "a0", "isDeleted": false, "lineHeight": "1.25000", @@ -4409,13 +4357,13 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "elements": { "added": {}, "removed": { - "id606": { + "id576": { "deleted": { "angle": 0, "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id605", + "containerId": "id575", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -4451,11 +4399,11 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, "updated": { - "id605": { + "id575": { "deleted": { "boundElements": [ { - "id": "id606", + "id": "id576", "type": "text", }, ], @@ -4466,7 +4414,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, }, - "id": "id612", + "id": "id582", }, ] `; @@ -4592,7 +4540,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "backgroundColor": "transparent", "boundElements": [ { - "id": "id658", + "id": "id628", "type": "text", }, ], @@ -4601,7 +4549,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id657", + "id": "id627", "index": "Zz", "isDeleted": false, "link": null, @@ -4629,7 +4577,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id657", + "containerId": "id627", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -4637,7 +4585,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 25, - "id": "id658", + "id": "id628", "index": "a0", "isDeleted": false, "lineHeight": "1.25000", @@ -4681,7 +4629,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "added": {}, "removed": {}, "updated": { - "id658": { + "id628": { "deleted": { "angle": 0, "x": 15, @@ -4695,7 +4643,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, }, - "id": "id663", + "id": "id633", }, ] `; @@ -4823,7 +4771,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "backgroundColor": "transparent", "boundElements": [ { - "id": "id650", + "id": "id620", "type": "text", }, ], @@ -4832,7 +4780,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id649", + "id": "id619", "index": "a0", "isDeleted": false, "link": null, @@ -4860,7 +4808,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id649", + "containerId": "id619", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -4868,7 +4816,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 25, - "id": "id650", + "id": "id620", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -4914,7 +4862,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "added": {}, "removed": {}, "updated": { - "id649": { + "id619": { "deleted": { "angle": 90, "x": 200, @@ -4928,7 +4876,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, }, }, - "id": "id656", + "id": "id626", }, ] `; @@ -5058,7 +5006,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id633", + "id": "id603", "index": "a0", "isDeleted": false, "link": null, @@ -5086,7 +5034,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id633", + "containerId": "id603", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -5094,7 +5042,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id634", + "id": "id604", "index": "a1", "isDeleted": true, "lineHeight": "1.25000", @@ -5139,7 +5087,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "elements": { "added": {}, "removed": { - "id633": { + "id603": { "deleted": { "boundElements": [], "isDeleted": false, @@ -5147,7 +5095,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "inserted": { "boundElements": [ { - "id": "id634", + "id": "id604", "type": "text", }, ], @@ -5157,7 +5105,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and }, "updated": {}, }, - "id": "id640", + "id": "id610", }, ] `; @@ -5283,7 +5231,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "backgroundColor": "transparent", "boundElements": [ { - "id": "id642", + "id": "id612", "type": "text", }, ], @@ -5292,7 +5240,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id641", + "id": "id611", "index": "Zz", "isDeleted": true, "link": null, @@ -5328,7 +5276,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "frameId": null, "groupIds": [], "height": 100, - "id": "id642", + "id": "id612", "index": "a0", "isDeleted": false, "lineHeight": "1.25000", @@ -5373,20 +5321,20 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "elements": { "added": {}, "removed": { - "id642": { + "id612": { "deleted": { "containerId": null, "isDeleted": false, }, "inserted": { - "containerId": "id641", + "containerId": "id611", "isDeleted": true, }, }, }, "updated": {}, }, - "id": "id648", + "id": "id618", }, ] `; @@ -5516,7 +5464,7 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre "frameId": null, "groupIds": [], "height": 100, - "id": "id746", + "id": "id715", "index": "Zz", "isDeleted": false, "link": null, @@ -5548,7 +5496,7 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre "frameId": null, "groupIds": [], "height": 500, - "id": "id745", + "id": "id714", "index": "a0", "isDeleted": true, "link": null, @@ -5589,7 +5537,7 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre "elements": { "added": {}, "removed": { - "id746": { + "id715": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -5623,7 +5571,7 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre }, "updated": {}, }, - "id": "id755", + "id": "id724", }, { "appState": AppStateDelta { @@ -5636,9 +5584,9 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre "added": {}, "removed": {}, "updated": { - "id746": { + "id715": { "deleted": { - "frameId": "id745", + "frameId": "id714", }, "inserted": { "frameId": null, @@ -5646,7 +5594,7 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre }, }, }, - "id": "id756", + "id": "id725", }, ] `; @@ -5732,7 +5680,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "penMode": false, "pendingImageElementId": null, "previousSelectedElementIds": { - "id469": true, + "id439": true, }, "resizingElement": null, "scrollX": 0, @@ -5777,7 +5725,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "A", ], "height": 100, - "id": "id468", + "id": "id438", "index": "a0", "isDeleted": false, "link": null, @@ -5811,7 +5759,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "A", ], "height": 100, - "id": "id469", + "id": "id439", "index": "a1", "isDeleted": true, "link": null, @@ -5846,8 +5794,8 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "delta": Delta { "deleted": { "selectedElementIds": { - "id468": true, - "id469": true, + "id438": true, + "id439": true, }, "selectedGroupIds": { "A": true, @@ -5863,7 +5811,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "added": {}, "removed": {}, "updated": { - "id468": { + "id438": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -5896,7 +5844,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "isDeleted": true, }, }, - "id469": { + "id439": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -5931,7 +5879,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, }, }, - "id": "id481", + "id": "id451", }, { "appState": AppStateDelta { @@ -5944,7 +5892,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "inserted": { "editingGroupId": null, "selectedElementIds": { - "id468": true, + "id438": true, }, "selectedGroupIds": { "A": true, @@ -5957,7 +5905,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id482", + "id": "id452", }, { "appState": AppStateDelta { @@ -5969,7 +5917,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "inserted": { "editingGroupId": "A", "selectedElementIds": { - "id469": true, + "id439": true, }, }, }, @@ -5979,7 +5927,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id485", + "id": "id455", }, ] `; @@ -6065,7 +6013,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "penMode": false, "pendingImageElementId": null, "previousSelectedElementIds": { - "id418": true, + "id388": true, }, "resizingElement": null, "scrollX": 0, @@ -6108,7 +6056,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 10, - "id": "id410", + "id": "id380", "index": "a0", "isDeleted": false, "link": null, @@ -6140,7 +6088,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 10, - "id": "id413", + "id": "id383", "index": "a1", "isDeleted": true, "link": null, @@ -6172,7 +6120,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 10, - "id": "id418", + "id": "id388", "index": "a2", "isDeleted": true, "link": null, @@ -6207,7 +6155,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "delta": Delta { "deleted": { "selectedElementIds": { - "id410": true, + "id380": true, }, }, "inserted": { @@ -6218,7 +6166,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "elements": { "added": {}, "removed": { - "id410": { + "id380": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -6252,19 +6200,19 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, "updated": {}, }, - "id": "id412", + "id": "id382", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id413": true, + "id383": true, }, }, "inserted": { "selectedElementIds": { - "id410": true, + "id380": true, }, }, }, @@ -6273,7 +6221,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "added": {}, "removed": {}, "updated": { - "id413": { + "id383": { "deleted": { "angle": 0, "backgroundColor": "#ffc9c9", @@ -6306,7 +6254,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, }, }, - "id": "id428", + "id": "id398", }, { "appState": AppStateDelta { @@ -6319,7 +6267,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "added": {}, "removed": {}, "updated": { - "id413": { + "id383": { "deleted": { "backgroundColor": "#ffc9c9", }, @@ -6329,19 +6277,19 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, }, }, - "id": "id429", + "id": "id399", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id418": true, + "id388": true, }, }, "inserted": { "selectedElementIds": { - "id413": true, + "id383": true, }, }, }, @@ -6350,7 +6298,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "added": {}, "removed": {}, "updated": { - "id418": { + "id388": { "deleted": { "angle": 0, "backgroundColor": "#ffc9c9", @@ -6383,7 +6331,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, }, }, - "id": "id430", + "id": "id400", }, { "appState": AppStateDelta { @@ -6396,7 +6344,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "added": {}, "removed": {}, "updated": { - "id418": { + "id388": { "deleted": { "x": 50, "y": 50, @@ -6408,7 +6356,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, }, }, - "id": "id431", + "id": "id401", }, ] `; @@ -6494,15 +6442,15 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "penMode": false, "pendingImageElementId": null, "previousSelectedElementIds": { - "id433": true, + "id403": true, }, "resizingElement": null, "scrollX": 0, "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id433": true, - "id434": true, + "id403": true, + "id404": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -6540,7 +6488,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 100, - "id": "id432", + "id": "id402", "index": "a0", "isDeleted": false, "link": null, @@ -6572,7 +6520,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 100, - "id": "id433", + "id": "id403", "index": "a1", "isDeleted": false, "link": null, @@ -6604,7 +6552,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 100, - "id": "id434", + "id": "id404", "index": "a2", "isDeleted": false, "link": null, @@ -6639,7 +6587,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "delta": Delta { "deleted": { "selectedElementIds": { - "id432": true, + "id402": true, }, }, "inserted": { @@ -6650,7 +6598,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "elements": { "added": {}, "removed": { - "id432": { + "id402": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -6681,7 +6629,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "isDeleted": true, }, }, - "id433": { + "id403": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -6712,7 +6660,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "isDeleted": true, }, }, - "id434": { + "id404": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -6746,19 +6694,19 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, "updated": {}, }, - "id": "id437", + "id": "id407", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id433": true, + "id403": true, }, }, "inserted": { "selectedElementIds": { - "id432": true, + "id402": true, }, }, }, @@ -6768,14 +6716,14 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id450", + "id": "id420", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id434": true, + "id404": true, }, }, "inserted": { @@ -6788,7 +6736,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id451", + "id": "id421", }, ] `; @@ -6882,10 +6830,10 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id452": true, - "id453": true, - "id454": true, - "id455": true, + "id422": true, + "id423": true, + "id424": true, + "id425": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": { @@ -6928,7 +6876,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "A", ], "height": 100, - "id": "id452", + "id": "id422", "index": "a0", "isDeleted": false, "link": null, @@ -6962,7 +6910,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "A", ], "height": 100, - "id": "id453", + "id": "id423", "index": "a1", "isDeleted": false, "link": null, @@ -6996,7 +6944,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "B", ], "height": 100, - "id": "id454", + "id": "id424", "index": "a2", "isDeleted": false, "link": null, @@ -7030,7 +6978,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "B", ], "height": 100, - "id": "id455", + "id": "id425", "index": "a3", "isDeleted": false, "link": null, @@ -7065,8 +7013,8 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "delta": Delta { "deleted": { "selectedElementIds": { - "id452": true, - "id453": true, + "id422": true, + "id423": true, }, "selectedGroupIds": { "A": true, @@ -7083,15 +7031,15 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id466", + "id": "id436", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id454": true, - "id455": true, + "id424": true, + "id425": true, }, "selectedGroupIds": { "B": true, @@ -7108,7 +7056,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id467", + "id": "id437", }, ] `; @@ -7199,7 +7147,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id486": true, + "id456": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -7240,7 +7188,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 10, - "id": "id486", + "id": "id456", "index": "a0", "isDeleted": true, "lastCommittedPoint": [ @@ -7291,7 +7239,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "delta": Delta { "deleted": { "selectedElementIds": { - "id486": true, + "id456": true, }, }, "inserted": { @@ -7302,7 +7250,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "elements": { "added": {}, "removed": { - "id486": { + "id456": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -7355,13 +7303,13 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, "updated": {}, }, - "id": "id488", + "id": "id458", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { - "selectedLinearElementId": "id486", + "selectedLinearElementId": "id456", }, "inserted": { "selectedLinearElementId": null, @@ -7373,13 +7321,13 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id498", + "id": "id468", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { - "editingLinearElementId": "id486", + "editingLinearElementId": "id456", }, "inserted": { "editingLinearElementId": null, @@ -7391,7 +7339,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id499", + "id": "id469", }, { "appState": AppStateDelta { @@ -7400,7 +7348,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "editingLinearElementId": null, }, "inserted": { - "editingLinearElementId": "id486", + "editingLinearElementId": "id456", }, }, }, @@ -7409,7 +7357,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id500", + "id": "id470", }, ] `; @@ -7536,7 +7484,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 10, - "id": "id401", + "id": "id371", "index": "a0", "isDeleted": true, "link": null, @@ -7571,7 +7519,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "delta": Delta { "deleted": { "selectedElementIds": { - "id401": true, + "id371": true, }, }, "inserted": { @@ -7583,7 +7531,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "added": {}, "removed": {}, "updated": { - "id401": { + "id371": { "deleted": { "angle": 0, "backgroundColor": "#ffec99", @@ -7616,7 +7564,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, }, }, - "id": "id408", + "id": "id378", }, { "appState": AppStateDelta { @@ -7629,7 +7577,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "added": {}, "removed": {}, "updated": { - "id401": { + "id371": { "deleted": { "backgroundColor": "#ffec99", }, @@ -7639,7 +7587,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, }, }, - "id": "id409", + "id": "id379", }, ] `; @@ -7766,7 +7714,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 100, - "id": "id514", + "id": "id484", "index": "a1", "isDeleted": true, "link": null, @@ -7798,7 +7746,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 100, - "id": "id515", + "id": "id485", "index": "a3V", "isDeleted": true, "link": null, @@ -7830,7 +7778,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 100, - "id": "id513", + "id": "id483", "index": "a4", "isDeleted": true, "link": null, @@ -7869,7 +7817,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "added": {}, "removed": {}, "updated": { - "id514": { + "id484": { "deleted": { "index": "a1", }, @@ -7879,7 +7827,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, }, }, - "id": "id523", + "id": "id493", }, { "appState": AppStateDelta { @@ -7889,14 +7837,14 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, "inserted": { "selectedElementIds": { - "id514": true, + "id484": true, }, }, }, }, "elements": { "added": { - "id513": { + "id483": { "deleted": { "isDeleted": true, }, @@ -7927,7 +7875,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "y": 10, }, }, - "id514": { + "id484": { "deleted": { "isDeleted": true, }, @@ -7958,7 +7906,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "y": 20, }, }, - "id515": { + "id485": { "deleted": { "isDeleted": true, }, @@ -7993,7 +7941,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id524", + "id": "id494", }, ] `; @@ -8122,7 +8070,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 100, - "id": "id501", + "id": "id471", "index": "Zx", "isDeleted": true, "link": null, @@ -8154,7 +8102,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 100, - "id": "id503", + "id": "id473", "index": "Zy", "isDeleted": true, "link": null, @@ -8186,7 +8134,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "frameId": null, "groupIds": [], "height": 100, - "id": "id502", + "id": "id472", "index": "a1", "isDeleted": true, "link": null, @@ -8225,7 +8173,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "added": {}, "removed": {}, "updated": { - "id502": { + "id472": { "deleted": { "index": "a1", }, @@ -8235,7 +8183,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, }, }, - "id": "id511", + "id": "id481", }, { "appState": AppStateDelta { @@ -8245,14 +8193,14 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh }, "inserted": { "selectedElementIds": { - "id502": true, + "id472": true, }, }, }, }, "elements": { "added": { - "id501": { + "id471": { "deleted": { "isDeleted": true, }, @@ -8283,7 +8231,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "y": 10, }, }, - "id502": { + "id472": { "deleted": { "isDeleted": true, }, @@ -8314,7 +8262,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "y": 20, }, }, - "id503": { + "id473": { "deleted": { "isDeleted": true, }, @@ -8349,7 +8297,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "removed": {}, "updated": {}, }, - "id": "id512", + "id": "id482", }, ] `; @@ -8437,16 +8385,16 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "penMode": false, "pendingImageElementId": null, "previousSelectedElementIds": { - "id542": true, - "id545": true, + "id512": true, + "id515": true, }, "resizingElement": null, "scrollX": 0, "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id542": true, - "id545": true, + "id512": true, + "id515": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -8484,7 +8432,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "frameId": null, "groupIds": [], "height": 10, - "id": "id542", + "id": "id512", "index": "a0", "isDeleted": false, "link": null, @@ -8516,7 +8464,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "frameId": null, "groupIds": [], "height": 10, - "id": "id545", + "id": "id515", "index": "a1", "isDeleted": false, "link": null, @@ -8548,7 +8496,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "frameId": null, "groupIds": [], "height": 100, - "id": "id555", + "id": "id525", "index": "a2", "isDeleted": false, "link": null, @@ -8583,7 +8531,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "delta": Delta { "deleted": { "selectedElementIds": { - "id542": true, + "id512": true, }, }, "inserted": { @@ -8594,7 +8542,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "elements": { "added": {}, "removed": { - "id542": { + "id512": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -8628,19 +8576,19 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte }, "updated": {}, }, - "id": "id563", + "id": "id533", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id545": true, + "id515": true, }, }, "inserted": { "selectedElementIds": { - "id542": true, + "id512": true, }, }, }, @@ -8648,7 +8596,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "elements": { "added": {}, "removed": { - "id545": { + "id515": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -8682,19 +8630,19 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte }, "updated": {}, }, - "id": "id564", + "id": "id534", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id542": true, + "id512": true, }, }, "inserted": { "selectedElementIds": { - "id545": true, + "id515": true, }, }, }, @@ -8704,14 +8652,14 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "removed": {}, "updated": {}, }, - "id": "id565", + "id": "id535", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id545": true, + "id515": true, }, }, "inserted": { @@ -8724,7 +8672,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "removed": {}, "updated": {}, }, - "id": "id566", + "id": "id536", }, { "appState": AppStateDelta { @@ -8737,7 +8685,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "added": {}, "removed": {}, "updated": { - "id542": { + "id512": { "deleted": { "x": 90, "y": 90, @@ -8747,7 +8695,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "y": 10, }, }, - "id545": { + "id515": { "deleted": { "x": 110, "y": 110, @@ -8759,7 +8707,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte }, }, }, - "id": "id567", + "id": "id537", }, ] `; @@ -8886,7 +8834,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "frameId": null, "groupIds": [], "height": 50, - "id": "id525", + "id": "id495", "index": "a0", "isDeleted": false, "lastCommittedPoint": [ @@ -8945,7 +8893,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "frameId": null, "groupIds": [], "height": 100, - "id": "id526", + "id": "id496", "index": "a1", "isDeleted": false, "link": null, @@ -8985,7 +8933,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "elements": { "added": {}, "removed": { - "id525": { + "id495": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -9046,7 +8994,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte }, "updated": {}, }, - "id": "id530", + "id": "id500", }, ] `; @@ -9137,7 +9085,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id531": true, + "id501": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -9175,7 +9123,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "frameId": null, "groupIds": [], "height": 90, - "id": "id531", + "id": "id501", "index": "a0", "isDeleted": false, "link": null, @@ -9207,7 +9155,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "frameId": null, "groupIds": [], "height": 100, - "id": "id535", + "id": "id505", "index": "a1", "isDeleted": false, "link": null, @@ -9242,7 +9190,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "delta": Delta { "deleted": { "selectedElementIds": { - "id531": true, + "id501": true, }, }, "inserted": { @@ -9253,7 +9201,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "elements": { "added": {}, "removed": { - "id531": { + "id501": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -9287,7 +9235,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte }, "updated": {}, }, - "id": "id540", + "id": "id510", }, { "appState": AppStateDelta { @@ -9300,7 +9248,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "added": {}, "removed": {}, "updated": { - "id531": { + "id501": { "deleted": { "height": 90, "width": 90, @@ -9312,7 +9260,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte }, }, }, - "id": "id541", + "id": "id511", }, ] `; @@ -9403,7 +9351,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id333": true, + "id303": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -9441,7 +9389,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "frameId": null, "groupIds": [], "height": 10, - "id": "id333", + "id": "id303", "index": "a0", "isDeleted": false, "link": null, @@ -9473,7 +9421,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "frameId": null, "groupIds": [], "height": 100, - "id": "id338", + "id": "id308", "index": "a1", "isDeleted": false, "link": null, @@ -9512,7 +9460,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "added": {}, "removed": {}, "updated": { - "id333": { + "id303": { "deleted": { "backgroundColor": "transparent", }, @@ -9522,7 +9470,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on }, }, }, - "id": "id341", + "id": "id311", }, ] `; @@ -9534,7 +9482,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "delta": Delta { "deleted": { "selectedElementIds": { - "id333": true, + "id303": true, }, }, "inserted": { @@ -9545,7 +9493,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "elements": { "added": {}, "removed": { - "id333": { + "id303": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -9579,7 +9527,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on }, "updated": {}, }, - "id": "id335", + "id": "id305", }, ] `; @@ -9670,7 +9618,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id342": true, + "id312": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -9708,7 +9656,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "frameId": null, "groupIds": [], "height": 10, - "id": "id342", + "id": "id312", "index": "a0", "isDeleted": false, "link": null, @@ -9743,7 +9691,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "delta": Delta { "deleted": { "selectedElementIds": { - "id342": true, + "id312": true, }, }, "inserted": { @@ -9754,7 +9702,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "elements": { "added": {}, "removed": { - "id342": { + "id312": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -9788,7 +9736,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on }, "updated": {}, }, - "id": "id344", + "id": "id314", }, { "appState": AppStateDelta { @@ -9801,7 +9749,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "added": {}, "removed": {}, "updated": { - "id342": { + "id312": { "deleted": { "backgroundColor": "#ffc9c9", }, @@ -9811,7 +9759,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on }, }, }, - "id": "id348", + "id": "id318", }, ] `; @@ -9944,7 +9892,7 @@ exports[`history > multiplayer undo/redo > should override remotely added groups "B", ], "height": 100, - "id": "id371", + "id": "id341", "index": "a0", "isDeleted": false, "link": null, @@ -9979,7 +9927,7 @@ exports[`history > multiplayer undo/redo > should override remotely added groups "B", ], "height": 100, - "id": "id372", + "id": "id342", "index": "a1", "isDeleted": false, "link": null, @@ -10013,7 +9961,7 @@ exports[`history > multiplayer undo/redo > should override remotely added groups "B", ], "height": 100, - "id": "id375", + "id": "id345", "index": "a2", "isDeleted": false, "link": null, @@ -10047,7 +9995,7 @@ exports[`history > multiplayer undo/redo > should override remotely added groups "B", ], "height": 100, - "id": "id376", + "id": "id346", "index": "a3", "isDeleted": false, "link": null, @@ -10088,7 +10036,7 @@ exports[`history > multiplayer undo/redo > should override remotely added groups "added": {}, "removed": {}, "updated": { - "id371": { + "id341": { "deleted": { "groupIds": [ "A", @@ -10099,7 +10047,7 @@ exports[`history > multiplayer undo/redo > should override remotely added groups "groupIds": [], }, }, - "id372": { + "id342": { "deleted": { "groupIds": [ "A", @@ -10112,7 +10060,7 @@ exports[`history > multiplayer undo/redo > should override remotely added groups }, }, }, - "id": "id378", + "id": "id348", }, ] `; @@ -10203,7 +10151,7 @@ exports[`history > multiplayer undo/redo > should override remotely added points "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id379": true, + "id349": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -10244,7 +10192,7 @@ exports[`history > multiplayer undo/redo > should override remotely added points "frameId": null, "groupIds": [], "height": 30, - "id": "id379", + "id": "id349", "index": "a0", "isDeleted": false, "lastCommittedPoint": [ @@ -10307,7 +10255,7 @@ exports[`history > multiplayer undo/redo > should override remotely added points "delta": Delta { "deleted": { "selectedElementIds": { - "id379": true, + "id349": true, }, }, "inserted": { @@ -10318,7 +10266,7 @@ exports[`history > multiplayer undo/redo > should override remotely added points "elements": { "added": {}, "removed": { - "id379": { + "id349": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -10371,7 +10319,7 @@ exports[`history > multiplayer undo/redo > should override remotely added points }, "updated": {}, }, - "id": "id389", + "id": "id359", }, { "appState": AppStateDelta { @@ -10384,7 +10332,7 @@ exports[`history > multiplayer undo/redo > should override remotely added points "added": {}, "removed": {}, "updated": { - "id379": { + "id349": { "deleted": { "height": 30, "lastCommittedPoint": [ @@ -10436,13 +10384,13 @@ exports[`history > multiplayer undo/redo > should override remotely added points }, }, }, - "id": "id390", + "id": "id360", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { - "selectedLinearElementId": "id379", + "selectedLinearElementId": "id349", }, "inserted": { "selectedLinearElementId": null, @@ -10454,7 +10402,7 @@ exports[`history > multiplayer undo/redo > should override remotely added points "removed": {}, "updated": {}, }, - "id": "id391", + "id": "id361", }, ] `; @@ -10581,7 +10529,7 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme "frameId": null, "groupIds": [], "height": 10, - "id": "id392", + "id": "id362", "index": "a0", "isDeleted": false, "link": null, @@ -10616,7 +10564,7 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme "delta": Delta { "deleted": { "selectedElementIds": { - "id392": true, + "id362": true, }, }, "inserted": { @@ -10627,7 +10575,7 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme "elements": { "added": {}, "removed": { - "id392": { + "id362": { "deleted": { "angle": 0, "backgroundColor": "#ffec99", @@ -10661,7 +10609,7 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme }, "updated": {}, }, - "id": "id399", + "id": "id369", }, { "appState": AppStateDelta { @@ -10671,7 +10619,7 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme }, "inserted": { "selectedElementIds": { - "id392": true, + "id362": true, }, }, }, @@ -10680,7 +10628,7 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme "added": {}, "removed": {}, "updated": { - "id392": { + "id362": { "deleted": { "isDeleted": false, }, @@ -10690,7 +10638,7 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme }, }, }, - "id": "id400", + "id": "id370", }, ] `; @@ -11061,7 +11009,7 @@ exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end o }, }, }, - "id": "id369", + "id": "id339", }, { "appState": AppStateDelta { @@ -11138,7 +11086,7 @@ exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end o "removed": {}, "updated": {}, }, - "id": "id370", + "id": "id340", }, ] `; @@ -11231,7 +11179,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id349": true, + "id319": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -11269,7 +11217,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r "frameId": null, "groupIds": [], "height": 10, - "id": "id349", + "id": "id319", "index": "a0", "isDeleted": false, "link": null, @@ -11308,7 +11256,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r "added": {}, "removed": {}, "updated": { - "id349": { + "id319": { "deleted": { "backgroundColor": "#d0bfff", }, @@ -11318,7 +11266,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r }, }, }, - "id": "id360", + "id": "id330", }, { "appState": AppStateDelta { @@ -11331,7 +11279,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r "added": {}, "removed": {}, "updated": { - "id349": { + "id319": { "deleted": { "backgroundColor": "transparent", }, @@ -11341,7 +11289,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r }, }, }, - "id": "id361", + "id": "id331", }, ] `; @@ -11353,7 +11301,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r "delta": Delta { "deleted": { "selectedElementIds": { - "id349": true, + "id319": true, }, }, "inserted": { @@ -11364,7 +11312,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r "elements": { "added": {}, "removed": { - "id349": { + "id319": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -11398,7 +11346,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r }, "updated": {}, }, - "id": "id351", + "id": "id321", }, ] `; @@ -11557,7 +11505,7 @@ exports[`history > singleplayer undo/redo > remounting undo/redo buttons should "frameId": null, "groupIds": [], "height": 10, - "id": "id329", + "id": "id299", "index": "a1", "isDeleted": true, "link": null, @@ -11593,14 +11541,14 @@ exports[`history > singleplayer undo/redo > remounting undo/redo buttons should }, "inserted": { "selectedElementIds": { - "id329": true, + "id299": true, }, }, }, }, "elements": { "added": { - "id329": { + "id299": { "deleted": { "isDeleted": true, }, @@ -11635,7 +11583,7 @@ exports[`history > singleplayer undo/redo > remounting undo/redo buttons should "removed": {}, "updated": {}, }, - "id": "id332", + "id": "id302", }, ] `; @@ -12619,7 +12567,7 @@ exports[`history > singleplayer undo/redo > should disable undo/redo buttons whe "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id323": true, + "id293": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -12689,7 +12637,7 @@ exports[`history > singleplayer undo/redo > should disable undo/redo buttons whe "frameId": null, "groupIds": [], "height": 10, - "id": "id323", + "id": "id293", "index": "a1", "isDeleted": false, "link": null, @@ -12724,7 +12672,7 @@ exports[`history > singleplayer undo/redo > should disable undo/redo buttons whe "delta": Delta { "deleted": { "selectedElementIds": { - "id323": true, + "id293": true, }, }, "inserted": { @@ -12735,7 +12683,7 @@ exports[`history > singleplayer undo/redo > should disable undo/redo buttons whe "elements": { "added": {}, "removed": { - "id323": { + "id293": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -12769,7 +12717,7 @@ exports[`history > singleplayer undo/redo > should disable undo/redo buttons whe }, "updated": {}, }, - "id": "id327", + "id": "id297", }, ] `; @@ -14849,14 +14797,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "penMode": false, "pendingImageElementId": null, "previousSelectedElementIds": { - "id230": true, + "id228": true, }, "resizingElement": null, "scrollX": 0, "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id243": true, + "id241": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -14890,20 +14838,16 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "backgroundColor": "transparent", "boundElements": [ { - "id": "id231", + "id": "id229", "type": "text", }, - { - "id": "id243", - "type": "arrow", - }, ], "customData": undefined, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 100, - "id": "id230", + "id": "id228", "index": "a0", "isDeleted": false, "link": null, @@ -14918,7 +14862,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 8, + "version": 3, "width": 100, "x": -100, "y": -50, @@ -14931,7 +14875,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id230", + "containerId": "id228", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -14939,7 +14883,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "frameId": null, "groupIds": [], "height": 25, - "id": "id231", + "id": "id229", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -14958,7 +14902,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "textAlign": "center", "type": "text", "updated": 1, - "version": 6, + "version": 4, "verticalAlign": "middle", "width": 30, "x": -65, @@ -14970,18 +14914,13 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding { "angle": 0, "backgroundColor": "transparent", - "boundElements": [ - { - "id": "id243", - "type": "arrow", - }, - ], + "boundElements": null, "customData": undefined, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 100, - "id": "id232", + "id": "id230", "index": "a2", "isDeleted": false, "link": null, @@ -14996,7 +14935,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 7, + "version": 2, "width": 100, "x": 100, "y": -50, @@ -15011,16 +14950,12 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id232", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 0, - "id": "id243", + "id": "id241", "index": "a3", "isDeleted": false, "lastCommittedPoint": null, @@ -15033,7 +14968,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding 0, ], [ - "98.58579", + 100, 0, ], ], @@ -15042,109 +14977,24 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id230", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, "type": "arrow", "updated": 1, - "version": 10, - "width": "98.58579", - "x": "0.70711", + "version": 4, + "width": 100, + "x": 0, "y": 0, } `; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] number of elements 1`] = `4`; -exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] number of renders 1`] = `12`; +exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] number of renders 1`] = `10`; -exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] redo stack 1`] = ` -[ - { - "appState": AppStateDelta { - "delta": Delta { - "deleted": { - "selectedElementIds": { - "id243": true, - }, - "selectedLinearElementId": "id243", - }, - "inserted": { - "selectedElementIds": {}, - "selectedLinearElementId": null, - }, - }, - }, - "elements": { - "added": {}, - "removed": { - "id243": { - "deleted": { - "isDeleted": false, - "points": [ - [ - 0, - 0, - ], - [ - 100, - 0, - ], - ], - }, - "inserted": { - "isDeleted": true, - "points": [ - [ - 0, - 0, - ], - [ - 100, - 0, - ], - ], - }, - }, - }, - "updated": { - "id230": { - "deleted": { - "boundElements": [ - { - "id": "id243", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - "id232": { - "deleted": { - "boundElements": [ - { - "id": "id243", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - }, - }, - "id": "id248", - }, -] -`; +exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] redo stack 1`] = `[]`; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on deletion and rebind on undo > [end of test] undo stack 1`] = ` [ @@ -15158,7 +15008,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "elements": { "added": {}, "removed": { - "id230": { + "id228": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -15189,7 +15039,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "isDeleted": true, }, }, - "id231": { + "id229": { "deleted": { "angle": 0, "autoResize": true, @@ -15229,7 +15079,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "isDeleted": true, }, }, - "id232": { + "id230": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -15263,14 +15113,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, "updated": {}, }, - "id": "id234", + "id": "id232", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id230": true, + "id228": true, }, }, "inserted": { @@ -15283,14 +15133,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "removed": {}, "updated": {}, }, - "id": "id237", + "id": "id235", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id231": true, + "id229": true, }, }, "inserted": { @@ -15303,7 +15153,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "removed": {}, "updated": {}, }, - "id": "id240", + "id": "id238", }, { "appState": AppStateDelta { @@ -15313,7 +15163,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, "inserted": { "selectedElementIds": { - "id231": true, + "id229": true, }, }, }, @@ -15322,11 +15172,11 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "added": {}, "removed": {}, "updated": { - "id230": { + "id228": { "deleted": { "boundElements": [ { - "id": "id231", + "id": "id229", "type": "text", }, ], @@ -15335,9 +15185,9 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "boundElements": [], }, }, - "id231": { + "id229": { "deleted": { - "containerId": "id230", + "containerId": "id228", "height": 25, "textAlign": "center", "verticalAlign": "middle", @@ -15357,20 +15207,20 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, }, }, - "id": "id242", + "id": "id240", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id243": true, + "id241": true, }, - "selectedLinearElementId": "id243", + "selectedLinearElementId": "id241", }, "inserted": { "selectedElementIds": { - "id230": true, + "id228": true, }, "selectedLinearElementId": null, }, @@ -15379,7 +15229,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "elements": { "added": {}, "removed": { - "id243": { + "id241": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -15387,11 +15237,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id232", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], @@ -15417,11 +15263,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id230", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -15435,36 +15277,9 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, }, }, - "updated": { - "id230": { - "deleted": { - "boundElements": [ - { - "id": "id243", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - "id232": { - "deleted": { - "boundElements": [ - { - "id": "id243", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - }, + "updated": {}, }, - "id": "id245", + "id": "id243", }, ] `; @@ -15594,10 +15409,6 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "id": "id213", "type": "text", }, - { - "id": "id225", - "type": "arrow", - }, ], "customData": undefined, "fillStyle": "solid", @@ -15619,7 +15430,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 8, + "version": 3, "width": 100, "x": -100, "y": -50, @@ -15659,7 +15470,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "textAlign": "center", "type": "text", "updated": 1, - "version": 8, + "version": 4, "verticalAlign": "middle", "width": 30, "x": -65, @@ -15671,12 +15482,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding { "angle": 0, "backgroundColor": "transparent", - "boundElements": [ - { - "id": "id225", - "type": "arrow", - }, - ], + "boundElements": null, "customData": undefined, "fillStyle": "solid", "frameId": null, @@ -15697,7 +15503,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 7, + "version": 2, "width": 100, "x": 100, "y": -50, @@ -15712,11 +15518,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id214", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], @@ -15734,7 +15536,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding 0, ], [ - "98.58579", + 100, 0, ], ], @@ -15743,26 +15545,22 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id212", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, "type": "arrow", "updated": 1, - "version": 10, - "width": "98.58579", - "x": "0.70711", + "version": 4, + "width": 100, + "x": 0, "y": 0, } `; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] number of elements 1`] = `4`; -exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] number of renders 1`] = `12`; +exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] number of renders 1`] = `10`; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind arrow from non deleted bindable elements on undo and rebind on redo > [end of test] redo stack 1`] = `[]`; @@ -16007,11 +15805,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id214", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], @@ -16037,11 +15831,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id212", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -16055,36 +15845,9 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, }, }, - "updated": { - "id212": { - "deleted": { - "boundElements": [ - { - "id": "id225", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - "id214": { - "deleted": { - "boundElements": [ - { - "id": "id225", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - }, + "updated": {}, }, - "id": "id229", + "id": "id227", }, ] `; @@ -16170,14 +15933,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "penMode": false, "pendingImageElementId": null, "previousSelectedElementIds": { - "id249": true, + "id244": true, }, "resizingElement": null, "scrollX": 0, "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id262": true, + "id257": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -16211,20 +15974,16 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "backgroundColor": "transparent", "boundElements": [ { - "id": "id250", + "id": "id245", "type": "text", }, - { - "id": "id262", - "type": "arrow", - }, ], "customData": undefined, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 100, - "id": "id249", + "id": "id244", "index": "a0", "isDeleted": false, "link": null, @@ -16239,7 +15998,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 12, + "version": 3, "width": 100, "x": -100, "y": -50, @@ -16252,7 +16011,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id249", + "containerId": "id244", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -16260,7 +16019,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "frameId": null, "groupIds": [], "height": 25, - "id": "id250", + "id": "id245", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -16279,7 +16038,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "textAlign": "center", "type": "text", "updated": 1, - "version": 12, + "version": 4, "verticalAlign": "middle", "width": 30, "x": -65, @@ -16291,18 +16050,13 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding { "angle": 0, "backgroundColor": "transparent", - "boundElements": [ - { - "id": "id262", - "type": "arrow", - }, - ], + "boundElements": null, "customData": undefined, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 100, - "id": "id251", + "id": "id246", "index": "a2", "isDeleted": false, "link": null, @@ -16317,7 +16071,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 9, + "version": 2, "width": 100, "x": 100, "y": -50, @@ -16332,16 +16086,12 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id251", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 0, - "id": "id262", + "id": "id257", "index": "a3", "isDeleted": false, "lastCommittedPoint": null, @@ -16354,7 +16104,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding 0, ], [ - "98.58579", + 100, 0, ], ], @@ -16363,26 +16113,22 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id249", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, "type": "arrow", "updated": 1, - "version": 10, - "width": "98.58579", - "x": "0.70711", + "version": 4, + "width": 100, + "x": 0, "y": 0, } `; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] number of elements 1`] = `4`; -exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] number of renders 1`] = `20`; +exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] number of renders 1`] = `10`; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind everything from non deleted elements when iterating through the whole undo stack and vice versa rebind everything on redo > [end of test] redo stack 1`] = `[]`; @@ -16398,7 +16144,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "elements": { "added": {}, "removed": { - "id249": { + "id244": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -16429,7 +16175,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "isDeleted": true, }, }, - "id250": { + "id245": { "deleted": { "angle": 0, "autoResize": true, @@ -16469,7 +16215,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "isDeleted": true, }, }, - "id251": { + "id246": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -16503,14 +16249,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, "updated": {}, }, - "id": "id270", + "id": "id248", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id249": true, + "id244": true, }, }, "inserted": { @@ -16523,14 +16269,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "removed": {}, "updated": {}, }, - "id": "id271", + "id": "id251", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id250": true, + "id245": true, }, }, "inserted": { @@ -16543,7 +16289,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "removed": {}, "updated": {}, }, - "id": "id272", + "id": "id254", }, { "appState": AppStateDelta { @@ -16553,7 +16299,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, "inserted": { "selectedElementIds": { - "id250": true, + "id245": true, }, }, }, @@ -16562,11 +16308,11 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "added": {}, "removed": {}, "updated": { - "id249": { + "id244": { "deleted": { "boundElements": [ { - "id": "id250", + "id": "id245", "type": "text", }, ], @@ -16575,9 +16321,9 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "boundElements": [], }, }, - "id250": { + "id245": { "deleted": { - "containerId": "id249", + "containerId": "id244", "height": 25, "textAlign": "center", "verticalAlign": "middle", @@ -16597,20 +16343,20 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, }, }, - "id": "id273", + "id": "id256", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id262": true, + "id257": true, }, - "selectedLinearElementId": "id262", + "selectedLinearElementId": "id257", }, "inserted": { "selectedElementIds": { - "id249": true, + "id244": true, }, "selectedLinearElementId": null, }, @@ -16619,7 +16365,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "elements": { "added": {}, "removed": { - "id262": { + "id257": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -16627,11 +16373,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id251", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], @@ -16657,11 +16399,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id249", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -16675,36 +16413,9 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, }, }, - "updated": { - "id249": { - "deleted": { - "boundElements": [ - { - "id": "id262", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - "id251": { - "deleted": { - "boundElements": [ - { - "id": "id262", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - }, + "updated": {}, }, - "id": "id274", + "id": "id259", }, ] `; @@ -16789,13 +16500,15 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "penDetected": false, "penMode": false, "pendingImageElementId": null, - "previousSelectedElementIds": {}, + "previousSelectedElementIds": { + "id260": true, + }, "resizingElement": null, "scrollX": 0, "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id275": true, + "id273": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -16829,11 +16542,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "backgroundColor": "transparent", "boundElements": [ { - "id": "id288", - "type": "arrow", - }, - { - "id": "id276", + "id": "id261", "type": "text", }, ], @@ -16842,7 +16551,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "frameId": null, "groupIds": [], "height": 100, - "id": "id275", + "id": "id260", "index": "a0", "isDeleted": false, "link": null, @@ -16857,7 +16566,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 8, + "version": 3, "width": 100, "x": -100, "y": -50, @@ -16870,7 +16579,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id275", + "containerId": "id260", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -16878,7 +16587,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "frameId": null, "groupIds": [], "height": 25, - "id": "id276", + "id": "id261", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -16897,7 +16606,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "textAlign": "center", "type": "text", "updated": 1, - "version": 8, + "version": 4, "verticalAlign": "middle", "width": 30, "x": -65, @@ -16909,18 +16618,13 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding { "angle": 0, "backgroundColor": "transparent", - "boundElements": [ - { - "id": "id288", - "type": "arrow", - }, - ], + "boundElements": null, "customData": undefined, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 100, - "id": "id277", + "id": "id262", "index": "a2", "isDeleted": false, "link": null, @@ -16935,7 +16639,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 5, + "version": 2, "width": 100, "x": 100, "y": -50, @@ -16950,16 +16654,12 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id277", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 0, - "id": "id288", + "id": "id273", "index": "a3", "isDeleted": false, "lastCommittedPoint": null, @@ -16972,7 +16672,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding 0, ], [ - "98.58579", + 100, 0, ], ], @@ -16981,101 +16681,24 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id275", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, "type": "arrow", "updated": 1, - "version": 10, - "width": "98.58579", - "x": "0.70711", + "version": 4, + "width": 100, + "x": 0, "y": 0, } `; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] number of elements 1`] = `4`; -exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] number of renders 1`] = `14`; +exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] number of renders 1`] = `10`; -exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] redo stack 1`] = ` -[ - { - "appState": AppStateDelta { - "delta": Delta { - "deleted": { - "selectedElementIds": { - "id275": true, - }, - }, - "inserted": { - "selectedElementIds": {}, - }, - }, - }, - "elements": { - "added": {}, - "removed": { - "id275": { - "deleted": { - "isDeleted": false, - }, - "inserted": { - "isDeleted": true, - }, - }, - "id276": { - "deleted": { - "isDeleted": false, - }, - "inserted": { - "isDeleted": true, - }, - }, - }, - "updated": { - "id288": { - "deleted": { - "points": [ - [ - 0, - 0, - ], - [ - 100, - 0, - ], - ], - "startBinding": { - "elementId": "id275", - "focus": 0, - "gap": 1, - }, - }, - "inserted": { - "points": [ - [ - 0, - 0, - ], - [ - 100, - 0, - ], - ], - "startBinding": null, - }, - }, - }, - }, - "id": "id296", - }, -] -`; +exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] redo stack 1`] = `[]`; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangle from arrow on deletion and rebind on undo > [end of test] undo stack 1`] = ` [ @@ -17089,7 +16712,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "elements": { "added": {}, "removed": { - "id275": { + "id260": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -17120,7 +16743,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "isDeleted": true, }, }, - "id276": { + "id261": { "deleted": { "angle": 0, "autoResize": true, @@ -17160,7 +16783,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "isDeleted": true, }, }, - "id277": { + "id262": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -17194,14 +16817,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, "updated": {}, }, - "id": "id279", + "id": "id264", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id275": true, + "id260": true, }, }, "inserted": { @@ -17214,14 +16837,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "removed": {}, "updated": {}, }, - "id": "id282", + "id": "id267", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id276": true, + "id261": true, }, }, "inserted": { @@ -17234,7 +16857,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "removed": {}, "updated": {}, }, - "id": "id285", + "id": "id270", }, { "appState": AppStateDelta { @@ -17244,7 +16867,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, "inserted": { "selectedElementIds": { - "id276": true, + "id261": true, }, }, }, @@ -17253,11 +16876,11 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "added": {}, "removed": {}, "updated": { - "id275": { + "id260": { "deleted": { "boundElements": [ { - "id": "id276", + "id": "id261", "type": "text", }, ], @@ -17266,9 +16889,9 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "boundElements": [], }, }, - "id276": { + "id261": { "deleted": { - "containerId": "id275", + "containerId": "id260", "height": 25, "textAlign": "center", "verticalAlign": "middle", @@ -17288,20 +16911,20 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, }, }, - "id": "id287", + "id": "id272", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id288": true, + "id273": true, }, - "selectedLinearElementId": "id288", + "selectedLinearElementId": "id273", }, "inserted": { "selectedElementIds": { - "id275": true, + "id260": true, }, "selectedLinearElementId": null, }, @@ -17310,7 +16933,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "elements": { "added": {}, "removed": { - "id288": { + "id273": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -17318,11 +16941,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id277", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], @@ -17348,11 +16967,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id275", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -17366,60 +16981,9 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, }, }, - "updated": { - "id275": { - "deleted": { - "boundElements": [ - { - "id": "id288", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - "id277": { - "deleted": { - "boundElements": [ - { - "id": "id288", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - }, - }, - "id": "id290", - }, - { - "appState": AppStateDelta { - "delta": Delta { - "deleted": { - "selectedElementIds": { - "id275": true, - }, - "selectedLinearElementId": null, - }, - "inserted": { - "selectedElementIds": { - "id288": true, - }, - "selectedLinearElementId": "id288", - }, - }, - }, - "elements": { - "added": {}, - "removed": {}, "updated": {}, }, - "id": "id293", + "id": "id275", }, ] `; @@ -17505,15 +17069,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "penMode": false, "pendingImageElementId": null, "previousSelectedElementIds": { - "id297": true, + "id276": true, }, "resizingElement": null, "scrollX": 0, "scrollY": 0, "searchMatches": null, "selectedElementIds": { - "id297": true, - "id299": true, + "id289": true, }, "selectedElementsAreBeingDragged": false, "selectedGroupIds": {}, @@ -17547,11 +17110,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "backgroundColor": "transparent", "boundElements": [ { - "id": "id310", - "type": "arrow", - }, - { - "id": "id298", + "id": "id277", "type": "text", }, ], @@ -17560,7 +17119,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "frameId": null, "groupIds": [], "height": 100, - "id": "id297", + "id": "id276", "index": "a0", "isDeleted": false, "link": null, @@ -17575,7 +17134,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 8, + "version": 3, "width": 100, "x": -100, "y": -50, @@ -17588,7 +17147,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "autoResize": true, "backgroundColor": "transparent", "boundElements": null, - "containerId": "id297", + "containerId": "id276", "customData": undefined, "fillStyle": "solid", "fontFamily": 5, @@ -17596,7 +17155,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "frameId": null, "groupIds": [], "height": 25, - "id": "id298", + "id": "id277", "index": "a1", "isDeleted": false, "lineHeight": "1.25000", @@ -17615,7 +17174,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "textAlign": "center", "type": "text", "updated": 1, - "version": 8, + "version": 4, "verticalAlign": "middle", "width": 30, "x": -65, @@ -17627,18 +17186,13 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding { "angle": 0, "backgroundColor": "transparent", - "boundElements": [ - { - "id": "id310", - "type": "arrow", - }, - ], + "boundElements": null, "customData": undefined, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 100, - "id": "id299", + "id": "id278", "index": "a2", "isDeleted": false, "link": null, @@ -17653,7 +17207,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "strokeWidth": 2, "type": "rectangle", "updated": 1, - "version": 5, + "version": 2, "width": 100, "x": 100, "y": -50, @@ -17668,16 +17222,12 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id299", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], "height": 0, - "id": "id310", + "id": "id289", "index": "a3", "isDeleted": false, "lastCommittedPoint": null, @@ -17690,7 +17240,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding 0, ], [ - "98.58579", + 100, 0, ], ], @@ -17699,116 +17249,24 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id297", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, "type": "arrow", "updated": 1, - "version": 11, - "width": "98.58579", - "x": "0.70711", + "version": 4, + "width": 100, + "x": 0, "y": 0, } `; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] number of elements 1`] = `4`; -exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] number of renders 1`] = `15`; +exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] number of renders 1`] = `10`; -exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] redo stack 1`] = ` -[ - { - "appState": AppStateDelta { - "delta": Delta { - "deleted": { - "selectedElementIds": { - "id297": true, - "id299": true, - }, - }, - "inserted": { - "selectedElementIds": {}, - }, - }, - }, - "elements": { - "added": {}, - "removed": { - "id297": { - "deleted": { - "isDeleted": false, - }, - "inserted": { - "isDeleted": true, - }, - }, - "id298": { - "deleted": { - "isDeleted": false, - }, - "inserted": { - "isDeleted": true, - }, - }, - "id299": { - "deleted": { - "isDeleted": false, - }, - "inserted": { - "isDeleted": true, - }, - }, - }, - "updated": { - "id310": { - "deleted": { - "endBinding": { - "elementId": "id299", - "focus": -0, - "gap": 1, - }, - "points": [ - [ - 0, - 0, - ], - [ - 100, - 0, - ], - ], - "startBinding": { - "elementId": "id297", - "focus": 0, - "gap": 1, - }, - }, - "inserted": { - "endBinding": null, - "points": [ - [ - 0, - 0, - ], - [ - 100, - 0, - ], - ], - "startBinding": null, - }, - }, - }, - }, - "id": "id321", - }, -] -`; +exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] redo stack 1`] = `[]`; exports[`history > singleplayer undo/redo > should support bidirectional bindings > should unbind rectangles from arrow on deletion and rebind on undo > [end of test] undo stack 1`] = ` [ @@ -17822,7 +17280,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "elements": { "added": {}, "removed": { - "id297": { + "id276": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -17853,7 +17311,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "isDeleted": true, }, }, - "id298": { + "id277": { "deleted": { "angle": 0, "autoResize": true, @@ -17893,7 +17351,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "isDeleted": true, }, }, - "id299": { + "id278": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -17927,14 +17385,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, "updated": {}, }, - "id": "id301", + "id": "id280", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id297": true, + "id276": true, }, }, "inserted": { @@ -17947,14 +17405,14 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "removed": {}, "updated": {}, }, - "id": "id304", + "id": "id283", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id298": true, + "id277": true, }, }, "inserted": { @@ -17967,7 +17425,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "removed": {}, "updated": {}, }, - "id": "id307", + "id": "id286", }, { "appState": AppStateDelta { @@ -17977,7 +17435,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, "inserted": { "selectedElementIds": { - "id298": true, + "id277": true, }, }, }, @@ -17986,11 +17444,11 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "added": {}, "removed": {}, "updated": { - "id297": { + "id276": { "deleted": { "boundElements": [ { - "id": "id298", + "id": "id277", "type": "text", }, ], @@ -17999,9 +17457,9 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "boundElements": [], }, }, - "id298": { + "id277": { "deleted": { - "containerId": "id297", + "containerId": "id276", "height": 25, "textAlign": "center", "verticalAlign": "middle", @@ -18021,20 +17479,20 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, }, }, - "id": "id309", + "id": "id288", }, { "appState": AppStateDelta { "delta": Delta { "deleted": { "selectedElementIds": { - "id310": true, + "id289": true, }, - "selectedLinearElementId": "id310", + "selectedLinearElementId": "id289", }, "inserted": { "selectedElementIds": { - "id297": true, + "id276": true, }, "selectedLinearElementId": null, }, @@ -18043,7 +17501,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "elements": { "added": {}, "removed": { - "id310": { + "id289": { "deleted": { "angle": 0, "backgroundColor": "transparent", @@ -18051,11 +17509,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "customData": undefined, "elbowed": false, "endArrowhead": "arrow", - "endBinding": { - "elementId": "id299", - "focus": -0, - "gap": 1, - }, + "endBinding": null, "fillStyle": "solid", "frameId": null, "groupIds": [], @@ -18081,11 +17535,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "type": 2, }, "startArrowhead": null, - "startBinding": { - "elementId": "id297", - "focus": 0, - "gap": 1, - }, + "startBinding": null, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -18099,80 +17549,9 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding }, }, }, - "updated": { - "id297": { - "deleted": { - "boundElements": [ - { - "id": "id310", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - "id299": { - "deleted": { - "boundElements": [ - { - "id": "id310", - "type": "arrow", - }, - ], - }, - "inserted": { - "boundElements": [], - }, - }, - }, - }, - "id": "id312", - }, - { - "appState": AppStateDelta { - "delta": Delta { - "deleted": { - "selectedElementIds": { - "id297": true, - }, - "selectedLinearElementId": null, - }, - "inserted": { - "selectedElementIds": { - "id310": true, - }, - "selectedLinearElementId": "id310", - }, - }, - }, - "elements": { - "added": {}, - "removed": {}, "updated": {}, }, - "id": "id315", - }, - { - "appState": AppStateDelta { - "delta": Delta { - "deleted": { - "selectedElementIds": { - "id299": true, - }, - }, - "inserted": { - "selectedElementIds": {}, - }, - }, - }, - "elements": { - "added": {}, - "removed": {}, - "updated": {}, - }, - "id": "id318", + "id": "id291", }, ] `; diff --git a/packages/excalidraw/tests/__snapshots__/move.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/move.test.tsx.snap index 729e53d22..bcc5b5f24 100644 --- a/packages/excalidraw/tests/__snapshots__/move.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/move.test.tsx.snap @@ -134,7 +134,7 @@ exports[`move element > rectangles with binding arrow 5`] = ` "type": "rectangle", "updated": 1, "version": 4, - "versionNonce": 1723083209, + "versionNonce": 1006504105, "width": 100, "x": 0, "y": 0, @@ -173,7 +173,7 @@ exports[`move element > rectangles with binding arrow 6`] = ` "type": "rectangle", "updated": 1, "version": 7, - "versionNonce": 1051383431, + "versionNonce": 927333447, "width": 300, "x": 201, "y": 2, @@ -230,8 +230,8 @@ exports[`move element > rectangles with binding arrow 7`] = ` "strokeWidth": 2, "type": "arrow", "updated": 1, - "version": 11, - "versionNonce": 1996028265, + "version": 9, + "versionNonce": 1163661225, "width": "86.85786", "x": "107.07107", "y": "47.07107",