dat.gui/elements/shim.js

37 lines
624 B
JavaScript
Raw Normal View History

2014-09-08 22:01:19 +00:00
// Use gui.shim.js in production when you want to use dat.gui to recall values without any of the interface.
( function( scope ) {
var Gui = function() {
this.defined = {};
};
Gui.ready = function( fnc ) {
fnc();
};
Gui.prototype.define = function( name, value ) {
this.defined[ name ] = value;
return controllerShim;
};
Gui.prototype.add = function( object, path ) {
return controllerShim;
};
var identity = function() { return this; };
var controllerShim = {
on: identity
};
scope.Gui = Gui;
} )( this );