|
@@ -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]) {
|