|
@@ -901,6 +901,7 @@ export class EditScence extends SGraphScene {
|
|
|
this.grabItem.redo()
|
|
|
} else {
|
|
|
this.undoStack.redo();
|
|
|
+ this.scenceUpdate(this);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -913,6 +914,7 @@ export class EditScence extends SGraphScene {
|
|
|
this.grabItem.undo()
|
|
|
} else {
|
|
|
this.undoStack.undo();
|
|
|
+ this.scenceUpdate(this);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
@@ -1145,6 +1147,7 @@ export class EditScence extends SGraphScene {
|
|
|
// // 加到node
|
|
|
// // 加命令
|
|
|
// })
|
|
|
+ const graphItemList = [];
|
|
|
parserData.imageLegendList.forEach(t => {
|
|
|
if (this.view) {
|
|
|
t.pos.x += 10 / this.view.scale
|
|
@@ -1152,6 +1155,7 @@ export class EditScence extends SGraphScene {
|
|
|
}
|
|
|
this.addItem(t)
|
|
|
this.Nodes.push(t);
|
|
|
+ graphItemList.push(t)
|
|
|
})
|
|
|
parserData.imageMarkerList.forEach(t => {
|
|
|
if (this.view) {
|
|
@@ -1160,6 +1164,7 @@ export class EditScence extends SGraphScene {
|
|
|
}
|
|
|
this.addItem(t)
|
|
|
this.Markers.push(t);
|
|
|
+ graphItemList.push(t)
|
|
|
})
|
|
|
parserData.lineMarkerList.forEach(t => {
|
|
|
if (this.view) {
|
|
@@ -1168,6 +1173,7 @@ export class EditScence extends SGraphScene {
|
|
|
}
|
|
|
this.addItem(t)
|
|
|
this.Markers.push(t);
|
|
|
+ graphItemList.push(t)
|
|
|
})
|
|
|
parserData.textMarkerList.forEach(t => {
|
|
|
if (this.view) {
|
|
@@ -1176,6 +1182,7 @@ export class EditScence extends SGraphScene {
|
|
|
}
|
|
|
this.addItem(t)
|
|
|
this.Markers.push(t);
|
|
|
+ graphItemList.push(t)
|
|
|
})
|
|
|
parserData.relationList.forEach(t => {
|
|
|
if (this.view) {
|
|
@@ -1185,8 +1192,12 @@ export class EditScence extends SGraphScene {
|
|
|
}
|
|
|
this.addItem(t)
|
|
|
this.Relations.push(t);
|
|
|
+ graphItemList.push(t)
|
|
|
})
|
|
|
this.scenceUpdate(this);
|
|
|
+ if (graphItemList.length) {
|
|
|
+ this.AddListCommand(graphItemList)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/** 类型转换 */
|