邵佳豪 4 years ago
parent
commit
e207dc96b5
  1. 5
      src/app/working-area/working-area.component.ts

5
src/app/working-area/working-area.component.ts

@ -513,6 +513,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
this.processinghiddenData();
}
this.createFloorShape(this.canvasData.originaleveryStoreyData.data);
console.log(this.canvasData.selectStorey);
this.createNodeShape(this.canvasData.selectPanelPoint.Data);
}
/**
@ -520,7 +521,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
*/
public processinghiddenData() {
for (let key in this.canvasData.originaleveryStoreyData.data){
if (this.canvasData.hiddenBasicInfoFacilities.indexOf(key)) {
if (this.canvasData.hiddenBasicInfoFacilities.indexOf(key)!==-1) {
delete this.canvasData.originaleveryStoreyData.data[key];
}
}
@ -967,7 +968,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
/**
*
*/
public async refreshBackgroundImage(imageUrl:string,imageAngle:number): Promise<void> {
public async refreshBackgroundImage(imageUrl:string = this.canvasData.selectStorey.imageUrl,imageAngle:number = this.canvasData.selectStorey.imageAngle): Promise<void> {
if (!imageUrl) {
this.backgroundImage.visible = false;
} else {

Loading…
Cancel
Save