Browse Source

[修正] 当图例缩放为undefind时默认设置为1

tangshan
徐振升 3 years ago
parent
commit
2ce1364309
  1. 4
      src/app/working-area/model/axLegend.ts

4
src/app/working-area/model/axLegend.ts

@ -24,10 +24,10 @@ export class AxLegend extends AxShape {
super(assetData, workingArea); super(assetData, workingArea);
this.angle = -this.workingArea.backgroundImage.angle; this.angle = -this.workingArea.backgroundImage.angle;
this.name = this.assetData.Id; 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.x = this.assetData.Point.x;
this.y = this.assetData.Point.y; 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.shapeMap = shapeMap;
this.createPoint(); this.createPoint();
this.refresh(); this.refresh();

Loading…
Cancel
Save