mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
21 lines
259 B
JavaScript
21 lines
259 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;
|
|
|
|
}
|
|
|
|
} );
|