Browse Source

文本颜色修改

zhangyu 4 years ago
parent
commit
fcab4119b0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      persagy-web-edit/src/items/SBaseTextEdit.ts

+ 3 - 3
persagy-web-edit/src/items/SBaseTextEdit.ts

@@ -232,8 +232,8 @@ export class SBaseTextEdit extends SGraphEdit {
                 this.text = data.style.default.text;
             }
             // 文本颜色
-            if (data.style.default.strokeColor) {
-                this.strokeColor = new SColor(data.style.default.strokeColor);
+            if (data.style.default.color) {
+                this.color = new SColor(data.style.default.color);
             }
             // 字体大小
             if (data.style.default.font) {
@@ -387,7 +387,7 @@ export class SBaseTextEdit extends SGraphEdit {
         this.data.pos.y = this.pos.y;
         this.data.style.default.zorder = this.zOrder;
         this.data.style.default.text = this.text;
-        this.data.style.default.strokeColor = this.strokeColor.value;
+        this.data.style.default.color = this.color.value;
         this.data.style.default.font = this.font.size;
         this.data.style.default.backgroundColor = this.backgroundColor.value;
         return this.data;