svelte-tweakpane-ui 1.6.0-preview.4 → 1.6.0-preview.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 (95) hide show
  1. package/dist/control/Button.svelte +5 -5
  2. package/dist/control/Button.svelte.d.ts +5 -5
  3. package/dist/control/ButtonGrid.svelte +5 -5
  4. package/dist/control/ButtonGrid.svelte.d.ts +32 -34
  5. package/dist/control/Checkbox.svelte.d.ts +9 -13
  6. package/dist/control/Color.svelte +3 -4
  7. package/dist/control/Color.svelte.d.ts +94 -99
  8. package/dist/control/ColorPlus.svelte +2 -2
  9. package/dist/control/ColorPlus.svelte.d.ts +95 -99
  10. package/dist/control/CubicBezier.svelte +5 -5
  11. package/dist/control/CubicBezier.svelte.d.ts +43 -47
  12. package/dist/control/File.svelte +3 -3
  13. package/dist/control/File.svelte.d.ts +34 -38
  14. package/dist/control/Image.svelte +3 -3
  15. package/dist/control/Image.svelte.d.ts +31 -35
  16. package/dist/control/IntervalSlider.svelte +1 -1
  17. package/dist/control/IntervalSlider.svelte.d.ts +103 -108
  18. package/dist/control/List.svelte +5 -5
  19. package/dist/control/List.svelte.d.ts +24 -28
  20. package/dist/control/Point.svelte +9 -9
  21. package/dist/control/Point.svelte.d.ts +142 -147
  22. package/dist/control/RadioGrid.svelte +3 -4
  23. package/dist/control/RadioGrid.svelte.d.ts +60 -64
  24. package/dist/control/Ring.svelte +1 -1
  25. package/dist/control/Ring.svelte.d.ts +105 -109
  26. package/dist/control/RotationEuler.svelte +5 -5
  27. package/dist/control/RotationEuler.svelte.d.ts +110 -115
  28. package/dist/control/RotationQuaternion.svelte +5 -5
  29. package/dist/control/RotationQuaternion.svelte.d.ts +108 -113
  30. package/dist/control/Slider.svelte +1 -1
  31. package/dist/control/Slider.svelte.d.ts +95 -99
  32. package/dist/control/Stepper.svelte +1 -1
  33. package/dist/control/Stepper.svelte.d.ts +95 -99
  34. package/dist/control/Text.svelte +1 -1
  35. package/dist/control/Text.svelte.d.ts +25 -29
  36. package/dist/control/Textarea.svelte +2 -2
  37. package/dist/control/Textarea.svelte.d.ts +34 -38
  38. package/dist/control/Wheel.svelte +1 -1
  39. package/dist/control/Wheel.svelte.d.ts +101 -104
  40. package/dist/core/Binding.svelte +5 -5
  41. package/dist/core/Binding.svelte.d.ts +9 -14
  42. package/dist/core/Blade.svelte +3 -3
  43. package/dist/core/Blade.svelte.d.ts +5 -7
  44. package/dist/core/Folder.svelte +4 -4
  45. package/dist/core/Folder.svelte.d.ts +5 -5
  46. package/dist/core/Pane.svelte +3 -3
  47. package/dist/core/Pane.svelte.d.ts +217 -221
  48. package/dist/core/Separator.svelte +1 -1
  49. package/dist/core/Separator.svelte.d.ts +0 -2
  50. package/dist/core/TabGroup.svelte +4 -4
  51. package/dist/core/TabGroup.svelte.d.ts +3 -3
  52. package/dist/core/TabPage.svelte +4 -4
  53. package/dist/core/TabPage.svelte.d.ts +4 -4
  54. package/dist/extra/AutoObject.svelte +5 -5
  55. package/dist/extra/AutoObject.svelte.d.ts +4 -5
  56. package/dist/extra/AutoValue.svelte.d.ts +9 -13
  57. package/dist/extra/Element.svelte +1 -1
  58. package/dist/extra/Element.svelte.d.ts +23 -25
  59. package/dist/internal/ClsPad.svelte +3 -2
  60. package/dist/internal/GenericBinding.svelte +2 -2
  61. package/dist/internal/GenericBinding.svelte.d.ts +8 -11
  62. package/dist/internal/GenericBladeFolding.svelte +1 -1
  63. package/dist/internal/GenericBladeFolding.svelte.d.ts +25 -27
  64. package/dist/internal/GenericInput.svelte.d.ts +8 -11
  65. package/dist/internal/GenericInputFolding.svelte.d.ts +78 -81
  66. package/dist/internal/GenericMonitor.svelte.d.ts +76 -79
  67. package/dist/internal/GenericPane.svelte +4 -4
  68. package/dist/internal/GenericPane.svelte.d.ts +6 -7
  69. package/dist/internal/GenericSlider.svelte +1 -1
  70. package/dist/internal/GenericSlider.svelte.d.ts +100 -101
  71. package/dist/internal/InternalMonitorBoolean.svelte +2 -2
  72. package/dist/internal/InternalMonitorBoolean.svelte.d.ts +79 -82
  73. package/dist/internal/InternalMonitorNumber.svelte +3 -3
  74. package/dist/internal/InternalMonitorNumber.svelte.d.ts +100 -103
  75. package/dist/internal/InternalMonitorString.svelte +2 -2
  76. package/dist/internal/InternalMonitorString.svelte.d.ts +84 -87
  77. package/dist/internal/InternalPaneDraggable.svelte +5 -5
  78. package/dist/internal/InternalPaneDraggable.svelte.d.ts +86 -88
  79. package/dist/internal/InternalPaneFixed.svelte.d.ts +26 -27
  80. package/dist/internal/InternalPaneInline.svelte +1 -1
  81. package/dist/internal/InternalPaneInline.svelte.d.ts +13 -14
  82. package/dist/monitor/FpsGraph.svelte +5 -5
  83. package/dist/monitor/FpsGraph.svelte.d.ts +45 -47
  84. package/dist/monitor/Monitor.svelte +1 -1
  85. package/dist/monitor/Monitor.svelte.d.ts +316 -331
  86. package/dist/monitor/Profiler.svelte +3 -3
  87. package/dist/monitor/Profiler.svelte.d.ts +51 -59
  88. package/dist/monitor/WaveformMonitor.svelte +5 -5
  89. package/dist/monitor/WaveformMonitor.svelte.d.ts +102 -105
  90. package/dist/theme.d.ts +1 -1
  91. package/dist/theme.js +0 -1
  92. package/dist/utils.d.ts +5 -5
  93. package/dist/utils.js +2 -4
  94. package/license.txt +1 -1
  95. package/package.json +23 -28
@@ -16,27 +16,83 @@ declare const __propDef: {
16
16
  * Note that `<Pane>` is a dynamic component, and availability of additional props will
17
17
  * vary depending on the defined `position` value.
18
18
  * @default `'draggable'`
19
- * */
19
+ */
20
20
  position?: PanePosition
21
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
- } & {
22
+ | (Omit<
23
+ {
24
+ /**
25
+ * Text in the pane's title bar.
26
+ * @default `Tweakpane` \
27
+ * Unless `position="inline"`, in which case the default is `undefined` and no title bar is
28
+ * shown.
29
+ */
30
+ title?: string | undefined
31
+ /**
32
+ * Allow users to interactively expand / contract the pane by clicking its title bar.
33
+ *
34
+ * Hides the collapse button from the title bar when `false`.
35
+ * @default `true`
36
+ */
37
+ userExpandable?: boolean
38
+ /**
39
+ * Expand or collapse the pane into its title bar.
40
+ * @default `true`
41
+ * @bindable
42
+ */
43
+ expanded?: boolean
44
+ /**
45
+ * Custom color scheme.
46
+ *
47
+ * Applies to all child components, but note that setting a different `theme` on a child
48
+ * component's prop will **not** override the parent pane's theme.
49
+ *
50
+ * Note that `<Pane position="inline' ...>` squares off rounded corners by default to better
51
+ * integrate with surrounding content.
52
+ *
53
+ * Simply pass a custom or default theme like `ThemeUtils.presets.standard` if you want rounded
54
+ * corners on an `inline` pane.
55
+ *
56
+ * See also the `setGlobalDefaultTheme()` for a way to set a custom default theme for all panes
57
+ * on the page.
58
+ * @default `undefined` \
59
+ * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
60
+ * set with `setGlobalDefaultTheme()`.
61
+ */
62
+ theme?: import('..').Theme | undefined
63
+ /**
64
+ * Scales the pane's elements by a factor of `scale` to make it easier to see.
65
+ *
66
+ * Holds the width of the pane constant, so the pane will grow taller as it is scaled and will
67
+ * continue to respect position- and size-related props. If you need more breathing room, set
68
+ * the `width` property on the pane.
69
+ *
70
+ * Note that the scaling prop is only available on `<Pane>`, not on stand-alone (implicitly
71
+ * wrapped) inline elements.
72
+ *
73
+ * Negative values are ignored.
74
+ * @default `1`
75
+ */
76
+ scale?: number
77
+ /** Internal use only. */
78
+ userCreatedPane?: boolean
79
+ /**
80
+ * The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
81
+ *
82
+ * This property is exposed for advanced use cases only.
83
+ *
84
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
85
+ *
86
+ * Note that the `Pane` type for this property comes from the core Tweakpane library.
87
+ * Creating an alias is suggested to avoid confusion with the _Svelte Tweakpane UI_ `Pane`
88
+ * component: e.g. `import { type Pane as TpPane } from 'tweakpane'`
89
+ * @bindable
90
+ * @readonly
91
+ */
92
+ tpPane?: import('tweakpane').Pane | undefined
93
+ },
94
+ 'userCreatedPane'
95
+ > & {
40
96
  /**
41
97
  * Horizontal position of the pane relative to the left edge of the window, in pixels.
42
98
  *
@@ -75,82 +131,7 @@ declare const __propDef: {
75
131
  * @bindable
76
132
  */
77
133
  width?: number
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
94
- /**
95
- * Expand or collapse the pane into its title bar.
96
- * @default `true`
97
- * @bindable
98
- */
99
- expanded?: boolean
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
133
- /** Internal use only. */
134
- userCreatedPane?: boolean
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
- | ({
134
+ } & {
154
135
  /**
155
136
  * Pane mode, one of three options:
156
137
  * - **'draggable'** *(default)* \
@@ -166,9 +147,80 @@ declare const __propDef: {
166
147
  * vary depending on the defined `position` value.
167
148
  * @default `'draggable'`
168
149
  */
169
- position: 'inline'
170
- } & Omit<
150
+ position: 'fixed'
151
+ })
152
+ | (Omit<
171
153
  {
154
+ /**
155
+ * Text in the pane's title bar.
156
+ * @default `Tweakpane` \
157
+ * Unless `position="inline"`, in which case the default is `undefined` and no title bar is
158
+ * shown.
159
+ */
160
+ title?: string | undefined
161
+ /**
162
+ * Allow users to interactively expand / contract the pane by clicking its title bar.
163
+ *
164
+ * Hides the collapse button from the title bar when `false`.
165
+ * @default `true`
166
+ */
167
+ userExpandable?: boolean
168
+ /**
169
+ * Expand or collapse the pane into its title bar.
170
+ * @default `true`
171
+ * @bindable
172
+ */
173
+ expanded?: boolean
174
+ /**
175
+ * Custom color scheme.
176
+ *
177
+ * Applies to all child components, but note that setting a different `theme` on a child
178
+ * component's prop will **not** override the parent pane's theme.
179
+ *
180
+ * Note that `<Pane position="inline' ...>` squares off rounded corners by default to better
181
+ * integrate with surrounding content.
182
+ *
183
+ * Simply pass a custom or default theme like `ThemeUtils.presets.standard` if you want rounded
184
+ * corners on an `inline` pane.
185
+ *
186
+ * See also the `setGlobalDefaultTheme()` for a way to set a custom default theme for all panes
187
+ * on the page.
188
+ * @default `undefined` \
189
+ * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
190
+ * set with `setGlobalDefaultTheme()`.
191
+ */
192
+ theme?: import('..').Theme | undefined
193
+ /**
194
+ * Scales the pane's elements by a factor of `scale` to make it easier to see.
195
+ *
196
+ * Holds the width of the pane constant, so the pane will grow taller as it is scaled and will
197
+ * continue to respect position- and size-related props. If you need more breathing room, set
198
+ * the `width` property on the pane.
199
+ *
200
+ * Note that the scaling prop is only available on `<Pane>`, not on stand-alone (implicitly
201
+ * wrapped) inline elements.
202
+ *
203
+ * Negative values are ignored.
204
+ * @default `1`
205
+ */
206
+ scale?: number
207
+ /** Internal use only. */
208
+ userCreatedPane?: boolean
209
+ /**
210
+ * The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
211
+ *
212
+ * This property is exposed for advanced use cases only.
213
+ *
214
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
215
+ *
216
+ * Note that the `Pane` type for this property comes from the core Tweakpane library.
217
+ * Creating an alias is suggested to avoid confusion with the _Svelte Tweakpane UI_ `Pane`
218
+ * component: e.g. `import { type Pane as TpPane } from 'tweakpane'`
219
+ * @bindable
220
+ * @readonly
221
+ */
222
+ tpPane?: import('tweakpane').Pane | undefined
223
+ } & {
172
224
  /**
173
225
  * Width of the pane, in pixels.
174
226
  *
@@ -185,7 +237,28 @@ declare const __propDef: {
185
237
  * @bindable
186
238
  */
187
239
  width?: number
188
- } & {
240
+ },
241
+ 'userCreatedPane'
242
+ > & {
243
+ /**
244
+ * Pane mode, one of three options:
245
+ * - **'draggable'** *(default)* \
246
+ * The pane is draggable and resizable, and may be placed anywhere over the page.
247
+ * - **'inline'** \
248
+ * The pane appears inline with other content in the normal flow of the document. \
249
+ * This is the default mode for components created outside of an explicit `<Pane>`
250
+ * component.*
251
+ * - **'fixed'** \
252
+ * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
253
+ *
254
+ * Note that `<Pane>` is a dynamic component, and availability of additional props will
255
+ * vary depending on the defined `position` value.
256
+ * @default `'draggable'`
257
+ */
258
+ position: 'inline'
259
+ })
260
+ | (Omit<
261
+ {
189
262
  /**
190
263
  * Text in the pane's title bar.
191
264
  * @default `Tweakpane` \
@@ -251,32 +324,13 @@ declare const __propDef: {
251
324
  * Note that the `Pane` type for this property comes from the core Tweakpane library.
252
325
  * Creating an alias is suggested to avoid confusion with the _Svelte Tweakpane UI_ `Pane`
253
326
  * component: e.g. `import { type Pane as TpPane } from 'tweakpane'`
254
- *
255
327
  * @bindable
256
328
  * @readonly
257
329
  */
258
330
  tpPane?: import('tweakpane').Pane | undefined
259
331
  },
260
332
  'userCreatedPane'
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
- } & {
333
+ > & {
280
334
  /**
281
335
  * Horizontal position of the pane relative to the left edge of the window, in pixels.
282
336
  *
@@ -299,6 +353,22 @@ declare const __propDef: {
299
353
  * @bindable
300
354
  */
301
355
  y?: number
356
+ /**
357
+ * Width of the pane, in pixels.
358
+ *
359
+ * Setting explicitly via a passed prop will override saved user-specified width.
360
+ *
361
+ * Use this prop to set a starting width, or to monitor changes in the the pane's width when
362
+ * a user resizes it.
363
+ *
364
+ * Note that height is not exposed because it is determined dynamically by the pane's
365
+ * contents and state of its foldable elements.
366
+ *
367
+ * By default, the width value is saved to local storage for persistence across page loads.
368
+ * @default `256`
369
+ * @bindable
370
+ */
371
+ width?: number
302
372
  /**
303
373
  * Minimum pane width in pixels.
304
374
  * @default `200`
@@ -310,18 +380,11 @@ declare const __propDef: {
310
380
  */
311
381
  maxWidth?: number
312
382
  /**
313
- * Automatically collapse open panels when the available window size is less than the height
314
- * of the pane.
315
- *
316
- * @default `false`
317
- */
318
- collapseChildrenToFit?: boolean
319
- /**
320
- * Identifier to be used if multiple `<Pane position="draggable">` components with
321
- * `storePositionLocally` set to true are used on the same page.
322
- * @default `'1'`
383
+ * Allow the user to resize the width of the pane by dragging the right corner of the title
384
+ * bar.
385
+ * @default `true`
323
386
  */
324
- localStoreId?: string
387
+ resizable?: boolean
325
388
  /**
326
389
  * CSS [padding property string](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
327
390
  * to apply to the draggable pane container to prevent it from being dragged all the way to
@@ -332,11 +395,11 @@ declare const __propDef: {
332
395
  */
333
396
  padding?: string
334
397
  /**
335
- * Allow the user to resize the width of the pane by dragging the right corner of the title
336
- * bar.
337
- * @default `true`
398
+ * Automatically collapse open panels when the available window size is less than the height
399
+ * of the pane.
400
+ * @default `false`
338
401
  */
339
- resizable?: boolean
402
+ collapseChildrenToFit?: boolean
340
403
  /**
341
404
  * Store the pane's position and width when the user changes it interactively.
342
405
  *
@@ -346,96 +409,29 @@ declare const __propDef: {
346
409
  */
347
410
  storePositionLocally?: boolean
348
411
  /**
349
- * Width of the pane, in pixels.
350
- *
351
- * Setting explicitly via a passed prop will override saved user-specified width.
352
- *
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.
355
- *
356
- * Note that height is not exposed because it is determined dynamically by the pane's
357
- * contents and state of its foldable elements.
412
+ * Identifier to be used if multiple `<Pane position="draggable">` components with
413
+ * `storePositionLocally` set to true are used on the same page.
414
+ * @default `'1'`
415
+ */
416
+ localStoreId?: string
417
+ } & {
418
+ /**
419
+ * Pane mode, one of three options:
420
+ * - **'draggable'** *(default)* \
421
+ * The pane is draggable and resizable, and may be placed anywhere over the page.
422
+ * - **'inline'** \
423
+ * The pane appears inline with other content in the normal flow of the document. \
424
+ * This is the default mode for components created outside of an explicit `<Pane>`
425
+ * component.*
426
+ * - **'fixed'** \
427
+ * Standard Tweakpane behavior where the pane is shown in a fixed position over the page.
358
428
  *
359
- * By default, the width value is saved to local storage for persistence across page loads.
360
- * @default `256`
361
- * @bindable
429
+ * Note that `<Pane>` is a dynamic component, and availability of additional props will
430
+ * vary depending on the defined `position` value.
431
+ * @default `'draggable'`
362
432
  */
363
- width?: number
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
380
- /**
381
- * Expand or collapse the pane into its title bar.
382
- * @default `true`
383
- * @bindable
384
- */
385
- expanded?: boolean
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
419
- /** Internal use only. */
420
- userCreatedPane?: boolean
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
- >)
433
+ position?: 'draggable' | undefined
434
+ })
439
435
  )
440
436
  events: {
441
437
  [evt: string]: CustomEvent<any>
@@ -1,7 +1,7 @@
1
1
  <script>
2
+ import { BROWSER } from 'esm-env'
2
3
  import Blade from './Blade.svelte'
3
4
  import ClsPad from '../internal/ClsPad.svelte'
4
- import { BROWSER } from 'esm-env'
5
5
  const options = {
6
6
  view: 'separator',
7
7
  }
@@ -32,7 +32,6 @@ declare const __propDef: {
32
32
  * components wrapping `<Blade>`'s functionality.
33
33
  *
34
34
  * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
35
- *
36
35
  * @bindable
37
36
  * @readonly
38
37
  */
@@ -45,7 +44,6 @@ declare const __propDef: {
45
44
  * components wrapping `<Blade>`'s functionality in combination with a Tweakpane plugin.
46
45
  *
47
46
  * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
48
- *
49
47
  * @default `undefined`
50
48
  */
51
49
  plugin?: import('./Blade.svelte').Plugin | undefined
@@ -1,10 +1,10 @@
1
1
  <script>
2
- import ClsPad from '../internal/ClsPad.svelte'
3
- import InternalPaneInline from '../internal/InternalPaneInline.svelte'
4
- import { getElementIndex, isRootPane } from '../utils.js'
5
2
  import { BROWSER } from 'esm-env'
6
3
  import { getContext, onDestroy, onMount, setContext } from 'svelte'
7
4
  import { writable } from 'svelte/store'
5
+ import ClsPad from '../internal/ClsPad.svelte'
6
+ import InternalPaneInline from '../internal/InternalPaneInline.svelte'
7
+ import { getElementIndex, isRootPane } from '../utils.js'
8
8
  export let disabled = false
9
9
  export let selectedIndex = 0
10
10
  export let theme = void 0
@@ -35,7 +35,7 @@
35
35
  $: $tabGroupStore && ($tabGroupStore.disabled = disabled)
36
36
  $: theme &&
37
37
  $parentStore &&
38
- (userCreatedPane || !isRootPane($parentStore)) &&
38
+ (userCreatedPane ?? !isRootPane($parentStore)) &&
39
39
  console.warn(
40
40
  'Set theme on the <Pane> component, not on its children! (Check nested <TabGroup> components for a theme prop.)',
41
41
  )
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  /**
6
6
  * Prevent interactivity and gray out the control.
7
7
  * @default `false`
8
- * */ disabled?: boolean
8
+ */ disabled?: boolean
9
9
  /**
10
10
  * Active page index.
11
11
  *
@@ -13,13 +13,13 @@ declare const __propDef: {
13
13
  * index.
14
14
  * @default `0`
15
15
  * @bindable
16
- * */ selectedIndex?: number
16
+ */ selectedIndex?: number
17
17
  /**
18
18
  * Custom color scheme.
19
19
  * @default `undefined` \
20
20
  * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
21
21
  * set with `setGlobalDefaultTheme()`.
22
- * */ theme?: Theme | undefined
22
+ */ theme?: Theme | undefined
23
23
  }
24
24
  events: {
25
25
  [evt: string]: CustomEvent<any>
@@ -1,11 +1,11 @@
1
1
  <script>
2
+ import { BROWSER } from 'esm-env'
3
+ import { getContext, onDestroy, onMount, setContext } from 'svelte'
4
+ import { writable } from 'svelte/store'
2
5
  import TabGroup from './TabGroup.svelte'
3
6
  import ClsPad from '../internal/ClsPad.svelte'
4
7
  import InternalPaneInline from '../internal/InternalPaneInline.svelte'
5
8
  import { getElementIndex, isRootPane } from '../utils.js'
6
- import { BROWSER } from 'esm-env'
7
- import { getContext, onDestroy, onMount, setContext } from 'svelte'
8
- import { writable } from 'svelte/store'
9
9
  export let title = 'Tab Page'
10
10
  export let disabled = false
11
11
  export let selected = false
@@ -48,7 +48,7 @@
48
48
  $: $tabPageStore && ($tabPageStore.selected = selected)
49
49
  $: theme &&
50
50
  $parentStore &&
51
- (userCreatedPane || !isRootPane($parentStore)) &&
51
+ (userCreatedPane ?? !isRootPane($parentStore)) &&
52
52
  console.warn(
53
53
  'Set theme on the <Pane> component, not on its children! (Check nested <TabPage> components for a theme prop.)',
54
54
  )
@@ -5,24 +5,24 @@ declare const __propDef: {
5
5
  /**
6
6
  * Text in the tab.
7
7
  * @default `'Tab Page'`
8
- * */ title?: string
8
+ */ title?: string
9
9
  /**
10
10
  * Prevent interactivity and gray out the control.
11
11
  * @default `false`
12
- * */ disabled?: boolean
12
+ */ disabled?: boolean
13
13
  /**
14
14
  * Sets the page is the active tab.
15
15
  *
16
16
  * When bound it will indicate whether the tab is active.
17
17
  * @default `false`
18
18
  * @bindable
19
- * */ selected?: boolean
19
+ */ selected?: boolean
20
20
  /**
21
21
  * Custom color scheme.
22
22
  * @default `undefined` \
23
23
  * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
24
24
  * set with `setGlobalDefaultTheme()`.)
25
- * */ theme?: Theme | undefined
25
+ */ theme?: Theme | undefined
26
26
  }
27
27
  events: {
28
28
  [evt: string]: CustomEvent<any>
@@ -1,16 +1,16 @@
1
1
  <script context="module"></script>
2
2
 
3
3
  <script>
4
- import Text from '../control/Text.svelte'
5
- import Binding from '../core/Binding.svelte'
6
- import Folder from '../core/Folder.svelte'
7
- import InternalPaneInline from '../internal/InternalPaneInline.svelte'
8
4
  import { isColorObject } from '@tweakpane/core'
9
5
  import { Point2d } from '@tweakpane/core/dist/input-binding/point-2d/model/point-2d.js'
10
6
  import { Point3d } from '@tweakpane/core/dist/input-binding/point-3d/model/point-3d.js'
11
7
  import { Point4d } from '@tweakpane/core/dist/input-binding/point-4d/model/point-4d.js'
12
- import copy from 'fast-copy'
8
+ import { copy } from 'fast-copy'
13
9
  import { createEventDispatcher, getContext } from 'svelte'
10
+ import Text from '../control/Text.svelte'
11
+ import Binding from '../core/Binding.svelte'
12
+ import Folder from '../core/Folder.svelte'
13
+ import InternalPaneInline from '../internal/InternalPaneInline.svelte'
14
14
  export let theme = void 0
15
15
  export let prettyLabels = true
16
16
  export let object