Sfoglia il codice sorgente

更新图标展示

haojianlong 4 anni fa
parent
commit
0e799e9cc1
2 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 2 2
      package.json
  2. 4 0
      src/lib/items/SImageLegendItem.ts

+ 2 - 2
package.json

@@ -12,10 +12,10 @@
     "dependencies": {
         "@mapbox/geojson-merge": "^1.1.1",
         "@saga-web/base": "2.1.25",
-        "@saga-web/big": "1.0.102",
+        "@saga-web/big": "1.0.104",
         "@saga-web/draw": "2.1.106",
         "@saga-web/feng-map": "1.0.35",
-        "@saga-web/graph": "2.1.119",
+        "@saga-web/graph": "2.1.121",
         "ant-design-vue": "^1.4.10",
         "axios": "^0.19.2",
         "core-js": "^3.4.4",

+ 4 - 0
src/lib/items/SImageLegendItem.ts

@@ -95,6 +95,9 @@ export class SImageLegendItem extends SIconTextItem {
         if (data.Properties.ImgPos) {
             this.img.moveTo(data.Properties.ImgPos.X, data.Properties.ImgPos.Y);
         }
+        if (data.Properties && data.Properties.ImgRotate) {
+            this.img.rotate = data.Properties.ImgRotate;
+        }
         if (data.Properties && data.Properties.font) {
             this.font = new SFont("sans-serif", data.Properties.font);
         }
@@ -138,6 +141,7 @@ export class SImageLegendItem extends SIconTextItem {
         this.data.Properties.Url = this.img.url;
         this.data.Properties.TextPos = { X: this.textItem.x, Y: this.textItem.y };
         this.data.Properties.ImgPos = { X: this.img.x, Y: this.img.y };
+        this.data.Properties.ImgRotate = this.img.rotate;
         this.data.Properties.Size = {
             Width: this.sWidth,
             Height: this.sHeight