svelte-tweakpane-ui 1.2.3 → 1.2.5

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.
Files changed (49) hide show
  1. package/dist/control/Button.svelte +1 -1
  2. package/dist/control/ButtonGrid.svelte.d.ts +30 -30
  3. package/dist/control/Checkbox.svelte.d.ts +8 -8
  4. package/dist/control/Color.svelte.d.ts +96 -96
  5. package/dist/control/CubicBezier.svelte.d.ts +41 -41
  6. package/dist/control/Image.svelte.d.ts +40 -34
  7. package/dist/control/IntervalSlider.svelte.d.ts +105 -95
  8. package/dist/control/List.svelte.d.ts +20 -20
  9. package/dist/control/Point.svelte +1 -1
  10. package/dist/control/Point.svelte.d.ts +115 -114
  11. package/dist/control/RadioGrid.svelte +1 -1
  12. package/dist/control/RadioGrid.svelte.d.ts +59 -59
  13. package/dist/control/Ring.svelte.d.ts +102 -107
  14. package/dist/control/RotationEuler.svelte +1 -1
  15. package/dist/control/RotationEuler.svelte.d.ts +106 -106
  16. package/dist/control/RotationQuaternion.svelte +1 -1
  17. package/dist/control/RotationQuaternion.svelte.d.ts +104 -104
  18. package/dist/control/Slider.svelte.d.ts +84 -84
  19. package/dist/control/Text.svelte.d.ts +24 -24
  20. package/dist/control/Textarea.svelte +1 -1
  21. package/dist/control/Textarea.svelte.d.ts +33 -33
  22. package/dist/control/Wheel.svelte.d.ts +97 -97
  23. package/dist/core/Binding.svelte +1 -1
  24. package/dist/core/Blade.svelte +1 -1
  25. package/dist/core/Folder.svelte.d.ts +4 -1
  26. package/dist/core/Pane.svelte.d.ts +295 -275
  27. package/dist/extra/AutoValue.svelte.d.ts +8 -8
  28. package/dist/extra/Element.svelte.d.ts +23 -23
  29. package/dist/internal/ClsPad.svelte +1 -1
  30. package/dist/internal/GenericBinding.svelte.d.ts +8 -8
  31. package/dist/internal/GenericBladeFolding.svelte.d.ts +24 -24
  32. package/dist/internal/GenericInput.svelte.d.ts +8 -8
  33. package/dist/internal/GenericInputFolding.svelte.d.ts +78 -78
  34. package/dist/internal/GenericMonitor.svelte.d.ts +76 -76
  35. package/dist/internal/GenericSlider.svelte.d.ts +76 -76
  36. package/dist/internal/InternalMonitorBoolean.svelte.d.ts +82 -82
  37. package/dist/internal/InternalMonitorNumber.svelte.d.ts +101 -101
  38. package/dist/internal/InternalMonitorString.svelte.d.ts +87 -87
  39. package/dist/internal/InternalPaneDraggable.svelte +79 -42
  40. package/dist/internal/InternalPaneDraggable.svelte.d.ts +76 -76
  41. package/dist/internal/InternalPaneFixed.svelte.d.ts +26 -26
  42. package/dist/internal/InternalPaneInline.svelte.d.ts +13 -13
  43. package/dist/monitor/FpsGraph.svelte.d.ts +90 -90
  44. package/dist/monitor/Monitor.svelte.d.ts +502 -381
  45. package/dist/monitor/Profiler.svelte.d.ts +131 -131
  46. package/dist/monitor/WaveformMonitor.svelte.d.ts +104 -107
  47. package/dist/theme.d.ts +1 -1
  48. package/package.json +21 -22
  49. package/readme.md +2 -2
@@ -1,9 +1,191 @@
1
1
  import { SvelteComponent } from 'svelte';
2
2
  export type PanePosition = 'draggable' | 'fixed' | 'inline';
3
3
  declare const __propDef: {
4
- props: (
5
- | (Omit<
4
+ props: {
5
+ /**
6
+ * Pane mode, one of three options:
7
+ * - **'draggable'** *(default)* \
8
+ * The pane is draggable and resizable, and may be placed anywhere over the page.
9
+ * - **'inline'** \
10
+ * The pane appears inline with other content in the normal flow of the document. \
11
+ * This is the default mode for components created outside of an explicit `<Pane>`
12
+ * component.*
13
+ * - **'fixed'** \
14
+ * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
15
+ *
16
+ * Note that `<Pane>` is a dynamic component, and availability of additional props will
17
+ * vary depending on the defined `position` value.
18
+ * @default `'draggable'`
19
+ * */
20
+ position?: PanePosition | undefined;
21
+ } & (
22
+ | ({
23
+ /**
24
+ * Pane mode, one of three options:
25
+ * - **'draggable'** *(default)* \
26
+ * The pane is draggable and resizable, and may be placed anywhere over the page.
27
+ * - **'inline'** \
28
+ * The pane appears inline with other content in the normal flow of the document. \
29
+ * This is the default mode for components created outside of an explicit `<Pane>`
30
+ * component.*
31
+ * - **'fixed'** \
32
+ * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
33
+ *
34
+ * Note that `<Pane>` is a dynamic component, and availability of additional props will
35
+ * vary depending on the defined `position` value.
36
+ * @default `'draggable'`
37
+ */
38
+ position: 'fixed';
39
+ } & {
40
+ /**
41
+ * Horizontal position of the pane relative to the left edge of the window, in pixels.
42
+ *
43
+ * Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
44
+ * positioned on the page. (So-named because of its similarity to CSS `position` property.)
45
+ *
46
+ * By default, this position is saved to local storage for persistence across page loads.
47
+ * @default `0`
48
+ * @bindable
49
+ */
50
+ x?: number | undefined;
51
+ /**
52
+ * Vertical position of the pane relative to the top of the window, in pixels.
53
+ *
54
+ * Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
55
+ * positioned on the page. (So-named because of its similarity to CSS `position` property.)
56
+ *
57
+ * By default, this position is saved to local storage for persistence across page loads.
58
+ * @default `0`
59
+ * @bindable
60
+ */
61
+ y?: number | undefined;
62
+ /**
63
+ * Width of the pane, in pixels.
64
+ *
65
+ * Setting explicitly via a passed prop will override saved user-specified width.
66
+ *
67
+ * Use this prop to set a starting width, or to monitor changes in the the pane's width when
68
+ * a user resizes it.
69
+ *
70
+ * Note that height is not exposed because it is determined dynamically by the pane's
71
+ * contents and state of its foldable elements.
72
+ *
73
+ * By default, the width value is saved to local storage for persistence across page loads.
74
+ * @default `256`
75
+ * @bindable
76
+ */
77
+ width?: number | undefined;
78
+ } & Omit<
79
+ {
80
+ /**
81
+ * Text in the pane's title bar.
82
+ * @default `Tweakpane` \
83
+ * Unless `position="inline"`, in which case the default is `undefined` and no title bar is
84
+ * shown.
85
+ */
86
+ title?: string | undefined;
87
+ /**
88
+ * Allow users to interactively expand / contract the pane by clicking its title bar.
89
+ *
90
+ * Hides the collapse button from the title bar when `false`.
91
+ * @default `true`
92
+ */
93
+ userExpandable?: boolean | undefined;
94
+ /**
95
+ * Expand or collapse the pane into its title bar.
96
+ * @default `true`
97
+ * @bindable
98
+ */
99
+ expanded?: boolean | undefined;
100
+ /**
101
+ * Custom color scheme.
102
+ *
103
+ * Applies to all child components, but note that setting a different `theme` on a child
104
+ * component's prop will **not** override the parent pane's theme.
105
+ *
106
+ * Note that `<Pane position="inline' ...>` squares off rounded corners by default to better
107
+ * integrate with surrounding content.
108
+ *
109
+ * Simply pass a custom or default theme like `ThemeUtils.presets.standard` if you want rounded
110
+ * corners on an `inline` pane.
111
+ *
112
+ * See also the `setGlobalDefaultTheme()` for a way to set a custom default theme for all panes
113
+ * on the page.
114
+ * @default `undefined` \
115
+ * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
116
+ * set with `setGlobalDefaultTheme()`.
117
+ */
118
+ theme?: import('..').Theme | undefined;
119
+ /**
120
+ * Scales the pane's elements by a factor of `scale` to make it easier to see.
121
+ *
122
+ * Holds the width of the pane constant, so the pane will grow taller as it is scaled and will
123
+ * continue to respect position- and size-related props. If you need more breathing room, set
124
+ * the `width` property on the pane.
125
+ *
126
+ * Note that the scaling prop is only available on `<Pane>`, not on stand-alone (implicitly
127
+ * wrapped) inline elements.
128
+ *
129
+ * Negative values are ignored.
130
+ * @default `1`
131
+ */
132
+ scale?: number | undefined;
133
+ /** Internal use only. */
134
+ userCreatedPane?: boolean | undefined;
135
+ /**
136
+ * The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
137
+ *
138
+ * This property is exposed for advanced use cases only.
139
+ *
140
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
141
+ *
142
+ * Note that the `Pane` type for this property comes from the core Tweakpane library.
143
+ * Creating an alias is suggested to avoid confusion with the _Svelte Tweakpane UI_ `Pane`
144
+ * component: e.g. `import { type Pane as TpPane } from 'tweakpane'`
145
+ *
146
+ * @bindable
147
+ * @readonly
148
+ */
149
+ tpPane?: import('tweakpane').Pane | undefined;
150
+ },
151
+ 'userCreatedPane'
152
+ >)
153
+ | ({
154
+ /**
155
+ * Pane mode, one of three options:
156
+ * - **'draggable'** *(default)* \
157
+ * The pane is draggable and resizable, and may be placed anywhere over the page.
158
+ * - **'inline'** \
159
+ * The pane appears inline with other content in the normal flow of the document. \
160
+ * This is the default mode for components created outside of an explicit `<Pane>`
161
+ * component.*
162
+ * - **'fixed'** \
163
+ * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
164
+ *
165
+ * Note that `<Pane>` is a dynamic component, and availability of additional props will
166
+ * vary depending on the defined `position` value.
167
+ * @default `'draggable'`
168
+ */
169
+ position: 'inline';
170
+ } & Omit<
6
171
  {
172
+ /**
173
+ * Width of the pane, in pixels.
174
+ *
175
+ * Setting explicitly via a passed prop will override saved user-specified width.
176
+ *
177
+ * Use this prop to set a starting width, or to monitor changes in the the pane's width when
178
+ * a user resizes it.
179
+ *
180
+ * Note that height is not exposed because it is determined dynamically by the pane's
181
+ * contents and state of its foldable elements.
182
+ *
183
+ * By default, the width value is saved to local storage for persistence across page loads.
184
+ * @default `256`
185
+ * @bindable
186
+ */
187
+ width?: number | undefined;
188
+ } & {
7
189
  /**
8
190
  * Text in the pane's title bar.
9
191
  * @default `Tweakpane` \
@@ -76,14 +258,34 @@ declare const __propDef: {
76
258
  tpPane?: import('tweakpane').Pane | undefined;
77
259
  },
78
260
  'userCreatedPane'
79
- > & {
261
+ >)
262
+ | ({
263
+ /**
264
+ * Pane mode, one of three options:
265
+ * - **'draggable'** *(default)* \
266
+ * The pane is draggable and resizable, and may be placed anywhere over the page.
267
+ * - **'inline'** \
268
+ * The pane appears inline with other content in the normal flow of the document. \
269
+ * This is the default mode for components created outside of an explicit `<Pane>`
270
+ * component.*
271
+ * - **'fixed'** \
272
+ * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
273
+ *
274
+ * Note that `<Pane>` is a dynamic component, and availability of additional props will
275
+ * vary depending on the defined `position` value.
276
+ * @default `'draggable'`
277
+ */
278
+ position?: 'draggable' | undefined;
279
+ } & {
80
280
  /**
81
281
  * Horizontal position of the pane relative to the left edge of the window, in pixels.
82
282
  *
83
283
  * Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
84
284
  * positioned on the page. (So-named because of its similarity to CSS `position` property.)
85
- * @default `undefined` \
86
- * 8 pixels from the right edge of the window.
285
+ *
286
+ * By default, this position is saved to local storage for persistence across page loads.
287
+ * @default `0`
288
+ * @bindable
87
289
  */
88
290
  x?: number | undefined;
89
291
  /**
@@ -91,8 +293,10 @@ declare const __propDef: {
91
293
  *
92
294
  * Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
93
295
  * positioned on the page. (So-named because of its similarity to CSS `position` property.)
94
- * @default `undefined` \
95
- * 8 pixels from the top edge of the window.
296
+ *
297
+ * By default, this position is saved to local storage for persistence across page loads.
298
+ * @default `0`
299
+ * @bindable
96
300
  */
97
301
  y?: number | undefined;
98
302
  /**
@@ -144,279 +348,95 @@ declare const __propDef: {
144
348
  /**
145
349
  * Width of the pane, in pixels.
146
350
  *
147
- * If undefined, the pane will fill the width of its container. (This behavior is unique to
148
- * `position="inline"`.)
149
- *
150
- * This value is particularly important in combination with `scale`, since a scaled inline
151
- * pane will grow indefinitely wider if an intrinsic width is not specified and a containing
152
- * element is not provided.
153
- * @default `undefined`
154
- */
155
- width?: number | undefined;
156
- } & {
157
- /**
158
- * Pane mode, one of three options:
159
- * - **'draggable'** *(default)* \
160
- * The pane is draggable and resizable, and may be placed anywhere over the page.
161
- * - **'inline'** \
162
- * The pane appears inline with other content in the normal flow of the document. \
163
- * This is the default mode for components created outside of an explicit `<Pane>`
164
- * component.*
165
- * - **'fixed'** \
166
- * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
167
- *
168
- * Note that `<Pane>` is a dynamic component, and availability of additional props will
169
- * vary depending on the defined `position` value.
170
- * @default `'draggable'`
171
- */
172
- position?: 'draggable' | undefined;
173
- })
174
- | (Omit<
175
- {
176
- /**
177
- * Text in the pane's title bar.
178
- * @default `Tweakpane` \
179
- * Unless `position="inline"`, in which case the default is `undefined` and no title bar is
180
- * shown.
181
- */
182
- title?: string | undefined;
183
- /**
184
- * Allow users to interactively expand / contract the pane by clicking its title bar.
185
- *
186
- * Hides the collapse button from the title bar when `false`.
187
- * @default `true`
188
- */
189
- userExpandable?: boolean | undefined;
190
- /**
191
- * Expand or collapse the pane into its title bar.
192
- * @default `true`
193
- * @bindable
194
- */
195
- expanded?: boolean | undefined;
196
- /**
197
- * Custom color scheme.
198
- *
199
- * Applies to all child components, but note that setting a different `theme` on a child
200
- * component's prop will **not** override the parent pane's theme.
201
- *
202
- * Note that `<Pane position="inline' ...>` squares off rounded corners by default to better
203
- * integrate with surrounding content.
204
- *
205
- * Simply pass a custom or default theme like `ThemeUtils.presets.standard` if you want rounded
206
- * corners on an `inline` pane.
207
- *
208
- * See also the `setGlobalDefaultTheme()` for a way to set a custom default theme for all panes
209
- * on the page.
210
- * @default `undefined` \
211
- * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
212
- * set with `setGlobalDefaultTheme()`.
213
- */
214
- theme?: import('..').Theme | undefined;
215
- /**
216
- * Scales the pane's elements by a factor of `scale` to make it easier to see.
217
- *
218
- * Holds the width of the pane constant, so the pane will grow taller as it is scaled and will
219
- * continue to respect position- and size-related props. If you need more breathing room, set
220
- * the `width` property on the pane.
221
- *
222
- * Note that the scaling prop is only available on `<Pane>`, not on stand-alone (implicitly
223
- * wrapped) inline elements.
224
- *
225
- * Negative values are ignored.
226
- * @default `1`
227
- */
228
- scale?: number | undefined;
229
- /** Internal use only. */
230
- userCreatedPane?: boolean | undefined;
231
- /**
232
- * The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
233
- *
234
- * This property is exposed for advanced use cases only.
235
- *
236
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
237
- *
238
- * Note that the `Pane` type for this property comes from the core Tweakpane library.
239
- * Creating an alias is suggested to avoid confusion with the _Svelte Tweakpane UI_ `Pane`
240
- * component: e.g. `import { type Pane as TpPane } from 'tweakpane'`
241
- *
242
- * @bindable
243
- * @readonly
244
- */
245
- tpPane?: import('tweakpane').Pane | undefined;
246
- },
247
- 'userCreatedPane'
248
- > & {
249
- /**
250
- * Horizontal position of the pane relative to the left edge of the window, in pixels.
251
- *
252
- * Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
253
- * positioned on the page. (So-named because of its similarity to CSS `position` property.)
254
- * @default `undefined` \
255
- * 8 pixels from the right edge of the window.
256
- */
257
- x?: number | undefined;
258
- /**
259
- * Vertical position of the pane relative to the top of the window, in pixels.
351
+ * Setting explicitly via a passed prop will override saved user-specified width.
260
352
  *
261
- * Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
262
- * positioned on the page. (So-named because of its similarity to CSS `position` property.)
263
- * @default `undefined` \
264
- * 8 pixels from the top edge of the window.
265
- */
266
- y?: number | undefined;
267
- /**
268
- * Width of the pane, in pixels.
353
+ * Use this prop to set a starting width, or to monitor changes in the the pane's width when
354
+ * a user resizes it.
269
355
  *
270
- * If undefined, the pane will fill the width of its container. (This behavior is unique to
271
- * `position="inline"`.)
356
+ * Note that height is not exposed because it is determined dynamically by the pane's
357
+ * contents and state of its foldable elements.
272
358
  *
273
- * This value is particularly important in combination with `scale`, since a scaled inline
274
- * pane will grow indefinitely wider if an intrinsic width is not specified and a containing
275
- * element is not provided.
276
- * @default `undefined`
359
+ * By default, the width value is saved to local storage for persistence across page loads.
360
+ * @default `256`
361
+ * @bindable
277
362
  */
278
363
  width?: number | undefined;
279
- } & {
280
- /**
281
- * Pane mode, one of three options:
282
- * - **'draggable'** *(default)* \
283
- * The pane is draggable and resizable, and may be placed anywhere over the page.
284
- * - **'inline'** \
285
- * The pane appears inline with other content in the normal flow of the document. \
286
- * This is the default mode for components created outside of an explicit `<Pane>`
287
- * component.*
288
- * - **'fixed'** \
289
- * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
290
- *
291
- * Note that `<Pane>` is a dynamic component, and availability of additional props will
292
- * vary depending on the defined `position` value.
293
- * @default `'draggable'`
294
- */
295
- position: 'fixed';
296
- })
297
- | (Omit<
298
- {
299
- /**
300
- * Text in the pane's title bar.
301
- * @default `Tweakpane` \
302
- * Unless `position="inline"`, in which case the default is `undefined` and no title bar is
303
- * shown.
304
- */
305
- title?: string | undefined;
306
- /**
307
- * Allow users to interactively expand / contract the pane by clicking its title bar.
308
- *
309
- * Hides the collapse button from the title bar when `false`.
310
- * @default `true`
311
- */
312
- userExpandable?: boolean | undefined;
313
- /**
314
- * Expand or collapse the pane into its title bar.
315
- * @default `true`
316
- * @bindable
317
- */
318
- expanded?: boolean | undefined;
319
- /**
320
- * Custom color scheme.
321
- *
322
- * Applies to all child components, but note that setting a different `theme` on a child
323
- * component's prop will **not** override the parent pane's theme.
324
- *
325
- * Note that `<Pane position="inline' ...>` squares off rounded corners by default to better
326
- * integrate with surrounding content.
327
- *
328
- * Simply pass a custom or default theme like `ThemeUtils.presets.standard` if you want rounded
329
- * corners on an `inline` pane.
330
- *
331
- * See also the `setGlobalDefaultTheme()` for a way to set a custom default theme for all panes
332
- * on the page.
333
- * @default `undefined` \
334
- * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
335
- * set with `setGlobalDefaultTheme()`.
336
- */
337
- theme?: import('..').Theme | undefined;
338
- /**
339
- * Scales the pane's elements by a factor of `scale` to make it easier to see.
340
- *
341
- * Holds the width of the pane constant, so the pane will grow taller as it is scaled and will
342
- * continue to respect position- and size-related props. If you need more breathing room, set
343
- * the `width` property on the pane.
344
- *
345
- * Note that the scaling prop is only available on `<Pane>`, not on stand-alone (implicitly
346
- * wrapped) inline elements.
347
- *
348
- * Negative values are ignored.
349
- * @default `1`
350
- */
351
- scale?: number | undefined;
352
- /** Internal use only. */
353
- userCreatedPane?: boolean | undefined;
354
- /**
355
- * The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
356
- *
357
- * This property is exposed for advanced use cases only.
358
- *
359
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
360
- *
361
- * Note that the `Pane` type for this property comes from the core Tweakpane library.
362
- * Creating an alias is suggested to avoid confusion with the _Svelte Tweakpane UI_ `Pane`
363
- * component: e.g. `import { type Pane as TpPane } from 'tweakpane'`
364
- *
365
- * @bindable
366
- * @readonly
367
- */
368
- tpPane?: import('tweakpane').Pane | undefined;
369
- } & {
370
- /**
371
- * Width of the pane, in pixels.
372
- *
373
- * If undefined, the pane will fill the width of its container. (This behavior is unique to
374
- * `position="inline"`.)
375
- *
376
- * This value is particularly important in combination with `scale`, since a scaled inline
377
- * pane will grow indefinitely wider if an intrinsic width is not specified and a containing
378
- * element is not provided.
379
- * @default `undefined`
380
- */
381
- width?: number | undefined;
382
- },
383
- 'userCreatedPane'
384
- > & {
385
- /**
386
- * Pane mode, one of three options:
387
- * - **'draggable'** *(default)* \
388
- * The pane is draggable and resizable, and may be placed anywhere over the page.
389
- * - **'inline'** \
390
- * The pane appears inline with other content in the normal flow of the document. \
391
- * This is the default mode for components created outside of an explicit `<Pane>`
392
- * component.*
393
- * - **'fixed'** \
394
- * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
395
- *
396
- * Note that `<Pane>` is a dynamic component, and availability of additional props will
397
- * vary depending on the defined `position` value.
398
- * @default `'draggable'`
399
- */
400
- position: 'inline';
401
- })
402
- ) & {
403
- /**
404
- * Pane mode, one of three options:
405
- * - **'draggable'** *(default)* \
406
- * The pane is draggable and resizable, and may be placed anywhere over the page.
407
- * - **'inline'** \
408
- * The pane appears inline with other content in the normal flow of the document. \
409
- * This is the default mode for components created outside of an explicit `<Pane>`
410
- * component.*
411
- * - **'fixed'** \
412
- * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
413
- *
414
- * Note that `<Pane>` is a dynamic component, and availability of additional props will
415
- * vary depending on the defined `position` value.
416
- * @default `'draggable'`
417
- * */
418
- position?: PanePosition | undefined;
419
- };
364
+ } & Omit<
365
+ {
366
+ /**
367
+ * Text in the pane's title bar.
368
+ * @default `Tweakpane` \
369
+ * Unless `position="inline"`, in which case the default is `undefined` and no title bar is
370
+ * shown.
371
+ */
372
+ title?: string | undefined;
373
+ /**
374
+ * Allow users to interactively expand / contract the pane by clicking its title bar.
375
+ *
376
+ * Hides the collapse button from the title bar when `false`.
377
+ * @default `true`
378
+ */
379
+ userExpandable?: boolean | undefined;
380
+ /**
381
+ * Expand or collapse the pane into its title bar.
382
+ * @default `true`
383
+ * @bindable
384
+ */
385
+ expanded?: boolean | undefined;
386
+ /**
387
+ * Custom color scheme.
388
+ *
389
+ * Applies to all child components, but note that setting a different `theme` on a child
390
+ * component's prop will **not** override the parent pane's theme.
391
+ *
392
+ * Note that `<Pane position="inline' ...>` squares off rounded corners by default to better
393
+ * integrate with surrounding content.
394
+ *
395
+ * Simply pass a custom or default theme like `ThemeUtils.presets.standard` if you want rounded
396
+ * corners on an `inline` pane.
397
+ *
398
+ * See also the `setGlobalDefaultTheme()` for a way to set a custom default theme for all panes
399
+ * on the page.
400
+ * @default `undefined` \
401
+ * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
402
+ * set with `setGlobalDefaultTheme()`.
403
+ */
404
+ theme?: import('..').Theme | undefined;
405
+ /**
406
+ * Scales the pane's elements by a factor of `scale` to make it easier to see.
407
+ *
408
+ * Holds the width of the pane constant, so the pane will grow taller as it is scaled and will
409
+ * continue to respect position- and size-related props. If you need more breathing room, set
410
+ * the `width` property on the pane.
411
+ *
412
+ * Note that the scaling prop is only available on `<Pane>`, not on stand-alone (implicitly
413
+ * wrapped) inline elements.
414
+ *
415
+ * Negative values are ignored.
416
+ * @default `1`
417
+ */
418
+ scale?: number | undefined;
419
+ /** Internal use only. */
420
+ userCreatedPane?: boolean | undefined;
421
+ /**
422
+ * The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
423
+ *
424
+ * This property is exposed for advanced use cases only.
425
+ *
426
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
427
+ *
428
+ * Note that the `Pane` type for this property comes from the core Tweakpane library.
429
+ * Creating an alias is suggested to avoid confusion with the _Svelte Tweakpane UI_ `Pane`
430
+ * component: e.g. `import { type Pane as TpPane } from 'tweakpane'`
431
+ *
432
+ * @bindable
433
+ * @readonly
434
+ */
435
+ tpPane?: import('tweakpane').Pane | undefined;
436
+ },
437
+ 'userCreatedPane'
438
+ >)
439
+ );
420
440
  events: {
421
441
  [evt: string]: CustomEvent<any>;
422
442
  };
@@ -3,7 +3,13 @@ import type { ValueChangeEvent } from '../utils.js';
3
3
  export type AutoValueChangeEvent = ValueChangeEvent<boolean | number | object | string>;
4
4
  declare const __propDef: {
5
5
  props: Omit<
6
- Omit<
6
+ {
7
+ /**
8
+ * The value to control.
9
+ * @bindable
10
+ */
11
+ value: string | number | boolean | object;
12
+ } & Omit<
7
13
  {
8
14
  /**
9
15
  * The binding's target object with values to manipulate.
@@ -72,13 +78,7 @@ declare const __propDef: {
72
78
  plugin?: import('tweakpane').TpPluginBundle | undefined;
73
79
  },
74
80
  'object' | 'key'
75
- > & {
76
- /**
77
- * The value to control.
78
- * @bindable
79
- */
80
- value: string | number | boolean | object;
81
- },
81
+ >,
82
82
  'ref' | 'options' | 'plugin'
83
83
  >;
84
84
  slots: {};