haojianlong 4 лет назад
Родитель
Сommit
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;
     }