svelte-tweakpane-ui 1.2.2 → 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/GenericPane.svelte +1 -1
- 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 -15
- package/readme.md +2 -2
|
@@ -1,89 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
2
|
declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
3
3
|
props(): Omit<
|
|
4
|
-
|
|
5
|
-
{
|
|
6
|
-
/**
|
|
7
|
-
* The binding's target object with values to manipulate.
|
|
8
|
-
* @bindable
|
|
9
|
-
*/
|
|
10
|
-
object: import('@tweakpane/core').Bindable & Record<string, W>;
|
|
11
|
-
/** The key for the value in the target `object` that the control should manipulate. */
|
|
12
|
-
key: string;
|
|
13
|
-
/**
|
|
14
|
-
* Prevent interactivity and gray out the control.
|
|
15
|
-
* @default `false`
|
|
16
|
-
*/
|
|
17
|
-
disabled?: boolean | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Text displayed next to control.
|
|
20
|
-
* @default `undefined`
|
|
21
|
-
*/
|
|
22
|
-
label?: string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Tweakpane's internal options object.
|
|
25
|
-
*
|
|
26
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
27
|
-
*
|
|
28
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
29
|
-
*
|
|
30
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
31
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
32
|
-
* Tweakpane UI_.
|
|
33
|
-
* @default `undefined`
|
|
34
|
-
*/
|
|
35
|
-
options?:
|
|
36
|
-
| (W extends string
|
|
37
|
-
? import('tweakpane').StringMonitorParams
|
|
38
|
-
: W extends boolean
|
|
39
|
-
? import('tweakpane').BooleanMonitorParams
|
|
40
|
-
: W extends number
|
|
41
|
-
? import('tweakpane').NumberMonitorParams
|
|
42
|
-
: import('@tweakpane/core').BaseMonitorParams)
|
|
43
|
-
| undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Custom color scheme.
|
|
46
|
-
*
|
|
47
|
-
* @default `undefined` \
|
|
48
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
49
|
-
* set with `setGlobalDefaultTheme()`.
|
|
50
|
-
*/
|
|
51
|
-
theme?: import('..').Theme | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Reference to internal Tweakpane
|
|
54
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
55
|
-
* this control.
|
|
56
|
-
*
|
|
57
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
58
|
-
* components wrapping `<Binding>`'s functionality.
|
|
59
|
-
*
|
|
60
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
61
|
-
*
|
|
62
|
-
* @bindable
|
|
63
|
-
* @readonly
|
|
64
|
-
*/
|
|
65
|
-
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
68
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
69
|
-
*
|
|
70
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
71
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
72
|
-
*
|
|
73
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
74
|
-
*
|
|
75
|
-
* @default `undefined`
|
|
76
|
-
*/
|
|
77
|
-
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
78
|
-
},
|
|
79
|
-
'object' | 'key'
|
|
80
|
-
> & {
|
|
81
|
-
/**
|
|
82
|
-
* A value to monitor.
|
|
83
|
-
* @bindable
|
|
84
|
-
*/
|
|
85
|
-
value: W;
|
|
86
|
-
} & {
|
|
4
|
+
{
|
|
87
5
|
/**
|
|
88
6
|
* Number of past states to retain.
|
|
89
7
|
* @default `1` \
|
|
@@ -106,86 +24,105 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
106
24
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
107
25
|
*/
|
|
108
26
|
rows?: number | undefined;
|
|
109
|
-
}
|
|
27
|
+
} & {
|
|
28
|
+
/**
|
|
29
|
+
* A value to monitor.
|
|
30
|
+
* @bindable
|
|
31
|
+
*/
|
|
32
|
+
value: W;
|
|
33
|
+
} & Omit<
|
|
34
|
+
{
|
|
35
|
+
/**
|
|
36
|
+
* The binding's target object with values to manipulate.
|
|
37
|
+
* @bindable
|
|
38
|
+
*/
|
|
39
|
+
object: import('@tweakpane/core').Bindable & Record<string, W>;
|
|
40
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
41
|
+
key: string;
|
|
42
|
+
/**
|
|
43
|
+
* Prevent interactivity and gray out the control.
|
|
44
|
+
* @default `false`
|
|
45
|
+
*/
|
|
46
|
+
disabled?: boolean | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Text displayed next to control.
|
|
49
|
+
* @default `undefined`
|
|
50
|
+
*/
|
|
51
|
+
label?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Tweakpane's internal options object.
|
|
54
|
+
*
|
|
55
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
56
|
+
*
|
|
57
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
58
|
+
*
|
|
59
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
60
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
61
|
+
* Tweakpane UI_.
|
|
62
|
+
* @default `undefined`
|
|
63
|
+
*/
|
|
64
|
+
options?:
|
|
65
|
+
| (W extends string
|
|
66
|
+
? import('tweakpane').StringMonitorParams
|
|
67
|
+
: W extends boolean
|
|
68
|
+
? import('tweakpane').BooleanMonitorParams
|
|
69
|
+
: W extends number
|
|
70
|
+
? import('tweakpane').NumberMonitorParams
|
|
71
|
+
: import('@tweakpane/core').BaseMonitorParams)
|
|
72
|
+
| undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Custom color scheme.
|
|
75
|
+
*
|
|
76
|
+
* @default `undefined` \
|
|
77
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
78
|
+
* set with `setGlobalDefaultTheme()`.
|
|
79
|
+
*/
|
|
80
|
+
theme?: import('..').Theme | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Reference to internal Tweakpane
|
|
83
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
84
|
+
* this control.
|
|
85
|
+
*
|
|
86
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
87
|
+
* components wrapping `<Binding>`'s functionality.
|
|
88
|
+
*
|
|
89
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
90
|
+
*
|
|
91
|
+
* @bindable
|
|
92
|
+
* @readonly
|
|
93
|
+
*/
|
|
94
|
+
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
97
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
98
|
+
*
|
|
99
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
100
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
101
|
+
*
|
|
102
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
103
|
+
*
|
|
104
|
+
* @default `undefined`
|
|
105
|
+
*/
|
|
106
|
+
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
107
|
+
},
|
|
108
|
+
'object' | 'key'
|
|
109
|
+
>,
|
|
110
110
|
'ref' | 'options' | 'plugin'
|
|
111
111
|
> &
|
|
112
112
|
(W extends string
|
|
113
|
-
?
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
*/
|
|
127
|
-
disabled?: boolean | undefined;
|
|
128
|
-
/**
|
|
129
|
-
* Text displayed next to control.
|
|
130
|
-
* @default `undefined`
|
|
131
|
-
*/
|
|
132
|
-
label?: string | undefined;
|
|
133
|
-
/**
|
|
134
|
-
* Tweakpane's internal options object.
|
|
135
|
-
*
|
|
136
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
137
|
-
*
|
|
138
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
139
|
-
*
|
|
140
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
141
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
142
|
-
* Tweakpane UI_.
|
|
143
|
-
* @default `undefined`
|
|
144
|
-
*/
|
|
145
|
-
options?: import('tweakpane').StringMonitorParams | undefined;
|
|
146
|
-
/**
|
|
147
|
-
* Custom color scheme.
|
|
148
|
-
*
|
|
149
|
-
* @default `undefined` \
|
|
150
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
151
|
-
* set with `setGlobalDefaultTheme()`.
|
|
152
|
-
*/
|
|
153
|
-
theme?: import('..').Theme | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Reference to internal Tweakpane
|
|
156
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
157
|
-
* this control.
|
|
158
|
-
*
|
|
159
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
160
|
-
* components wrapping `<Binding>`'s functionality.
|
|
161
|
-
*
|
|
162
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
163
|
-
*
|
|
164
|
-
* @bindable
|
|
165
|
-
* @readonly
|
|
166
|
-
*/
|
|
167
|
-
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined;
|
|
168
|
-
/**
|
|
169
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
170
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
171
|
-
*
|
|
172
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
173
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
174
|
-
*
|
|
175
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
176
|
-
*
|
|
177
|
-
* @default `undefined`
|
|
178
|
-
*/
|
|
179
|
-
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
180
|
-
},
|
|
181
|
-
'object' | 'key'
|
|
182
|
-
> & {
|
|
183
|
-
/**
|
|
184
|
-
* A value to monitor.
|
|
185
|
-
* @bindable
|
|
186
|
-
*/
|
|
187
|
-
value: string;
|
|
188
|
-
} & {
|
|
113
|
+
? {
|
|
114
|
+
/**
|
|
115
|
+
* A value to monitor.
|
|
116
|
+
* @bindable
|
|
117
|
+
*/
|
|
118
|
+
value: string;
|
|
119
|
+
/**
|
|
120
|
+
* Display multiline strings.
|
|
121
|
+
* @default `false`
|
|
122
|
+
*/
|
|
123
|
+
multiline?: boolean | undefined;
|
|
124
|
+
} & Omit<
|
|
125
|
+
{
|
|
189
126
|
/**
|
|
190
127
|
* Number of past states to retain.
|
|
191
128
|
* @default `1` \
|
|
@@ -208,29 +145,19 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
208
145
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
209
146
|
*/
|
|
210
147
|
rows?: number | undefined;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
value: string;
|
|
219
|
-
/**
|
|
220
|
-
* Display multiline strings.
|
|
221
|
-
* @default `false`
|
|
222
|
-
*/
|
|
223
|
-
multiline?: boolean | undefined;
|
|
224
|
-
}
|
|
225
|
-
: W extends boolean
|
|
226
|
-
? Omit<
|
|
227
|
-
Omit<
|
|
148
|
+
} & {
|
|
149
|
+
/**
|
|
150
|
+
* A value to monitor.
|
|
151
|
+
* @bindable
|
|
152
|
+
*/
|
|
153
|
+
value: string;
|
|
154
|
+
} & Omit<
|
|
228
155
|
{
|
|
229
156
|
/**
|
|
230
157
|
* The binding's target object with values to manipulate.
|
|
231
158
|
* @bindable
|
|
232
159
|
*/
|
|
233
|
-
object: import('@tweakpane/core').Bindable & Record<string,
|
|
160
|
+
object: import('@tweakpane/core').Bindable & Record<string, string>;
|
|
234
161
|
/** The key for the value in the target `object` that the control should manipulate. */
|
|
235
162
|
key: string;
|
|
236
163
|
/**
|
|
@@ -255,7 +182,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
255
182
|
* Tweakpane UI_.
|
|
256
183
|
* @default `undefined`
|
|
257
184
|
*/
|
|
258
|
-
options?: import('tweakpane').
|
|
185
|
+
options?: import('tweakpane').StringMonitorParams | undefined;
|
|
259
186
|
/**
|
|
260
187
|
* Custom color scheme.
|
|
261
188
|
*
|
|
@@ -292,13 +219,18 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
292
219
|
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
293
220
|
},
|
|
294
221
|
'object' | 'key'
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
222
|
+
>,
|
|
223
|
+
'ref' | 'options' | 'plugin' | 'interval'
|
|
224
|
+
>
|
|
225
|
+
: W extends boolean
|
|
226
|
+
? {
|
|
227
|
+
/**
|
|
228
|
+
* A value to monitor.
|
|
229
|
+
* @bindable
|
|
230
|
+
*/
|
|
231
|
+
value: boolean;
|
|
232
|
+
} & Omit<
|
|
233
|
+
{
|
|
302
234
|
/**
|
|
303
235
|
* Number of past states to retain.
|
|
304
236
|
* @default `1` \
|
|
@@ -321,24 +253,19 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
321
253
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
322
254
|
*/
|
|
323
255
|
rows?: number | undefined;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
value: boolean;
|
|
332
|
-
}
|
|
333
|
-
: W extends number
|
|
334
|
-
? Omit<
|
|
335
|
-
Omit<
|
|
256
|
+
} & {
|
|
257
|
+
/**
|
|
258
|
+
* A value to monitor.
|
|
259
|
+
* @bindable
|
|
260
|
+
*/
|
|
261
|
+
value: boolean;
|
|
262
|
+
} & Omit<
|
|
336
263
|
{
|
|
337
264
|
/**
|
|
338
265
|
* The binding's target object with values to manipulate.
|
|
339
266
|
* @bindable
|
|
340
267
|
*/
|
|
341
|
-
object: import('@tweakpane/core').Bindable & Record<string,
|
|
268
|
+
object: import('@tweakpane/core').Bindable & Record<string, boolean>;
|
|
342
269
|
/** The key for the value in the target `object` that the control should manipulate. */
|
|
343
270
|
key: string;
|
|
344
271
|
/**
|
|
@@ -363,7 +290,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
363
290
|
* Tweakpane UI_.
|
|
364
291
|
* @default `undefined`
|
|
365
292
|
*/
|
|
366
|
-
options?: import('tweakpane').
|
|
293
|
+
options?: import('tweakpane').BooleanMonitorParams | undefined;
|
|
367
294
|
/**
|
|
368
295
|
* Custom color scheme.
|
|
369
296
|
*
|
|
@@ -400,38 +327,11 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
400
327
|
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
401
328
|
},
|
|
402
329
|
'object' | 'key'
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
value: number;
|
|
409
|
-
} & {
|
|
410
|
-
/**
|
|
411
|
-
* Number of past states to retain.
|
|
412
|
-
* @default `1` \
|
|
413
|
-
* Or `64` if value is `number` and `graph` is `true`.
|
|
414
|
-
*/
|
|
415
|
-
bufferSize?: number | undefined;
|
|
416
|
-
/**
|
|
417
|
-
* Time between value samples in milliseconds.
|
|
418
|
-
*
|
|
419
|
-
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
420
|
-
* @default `0`
|
|
421
|
-
*/
|
|
422
|
-
interval?: number | undefined;
|
|
423
|
-
/**
|
|
424
|
-
* Number of visible rows of state history.
|
|
425
|
-
*
|
|
426
|
-
* If `bufferSize` is larger, then the value window will scroll once state history exceeds
|
|
427
|
-
* row count.
|
|
428
|
-
* @default `1` \
|
|
429
|
-
* Or `3` if value is `string` and `multiline` is `true`.
|
|
430
|
-
*/
|
|
431
|
-
rows?: number | undefined;
|
|
432
|
-
},
|
|
433
|
-
'ref' | 'options' | 'plugin'
|
|
434
|
-
> & {
|
|
330
|
+
>,
|
|
331
|
+
'ref' | 'options' | 'plugin' | 'interval'
|
|
332
|
+
>
|
|
333
|
+
: W extends number
|
|
334
|
+
? {
|
|
435
335
|
/**
|
|
436
336
|
* A value to monitor.
|
|
437
337
|
* @bindable
|
|
@@ -458,7 +358,107 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
|
|
|
458
358
|
* @default `false`
|
|
459
359
|
*/
|
|
460
360
|
graph?: boolean | undefined;
|
|
461
|
-
}
|
|
361
|
+
} & Omit<
|
|
362
|
+
{
|
|
363
|
+
/**
|
|
364
|
+
* Number of past states to retain.
|
|
365
|
+
* @default `1` \
|
|
366
|
+
* Or `64` if value is `number` and `graph` is `true`.
|
|
367
|
+
*/
|
|
368
|
+
bufferSize?: number | undefined;
|
|
369
|
+
/**
|
|
370
|
+
* Time between value samples in milliseconds.
|
|
371
|
+
*
|
|
372
|
+
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
373
|
+
* @default `0`
|
|
374
|
+
*/
|
|
375
|
+
interval?: number | undefined;
|
|
376
|
+
/**
|
|
377
|
+
* Number of visible rows of state history.
|
|
378
|
+
*
|
|
379
|
+
* If `bufferSize` is larger, then the value window will scroll once state history exceeds
|
|
380
|
+
* row count.
|
|
381
|
+
* @default `1` \
|
|
382
|
+
* Or `3` if value is `string` and `multiline` is `true`.
|
|
383
|
+
*/
|
|
384
|
+
rows?: number | undefined;
|
|
385
|
+
} & {
|
|
386
|
+
/**
|
|
387
|
+
* A value to monitor.
|
|
388
|
+
* @bindable
|
|
389
|
+
*/
|
|
390
|
+
value: number;
|
|
391
|
+
} & Omit<
|
|
392
|
+
{
|
|
393
|
+
/**
|
|
394
|
+
* The binding's target object with values to manipulate.
|
|
395
|
+
* @bindable
|
|
396
|
+
*/
|
|
397
|
+
object: import('@tweakpane/core').Bindable & Record<string, number>;
|
|
398
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
399
|
+
key: string;
|
|
400
|
+
/**
|
|
401
|
+
* Prevent interactivity and gray out the control.
|
|
402
|
+
* @default `false`
|
|
403
|
+
*/
|
|
404
|
+
disabled?: boolean | undefined;
|
|
405
|
+
/**
|
|
406
|
+
* Text displayed next to control.
|
|
407
|
+
* @default `undefined`
|
|
408
|
+
*/
|
|
409
|
+
label?: string | undefined;
|
|
410
|
+
/**
|
|
411
|
+
* Tweakpane's internal options object.
|
|
412
|
+
*
|
|
413
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
414
|
+
*
|
|
415
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
416
|
+
*
|
|
417
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
418
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
419
|
+
* Tweakpane UI_.
|
|
420
|
+
* @default `undefined`
|
|
421
|
+
*/
|
|
422
|
+
options?: import('tweakpane').NumberMonitorParams | undefined;
|
|
423
|
+
/**
|
|
424
|
+
* Custom color scheme.
|
|
425
|
+
*
|
|
426
|
+
* @default `undefined` \
|
|
427
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
428
|
+
* set with `setGlobalDefaultTheme()`.
|
|
429
|
+
*/
|
|
430
|
+
theme?: import('..').Theme | undefined;
|
|
431
|
+
/**
|
|
432
|
+
* Reference to internal Tweakpane
|
|
433
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
434
|
+
* this control.
|
|
435
|
+
*
|
|
436
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
437
|
+
* components wrapping `<Binding>`'s functionality.
|
|
438
|
+
*
|
|
439
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
440
|
+
*
|
|
441
|
+
* @bindable
|
|
442
|
+
* @readonly
|
|
443
|
+
*/
|
|
444
|
+
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined;
|
|
445
|
+
/**
|
|
446
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
447
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
448
|
+
*
|
|
449
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
450
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
451
|
+
*
|
|
452
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
453
|
+
*
|
|
454
|
+
* @default `undefined`
|
|
455
|
+
*/
|
|
456
|
+
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
457
|
+
},
|
|
458
|
+
'object' | 'key'
|
|
459
|
+
>,
|
|
460
|
+
'ref' | 'options' | 'plugin'
|
|
461
|
+
>
|
|
462
462
|
: {
|
|
463
463
|
/**
|
|
464
464
|
* A value to monitor.
|