From 11545af58e0af95d4d8a7b6a4929abc20b8172e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Gonz=C3=A1lez=20Viegas?= Date: Fri, 11 Aug 2023 10:50:58 +0200 Subject: [PATCH] Make visible getter --- resources/openbim-components.js | 3 +++ src/navigation/CubeMap/index.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/resources/openbim-components.js b/resources/openbim-components.js index 4914906eb..4d6d2c90a 100644 --- a/resources/openbim-components.js +++ b/resources/openbim-components.js @@ -102411,6 +102411,9 @@ class ViewpointsManager extends Component { } class CubeMap extends Component { + get visible() { + return this._visible; + } set visible(value) { this._visible = value; if (this._visible) { diff --git a/src/navigation/CubeMap/index.ts b/src/navigation/CubeMap/index.ts index b062aae20..a53e4063c 100644 --- a/src/navigation/CubeMap/index.ts +++ b/src/navigation/CubeMap/index.ts @@ -48,6 +48,10 @@ export class CubeMap back: new THREE.Vector3(0, 0, -1), }; + get visible() { + return this._visible; + } + set visible(value: boolean) { this._visible = value; if (this._visible) {