mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
23 lines
265 B
JavaScript
23 lines
265 B
JavaScript
/* globals Gui, Polymer */
|
|
|
|
|
|
Gui.register( 'dat-gui-boolean', function( value ) {
|
|
|
|
return typeof value == 'boolean';
|
|
|
|
} );
|
|
|
|
Polymer( 'dat-gui-boolean', {
|
|
|
|
ready: function() {
|
|
|
|
},
|
|
|
|
toggle: function() {
|
|
|
|
this.value = !this.value;
|
|
|
|
}
|
|
|
|
} );
|