YaolongHan vor 6 Jahren
Ursprung
Commit
962741282f

+ 7 - 6
src/assets/graphy/SGraphy/mainScene.ts

@@ -63,6 +63,7 @@ export default class mainScene extends SGraphyScene {
         this.addAllItemList(data);
     }
 
+
     // 以下是绘制方法
 
     /** 
@@ -133,22 +134,22 @@ export default class mainScene extends SGraphyScene {
         });
     }
     // 按下
-    mouseDown(_this: any, fn: any){
+    mouseDown(_this: any, fn: any) {
         this.root.children.forEach(item => {
             item.connect("mouseDown", _this, fn);
         });
-    } 
+    }
     //移动
-    mouseMove(_this: any, fn: any){
+    mouseMove(_this: any, fn: any) {
         this.root.children.forEach(item => {
             item.connect("mouseMove", _this, fn);
         });
-    } 
+    }
     // 点解结束
-    mouseUp(_this: any, fn: any){
+    mouseUp(_this: any, fn: any) {
         this.root.children.forEach(item => {
             item.connect("mouseUp", _this, fn);
         });
-    } 
+    }
 
 } 

+ 0 - 2
src/components/business_space/graphy/business.vue

@@ -455,7 +455,6 @@
                         // console.log("获取到了数据")
                         let _this = this
                         reader.onload = function(readerEvt) {
-                            // console.log("reader获取完毕")
                             var binaryString = readerEvt.target.result;
                             // let base64Data = btoa(binaryString)
                             //解压数据
@@ -579,7 +578,6 @@
             initGraphy(data) {
                 this.resetSize();
                 this.$nextTick(()=>{
-                    console.log('initGraphy',data)
                     this.mainScene = new mainScene(data);
                     this.view.scene = this.mainScene;
                     this.view.fitSceneToView();