Ver código fonte

注释修改设备字体属性,动态计算文本位置算法

zhangyu 4 anos atrás
pai
commit
cbfa333191
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      persagy-web-edit/src/items/SBaseIconTextEdit.ts

+ 1 - 1
persagy-web-edit/src/items/SBaseIconTextEdit.ts

@@ -251,7 +251,7 @@ export class SBaseIconTextEdit extends SGraphEdit {
         this._font = v;
         this.textItemList.forEach((item: SBaseTextEdit, index: number) => {
             item.font = v;
-            item.moveTo(this.img.width * 0.5, v.size * (index - 0.125 - 0.5 * this.textItemList.length));
+            // item.moveTo(this.img.width * 0.5, v.size * (index - 0.125 - 0.5 * this.textItemList.length));
         })
         this.update();
     } // Set font