fix: duplicating/removing frame while children selected (#9079)

This commit is contained in:
David Luzar 2025-02-04 19:23:47 +01:00 committed by GitHub
parent 302664e500
commit 424e94a403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 3160 additions and 2065 deletions

View file

@ -2517,7 +2517,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"scrolledOutside": false,
"searchMatches": [],
"selectedElementIds": {
"id0_copy": true,
"id1": true,
},
"selectedElementsAreBeingDragged": false,
"selectedGroupIds": {},
@ -2590,7 +2590,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates
"frameId": null,
"groupIds": [],
"height": 20,
"id": "id0_copy",
"id": "id1",
"index": "a1",
"isDeleted": false,
"link": null,
@ -2680,7 +2680,7 @@ History {
"delta": Delta {
"deleted": {
"selectedElementIds": {
"id0_copy": true,
"id1": true,
},
},
"inserted": {
@ -2693,7 +2693,7 @@ History {
"elementsChange": ElementsChange {
"added": Map {},
"removed": Map {
"id0_copy" => Delta {
"id1" => Delta {
"deleted": {
"angle": 0,
"backgroundColor": "transparent",

File diff suppressed because it is too large Load diff

View file

@ -10,7 +10,7 @@ exports[`duplicate element on move when ALT is clicked > rectangle 5`] = `
"frameId": null,
"groupIds": [],
"height": 50,
"id": "id0_copy",
"id": "id2",
"index": "a0",
"isDeleted": false,
"link": null,

View file

@ -2129,7 +2129,7 @@ History {
"elementsChange": ElementsChange {
"added": Map {},
"removed": Map {
"id0_copy" => Delta {
"id2" => Delta {
"deleted": {
"angle": 0,
"backgroundColor": "transparent",
@ -10619,7 +10619,7 @@ History {
"elementsChange": ElementsChange {
"added": Map {},
"removed": Map {
"id0_copy" => Delta {
"id6" => Delta {
"deleted": {
"angle": 0,
"backgroundColor": "transparent",
@ -10628,7 +10628,7 @@ History {
"fillStyle": "solid",
"frameId": null,
"groupIds": [
"id4_copy",
"id7",
],
"height": 10,
"index": "a0",
@ -10652,7 +10652,7 @@ History {
"isDeleted": true,
},
},
"id1_copy" => Delta {
"id8" => Delta {
"deleted": {
"angle": 0,
"backgroundColor": "transparent",
@ -10661,7 +10661,7 @@ History {
"fillStyle": "solid",
"frameId": null,
"groupIds": [
"id4_copy",
"id7",
],
"height": 10,
"index": "a1",
@ -10685,7 +10685,7 @@ History {
"isDeleted": true,
},
},
"id2_copy" => Delta {
"id9" => Delta {
"deleted": {
"angle": 0,
"backgroundColor": "transparent",
@ -10694,7 +10694,7 @@ History {
"fillStyle": "solid",
"frameId": null,
"groupIds": [
"id4_copy",
"id7",
],
"height": 10,
"index": "a2",