ソースを参照

'图标item默认图片大小修改'

zhangyu 5 年 前
コミット
0ec52b456c
1 ファイル変更2 行追加2 行削除
  1. 2 2
      saga-web-big/src/items/SIconTextItem.ts

+ 2 - 2
saga-web-big/src/items/SIconTextItem.ts

@@ -138,8 +138,8 @@ export class SIconTextItem extends SObjectItem {
     constructor(parent: SGraphItem | null) {
       super(parent);
       this.img.url = `http://adm.sagacloud.cn:8080/doc/assets/img/logo.png`;
-      this.img.width = 12;
-      this.img.height = 12;
+      this.img.width = 24;
+      this.img.height = 24;
       let anchorPoint = [{ x: 0, y: this.img.height / 2 }, { x: 0, y: -this.img.height / 2 }, { x: -this.img.width / 2, y: 0 }, { x: this.img.width / 2, y: 0 }];
       this.anchorList = anchorPoint.map(t => {
         let item = new SAnchorItem(this);