@ily1437/gui
v1.0.3
Published
build gui
Downloads
8
Readme
version log
how to use
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');
v1.0.3 [2024-6-4]
- update
input[type=range]
: if step not is not defined, it will be calculated auto.
v1.0.2 [2024-5-29]
- fix
select
andinput[type=range]
select structure:
{ value: Number, //or String options: [ Number, //fix String, { //new support label: String, value: Number, } ] }
v1.0.1 [2024-3-5]
- fix listen