mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Added hide/show functions to GUI instances to complement open/close
This commit is contained in:
parent
8cd1b4d2ae
commit
d979883423
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user