From f2c800e1474303cdb8e3610b67b7131a8f3415d7 Mon Sep 17 00:00:00 2001 From: Eric Schubert Date: Fri, 12 Apr 2024 13:53:00 +0200 Subject: [PATCH] [#53069] added measurement tool toggle - still set to true, as there is a bug crashing the viewer on false --- .../features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts | 1 + .../app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts index 751d768084ed..0f2d2a2532e8 100644 --- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts +++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts @@ -125,6 +125,7 @@ export class IFCViewerComponent implements OnInit, OnDestroy, AfterViewInit { busyModelBackdropElement: this.viewerContainer.nativeElement as HTMLElement, keyboardEventsElement: this.modelCanvas.nativeElement as HTMLElement, enableEditModels: manageIfcModelsAllowed, + enableMeasurements: true, // TODO: should be false }, this.ifcData.projects, ); diff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts index 7b369d1f0701..fdc0f0348f87 100644 --- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts +++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts @@ -52,6 +52,7 @@ export interface XeokitElements { busyModelBackdropElement:HTMLElement; enableEditModels?:boolean; keyboardEventsElement?:HTMLElement; + enableMeasurements?:boolean; } /**