Browse Source

'设备样式修改'

zhangyu 4 years ago
parent
commit
9ce8e3aae4
3 changed files with 5 additions and 6236 deletions
  1. 2 0
      src/components/editview/basePlanEditer.vue
  2. 0 6236
      src/data/equipData.json
  3. 3 0
      src/lib/item/SPlanEquipment.ts

+ 2 - 0
src/components/editview/basePlanEditer.vue

@@ -488,6 +488,8 @@ export default {
                     this.ADDEQUIP(equipItem);
                 }
             });
+            console.log(this.scene)
+            this.view.fitSceneToView();
         },
 
         // 生成快照并保存草稿

File diff suppressed because it is too large
+ 0 - 6236
src/data/equipData.json


+ 3 - 0
src/lib/item/SPlanEquipment.ts

@@ -26,6 +26,7 @@
 
 import { SGraphItem, SAnchorItem } from "@persagy-web/graph/lib";
 import { Legend } from "@persagy-web/big-edit";
+import { ItemOrder } from "@persagy-web/big";
 import { SBaseIconTextEdit, SBaseTextEdit } from "@persagy-web/edit";
 import { svgTobase64, uuid } from "@persagy-web/big-edit/lib/until";
 /**
@@ -78,6 +79,8 @@ export class SPlanEquipment extends SBaseIconTextEdit {
      */
     constructor(parent: SGraphItem | null, data: Legend) {
         super(parent);
+        this.zOrder =  9800;
+        this.isTransform = false;
         const textItem = new SBaseTextEdit(this, null);
         textItem.text = "";
         textItem.font.size = 12;