CubicBezier
A control for editing a bezier curve. Ideal for tweaking animation easing values.
Integrates the Cubic Bezier control from Tweakpane-creator Hiroki Kokubun's Essentials plugin.
Svelte Tweakpane UI extends the original implementation to by supporting tuple values in addition to object values.
A utility function Utils.cubicBezierToEaseFunction()
is also provided to easily convert a cubic bezier value to an easing function compatible with Svelte's built-in motion, transition, and animate modules.
Usage outside of a <Pane>
component will implicitly wrap the cubic bezier control in <Pane position="inline">
.
Note that Svelte Tweakpane UI embeds a fork of the plugin with build optimizations and a fix for a performance issue. The fork also changes the package name from @tweakpane/plugin-essentials
to @kitschpatrol/tweakpane-plugin-essentials
for consistency with other plugins.
bindablerequired | |
Description | The cubic bezier value to control. Object value type is a convenience added by Svelte Tweakpane UI, and is not part of the original |
---|---|
Type | CubicBezierValue |
optional | |
Description | Text displayed next to the control. |
---|---|
Type | string |
Default | undefined |
optional | |
Description | Allow users to interactively expand / contract the value picker by clicking its icon. Most useful when |
---|---|
Type | boolean |
Default | true |
bindableoptional | |
Description | Expand or collapse the blade's picker. |
---|---|
Type | boolean |
Default | true |
optional | |
Description | The style of value "picker" to use in the blade. |
---|---|
Type | 'inline' | 'popup' |
Default | 'popup' |
optional | |
Description | Prevent interactivity and gray out the control. |
---|---|
Type | boolean |
Default | false |
optional | |
Description | Custom color scheme. |
---|---|
Type | Theme |
Default | undefined Inherits default Tweakpane theme equivalent to ThemeUtils.presets.standard , or the theme set with setGlobalDefaultTheme() . |
Description | Fires when This event is provided for advanced use cases. It's usually preferred to bind to the The |
---|---|
Extends | ValueChangeEvent |
Type | CubicBezierChangeEvent |