Browse Source

更新包

haojianlong 4 years ago
parent
commit
1da8253f43
2 changed files with 13 additions and 7 deletions
  1. 12 6
      docs/.vuepress/components/example/web/graph/scene/SImgTextItem.vue
  2. 1 1
      package.json

+ 12 - 6
docs/.vuepress/components/example/web/graph/scene/SImgTextItem.vue

@@ -7,9 +7,9 @@
 </template>
 
 <script lang="ts">
-    import {SGraphItem, SGraphScene, SGraphView} from "@saga-web/graph/lib";
-    import {SAnchorItem, SImageItem, SItemStatus, SObjectItem, STextItem} from "@saga-web/big/lib";
-    import {SColor, SPainter, SRect, SSize, STextBaseLine} from "@saga-web/draw/lib";
+    import {SGraphItem, SGraphScene, SGraphView, SObjectItem, STextItem, SImageItem, SAnchorItem} from "@saga-web/graph/lib";
+    import { SItemStatus }from "@saga-web/big/lib";
+    import {SColor, SPainter, SRect, SSize} from "@saga-web/draw/lib";
     import {SMouseEvent} from "@saga-web/base/lib";
 
     /**
@@ -192,26 +192,32 @@
         },
         mounted() {
             console.log(22222222222222222)
+            // @ts-ignore
             this.view = new SGraphView("editPolygon");
+            // @ts-ignore
             this.scene = new SGraphScene();
+            // @ts-ignore
             this.view.scene = this.scene;
+            // @ts-ignore
             this.init()
         },
         methods:{
             init(){
+                // @ts-ignore
                 this.item = new SImgTextItem(null);
+                // @ts-ignore
                 this.item.moveable = true;
 
+                // @ts-ignore
                 this.scene.addItem(this.item);
                 // this.view.fitSceneToView();
             },
-            change() {
-
-            },
             changemaodian(){
+                // @ts-ignore
                 this.item.showAnchor = !this.item.showAnchor;
             },
             changetext(){
+                // @ts-ignore
                 this.item.showText = !this.item.showText;
             }
         }

+ 1 - 1
package.json

@@ -13,7 +13,7 @@
   },
   "dependencies": {
     "@saga-web/base": "2.1.16",
-    "@saga-web/big": "1.0.34",
+    "@saga-web/big": "1.0.35",
     "@saga-web/draw": "2.1.90",
     "@saga-web/graph": "2.1.78",
     "@saga-web/feng-map": "1.0.6",