|
@@ -1212,6 +1212,7 @@ export class EditScence extends SGraphScene {
|
|
|
const input = document.createElement('input');
|
|
|
input.setAttribute('id', 'COPYINPUT')
|
|
|
input.value = JSON.stringify(this.copyString)
|
|
|
+ sessionStorage.setItem("copyString", input.value);
|
|
|
document.body.appendChild(input);
|
|
|
input.select()
|
|
|
document.execCommand('copy');
|
|
@@ -1240,6 +1241,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Nodes.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
// }
|
|
|
// 加到node
|
|
@@ -1253,6 +1255,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Nodes.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
parserData.imageMarkerList.forEach(t => {
|
|
@@ -1263,6 +1266,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Markers.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
parserData.lineMarkerList.forEach(t => {
|
|
@@ -1273,6 +1277,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Markers.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
parserData.textMarkerList.forEach(t => {
|
|
@@ -1283,6 +1288,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Markers.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
parserData.relationList.forEach(t => {
|
|
@@ -1294,6 +1300,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Relations.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
this.scenceUpdate(this);
|
|
@@ -1324,6 +1331,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Nodes.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
// }
|
|
|
// 加到node
|
|
@@ -1337,6 +1345,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Nodes.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
parserData.imageMarkerList.forEach(t => {
|
|
@@ -1347,6 +1356,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Markers.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
parserData.lineMarkerList.forEach(t => {
|
|
@@ -1357,6 +1367,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Markers.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
parserData.textMarkerList.forEach(t => {
|
|
@@ -1367,6 +1378,7 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Markers.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
parserData.relationList.forEach(t => {
|
|
@@ -1378,11 +1390,12 @@ export class EditScence extends SGraphScene {
|
|
|
t.moveable = true;
|
|
|
this.addItem(t)
|
|
|
this.Relations.push(t);
|
|
|
+ this.selectContainer.toggleItem(t);
|
|
|
graphItemList.push(t)
|
|
|
})
|
|
|
this.scenceUpdate(this);
|
|
|
if (graphItemList.length) {
|
|
|
- this.AddListCommand(graphItemList)
|
|
|
+ this.AddListCommand(graphItemList);
|
|
|
}
|
|
|
} catch (e) {
|
|
|
console.log(e);
|