fix snaps

This commit is contained in:
Aakansha Doshi 2024-02-05 15:13:49 +05:30
parent ad39506585
commit 701e076cc1
3 changed files with 0 additions and 320 deletions

View File

@ -328,7 +328,6 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -459,7 +458,6 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -529,7 +527,6 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -620,7 +617,6 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -631,7 +627,6 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -733,7 +728,6 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -854,7 +848,6 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -865,7 +858,6 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -908,7 +900,6 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -980,7 +971,6 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1111,7 +1101,6 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -1232,7 +1221,6 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -1243,7 +1231,6 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1286,7 +1273,6 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -1358,7 +1344,6 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1489,7 +1474,6 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -1580,7 +1564,6 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -1591,7 +1574,6 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1693,7 +1675,6 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -1780,7 +1761,6 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -1791,7 +1771,6 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -1834,7 +1813,6 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -1934,7 +1912,6 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -2055,7 +2032,6 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -2066,7 +2042,6 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -2109,7 +2084,6 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0_copy": true, "id0_copy": true,
}, },
@ -2240,7 +2214,6 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -2370,7 +2343,6 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -2381,7 +2353,6 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -2424,7 +2395,6 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -2496,7 +2466,6 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
"id1": true, "id1": true,
@ -2634,7 +2603,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -2757,7 +2725,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -2768,7 +2735,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -2811,7 +2777,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -2883,7 +2848,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -2955,7 +2919,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3027,7 +2990,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3099,7 +3061,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3171,7 +3132,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3243,7 +3203,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3315,7 +3274,6 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -3446,7 +3404,6 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -3567,7 +3524,6 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -3578,7 +3534,6 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -3621,7 +3576,6 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3693,7 +3647,6 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -3824,7 +3777,6 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -3945,7 +3897,6 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -3956,7 +3907,6 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -3999,7 +3949,6 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -4071,7 +4020,6 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -4202,7 +4150,6 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -4326,7 +4273,6 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -4337,7 +4283,6 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -4380,7 +4325,6 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -4452,7 +4396,6 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
"id1": true, "id1": true,
@ -4531,7 +4474,6 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
"id1": true, "id1": true,
@ -4936,7 +4878,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -5060,7 +5001,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -5071,7 +5011,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -5114,7 +5053,6 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -5518,7 +5456,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -5648,7 +5585,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -5659,7 +5595,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -5702,7 +5637,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id1": true, "id1": true,
}, },
@ -5774,7 +5708,6 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
"id1": true, "id1": true,
@ -6039,7 +5972,6 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -6097,7 +6029,6 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] his
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -6440,7 +6371,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -6816,7 +6746,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
"isRotating": false, "isRotating": false,
"lastPointerDownWith": "mouse", "lastPointerDownWith": "mouse",
"multiElement": null, "multiElement": null,
"name": "Untitled-201933152653",
"objectsSnapModeEnabled": false, "objectsSnapModeEnabled": false,
"offsetLeft": 20, "offsetLeft": 20,
"offsetTop": 10, "offsetTop": 10,
@ -6972,7 +6901,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] hi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",
@ -6983,7 +6911,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] hi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": { "selectedElementIds": {
"id0": true, "id0": true,
}, },
@ -7035,7 +6962,6 @@ exports[`contextMenu element > shows context menu for element > [end of test] hi
"appState": { "appState": {
"editingGroupId": null, "editingGroupId": null,
"editingLinearElement": null, "editingLinearElement": null,
"name": "Untitled-201933152653",
"selectedElementIds": {}, "selectedElementIds": {},
"selectedGroupIds": {}, "selectedGroupIds": {},
"viewBackgroundColor": "#ffffff", "viewBackgroundColor": "#ffffff",

View File

@ -306,12 +306,10 @@ describe("restoreAppState", () => {
const stubImportedAppState = getDefaultAppState(); const stubImportedAppState = getDefaultAppState();
stubImportedAppState.activeTool.type = "selection"; stubImportedAppState.activeTool.type = "selection";
stubImportedAppState.cursorButton = "down"; stubImportedAppState.cursorButton = "down";
stubImportedAppState.name = "imported app state";
const stubLocalAppState = getDefaultAppState(); const stubLocalAppState = getDefaultAppState();
stubLocalAppState.activeTool.type = "rectangle"; stubLocalAppState.activeTool.type = "rectangle";
stubLocalAppState.cursorButton = "up"; stubLocalAppState.cursorButton = "up";
stubLocalAppState.name = "local app state";
const restoredAppState = restore.restoreAppState( const restoredAppState = restore.restoreAppState(
stubImportedAppState, stubImportedAppState,
@ -321,7 +319,6 @@ describe("restoreAppState", () => {
stubImportedAppState.activeTool, stubImportedAppState.activeTool,
); );
expect(restoredAppState.cursorButton).toBe("up"); expect(restoredAppState.cursorButton).toBe("up");
expect(restoredAppState.name).toBe(stubImportedAppState.name);
}); });
it("should restore with current app state when imported data state is undefined", () => { it("should restore with current app state when imported data state is undefined", () => {
@ -340,30 +337,25 @@ describe("restoreAppState", () => {
stubLocalAppState, stubLocalAppState,
); );
expect(restoredAppState.cursorButton).toBe(stubLocalAppState.cursorButton); expect(restoredAppState.cursorButton).toBe(stubLocalAppState.cursorButton);
expect(restoredAppState.name).toBe(stubLocalAppState.name);
}); });
it("should return imported data when local app state is null", () => { it("should return imported data when local app state is null", () => {
const stubImportedAppState = getDefaultAppState(); const stubImportedAppState = getDefaultAppState();
stubImportedAppState.cursorButton = "down"; stubImportedAppState.cursorButton = "down";
stubImportedAppState.name = "imported app state";
const restoredAppState = restore.restoreAppState( const restoredAppState = restore.restoreAppState(
stubImportedAppState, stubImportedAppState,
null, null,
); );
expect(restoredAppState.cursorButton).toBe("up"); expect(restoredAppState.cursorButton).toBe("up");
expect(restoredAppState.name).toBe(stubImportedAppState.name);
}); });
it("should return local app state when imported data state is null", () => { it("should return local app state when imported data state is null", () => {
const stubLocalAppState = getDefaultAppState(); const stubLocalAppState = getDefaultAppState();
stubLocalAppState.cursorButton = "down"; stubLocalAppState.cursorButton = "down";
stubLocalAppState.name = "local app state";
const restoredAppState = restore.restoreAppState(null, stubLocalAppState); const restoredAppState = restore.restoreAppState(null, stubLocalAppState);
expect(restoredAppState.cursorButton).toBe(stubLocalAppState.cursorButton); expect(restoredAppState.cursorButton).toBe(stubLocalAppState.cursorButton);
expect(restoredAppState.name).toBe(stubLocalAppState.name);
}); });
it("should return default app state when imported data state and local app state are undefined", () => { it("should return default app state when imported data state and local app state are undefined", () => {
@ -492,13 +484,11 @@ describe("restore", () => {
it("when imported data state is null it should return the local app state property", () => { it("when imported data state is null it should return the local app state property", () => {
const stubLocalAppState = getDefaultAppState(); const stubLocalAppState = getDefaultAppState();
stubLocalAppState.cursorButton = "down"; stubLocalAppState.cursorButton = "down";
stubLocalAppState.name = "local app state";
const restoredData = restore.restore(null, stubLocalAppState, null); const restoredData = restore.restore(null, stubLocalAppState, null);
expect(restoredData.appState.cursorButton).toBe( expect(restoredData.appState.cursorButton).toBe(
stubLocalAppState.cursorButton, stubLocalAppState.cursorButton,
); );
expect(restoredData.appState.name).toBe(stubLocalAppState.name);
}); });
it("when imported data state has elements", () => { it("when imported data state has elements", () => {
@ -522,14 +512,12 @@ describe("restore", () => {
it("when local app state is null but imported app state is supplied", () => { it("when local app state is null but imported app state is supplied", () => {
const stubImportedAppState = getDefaultAppState(); const stubImportedAppState = getDefaultAppState();
stubImportedAppState.cursorButton = "down"; stubImportedAppState.cursorButton = "down";
stubImportedAppState.name = "imported app state";
const importedDataState = {} as ImportedDataState; const importedDataState = {} as ImportedDataState;
importedDataState.appState = stubImportedAppState; importedDataState.appState = stubImportedAppState;
const restoredData = restore.restore(importedDataState, null, null); const restoredData = restore.restore(importedDataState, null, null);
expect(restoredData.appState.cursorButton).toBe("up"); expect(restoredData.appState.cursorButton).toBe("up");
expect(restoredData.appState.name).toBe(stubImportedAppState.name);
}); });
it("bump versions of local duplicate elements when supplied", () => { it("bump versions of local duplicate elements when supplied", () => {