From 2ce1364309f5670a3bccca5c3c535b0a9eeaf17d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=8C=AF=E5=8D=87?= <359059686@qq.com> Date: Fri, 26 Nov 2021 16:26:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=AD=A3]=20=E5=BD=93=E5=9B=BE?= =?UTF-8?q?=E4=BE=8B=E7=BC=A9=E6=94=BE=E4=B8=BAundefind=E6=97=B6=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E8=AE=BE=E7=BD=AE=E4=B8=BA1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/working-area/model/axLegend.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/working-area/model/axLegend.ts b/src/app/working-area/model/axLegend.ts index fd47146..51efe69 100644 --- a/src/app/working-area/model/axLegend.ts +++ b/src/app/working-area/model/axLegend.ts @@ -24,10 +24,10 @@ export class AxLegend extends AxShape { super(assetData, workingArea); this.angle = -this.workingArea.backgroundImage.angle; this.name = this.assetData.Id; - this.pivot.set(this.assetData.PivotX, this.assetData.PivotY); + this.pivot.set(this.assetData.PivotX == undefined ? 0 : this.assetData.PivotX, this.assetData.PivotY == undefined ? 0 : this.assetData.PivotY); this.x = this.assetData.Point.x; this.y = this.assetData.Point.y; - this.scale.set(this.assetData.Scale); + this.scale.set(this.assetData.Scale == undefined ? 1 : this.assetData.Scale); this.shapeMap = shapeMap; this.createPoint(); this.refresh();