fix: always re-generate index of defined moved elements (#8040)

This commit is contained in:
Marcel Mraz 2024-05-20 22:23:42 +01:00 committed by GitHub
parent 2f9526da24
commit eddbe55f50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 151 additions and 125 deletions

View file

@ -17320,7 +17320,7 @@ exports[`history > singleplayer undo/redo > should support changes in elements'
"strokeWidth": 2,
"type": "rectangle",
"updated": 1,
"version": 6,
"version": 7,
"width": 10,
"x": 10,
"y": 0,
@ -17352,7 +17352,7 @@ exports[`history > singleplayer undo/redo > should support changes in elements'
"strokeWidth": 2,
"type": "rectangle",
"updated": 1,
"version": 9,
"version": 10,
"width": 10,
"x": 40,
"y": 40,
@ -17604,7 +17604,7 @@ History {
"index": "a2",
},
"inserted": {
"index": "a0",
"index": "Zz",
},
},
"id41" => Delta {
@ -17612,7 +17612,7 @@ History {
"index": "a3",
},
"inserted": {
"index": "a0V",
"index": "a0",
},
},
},

View file

@ -336,7 +336,7 @@ History {
"groupIds": [
"id5",
],
"index": "a1V",
"index": "a2",
},
"inserted": {
"groupIds": [],
@ -348,9 +348,11 @@ History {
"groupIds": [
"id5",
],
"index": "a3",
},
"inserted": {
"groupIds": [],
"index": "a2",
},
},
},
@ -719,7 +721,7 @@ History {
"groupIds": [
"id4",
],
"index": "a1V",
"index": "a2",
},
"inserted": {
"groupIds": [],
@ -731,9 +733,11 @@ History {
"groupIds": [
"id4",
],
"index": "a3",
},
"inserted": {
"groupIds": [],
"index": "a2",
},
},
},
@ -1856,7 +1860,7 @@ History {
"groupIds": [
"id5",
],
"index": "a1V",
"index": "a2",
},
"inserted": {
"groupIds": [],
@ -1868,9 +1872,11 @@ History {
"groupIds": [
"id5",
],
"index": "a3",
},
"inserted": {
"groupIds": [],
"index": "a2",
},
},
},
@ -12810,7 +12816,7 @@ History {
"id5",
"id3",
],
"index": "a1V",
"index": "a2",
},
"inserted": {
"groupIds": [
@ -12825,11 +12831,13 @@ History {
"id5",
"id3",
],
"index": "a3",
},
"inserted": {
"groupIds": [
"id3",
],
"index": "a2",
},
},
},