svelte-tweakpane-ui 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/control/Button.svelte +1 -1
- package/dist/control/ButtonGrid.svelte.d.ts +30 -30
- package/dist/control/Checkbox.svelte.d.ts +8 -8
- package/dist/control/Color.svelte.d.ts +96 -96
- package/dist/control/CubicBezier.svelte.d.ts +41 -41
- package/dist/control/Image.svelte.d.ts +30 -30
- package/dist/control/IntervalSlider.svelte.d.ts +105 -95
- package/dist/control/List.svelte.d.ts +20 -20
- package/dist/control/Point.svelte +1 -1
- package/dist/control/Point.svelte.d.ts +115 -114
- package/dist/control/RadioGrid.svelte +1 -1
- package/dist/control/RadioGrid.svelte.d.ts +59 -59
- package/dist/control/Ring.svelte.d.ts +102 -107
- package/dist/control/RotationEuler.svelte +1 -1
- package/dist/control/RotationEuler.svelte.d.ts +106 -106
- package/dist/control/RotationQuaternion.svelte +1 -1
- package/dist/control/RotationQuaternion.svelte.d.ts +104 -104
- package/dist/control/Slider.svelte.d.ts +84 -84
- package/dist/control/Text.svelte.d.ts +24 -24
- package/dist/control/Textarea.svelte +1 -1
- package/dist/control/Textarea.svelte.d.ts +33 -33
- package/dist/control/Wheel.svelte.d.ts +97 -97
- package/dist/core/Binding.svelte +1 -1
- package/dist/core/Blade.svelte +1 -1
- package/dist/core/Pane.svelte.d.ts +295 -275
- package/dist/extra/AutoValue.svelte.d.ts +8 -8
- package/dist/extra/Element.svelte.d.ts +23 -23
- package/dist/internal/ClsPad.svelte +1 -1
- package/dist/internal/GenericBinding.svelte.d.ts +8 -8
- package/dist/internal/GenericBladeFolding.svelte.d.ts +24 -24
- package/dist/internal/GenericInput.svelte.d.ts +8 -8
- package/dist/internal/GenericInputFolding.svelte.d.ts +78 -78
- package/dist/internal/GenericMonitor.svelte.d.ts +76 -76
- package/dist/internal/GenericSlider.svelte.d.ts +76 -76
- package/dist/internal/InternalMonitorBoolean.svelte.d.ts +82 -82
- package/dist/internal/InternalMonitorNumber.svelte.d.ts +101 -101
- package/dist/internal/InternalMonitorString.svelte.d.ts +87 -87
- package/dist/internal/InternalPaneDraggable.svelte.d.ts +76 -76
- package/dist/internal/InternalPaneFixed.svelte.d.ts +26 -26
- package/dist/internal/InternalPaneInline.svelte.d.ts +13 -13
- package/dist/monitor/FpsGraph.svelte.d.ts +90 -90
- package/dist/monitor/Monitor.svelte.d.ts +233 -233
- package/dist/monitor/Profiler.svelte.d.ts +131 -131
- package/dist/monitor/WaveformMonitor.svelte.d.ts +104 -107
- package/dist/theme.d.ts +1 -1
- package/package.json +15 -16
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
{#if parentStore}
|
|
50
50
|
{#if BROWSER}
|
|
51
|
-
<div bind:this={indexElement} style="display: none;"
|
|
51
|
+
<div bind:this={indexElement} style="display: none;"></div>
|
|
52
52
|
{:else}
|
|
53
53
|
<ClsPad keysAdd={['containerUnitSize', 'containerVerticalPadding']} {theme} />
|
|
54
54
|
{/if}
|
|
@@ -10,7 +10,35 @@ export type ButtonGridClickEvent = CustomEvent<{
|
|
|
10
10
|
import type { ButtonGridApi as ButtonGridRef } from '@tweakpane/plugin-essentials';
|
|
11
11
|
import type { ButtonGridBladeParams as ButtonGridOptions } from '@tweakpane/plugin-essentials/dist/types/button-grid/plugin.d.ts';
|
|
12
12
|
declare const __propDef: {
|
|
13
|
-
props:
|
|
13
|
+
props: {
|
|
14
|
+
/**
|
|
15
|
+
* Array of names, each of which will become the title of a button in the grid.
|
|
16
|
+
* */
|
|
17
|
+
buttons: string[];
|
|
18
|
+
/**
|
|
19
|
+
* Number of columns to arrange the buttons into.
|
|
20
|
+
*
|
|
21
|
+
* Setting `columns` without setting `rows` will lock the column count and allow the row
|
|
22
|
+
* count to change dynamically based on the number of buttons.
|
|
23
|
+
* @default `undefined` \
|
|
24
|
+
* Dynamic based on quantity of `buttons`.
|
|
25
|
+
* */
|
|
26
|
+
columns?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Text displayed next to the button grid.
|
|
29
|
+
* @default `undefined`
|
|
30
|
+
*/
|
|
31
|
+
label?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Number of rows to arrange the buttons into.
|
|
34
|
+
*
|
|
35
|
+
* Setting `rows` without setting `columns` will lock the column count and allow the column
|
|
36
|
+
* count to change dynamically based on the number of buttons.
|
|
37
|
+
* @default `undefined` \
|
|
38
|
+
* Dynamic based on quantity of `buttons`.
|
|
39
|
+
* */
|
|
40
|
+
rows?: number | undefined;
|
|
41
|
+
} & Omit<
|
|
14
42
|
{
|
|
15
43
|
/**
|
|
16
44
|
* Blade configuration exposing Tweakpane's internal
|
|
@@ -57,35 +85,7 @@ declare const __propDef: {
|
|
|
57
85
|
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
58
86
|
},
|
|
59
87
|
'ref' | 'options' | 'plugin'
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Array of names, each of which will become the title of a button in the grid.
|
|
63
|
-
* */
|
|
64
|
-
buttons: string[];
|
|
65
|
-
/**
|
|
66
|
-
* Number of columns to arrange the buttons into.
|
|
67
|
-
*
|
|
68
|
-
* Setting `columns` without setting `rows` will lock the column count and allow the row
|
|
69
|
-
* count to change dynamically based on the number of buttons.
|
|
70
|
-
* @default `undefined` \
|
|
71
|
-
* Dynamic based on quantity of `buttons`.
|
|
72
|
-
* */
|
|
73
|
-
columns?: number | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* Text displayed next to the button grid.
|
|
76
|
-
* @default `undefined`
|
|
77
|
-
*/
|
|
78
|
-
label?: string | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* Number of rows to arrange the buttons into.
|
|
81
|
-
*
|
|
82
|
-
* Setting `rows` without setting `columns` will lock the column count and allow the column
|
|
83
|
-
* count to change dynamically based on the number of buttons.
|
|
84
|
-
* @default `undefined` \
|
|
85
|
-
* Dynamic based on quantity of `buttons`.
|
|
86
|
-
* */
|
|
87
|
-
rows?: number | undefined;
|
|
88
|
-
};
|
|
88
|
+
>;
|
|
89
89
|
slots: {};
|
|
90
90
|
events: {
|
|
91
91
|
/**
|
|
@@ -3,7 +3,13 @@ import type { ValueChangeEvent } from '../utils.js';
|
|
|
3
3
|
export type CheckboxChangeEvent = ValueChangeEvent<boolean>;
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: Omit<
|
|
6
|
-
|
|
6
|
+
{
|
|
7
|
+
/**
|
|
8
|
+
* The value to control.
|
|
9
|
+
* @bindable
|
|
10
|
+
*/
|
|
11
|
+
value: boolean;
|
|
12
|
+
} & Omit<
|
|
7
13
|
{
|
|
8
14
|
/**
|
|
9
15
|
* The binding's target object with values to manipulate.
|
|
@@ -71,13 +77,7 @@ declare const __propDef: {
|
|
|
71
77
|
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
72
78
|
},
|
|
73
79
|
'object' | 'key'
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* The value to control.
|
|
77
|
-
* @bindable
|
|
78
|
-
*/
|
|
79
|
-
value: boolean;
|
|
80
|
-
},
|
|
80
|
+
>,
|
|
81
81
|
'ref' | 'options' | 'plugin'
|
|
82
82
|
>;
|
|
83
83
|
slots: {};
|
|
@@ -20,85 +20,22 @@ export type ColorValue = Simplify<
|
|
|
20
20
|
export type ColorChangeEvent = ValueChangeEvent<ColorValue>;
|
|
21
21
|
import type { ColorInputParams as ColorOptions } from 'tweakpane';
|
|
22
22
|
declare const __propDef: {
|
|
23
|
-
props:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
* Text displayed next to control.
|
|
40
|
-
* @default `undefined`
|
|
41
|
-
*/
|
|
42
|
-
label?: string | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Tweakpane's internal options object.
|
|
45
|
-
*
|
|
46
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
47
|
-
*
|
|
48
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
49
|
-
*
|
|
50
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
51
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
52
|
-
* Tweakpane UI_.
|
|
53
|
-
* @default `undefined`
|
|
54
|
-
*/
|
|
55
|
-
options?: ColorOptions | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Custom color scheme.
|
|
58
|
-
*
|
|
59
|
-
* @default `undefined` \
|
|
60
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
61
|
-
* set with `setGlobalDefaultTheme()`.
|
|
62
|
-
*/
|
|
63
|
-
theme?: import('..').Theme | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Reference to internal Tweakpane
|
|
66
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
67
|
-
* this control.
|
|
68
|
-
*
|
|
69
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
70
|
-
* components wrapping `<Binding>`'s functionality.
|
|
71
|
-
*
|
|
72
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
73
|
-
*
|
|
74
|
-
* @bindable
|
|
75
|
-
* @readonly
|
|
76
|
-
*/
|
|
77
|
-
ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
80
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
81
|
-
*
|
|
82
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
83
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
84
|
-
*
|
|
85
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
86
|
-
*
|
|
87
|
-
* @default `undefined`
|
|
88
|
-
*/
|
|
89
|
-
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
90
|
-
},
|
|
91
|
-
'object' | 'key'
|
|
92
|
-
> & {
|
|
93
|
-
/**
|
|
94
|
-
* A color value to control.
|
|
95
|
-
*
|
|
96
|
-
* Use either a color-like string (e.g. #ff00ff), or an object with `r`, `b`, `g`, and
|
|
97
|
-
* optional `a` keys.
|
|
98
|
-
* @bindable
|
|
99
|
-
*/
|
|
100
|
-
value: ColorValue;
|
|
101
|
-
} & {
|
|
23
|
+
props: {
|
|
24
|
+
/**
|
|
25
|
+
* A color value to control.
|
|
26
|
+
*
|
|
27
|
+
* Use either a color-like string (e.g. #ff00ff), or an object with `r`, `b`, `g`, and
|
|
28
|
+
* optional `a` keys.
|
|
29
|
+
* @bindable
|
|
30
|
+
* */
|
|
31
|
+
value: ColorValue;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to treat values as floats from 0.0 to 1.0, or integers from 0 to 255.
|
|
34
|
+
* @default `'int'`
|
|
35
|
+
* */
|
|
36
|
+
type?: 'float' | 'int' | undefined;
|
|
37
|
+
} & Omit<
|
|
38
|
+
{
|
|
102
39
|
/**
|
|
103
40
|
* DOM class name of the button used to expand and collapse the input's picker.
|
|
104
41
|
* @default `undefined`
|
|
@@ -120,23 +57,86 @@ declare const __propDef: {
|
|
|
120
57
|
* @default `true`
|
|
121
58
|
*/
|
|
122
59
|
userExpandable?: boolean | undefined;
|
|
123
|
-
}
|
|
60
|
+
} & {
|
|
61
|
+
/**
|
|
62
|
+
* A color value to control.
|
|
63
|
+
*
|
|
64
|
+
* Use either a color-like string (e.g. #ff00ff), or an object with `r`, `b`, `g`, and
|
|
65
|
+
* optional `a` keys.
|
|
66
|
+
* @bindable
|
|
67
|
+
*/
|
|
68
|
+
value: ColorValue;
|
|
69
|
+
} & Omit<
|
|
70
|
+
{
|
|
71
|
+
/**
|
|
72
|
+
* The binding's target object with values to manipulate.
|
|
73
|
+
* @bindable
|
|
74
|
+
*/
|
|
75
|
+
object: import('@tweakpane/core').Bindable & Record<string, ColorValue>;
|
|
76
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
77
|
+
key: string;
|
|
78
|
+
/**
|
|
79
|
+
* Prevent interactivity and gray out the control.
|
|
80
|
+
* @default `false`
|
|
81
|
+
*/
|
|
82
|
+
disabled?: boolean | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Text displayed next to control.
|
|
85
|
+
* @default `undefined`
|
|
86
|
+
*/
|
|
87
|
+
label?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Tweakpane's internal options object.
|
|
90
|
+
*
|
|
91
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
92
|
+
*
|
|
93
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
94
|
+
*
|
|
95
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
96
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
97
|
+
* Tweakpane UI_.
|
|
98
|
+
* @default `undefined`
|
|
99
|
+
*/
|
|
100
|
+
options?: ColorOptions | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Custom color scheme.
|
|
103
|
+
*
|
|
104
|
+
* @default `undefined` \
|
|
105
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
106
|
+
* set with `setGlobalDefaultTheme()`.
|
|
107
|
+
*/
|
|
108
|
+
theme?: import('..').Theme | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Reference to internal Tweakpane
|
|
111
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
112
|
+
* this control.
|
|
113
|
+
*
|
|
114
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
115
|
+
* components wrapping `<Binding>`'s functionality.
|
|
116
|
+
*
|
|
117
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
118
|
+
*
|
|
119
|
+
* @bindable
|
|
120
|
+
* @readonly
|
|
121
|
+
*/
|
|
122
|
+
ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
125
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
126
|
+
*
|
|
127
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
128
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
129
|
+
*
|
|
130
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
131
|
+
*
|
|
132
|
+
* @default `undefined`
|
|
133
|
+
*/
|
|
134
|
+
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
135
|
+
},
|
|
136
|
+
'object' | 'key'
|
|
137
|
+
>,
|
|
124
138
|
'ref' | 'options' | 'plugin' | 'buttonClass'
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* A color value to control.
|
|
128
|
-
*
|
|
129
|
-
* Use either a color-like string (e.g. #ff00ff), or an object with `r`, `b`, `g`, and
|
|
130
|
-
* optional `a` keys.
|
|
131
|
-
* @bindable
|
|
132
|
-
* */
|
|
133
|
-
value: ColorValue;
|
|
134
|
-
/**
|
|
135
|
-
* Whether to treat values as floats from 0.0 to 1.0, or integers from 0 to 255.
|
|
136
|
-
* @default `'int'`
|
|
137
|
-
* */
|
|
138
|
-
type?: 'float' | 'int' | undefined;
|
|
139
|
-
};
|
|
139
|
+
>;
|
|
140
140
|
slots: {};
|
|
141
141
|
events: {
|
|
142
142
|
/**
|
|
@@ -178,7 +178,7 @@ export type ColorSlots = typeof __propDef.slots;
|
|
|
178
178
|
* <Color bind:value={startColor} label="Start Color" />
|
|
179
179
|
* <Color bind:value={endColor} label="End Color" />
|
|
180
180
|
*
|
|
181
|
-
* <div class="demo" style:--a={startColor} style:--b={endColor}
|
|
181
|
+
* <div class="demo" style:--a={startColor} style:--b={endColor}></div>
|
|
182
182
|
*
|
|
183
183
|
* <style>
|
|
184
184
|
* .demo {
|
|
@@ -13,8 +13,46 @@ export type CubicBezierChangeEvent = ValueChangeEvent<CubicBezierValue>;
|
|
|
13
13
|
import type { CubicBezierApi as CubicBezierRef } from '@tweakpane/plugin-essentials';
|
|
14
14
|
import type { CubicBezierBladeParams as CubicBezierOptions } from '@tweakpane/plugin-essentials/dist/types/cubic-bezier/plugin.d.ts';
|
|
15
15
|
declare const __propDef: {
|
|
16
|
-
props:
|
|
16
|
+
props: {
|
|
17
|
+
/**
|
|
18
|
+
* The cubic bezier value to control.
|
|
19
|
+
*
|
|
20
|
+
* Object value type is a convenience added by _Svelte Tweakpane UI_, and is not part of the
|
|
21
|
+
* original `@tweakpane/plugin-essentials` API.
|
|
22
|
+
* @bindable
|
|
23
|
+
*/
|
|
24
|
+
value: CubicBezierValue;
|
|
25
|
+
/**
|
|
26
|
+
* Text displayed next to the control.
|
|
27
|
+
* @default `undefined`
|
|
28
|
+
* */
|
|
29
|
+
label?: string | undefined;
|
|
30
|
+
} & Omit<
|
|
17
31
|
{
|
|
32
|
+
/**
|
|
33
|
+
* DOM class name of the button used to expand and collapse the blade's picker.
|
|
34
|
+
* @default `undefined`
|
|
35
|
+
*/
|
|
36
|
+
buttonClass?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Expand or collapse the blade's picker.
|
|
39
|
+
* @default `true`
|
|
40
|
+
* @bindable
|
|
41
|
+
*/
|
|
42
|
+
expanded?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The style of value "picker" to use in the blade.
|
|
45
|
+
* @default `'popup'`
|
|
46
|
+
*/
|
|
47
|
+
picker?: 'inline' | 'popup' | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Allow users to interactively expand / contract the value picker by clicking its icon.
|
|
50
|
+
*
|
|
51
|
+
* Most useful when `picker` is `inline`.
|
|
52
|
+
* @default `true`
|
|
53
|
+
*/
|
|
54
|
+
userExpandable?: boolean | undefined;
|
|
55
|
+
} & {
|
|
18
56
|
/**
|
|
19
57
|
* Blade configuration exposing Tweakpane's internal
|
|
20
58
|
* [`BladeParams`](https://tweakpane.github.io/docs/api/interfaces/BaseBladeParams.html).
|
|
@@ -58,47 +96,9 @@ declare const __propDef: {
|
|
|
58
96
|
* @default `undefined`
|
|
59
97
|
*/
|
|
60
98
|
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
61
|
-
} & {
|
|
62
|
-
/**
|
|
63
|
-
* DOM class name of the button used to expand and collapse the blade's picker.
|
|
64
|
-
* @default `undefined`
|
|
65
|
-
*/
|
|
66
|
-
buttonClass?: string | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Expand or collapse the blade's picker.
|
|
69
|
-
* @default `true`
|
|
70
|
-
* @bindable
|
|
71
|
-
*/
|
|
72
|
-
expanded?: boolean | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* The style of value "picker" to use in the blade.
|
|
75
|
-
* @default `'popup'`
|
|
76
|
-
*/
|
|
77
|
-
picker?: 'inline' | 'popup' | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Allow users to interactively expand / contract the value picker by clicking its icon.
|
|
80
|
-
*
|
|
81
|
-
* Most useful when `picker` is `inline`.
|
|
82
|
-
* @default `true`
|
|
83
|
-
*/
|
|
84
|
-
userExpandable?: boolean | undefined;
|
|
85
99
|
},
|
|
86
100
|
'ref' | 'options' | 'plugin' | 'buttonClass'
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* The cubic bezier value to control.
|
|
90
|
-
*
|
|
91
|
-
* Object value type is a convenience added by _Svelte Tweakpane UI_, and is not part of the
|
|
92
|
-
* original `@tweakpane/plugin-essentials` API.
|
|
93
|
-
* @bindable
|
|
94
|
-
*/
|
|
95
|
-
value: CubicBezierValue;
|
|
96
|
-
/**
|
|
97
|
-
* Text displayed next to the control.
|
|
98
|
-
* @default `undefined`
|
|
99
|
-
* */
|
|
100
|
-
label?: string | undefined;
|
|
101
|
-
};
|
|
101
|
+
>;
|
|
102
102
|
slots: {};
|
|
103
103
|
events: {
|
|
104
104
|
/**
|
|
@@ -194,7 +194,7 @@ export type CubicBezierSlots = typeof __propDef.slots;
|
|
|
194
194
|
* <RadioGrid bind:value={mood} values={['Rise', 'Set']} />
|
|
195
195
|
*
|
|
196
196
|
* <div class="demo" style:--a="{twilightAmount}%">
|
|
197
|
-
* <div class="celestial-object" style:--t="{celestialHeight}%"
|
|
197
|
+
* <div class="celestial-object" style:--t="{celestialHeight}%"></div>
|
|
198
198
|
* </div>
|
|
199
199
|
*
|
|
200
200
|
* <style>
|
|
@@ -3,8 +3,34 @@ import type { ValueChangeEvent } from '../utils.js';
|
|
|
3
3
|
export type ImageValue = 'placeholder' | File | HTMLImageElement | string | undefined;
|
|
4
4
|
export type ImageChangeEvent = ValueChangeEvent<ImageValue>;
|
|
5
5
|
declare const __propDef: {
|
|
6
|
-
props:
|
|
7
|
-
|
|
6
|
+
props: {
|
|
7
|
+
/**
|
|
8
|
+
* Image data
|
|
9
|
+
* @default `'placeholder'`
|
|
10
|
+
* @bindable
|
|
11
|
+
*/
|
|
12
|
+
value?: ImageValue;
|
|
13
|
+
/**
|
|
14
|
+
* Array of image extension types to accept.
|
|
15
|
+
* @default `['.jpg', '.png', '.gif']`
|
|
16
|
+
*/
|
|
17
|
+
extensions?: string[] | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* How to display the image in the preview pane.
|
|
20
|
+
*
|
|
21
|
+
* Renamed from `imageFit` in `tweakpane-image-plugin` for concision.
|
|
22
|
+
* @default `'cover'`
|
|
23
|
+
*/
|
|
24
|
+
fit?: 'contain' | 'cover' | undefined;
|
|
25
|
+
} & Omit<
|
|
26
|
+
{
|
|
27
|
+
/**
|
|
28
|
+
* Image data
|
|
29
|
+
* @default `'placeholder'`
|
|
30
|
+
* @bindable
|
|
31
|
+
*/
|
|
32
|
+
value: ImageValue;
|
|
33
|
+
} & Omit<
|
|
8
34
|
{
|
|
9
35
|
/**
|
|
10
36
|
* The binding's target object with values to manipulate.
|
|
@@ -72,35 +98,9 @@ declare const __propDef: {
|
|
|
72
98
|
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
73
99
|
},
|
|
74
100
|
'object' | 'key'
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Image data
|
|
78
|
-
* @default `'placeholder'`
|
|
79
|
-
* @bindable
|
|
80
|
-
*/
|
|
81
|
-
value: ImageValue;
|
|
82
|
-
},
|
|
101
|
+
>,
|
|
83
102
|
'ref' | 'plugin' | 'value'
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Image data
|
|
87
|
-
* @default `'placeholder'`
|
|
88
|
-
* @bindable
|
|
89
|
-
*/
|
|
90
|
-
value?: ImageValue;
|
|
91
|
-
/**
|
|
92
|
-
* Array of image extension types to accept.
|
|
93
|
-
* @default `['.jpg', '.png', '.gif']`
|
|
94
|
-
*/
|
|
95
|
-
extensions?: string[] | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* How to display the image in the preview pane.
|
|
98
|
-
*
|
|
99
|
-
* Renamed from `imageFit` in `tweakpane-image-plugin` for concision.
|
|
100
|
-
* @default `'cover'`
|
|
101
|
-
*/
|
|
102
|
-
fit?: 'contain' | 'cover' | undefined;
|
|
103
|
-
};
|
|
103
|
+
>;
|
|
104
104
|
slots: {};
|
|
105
105
|
events: {
|
|
106
106
|
/**
|