@ily1437/gui

1.0.3 • Public • Published

version log

how to use

  1. npm install @ily1437/gui

  2. 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]

  1. update input[type=range]: if step not is not defined, it will be calculated auto.

v1.0.2 [2024-5-29]

  1. fix select and input[type=range]
    1. select structure:

      {
          value: Number,  //or String
          options: [
              Number, //fix
              String,
              {   //new support
                  label: String,
                  value: Number,
              }
          ]
      }

v1.0.1 [2024-3-5]

  1. fix listen

v1.0.0 [2024-3-4]

Readme

Keywords

Package Sidebar

Install

npm i @ily1437/gui

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

11.9 kB

Total Files

4

Last publish

Collaborators

  • ily1437