Skip to content

Commit

Permalink
Added hide/show functions to GUI instances to complement open/close
Browse files Browse the repository at this point in the history
  • Loading branch information
David Wakelin authored and donmccurdy committed Mar 30, 2019
1 parent 8cd1b4d commit d979883
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/dat/gui/GUI.js
Expand Up @@ -684,6 +684,20 @@ common.extend(
this.closed = true;
},

/**
* Hides the GUI.
*/
hide: function() {
this.domElement.style.display = 'none';
},

/**
* Shows the GUI.
*/
show: function() {
this.domElement.style.display = '';
},


onResize: function() {
// we debounce this function to prevent performance issues when rotating on tablet/mobile
Expand Down

0 comments on commit d979883

Please sign in to comment.