Plugin template of an input binding for Tweakpane.
TODO: Delete this section before publishing your plugin.
- Install dependencies:
% npm install - Build source codes and watch changes:
% npm start - Open 
test/browser.htmlto see the result. 
|- src
|  |- sass ............ Plugin CSS
|  |- index.ts ........ Entrypoint
|  |- plugin.ts ....... Plugin
|  |- controller.ts ... Controller for the custom view
|  `- view.ts ......... Custom view
|- dist ............... Compiled files
`- test
   `- browser.html .... Plugin labo
| Tweakpane | plugin-template | 
|---|---|
| 4.x | main | 
| 3.x | v3 | 
<script type="module">
  import {Pane} as Tweakpane from './tweakpane.min.js';
  import * as TweakpaneTemplatePlugin from './tweakpane-plugin-template.min.js';
  const pane = new Pane();
  pane.registerPlugin(TweakpaneTemplatePlugin);
</script>import {Pane} from 'tweakpane';
import * as TemplatePlugin from 'tweakpane-plugin-template';
const pane = new Pane();
pane.registerPlugin(TemplatePlugin);const params = {
  prop: 3,
};
// TODO: Update parameters for your plugin
pane.addInput(params, 'prop', {
  view: 'dots',
}).on('change', (ev) => {
  console.log(ev.value);
});