|
@@ -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;
|