ソースを参照

graph:fix:文本itembug修改

haojianlong 4 年 前
コミット
8e382fb3dc
1 ファイル変更1 行追加1 行削除
  1. 1 1
      persagy-web-graph/src/items/STextItem.ts

+ 1 - 1
persagy-web-graph/src/items/STextItem.ts

@@ -136,7 +136,7 @@ export class STextItem extends SObjectItem {
      */
     constructor(parent: SGraphItem | null, str: string = "") {
         super(parent);
-        this._text = str;
+        this.text = str;
         this._font = new SFont("sans-serif", 12);
         this.height = 12;
     }