Skip to content

2.0.0

Compare
Choose a tag to compare
@cocopon cocopon released this 27 Feb 06:22
· 947 commits to main since this release

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);
    });