github cocopon/tweakpane 2.0.0

latest releases: 4.0.4, 4.0.3, 4.0.2...
3 years ago

The second major version of Tweakpane! Lots of refactoring, mainly for the plugin system, and some breaking changes.

Summary

  • Plugin system!! ⚙️ (#78)
  • Added more context to event handlers (#110)

Migration from 1.x

  • count option of addMonitor() was removed:
    Use bufferSize instead.
  • The first argument of the event handler was changed:
    // 1.x
    pane.addInput(params, 'key').on('click', (value) => {
      console.log(value);
    });
    
    // 2.0.0
    pane.addInput(params, 'key').on('click', (ev) => {
      console.log(ev.value);
    });

Don't miss a new tweakpane release

NewReleases is sending notifications on new releases.