-
npm install
@ily1437/gui
-
example
import {GUI} from '@ily1437/gui'; const gui = new GUI(); const folder = gui.addFolder(name); folder.open(); const controller = { name: '', age: 3, color: '#000', sing(){} //cool style }; const age = gui.add(controller, 'age', [0, 100, 1]); age.listen(); gui.add(controller, 'name'); const c = gui.addColor(controller, 'color'); c.onChange((v)=>{ console.error(v); }); gui.add(controller, 'sing');
- update
input[type=range]
: if step not is not defined, it will be calculated auto.
- fix
select
andinput[type=range]
-
select structure:
{ value: Number, //or String options: [ Number, //fix String, { //new support label: String, value: Number, } ] }
-
- fix listen