|
@@ -1229,21 +1229,22 @@ export class EditScence extends SGraphScene {
|
|
|
const parserData = new STopologyParser(null);
|
|
|
|
|
|
parserData.parseData(JSON.parse(JSON.stringify(this.copyString)))
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
const graphItemList = [];
|
|
|
+
|
|
|
+ parserData.zoneLegendList.forEach(t => {
|
|
|
+
|
|
|
+ if (this.view) {
|
|
|
+ t.pos.x += 10 / this.view.scale
|
|
|
+ t.pos.y += 10 / this.view.scale
|
|
|
+ }
|
|
|
+ t.moveable = true;
|
|
|
+ this.addItem(t)
|
|
|
+ this.Nodes.push(t);
|
|
|
+ graphItemList.push(t)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
parserData.imageLegendList.forEach(t => {
|
|
|
if (this.view) {
|
|
|
t.pos.x += 10 / this.view.scale
|
|
@@ -1309,25 +1310,25 @@ export class EditScence extends SGraphScene {
|
|
|
try {
|
|
|
console.log(crossPageString);
|
|
|
const pageObj = JSON.parse(crossPageString)
|
|
|
-
|
|
|
const parserData = new STopologyParser(null);
|
|
|
+ const graphItemList = [];
|
|
|
|
|
|
parserData.parseData(JSON.parse(JSON.stringify(pageObj)))
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- const graphItemList = [];
|
|
|
+ parserData.zoneLegendList.forEach(t => {
|
|
|
+
|
|
|
+ if (this.view) {
|
|
|
+ t.pos.x += 10 / this.view.scale
|
|
|
+ t.pos.y += 10 / this.view.scale
|
|
|
+ }
|
|
|
+ t.moveable = true;
|
|
|
+ this.addItem(t)
|
|
|
+ this.Nodes.push(t);
|
|
|
+ graphItemList.push(t)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ })
|
|
|
parserData.imageLegendList.forEach(t => {
|
|
|
if (this.view) {
|
|
|
t.pos.x += 10 / this.view.scale
|