mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
added parameters to pass DOM element for parenting
This commit is contained in:
parent
c5526d1b98
commit
23357ff180
5
gui.js
5
gui.js
@ -1,4 +1,4 @@
|
||||
var GUI = function() {
|
||||
var GUI = function(parameters) {
|
||||
|
||||
var _this = this;
|
||||
|
||||
@ -34,7 +34,8 @@ var GUI = function() {
|
||||
var resizeTo = 0;
|
||||
var resizeTimeout;
|
||||
|
||||
this.domElement = document.createElement('div');
|
||||
|
||||
parameters.domElement ? this.domElement = parameters.domElement : this.domElement = document.createElement('div');
|
||||
this.domElement.setAttribute('class', 'guidat');
|
||||
this.domElement.style.width = width+'px';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user