haojianlong 4 år sedan
förälder
incheckning
f10450fc8c
3 ändrade filer med 48 tillägg och 20 borttagningar
  1. 37 11
      package-lock.json
  2. 3 3
      package.json
  3. 8 6
      src/components/baseEditer.vue

+ 37 - 11
package-lock.json

@@ -1067,17 +1067,17 @@
       "integrity": "sha512-DE0rH2m25O3yCK1b1VXSX3tYUHBBEcQnrkjh72SctsFGK2jdS7XBE4+1x8szajvPIOkH05wMoUC2EsmJsZAhvQ=="
     },
     "@saga-web/big": {
-      "version": "1.0.6",
-      "resolved": "http://192.168.200.80:8081/repository/npm-saga/@saga-web/big/-/big-1.0.6.tgz",
-      "integrity": "sha512-YG3KlxfUGN1oBlbIUzC2WiGMia6lwlc+oOXubeMvUC1t5EUA+XwVGlOj26opoAacmDrEaGVzcaG3gclWY0uDaQ==",
+      "version": "1.0.8",
+      "resolved": "http://192.168.200.80:8081/repository/npm-saga/@saga-web/big/-/big-1.0.8.tgz",
+      "integrity": "sha512-P6i4SlZbDQhj2uq+L0DoqvjGAQXqopGwgmQduUfWo1wH43rdS3uKRgxMGUPJG9uU95mRVEFA4KL3MHzCRTWwww==",
       "requires": {
-        "@saga-web/graphy": "2.1.52"
+        "@saga-web/graphy": "2.1.53"
       }
     },
     "@saga-web/draw": {
-      "version": "2.1.80",
-      "resolved": "http://192.168.200.80:8081/repository/npm-saga/@saga-web/draw/-/draw-2.1.80.tgz",
-      "integrity": "sha512-zKhtKo2MHHf0Bwn1ShSzNV5xb25Ebcs4D3ctMAQlxLhPPQzSkUV7RxiOngcJ1Bb3SDyAC4tDKBaLxLn1rN7vsQ==",
+      "version": "2.1.81",
+      "resolved": "http://192.168.200.80:8081/repository/npm-saga/@saga-web/draw/-/draw-2.1.81.tgz",
+      "integrity": "sha512-fmMHl3lYyGcQFvGlHf/gSYq+hgwuat20Mf3znThG1ABuSM0HserlFmCkjr+mTdYViB6EnzqKspeM0L+90jbH8A==",
       "requires": {
         "@saga-web/base": "^2.1.9"
       }
@@ -1088,14 +1088,40 @@
       "integrity": "sha512-p3QbLTuDkXPSnPQNNp790Of3JbkdshOfEyguW3xj7Y+zzY9BgryR1elwY1zPU0JdayPCPcUvi9bvhRvsmrfd/A==",
       "requires": {
         "@saga-web/big": "1.0.6"
+      },
+      "dependencies": {
+        "@saga-web/big": {
+          "version": "1.0.6",
+          "resolved": "http://192.168.200.80:8081/repository/npm-saga/@saga-web/big/-/big-1.0.6.tgz",
+          "integrity": "sha512-YG3KlxfUGN1oBlbIUzC2WiGMia6lwlc+oOXubeMvUC1t5EUA+XwVGlOj26opoAacmDrEaGVzcaG3gclWY0uDaQ==",
+          "requires": {
+            "@saga-web/graphy": "2.1.52"
+          }
+        },
+        "@saga-web/draw": {
+          "version": "2.1.80",
+          "resolved": "http://192.168.200.80:8081/repository/npm-saga/@saga-web/draw/-/draw-2.1.80.tgz",
+          "integrity": "sha512-sbVSq8xNuL60Yj0OJAEF96LkhDrQE5lClOiU6n7XAgyreUW03E1YdmM35a8J3rIJ4yOWh+5WK8Tnoc1NpaI4hw==",
+          "requires": {
+            "@saga-web/base": "^2.1.9"
+          }
+        },
+        "@saga-web/graphy": {
+          "version": "2.1.52",
+          "resolved": "http://192.168.200.80:8081/repository/npm-saga/@saga-web/graphy/-/graphy-2.1.52.tgz",
+          "integrity": "sha512-65lxavb4btJluSFnZ4KCqOZcsH2ksXfHy6XMWNZzTqxqgjP15ZJvT4uLxBdP+2G8SkStVRNkXIAstnroo9XLjA==",
+          "requires": {
+            "@saga-web/draw": "2.1.80"
+          }
+        }
       }
     },
     "@saga-web/graphy": {
-      "version": "2.1.52",
-      "resolved": "http://192.168.200.80:8081/repository/npm-saga/@saga-web/graphy/-/graphy-2.1.52.tgz",
-      "integrity": "sha512-65lxavb4btJluSFnZ4KCqOZcsH2ksXfHy6XMWNZzTqxqgjP15ZJvT4uLxBdP+2G8SkStVRNkXIAstnroo9XLjA==",
+      "version": "2.1.53",
+      "resolved": "http://192.168.200.80:8081/repository/npm-saga/@saga-web/graphy/-/graphy-2.1.53.tgz",
+      "integrity": "sha512-nvYDt98iNcBNvUWFQhv8woF8G9y1HOPHjg3ZcI5AX7Pg47DvRVvA3/GS3YPYRbcw8LMNmJU8dbRUHMYp8kP+vA==",
       "requires": {
-        "@saga-web/draw": "2.1.80"
+        "@saga-web/draw": "2.1.81"
       }
     },
     "@soda/friendly-errors-webpack-plugin": {

+ 3 - 3
package.json

@@ -9,9 +9,9 @@
   },
   "dependencies": {
     "@saga-web/base": "2.1.9",
-    "@saga-web/big": "1.0.6",
-    "@saga-web/draw": "2.1.80",
-    "@saga-web/graphy": "2.1.52",
+    "@saga-web/big": "1.0.8",
+    "@saga-web/draw": "2.1.81",
+    "@saga-web/graphy": "2.1.53",
     "@saga-web/feng-map": "1.0.4",
     "ant-design-vue": "^1.6.0",
     "core-js": "^3.6.4",

+ 8 - 6
src/components/baseEditer.vue

@@ -8,7 +8,7 @@
 </template>
 <script>
 import { SFengParser } from "@saga-web/feng-map";
-import { SFloorParser, SImageItem } from "@saga-web/big";
+import { SFloorParser, SImageItem,STextItem } from "@saga-web/big";
 import { SGraphyView, SGraphyScene } from "@saga-web/graphy/lib";
 import { FloorView } from "@/lib/FloorView"
 export default {
@@ -66,12 +66,14 @@ export default {
       document.getElementById('canvas').focus()
     },
     spaceClick(space, event) {
-      const item = new SImageItem(null, {
-        Width: 32,
-        Height: 32,
-        Url: "https://dss2.bdstatic.com/6Ot1bjeh1BF3odCf/it/u=1569891320,3644984535&fm=85&app=52&f=JPEG?w=121&h=75&s=891B0FD8964406EF8091EA200300E056"
-      })
+      // const item = new SImageItem(null, {
+      //   Width: 32,
+      //   Height: 32,
+      //   Url: "https://dss2.bdstatic.com/6Ot1bjeh1BF3odCf/it/u=1569891320,3644984535&fm=85&app=52&f=JPEG?w=121&h=75&s=891B0FD8964406EF8091EA200300E056"
+      // })
+      const item = new STextItem(null);
       item.moveTo(event[0].x, event[0].y)
+      item.font.size = 12;
       item.zOrder = 999;
       item.connect('mousedown', this, this.iconClick)
       this.scene.addItem(item)