haojianlong 4 lat temu
rodzic
commit
c6f0cb8303
2 zmienionych plików z 11 dodań i 9 usunięć
  1. 5 5
      package.json
  2. 6 4
      src/components/baseEditer.vue

+ 5 - 5
package.json

@@ -8,11 +8,11 @@
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
-    "@saga-web/base": "2.1.22",
-    "@saga-web/big": "1.0.86",
-    "@saga-web/draw": "2.1.102",
-    "@saga-web/feng-map": "1.0.25",
-    "@saga-web/graph": "2.1.112",
+    "@saga-web/base": "2.1.24",
+    "@saga-web/big": "1.0.90",
+    "@saga-web/draw": "2.1.104",
+    "@saga-web/feng-map": "1.0.26",
+    "@saga-web/graph": "2.1.115",
     "ant-design-vue": "^1.6.0",
     "core-js": "^3.6.4",
     "element-ui": "^2.13.2",

+ 6 - 4
src/components/baseEditer.vue

@@ -8,7 +8,7 @@
 </template>
 <script>
 import { SFengParser } from "@saga-web/feng-map";
-import { SFloorParser,SItemStatus } from "@saga-web/big";
+import { SFloorParser } from "@saga-web/big";
 import { FloorView } from "./../lib/FloorView";
 import { EditScence } from "./mapClass/EditScence";
 import bus from "@/bus";
@@ -20,8 +20,7 @@ import {
 } from "@/api/editer.js";
 import { STopologyParser } from "./../lib/parsers/STopologyParser";
 import { uuid } from "@/components/mapClass/until";
-import { SImageItem } from "@saga-web/graph/lib";
-import { SPainter, SColor, SFont, SPoint } from "@saga-web/draw";
+import { SImageItem, SImageShowType } from "@saga-web/graph/lib";
 import { SImageLegendItem } from "@/lib/items/SImageLegendItem";
 import store from "../store";
 import { Loading } from "element-ui";
@@ -139,12 +138,15 @@ export default {
             null,
             `${this.mapServerURL}/webtheme/${this.urlMsg.fmapID}/${window.FENGMAP.frImg}`
           );
+          imgItem.showType = SImageShowType.AutoFit;
+          imgItem.connect('imgLoadOver',this,()=> {
+            this.readGraph();
+          })
           this.scene.addItem(imgItem);
           this.view.scene = this.scene;
           // this.view.fitSceneToView();
           // this.loading = false;
           // this.isQuerying = false;
-          this.readGraph();
         }
       } else {
         if (this.floorList[floor]) {