Forráskód Böngészése

SBAseEditScence<fix>:注掉设备方法

YaolongHan 4 éve
szülő
commit
e9958d3448
1 módosított fájl, 44 hozzáadás és 44 törlés
  1. 44 44
      persagy-web-big-edit/src/SBaseEditScene.ts

+ 44 - 44
persagy-web-big-edit/src/SBaseEditScene.ts

@@ -169,50 +169,50 @@ export class SBaseEditScene extends SGraphEditScene {
         }
     }
 
-    /**
-     * 添加基本设备 item
-     *
-     * @param event     鼠标事件
-     * @param legendObj 图例样式
-     */
-    addEuqipment(event: SMouseEvent, legendObj: any): void {
-        const data = {
-            nodeId: uuid(),
-            /** 名称 */
-            name: '基础设备',
-            /** 返回物理世界对象 ID 列表 */
-            attachObjectIds: [],
-            size: { width: 50, height: 50 },
-            /** 图标 (Image),线类型 (Line) */
-            type: "Image",
-            /** 位置 */
-            pos: { x: event.x, y: event.y },
-            /** 由应用自己定义 */
-            properties: {
-                type: "BaseEquipment",
-                infoMsgList: [{
-
-                }]
-            },
-            style: {
-                default: {
-                    strokecolor: "#c0ccda",
-                    url: require('./../../../assets/images/equip/' + legendObj.url),
-                }
-            }
-        }
-        const item = new SBaseEquipment(null, data);
-        item.status = SItemStatus.Create;
-        this.addItem(item);
-        item.selectable = true;
-        item.moveable = true;
-        this.grabItem = item;
-        this.finishCreated(item)
-        item.connect("onContextMenu", this, this.getItem);
-        if (this.view) {
-            this.view.update();
-        }
-    }
+    // /**
+    //  * 添加基本设备 item
+    //  *
+    //  * @param event     鼠标事件
+    //  * @param legendObj 图例样式
+    //  */
+    // addEuqipment(event: SMouseEvent, legendObj: any): void {
+    //     const data = {
+    //         nodeId: uuid(),
+    //         /** 名称 */
+    //         name: '基础设备',
+    //         /** 返回物理世界对象 ID 列表 */
+    //         attachObjectIds: [],
+    //         size: { width: 50, height: 50 },
+    //         /** 图标 (Image),线类型 (Line) */
+    //         type: "Image",
+    //         /** 位置 */
+    //         pos: { x: event.x, y: event.y },
+    //         /** 由应用自己定义 */
+    //         properties: {
+    //             type: "BaseEquipment",
+    //             infoMsgList: [{
+
+    //             }]
+    //         },
+    //         style: {
+    //             default: {
+    //                 strokecolor: "#c0ccda",
+    //                 url: require('./../../../assets/images/equip/' + legendObj.url),
+    //             }
+    //         }
+    //     }
+    //     const item = new SBaseEquipment(null, data);
+    //     item.status = SItemStatus.Create;
+    //     this.addItem(item);
+    //     item.selectable = true;
+    //     item.moveable = true;
+    //     this.grabItem = item;
+    //     this.finishCreated(item)
+    //     item.connect("onContextMenu", this, this.getItem);
+    //     if (this.view) {
+    //         this.view.update();
+    //     }
+    // }
 
     /**
      * 新增管道