svelte-tweakpane-ui 1.5.12 → 1.5.13
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 +5 -5
- package/dist/control/Button.svelte.d.ts +5 -5
- package/dist/control/ButtonGrid.svelte +5 -5
- package/dist/control/ButtonGrid.svelte.d.ts +32 -34
- package/dist/control/Checkbox.svelte.d.ts +9 -13
- package/dist/control/Color.svelte +3 -4
- package/dist/control/Color.svelte.d.ts +94 -99
- package/dist/control/CubicBezier.svelte +5 -5
- package/dist/control/CubicBezier.svelte.d.ts +43 -47
- package/dist/control/File.svelte +3 -3
- package/dist/control/File.svelte.d.ts +34 -38
- package/dist/control/Image.svelte +3 -3
- package/dist/control/Image.svelte.d.ts +31 -35
- package/dist/control/IntervalSlider.svelte +1 -1
- package/dist/control/IntervalSlider.svelte.d.ts +103 -108
- package/dist/control/List.svelte +5 -5
- package/dist/control/List.svelte.d.ts +24 -28
- package/dist/control/Point.svelte +9 -9
- package/dist/control/Point.svelte.d.ts +142 -147
- package/dist/control/RadioGrid.svelte +3 -4
- package/dist/control/RadioGrid.svelte.d.ts +60 -64
- package/dist/control/Ring.svelte +1 -1
- package/dist/control/Ring.svelte.d.ts +105 -109
- package/dist/control/RotationEuler.svelte +5 -5
- package/dist/control/RotationEuler.svelte.d.ts +110 -115
- package/dist/control/RotationQuaternion.svelte +5 -5
- package/dist/control/RotationQuaternion.svelte.d.ts +108 -113
- package/dist/control/Slider.svelte +1 -1
- package/dist/control/Slider.svelte.d.ts +95 -99
- package/dist/control/Stepper.svelte +1 -1
- package/dist/control/Stepper.svelte.d.ts +95 -99
- package/dist/control/Text.svelte +1 -1
- package/dist/control/Text.svelte.d.ts +25 -29
- package/dist/control/Textarea.svelte +2 -2
- package/dist/control/Textarea.svelte.d.ts +34 -38
- package/dist/control/Wheel.svelte +1 -1
- package/dist/control/Wheel.svelte.d.ts +101 -104
- package/dist/core/Binding.svelte +5 -5
- package/dist/core/Binding.svelte.d.ts +9 -14
- package/dist/core/Blade.svelte +3 -3
- package/dist/core/Blade.svelte.d.ts +5 -7
- package/dist/core/Folder.svelte +4 -4
- package/dist/core/Folder.svelte.d.ts +5 -5
- package/dist/core/Pane.svelte +3 -3
- package/dist/core/Pane.svelte.d.ts +217 -221
- package/dist/core/Separator.svelte +1 -1
- package/dist/core/Separator.svelte.d.ts +0 -2
- package/dist/core/TabGroup.svelte +4 -4
- package/dist/core/TabGroup.svelte.d.ts +3 -3
- package/dist/core/TabPage.svelte +4 -4
- package/dist/core/TabPage.svelte.d.ts +4 -4
- package/dist/extra/AutoObject.svelte +5 -5
- package/dist/extra/AutoObject.svelte.d.ts +4 -5
- package/dist/extra/AutoValue.svelte.d.ts +9 -13
- package/dist/extra/Element.svelte +1 -1
- package/dist/extra/Element.svelte.d.ts +23 -25
- package/dist/internal/ClsPad.svelte +3 -2
- package/dist/internal/GenericBinding.svelte +2 -2
- package/dist/internal/GenericBinding.svelte.d.ts +8 -11
- package/dist/internal/GenericBladeFolding.svelte +1 -1
- package/dist/internal/GenericBladeFolding.svelte.d.ts +25 -27
- package/dist/internal/GenericInput.svelte.d.ts +8 -11
- package/dist/internal/GenericInputFolding.svelte.d.ts +78 -81
- package/dist/internal/GenericMonitor.svelte.d.ts +76 -79
- package/dist/internal/GenericPane.svelte +4 -4
- package/dist/internal/GenericPane.svelte.d.ts +6 -7
- package/dist/internal/GenericSlider.svelte +1 -1
- package/dist/internal/GenericSlider.svelte.d.ts +100 -101
- package/dist/internal/InternalMonitorBoolean.svelte +2 -2
- package/dist/internal/InternalMonitorBoolean.svelte.d.ts +79 -82
- package/dist/internal/InternalMonitorNumber.svelte +3 -3
- package/dist/internal/InternalMonitorNumber.svelte.d.ts +100 -103
- package/dist/internal/InternalMonitorString.svelte +2 -2
- package/dist/internal/InternalMonitorString.svelte.d.ts +84 -87
- package/dist/internal/InternalPaneDraggable.svelte +5 -5
- package/dist/internal/InternalPaneDraggable.svelte.d.ts +86 -88
- package/dist/internal/InternalPaneFixed.svelte.d.ts +26 -27
- package/dist/internal/InternalPaneInline.svelte +1 -1
- package/dist/internal/InternalPaneInline.svelte.d.ts +13 -14
- package/dist/monitor/FpsGraph.svelte +5 -5
- package/dist/monitor/FpsGraph.svelte.d.ts +45 -47
- package/dist/monitor/Monitor.svelte +1 -1
- package/dist/monitor/Monitor.svelte.d.ts +316 -331
- package/dist/monitor/Profiler.svelte +3 -3
- package/dist/monitor/Profiler.svelte.d.ts +51 -59
- package/dist/monitor/WaveformMonitor.svelte +5 -5
- package/dist/monitor/WaveformMonitor.svelte.d.ts +102 -105
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +0 -2
- package/dist/utils.d.ts +5 -5
- package/dist/utils.js +2 -4
- package/license.txt +1 -1
- package/package.json +24 -29
|
@@ -1,8 +1,91 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte'
|
|
2
|
-
declare class __sveltets_Render<W extends
|
|
2
|
+
declare class __sveltets_Render<W extends boolean | number | string | unknown> {
|
|
3
3
|
props(): W extends string | number | boolean
|
|
4
4
|
? Omit<
|
|
5
|
-
|
|
5
|
+
Omit<
|
|
6
|
+
{
|
|
7
|
+
/**
|
|
8
|
+
* The binding's target object with values to manipulate.
|
|
9
|
+
* @bindable
|
|
10
|
+
*/
|
|
11
|
+
object: import('@tweakpane/core').Bindable & Record<string, W>
|
|
12
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
13
|
+
key: string
|
|
14
|
+
/**
|
|
15
|
+
* Prevent interactivity and gray out the control.
|
|
16
|
+
* @default `false`
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean
|
|
19
|
+
/**
|
|
20
|
+
* Text displayed next to control.
|
|
21
|
+
* @default `undefined`
|
|
22
|
+
*/
|
|
23
|
+
label?: string | undefined
|
|
24
|
+
/**
|
|
25
|
+
* Tweakpane's internal options object.
|
|
26
|
+
*
|
|
27
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
28
|
+
*
|
|
29
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
30
|
+
*
|
|
31
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
32
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
33
|
+
* Tweakpane UI_.
|
|
34
|
+
* @default `undefined`
|
|
35
|
+
*/
|
|
36
|
+
options?:
|
|
37
|
+
| (W extends infer T
|
|
38
|
+
? T extends W
|
|
39
|
+
? T extends string
|
|
40
|
+
? import('tweakpane').StringMonitorParams
|
|
41
|
+
: T extends boolean
|
|
42
|
+
? import('tweakpane').BooleanMonitorParams
|
|
43
|
+
: T extends number
|
|
44
|
+
? import('tweakpane').NumberMonitorParams
|
|
45
|
+
: import('@tweakpane/core').BaseMonitorParams
|
|
46
|
+
: never
|
|
47
|
+
: never)
|
|
48
|
+
| undefined
|
|
49
|
+
/**
|
|
50
|
+
* Custom color scheme.
|
|
51
|
+
* @default `undefined` \
|
|
52
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
53
|
+
* set with `setGlobalDefaultTheme()`.
|
|
54
|
+
*/
|
|
55
|
+
theme?: import('..').Theme | undefined
|
|
56
|
+
/**
|
|
57
|
+
* Reference to internal Tweakpane
|
|
58
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
59
|
+
* this control.
|
|
60
|
+
*
|
|
61
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
62
|
+
* components wrapping `<Binding>`'s functionality.
|
|
63
|
+
*
|
|
64
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
65
|
+
* @bindable
|
|
66
|
+
* @readonly
|
|
67
|
+
*/
|
|
68
|
+
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined
|
|
69
|
+
/**
|
|
70
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
71
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
72
|
+
*
|
|
73
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
74
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
75
|
+
*
|
|
76
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
77
|
+
* @default `undefined`
|
|
78
|
+
*/
|
|
79
|
+
plugin?: import('..').Plugin | undefined
|
|
80
|
+
},
|
|
81
|
+
'object' | 'key'
|
|
82
|
+
> & {
|
|
83
|
+
/**
|
|
84
|
+
* A value to monitor.
|
|
85
|
+
* @bindable
|
|
86
|
+
*/
|
|
87
|
+
value: W
|
|
88
|
+
} & {
|
|
6
89
|
/**
|
|
7
90
|
* Number of past states to retain.
|
|
8
91
|
* @default `1` \
|
|
@@ -25,111 +108,87 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
25
108
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
26
109
|
*/
|
|
27
110
|
rows?: number
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* A value to monitor.
|
|
31
|
-
* @bindable
|
|
32
|
-
*/
|
|
33
|
-
value: W
|
|
34
|
-
} & Omit<
|
|
35
|
-
{
|
|
36
|
-
/**
|
|
37
|
-
* The binding's target object with values to manipulate.
|
|
38
|
-
* @bindable
|
|
39
|
-
*/
|
|
40
|
-
object: import('@tweakpane/core').Bindable & Record<string, W>
|
|
41
|
-
/** The key for the value in the target `object` that the control should manipulate. */
|
|
42
|
-
key: string
|
|
43
|
-
/**
|
|
44
|
-
* Prevent interactivity and gray out the control.
|
|
45
|
-
* @default `false`
|
|
46
|
-
*/
|
|
47
|
-
disabled?: boolean
|
|
48
|
-
/**
|
|
49
|
-
* Text displayed next to control.
|
|
50
|
-
* @default `undefined`
|
|
51
|
-
*/
|
|
52
|
-
label?: string | undefined
|
|
53
|
-
/**
|
|
54
|
-
* Tweakpane's internal options object.
|
|
55
|
-
*
|
|
56
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
57
|
-
*
|
|
58
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
59
|
-
*
|
|
60
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
61
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
62
|
-
* Tweakpane UI_.
|
|
63
|
-
* @default `undefined`
|
|
64
|
-
*/
|
|
65
|
-
options?:
|
|
66
|
-
| (W extends infer T
|
|
67
|
-
? T extends W
|
|
68
|
-
? T extends string
|
|
69
|
-
? import('tweakpane').StringMonitorParams
|
|
70
|
-
: T extends boolean
|
|
71
|
-
? import('tweakpane').BooleanMonitorParams
|
|
72
|
-
: T extends number
|
|
73
|
-
? import('tweakpane').NumberMonitorParams
|
|
74
|
-
: import('@tweakpane/core').BaseMonitorParams
|
|
75
|
-
: never
|
|
76
|
-
: never)
|
|
77
|
-
| undefined
|
|
78
|
-
/**
|
|
79
|
-
* Custom color scheme.
|
|
80
|
-
*
|
|
81
|
-
* @default `undefined` \
|
|
82
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
83
|
-
* set with `setGlobalDefaultTheme()`.
|
|
84
|
-
*/
|
|
85
|
-
theme?: import('..').Theme | undefined
|
|
86
|
-
/**
|
|
87
|
-
* Reference to internal Tweakpane
|
|
88
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
89
|
-
* this control.
|
|
90
|
-
*
|
|
91
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
92
|
-
* components wrapping `<Binding>`'s functionality.
|
|
93
|
-
*
|
|
94
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
95
|
-
*
|
|
96
|
-
* @bindable
|
|
97
|
-
* @readonly
|
|
98
|
-
*/
|
|
99
|
-
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined
|
|
100
|
-
/**
|
|
101
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
102
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
103
|
-
*
|
|
104
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
105
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
106
|
-
*
|
|
107
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
108
|
-
*
|
|
109
|
-
* @default `undefined`
|
|
110
|
-
*/
|
|
111
|
-
plugin?: import('..').Plugin | undefined
|
|
112
|
-
},
|
|
113
|
-
'object' | 'key'
|
|
114
|
-
>,
|
|
111
|
+
},
|
|
115
112
|
'ref' | 'options' | 'plugin'
|
|
116
113
|
> &
|
|
117
114
|
(W extends infer T_1
|
|
118
115
|
? T_1 extends W
|
|
119
116
|
? T_1 extends string
|
|
120
|
-
?
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
117
|
+
? Omit<
|
|
118
|
+
Omit<
|
|
119
|
+
{
|
|
120
|
+
/**
|
|
121
|
+
* The binding's target object with values to manipulate.
|
|
122
|
+
* @bindable
|
|
123
|
+
*/
|
|
124
|
+
object: import('@tweakpane/core').Bindable & Record<string, string>
|
|
125
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
126
|
+
key: string
|
|
127
|
+
/**
|
|
128
|
+
* Prevent interactivity and gray out the control.
|
|
129
|
+
* @default `false`
|
|
130
|
+
*/
|
|
131
|
+
disabled?: boolean
|
|
132
|
+
/**
|
|
133
|
+
* Text displayed next to control.
|
|
134
|
+
* @default `undefined`
|
|
135
|
+
*/
|
|
136
|
+
label?: string | undefined
|
|
137
|
+
/**
|
|
138
|
+
* Tweakpane's internal options object.
|
|
139
|
+
*
|
|
140
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
141
|
+
*
|
|
142
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
143
|
+
*
|
|
144
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
145
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
146
|
+
* Tweakpane UI_.
|
|
147
|
+
* @default `undefined`
|
|
148
|
+
*/
|
|
149
|
+
options?: import('tweakpane').StringMonitorParams | undefined
|
|
150
|
+
/**
|
|
151
|
+
* Custom color scheme.
|
|
152
|
+
* @default `undefined` \
|
|
153
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
154
|
+
* set with `setGlobalDefaultTheme()`.
|
|
155
|
+
*/
|
|
156
|
+
theme?: import('..').Theme | undefined
|
|
157
|
+
/**
|
|
158
|
+
* Reference to internal Tweakpane
|
|
159
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
160
|
+
* this control.
|
|
161
|
+
*
|
|
162
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
163
|
+
* components wrapping `<Binding>`'s functionality.
|
|
164
|
+
*
|
|
165
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
166
|
+
* @bindable
|
|
167
|
+
* @readonly
|
|
168
|
+
*/
|
|
169
|
+
ref?:
|
|
170
|
+
| import('../internal/GenericMonitor.svelte').GenericMonitorRef
|
|
171
|
+
| undefined
|
|
172
|
+
/**
|
|
173
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
174
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
175
|
+
*
|
|
176
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
177
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
178
|
+
*
|
|
179
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
180
|
+
* @default `undefined`
|
|
181
|
+
*/
|
|
182
|
+
plugin?: import('..').Plugin | undefined
|
|
183
|
+
},
|
|
184
|
+
'object' | 'key'
|
|
185
|
+
> & {
|
|
186
|
+
/**
|
|
187
|
+
* A value to monitor.
|
|
188
|
+
* @bindable
|
|
189
|
+
*/
|
|
190
|
+
value: string
|
|
191
|
+
} & {
|
|
133
192
|
/**
|
|
134
193
|
* Number of past states to retain.
|
|
135
194
|
* @default `1` \
|
|
@@ -152,19 +211,29 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
152
211
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
153
212
|
*/
|
|
154
213
|
rows?: number
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
214
|
+
},
|
|
215
|
+
'ref' | 'options' | 'plugin' | 'interval'
|
|
216
|
+
> & {
|
|
217
|
+
/**
|
|
218
|
+
* A value to monitor.
|
|
219
|
+
* @bindable
|
|
220
|
+
*/
|
|
221
|
+
value: string
|
|
222
|
+
/**
|
|
223
|
+
* Display multiline strings.
|
|
224
|
+
* @default `false`
|
|
225
|
+
*/
|
|
226
|
+
multiline?: boolean
|
|
227
|
+
}
|
|
228
|
+
: T_1 extends boolean
|
|
229
|
+
? Omit<
|
|
230
|
+
Omit<
|
|
162
231
|
{
|
|
163
232
|
/**
|
|
164
233
|
* The binding's target object with values to manipulate.
|
|
165
234
|
* @bindable
|
|
166
235
|
*/
|
|
167
|
-
object: import('@tweakpane/core').Bindable & Record<string,
|
|
236
|
+
object: import('@tweakpane/core').Bindable & Record<string, boolean>
|
|
168
237
|
/** The key for the value in the target `object` that the control should manipulate. */
|
|
169
238
|
key: string
|
|
170
239
|
/**
|
|
@@ -189,10 +258,9 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
189
258
|
* Tweakpane UI_.
|
|
190
259
|
* @default `undefined`
|
|
191
260
|
*/
|
|
192
|
-
options?: import('tweakpane').
|
|
261
|
+
options?: import('tweakpane').BooleanMonitorParams | undefined
|
|
193
262
|
/**
|
|
194
263
|
* Custom color scheme.
|
|
195
|
-
*
|
|
196
264
|
* @default `undefined` \
|
|
197
265
|
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
198
266
|
* set with `setGlobalDefaultTheme()`.
|
|
@@ -207,7 +275,6 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
207
275
|
* components wrapping `<Binding>`'s functionality.
|
|
208
276
|
*
|
|
209
277
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
210
|
-
*
|
|
211
278
|
* @bindable
|
|
212
279
|
* @readonly
|
|
213
280
|
*/
|
|
@@ -222,24 +289,18 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
222
289
|
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
223
290
|
*
|
|
224
291
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
225
|
-
*
|
|
226
292
|
* @default `undefined`
|
|
227
293
|
*/
|
|
228
294
|
plugin?: import('..').Plugin | undefined
|
|
229
295
|
},
|
|
230
296
|
'object' | 'key'
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
* @bindable
|
|
239
|
-
*/
|
|
240
|
-
value: boolean
|
|
241
|
-
} & Omit<
|
|
242
|
-
{
|
|
297
|
+
> & {
|
|
298
|
+
/**
|
|
299
|
+
* A value to monitor.
|
|
300
|
+
* @bindable
|
|
301
|
+
*/
|
|
302
|
+
value: boolean
|
|
303
|
+
} & {
|
|
243
304
|
/**
|
|
244
305
|
* Number of past states to retain.
|
|
245
306
|
* @default `1` \
|
|
@@ -262,19 +323,24 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
262
323
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
263
324
|
*/
|
|
264
325
|
rows?: number
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
326
|
+
},
|
|
327
|
+
'ref' | 'options' | 'plugin' | 'interval'
|
|
328
|
+
> & {
|
|
329
|
+
/**
|
|
330
|
+
* A value to monitor.
|
|
331
|
+
* @bindable
|
|
332
|
+
*/
|
|
333
|
+
value: boolean
|
|
334
|
+
}
|
|
335
|
+
: T_1 extends number
|
|
336
|
+
? Omit<
|
|
337
|
+
Omit<
|
|
272
338
|
{
|
|
273
339
|
/**
|
|
274
340
|
* The binding's target object with values to manipulate.
|
|
275
341
|
* @bindable
|
|
276
342
|
*/
|
|
277
|
-
object: import('@tweakpane/core').Bindable & Record<string,
|
|
343
|
+
object: import('@tweakpane/core').Bindable & Record<string, number>
|
|
278
344
|
/** The key for the value in the target `object` that the control should manipulate. */
|
|
279
345
|
key: string
|
|
280
346
|
/**
|
|
@@ -299,10 +365,9 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
299
365
|
* Tweakpane UI_.
|
|
300
366
|
* @default `undefined`
|
|
301
367
|
*/
|
|
302
|
-
options?: import('tweakpane').
|
|
368
|
+
options?: import('tweakpane').NumberMonitorParams | undefined
|
|
303
369
|
/**
|
|
304
370
|
* Custom color scheme.
|
|
305
|
-
*
|
|
306
371
|
* @default `undefined` \
|
|
307
372
|
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
308
373
|
* set with `setGlobalDefaultTheme()`.
|
|
@@ -317,7 +382,6 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
317
382
|
* components wrapping `<Binding>`'s functionality.
|
|
318
383
|
*
|
|
319
384
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
320
|
-
*
|
|
321
385
|
* @bindable
|
|
322
386
|
* @readonly
|
|
323
387
|
*/
|
|
@@ -332,17 +396,43 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
332
396
|
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
333
397
|
*
|
|
334
398
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
335
|
-
*
|
|
336
399
|
* @default `undefined`
|
|
337
400
|
*/
|
|
338
401
|
plugin?: import('..').Plugin | undefined
|
|
339
402
|
},
|
|
340
403
|
'object' | 'key'
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
404
|
+
> & {
|
|
405
|
+
/**
|
|
406
|
+
* A value to monitor.
|
|
407
|
+
* @bindable
|
|
408
|
+
*/
|
|
409
|
+
value: number
|
|
410
|
+
} & {
|
|
411
|
+
/**
|
|
412
|
+
* Number of past states to retain.
|
|
413
|
+
* @default `1` \
|
|
414
|
+
* Or `64` if value is `number` and `graph` is `true`.
|
|
415
|
+
*/
|
|
416
|
+
bufferSize?: number
|
|
417
|
+
/**
|
|
418
|
+
* Time between value samples in milliseconds.
|
|
419
|
+
*
|
|
420
|
+
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
421
|
+
* @default `0`
|
|
422
|
+
*/
|
|
423
|
+
interval?: number
|
|
424
|
+
/**
|
|
425
|
+
* Number of visible rows of state history.
|
|
426
|
+
*
|
|
427
|
+
* If `bufferSize` is larger, then the value window will scroll once state history exceeds
|
|
428
|
+
* row count.
|
|
429
|
+
* @default `1` \
|
|
430
|
+
* Or `3` if value is `string` and `multiline` is `true`.
|
|
431
|
+
*/
|
|
432
|
+
rows?: number
|
|
433
|
+
},
|
|
434
|
+
'ref' | 'options' | 'plugin'
|
|
435
|
+
> & {
|
|
346
436
|
/**
|
|
347
437
|
* A value to monitor.
|
|
348
438
|
* @bindable
|
|
@@ -369,120 +459,93 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
369
459
|
* @default `false`
|
|
370
460
|
*/
|
|
371
461
|
graph?: boolean
|
|
372
|
-
}
|
|
373
|
-
{
|
|
374
|
-
/**
|
|
375
|
-
* Number of past states to retain.
|
|
376
|
-
* @default `1` \
|
|
377
|
-
* Or `64` if value is `number` and `graph` is `true`.
|
|
378
|
-
*/
|
|
379
|
-
bufferSize?: number
|
|
380
|
-
/**
|
|
381
|
-
* Time between value samples in milliseconds.
|
|
382
|
-
*
|
|
383
|
-
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
384
|
-
* @default `0`
|
|
385
|
-
*/
|
|
386
|
-
interval?: number
|
|
387
|
-
/**
|
|
388
|
-
* Number of visible rows of state history.
|
|
389
|
-
*
|
|
390
|
-
* If `bufferSize` is larger, then the value window will scroll once state history exceeds
|
|
391
|
-
* row count.
|
|
392
|
-
* @default `1` \
|
|
393
|
-
* Or `3` if value is `string` and `multiline` is `true`.
|
|
394
|
-
*/
|
|
395
|
-
rows?: number
|
|
396
|
-
} & {
|
|
397
|
-
/**
|
|
398
|
-
* A value to monitor.
|
|
399
|
-
* @bindable
|
|
400
|
-
*/
|
|
401
|
-
value: number
|
|
402
|
-
} & Omit<
|
|
403
|
-
{
|
|
404
|
-
/**
|
|
405
|
-
* The binding's target object with values to manipulate.
|
|
406
|
-
* @bindable
|
|
407
|
-
*/
|
|
408
|
-
object: import('@tweakpane/core').Bindable & Record<string, number>
|
|
409
|
-
/** The key for the value in the target `object` that the control should manipulate. */
|
|
410
|
-
key: string
|
|
411
|
-
/**
|
|
412
|
-
* Prevent interactivity and gray out the control.
|
|
413
|
-
* @default `false`
|
|
414
|
-
*/
|
|
415
|
-
disabled?: boolean
|
|
416
|
-
/**
|
|
417
|
-
* Text displayed next to control.
|
|
418
|
-
* @default `undefined`
|
|
419
|
-
*/
|
|
420
|
-
label?: string | undefined
|
|
421
|
-
/**
|
|
422
|
-
* Tweakpane's internal options object.
|
|
423
|
-
*
|
|
424
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
425
|
-
*
|
|
426
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
427
|
-
*
|
|
428
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
429
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
430
|
-
* Tweakpane UI_.
|
|
431
|
-
* @default `undefined`
|
|
432
|
-
*/
|
|
433
|
-
options?: import('tweakpane').NumberMonitorParams | undefined
|
|
434
|
-
/**
|
|
435
|
-
* Custom color scheme.
|
|
436
|
-
*
|
|
437
|
-
* @default `undefined` \
|
|
438
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
439
|
-
* set with `setGlobalDefaultTheme()`.
|
|
440
|
-
*/
|
|
441
|
-
theme?: import('..').Theme | undefined
|
|
442
|
-
/**
|
|
443
|
-
* Reference to internal Tweakpane
|
|
444
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
445
|
-
* this control.
|
|
446
|
-
*
|
|
447
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
448
|
-
* components wrapping `<Binding>`'s functionality.
|
|
449
|
-
*
|
|
450
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
451
|
-
*
|
|
452
|
-
* @bindable
|
|
453
|
-
* @readonly
|
|
454
|
-
*/
|
|
455
|
-
ref?:
|
|
456
|
-
| import('../internal/GenericMonitor.svelte').GenericMonitorRef
|
|
457
|
-
| undefined
|
|
458
|
-
/**
|
|
459
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
460
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
461
|
-
*
|
|
462
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
463
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
464
|
-
*
|
|
465
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
466
|
-
*
|
|
467
|
-
* @default `undefined`
|
|
468
|
-
*/
|
|
469
|
-
plugin?: import('..').Plugin | undefined
|
|
470
|
-
},
|
|
471
|
-
'object' | 'key'
|
|
472
|
-
>,
|
|
473
|
-
'ref' | 'options' | 'plugin'
|
|
474
|
-
>
|
|
462
|
+
}
|
|
475
463
|
: {
|
|
476
464
|
/**
|
|
477
465
|
* A value to monitor.
|
|
478
466
|
* @bindable
|
|
479
|
-
|
|
467
|
+
*/
|
|
480
468
|
value: boolean | number | string
|
|
481
469
|
}
|
|
482
470
|
: never
|
|
483
471
|
: never)
|
|
484
472
|
: Omit<
|
|
485
|
-
|
|
473
|
+
Omit<
|
|
474
|
+
{
|
|
475
|
+
/**
|
|
476
|
+
* The binding's target object with values to manipulate.
|
|
477
|
+
* @bindable
|
|
478
|
+
*/
|
|
479
|
+
object: import('@tweakpane/core').Bindable & Record<string, string | number | boolean>
|
|
480
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
481
|
+
key: string
|
|
482
|
+
/**
|
|
483
|
+
* Prevent interactivity and gray out the control.
|
|
484
|
+
* @default `false`
|
|
485
|
+
*/
|
|
486
|
+
disabled?: boolean
|
|
487
|
+
/**
|
|
488
|
+
* Text displayed next to control.
|
|
489
|
+
* @default `undefined`
|
|
490
|
+
*/
|
|
491
|
+
label?: string | undefined
|
|
492
|
+
/**
|
|
493
|
+
* Tweakpane's internal options object.
|
|
494
|
+
*
|
|
495
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
496
|
+
*
|
|
497
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
498
|
+
*
|
|
499
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
500
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
501
|
+
* Tweakpane UI_.
|
|
502
|
+
* @default `undefined`
|
|
503
|
+
*/
|
|
504
|
+
options?:
|
|
505
|
+
| import('tweakpane').BooleanMonitorParams
|
|
506
|
+
| import('tweakpane').NumberMonitorParams
|
|
507
|
+
| import('tweakpane').StringMonitorParams
|
|
508
|
+
| undefined
|
|
509
|
+
/**
|
|
510
|
+
* Custom color scheme.
|
|
511
|
+
* @default `undefined` \
|
|
512
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
513
|
+
* set with `setGlobalDefaultTheme()`.
|
|
514
|
+
*/
|
|
515
|
+
theme?: import('..').Theme | undefined
|
|
516
|
+
/**
|
|
517
|
+
* Reference to internal Tweakpane
|
|
518
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
519
|
+
* this control.
|
|
520
|
+
*
|
|
521
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
522
|
+
* components wrapping `<Binding>`'s functionality.
|
|
523
|
+
*
|
|
524
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
525
|
+
* @bindable
|
|
526
|
+
* @readonly
|
|
527
|
+
*/
|
|
528
|
+
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined
|
|
529
|
+
/**
|
|
530
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
531
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
532
|
+
*
|
|
533
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
534
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
535
|
+
*
|
|
536
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
537
|
+
* @default `undefined`
|
|
538
|
+
*/
|
|
539
|
+
plugin?: import('..').Plugin | undefined
|
|
540
|
+
},
|
|
541
|
+
'object' | 'key'
|
|
542
|
+
> & {
|
|
543
|
+
/**
|
|
544
|
+
* A value to monitor.
|
|
545
|
+
* @bindable
|
|
546
|
+
*/
|
|
547
|
+
value: string | number | boolean
|
|
548
|
+
} & {
|
|
486
549
|
/**
|
|
487
550
|
* Number of past states to retain.
|
|
488
551
|
* @default `1` \
|
|
@@ -505,85 +568,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
505
568
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
506
569
|
*/
|
|
507
570
|
rows?: number
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* A value to monitor.
|
|
511
|
-
* @bindable
|
|
512
|
-
*/
|
|
513
|
-
value: string | number | boolean
|
|
514
|
-
} & Omit<
|
|
515
|
-
{
|
|
516
|
-
/**
|
|
517
|
-
* The binding's target object with values to manipulate.
|
|
518
|
-
* @bindable
|
|
519
|
-
*/
|
|
520
|
-
object: import('@tweakpane/core').Bindable & Record<string, string | number | boolean>
|
|
521
|
-
/** The key for the value in the target `object` that the control should manipulate. */
|
|
522
|
-
key: string
|
|
523
|
-
/**
|
|
524
|
-
* Prevent interactivity and gray out the control.
|
|
525
|
-
* @default `false`
|
|
526
|
-
*/
|
|
527
|
-
disabled?: boolean
|
|
528
|
-
/**
|
|
529
|
-
* Text displayed next to control.
|
|
530
|
-
* @default `undefined`
|
|
531
|
-
*/
|
|
532
|
-
label?: string | undefined
|
|
533
|
-
/**
|
|
534
|
-
* Tweakpane's internal options object.
|
|
535
|
-
*
|
|
536
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
537
|
-
*
|
|
538
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
539
|
-
*
|
|
540
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
541
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
542
|
-
* Tweakpane UI_.
|
|
543
|
-
* @default `undefined`
|
|
544
|
-
*/
|
|
545
|
-
options?:
|
|
546
|
-
| import('tweakpane').BooleanMonitorParams
|
|
547
|
-
| import('tweakpane').NumberMonitorParams
|
|
548
|
-
| import('tweakpane').StringMonitorParams
|
|
549
|
-
| undefined
|
|
550
|
-
/**
|
|
551
|
-
* Custom color scheme.
|
|
552
|
-
*
|
|
553
|
-
* @default `undefined` \
|
|
554
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
555
|
-
* set with `setGlobalDefaultTheme()`.
|
|
556
|
-
*/
|
|
557
|
-
theme?: import('..').Theme | undefined
|
|
558
|
-
/**
|
|
559
|
-
* Reference to internal Tweakpane
|
|
560
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
561
|
-
* this control.
|
|
562
|
-
*
|
|
563
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
564
|
-
* components wrapping `<Binding>`'s functionality.
|
|
565
|
-
*
|
|
566
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
567
|
-
*
|
|
568
|
-
* @bindable
|
|
569
|
-
* @readonly
|
|
570
|
-
*/
|
|
571
|
-
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined
|
|
572
|
-
/**
|
|
573
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
574
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
575
|
-
*
|
|
576
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
577
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
578
|
-
*
|
|
579
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
580
|
-
*
|
|
581
|
-
* @default `undefined`
|
|
582
|
-
*/
|
|
583
|
-
plugin?: import('..').Plugin | undefined
|
|
584
|
-
},
|
|
585
|
-
'object' | 'key'
|
|
586
|
-
>,
|
|
571
|
+
},
|
|
587
572
|
'ref' | 'options' | 'plugin'
|
|
588
573
|
>
|
|
589
574
|
events(): {} & {
|
|
@@ -591,13 +576,13 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
591
576
|
}
|
|
592
577
|
slots(): {}
|
|
593
578
|
}
|
|
594
|
-
export type MonitorProps<W extends
|
|
579
|
+
export type MonitorProps<W extends boolean | number | string | unknown> = ReturnType<
|
|
595
580
|
__sveltets_Render<W>['props']
|
|
596
581
|
>
|
|
597
|
-
export type MonitorEvents<W extends
|
|
582
|
+
export type MonitorEvents<W extends boolean | number | string | unknown> = ReturnType<
|
|
598
583
|
__sveltets_Render<W>['events']
|
|
599
584
|
>
|
|
600
|
-
export type MonitorSlots<W extends
|
|
585
|
+
export type MonitorSlots<W extends boolean | number | string | unknown> = ReturnType<
|
|
601
586
|
__sveltets_Render<W>['slots']
|
|
602
587
|
>
|
|
603
588
|
/**
|
|
@@ -654,7 +639,7 @@ export type MonitorSlots<W extends number | string | boolean | unknown> = Return
|
|
|
654
639
|
* @sourceLink
|
|
655
640
|
* [Monitor.svelte](https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/src/lib/monitor/Monitor.svelte)
|
|
656
641
|
*/
|
|
657
|
-
export default class Monitor<W extends
|
|
642
|
+
export default class Monitor<W extends boolean | number | string | unknown> extends SvelteComponent<
|
|
658
643
|
MonitorProps<W>,
|
|
659
644
|
MonitorEvents<W>,
|
|
660
645
|
MonitorSlots<W>
|