Fix: changed typing of the Revit payload to any

pull/8422/head
Aleix Suau 4 years ago
parent 6d14dfc05b
commit 5d5cbd1c21
  1. 8
      frontend/src/app/modules/bim/bcf/bcf-viewer-bridge/revit-bridge.service.ts

@ -19,7 +19,7 @@ declare global {
@Injectable()
export class RevitBridgeService extends ViewerBridgeService {
public shouldShowViewer = false;
private revitMessageReceivedSource = new Subject<{ messageType:string, trackingId:string, messagePayload:string }>();
private revitMessageReceivedSource = new Subject<{ messageType:string, trackingId:string, messagePayload:any }>();
private _trackingIdNumber = 0;
private _ready$ = input<boolean>(false);
@ -65,16 +65,16 @@ export class RevitBridgeService extends ViewerBridgeService {
snapshot_type: 'png',
snapshot_data: viewpointJson.snapshot,
};
return viewpointJson;
})
)
);
}
public showViewpoint(workPackage:WorkPackageResource, index:number) {
this.viewpointsService
.getViewPoint$(workPackage, index)
.subscribe((viewpoint: BcfViewpointInterface) => this.sendMessageToRevit('ShowViewpoint', this.newTrackingId(), JSON.stringify(viewpoint)));
.subscribe((viewpoint:BcfViewpointInterface) => this.sendMessageToRevit('ShowViewpoint', this.newTrackingId(), JSON.stringify(viewpoint)));
}
sendMessageToRevit(messageType:string, trackingId:string, messagePayload?:any) {

Loading…
Cancel
Save