瀏覽代碼

'合并代码'

zhangyu 4 年之前
父節點
當前提交
a6132480db
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/lib/items/SImageLegendItem.ts

+ 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