Closed cocopon closed 3 years ago
Draft of migration guide:
Tweakpane now uses named exports:
// Browser: // v2 const pane = new Tweakpane(); // v3 const pane = new Tweakpane.Pane();
// import: // v2 import Tweakpane from 'tweakpane'; const pane = new Tweakpane(); // v3 import {Pane} from 'tweakpane'; const pane = new Pane();
Color view for number input:
// v2 pane.addInput(params, 'foobar', {input: 'color.rgba'}); // v3 pane.addInput(params, 'foobar', {view: 'color', alpha: true});
Plain text view for color-like string input:
// v2 pane.addInput(params, 'foobar', {input: 'string'}); // v3 pane.addInput(params, 'foobar', {view: 'text'});
Register a plugin to the pane instance explicitly:
// v2 import 'tweakpane-plugin-foobar'; // v3 import * as FoobarPlugin from 'tweakpane-plugin-foobar'; const pane = new Pane(); pane.registerPlugin(FoobarPlugin);
--tp-folder-background-color
--tp-container-background-color
--tp-folder-background-color-*
--tp-container-background-color-*
--tp-folder-foreground-color
--tp-container-foreground-color
--tp-separator-color
--tp-groove-foreground-color
Tweakpane.version
VERSION
Draft of changelog:
addBlade()
Draft of migration guide:
Named exports
Tweakpane now uses named exports:
Input options
Color view for number input:
Plain text view for color-like string input:
Plugin registration
Register a plugin to the pane instance explicitly:
Theming
--tp-folder-background-color
->--tp-container-background-color
--tp-folder-background-color-*
->--tp-container-background-color-*
--tp-folder-foreground-color
->--tp-container-foreground-color
--tp-separator-color
->--tp-groove-foreground-color
Misc
Tweakpane.version
->VERSION