|
@@ -372,10 +372,15 @@ export class SBaseTextEdit extends SGraphEdit {
|
|
* @return 对象储存的相关数据
|
|
* @return 对象储存的相关数据
|
|
*/
|
|
*/
|
|
toData(): any {
|
|
toData(): any {
|
|
- if(!this.data) return;
|
|
|
|
|
|
+ if (!this.data) return;
|
|
if (this.data.size) {
|
|
if (this.data.size) {
|
|
this.data.size.width = this.width;
|
|
this.data.size.width = this.width;
|
|
this.data.size.height = this.height;
|
|
this.data.size.height = this.height;
|
|
|
|
+ } else {
|
|
|
|
+ this.data.size = {
|
|
|
|
+ width: this.width,
|
|
|
|
+ height: this.height
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
this.data.pos.x = this.pos.x;
|
|
this.data.pos.x = this.pos.x;
|