Skip to content

Commit

Permalink
Make visible getter
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Aug 11, 2023
1 parent 78f9a41 commit 11545af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/openbim-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions src/navigation/CubeMap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 11545af

Please sign in to comment.