0.5.4 • Published 10 months ago

tweakpane-json-plugin v0.5.4

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
10 months ago

Tweakpane JSON extention

Plugin template of an input binding for Tweakpane.

Usage

Browser

<script type="module">
  import {Pane} as Tweakpane from 'tweakpane';
  import * as JsonPlugin from 'tweakpane-json-plugin';

  const pane = new Pane();
  pane.registerPlugin(JsonPlugin);
</script>

Package

import {Pane} from 'tweakpane';
import * as JsonPlugin from 'tweakpane-json-plugin';

const pane = new Pane();
pane.registerPlugin(JsonPlugin);

Usage

const params = {
  prop: {
    a: 1,
    b: false, 
    c: ["hello", "world!"]
  }
};

// TODO: Update parameters for your plugin
pane.addBinding(params, 'prop', {
  view: 'json',
}).on('change', (ev) => {
  console.log(ev.value);
});
0.5.4

10 months ago

0.5.3

10 months ago

0.5.2

10 months ago

0.5.1

10 months ago

0.5.0

10 months ago

0.0.0

10 months ago