svelte-tweakpane-ui 1.5.3 → 1.5.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.
Files changed (103) hide show
  1. package/dist/control/Button.svelte +30 -30
  2. package/dist/control/Button.svelte.d.ts +18 -18
  3. package/dist/control/ButtonGrid.svelte +25 -25
  4. package/dist/control/ButtonGrid.svelte.d.ts +35 -35
  5. package/dist/control/Checkbox.svelte +2 -2
  6. package/dist/control/Checkbox.svelte.d.ts +23 -23
  7. package/dist/control/Color.svelte +34 -34
  8. package/dist/control/Color.svelte.d.ts +40 -40
  9. package/dist/control/CubicBezier.svelte +30 -30
  10. package/dist/control/CubicBezier.svelte.d.ts +47 -47
  11. package/dist/control/File.svelte +20 -20
  12. package/dist/control/File.svelte.d.ts +38 -38
  13. package/dist/control/Image.svelte +22 -22
  14. package/dist/control/Image.svelte.d.ts +31 -31
  15. package/dist/control/IntervalSlider.svelte +24 -24
  16. package/dist/control/IntervalSlider.svelte.d.ts +39 -39
  17. package/dist/control/List.svelte +35 -35
  18. package/dist/control/List.svelte.d.ts +31 -31
  19. package/dist/control/Point.svelte +31 -31
  20. package/dist/control/Point.svelte.d.ts +81 -81
  21. package/dist/control/RadioGrid.svelte +24 -24
  22. package/dist/control/RadioGrid.svelte.d.ts +40 -40
  23. package/dist/control/Ring.svelte +9 -9
  24. package/dist/control/Ring.svelte.d.ts +40 -40
  25. package/dist/control/RotationEuler.svelte +25 -25
  26. package/dist/control/RotationEuler.svelte.d.ts +53 -53
  27. package/dist/control/RotationQuaternion.svelte +24 -24
  28. package/dist/control/RotationQuaternion.svelte.d.ts +47 -47
  29. package/dist/control/Slider.svelte +9 -9
  30. package/dist/control/Slider.svelte.d.ts +32 -32
  31. package/dist/control/Stepper.svelte +16 -16
  32. package/dist/control/Stepper.svelte.d.ts +32 -32
  33. package/dist/control/Text.svelte +13 -13
  34. package/dist/control/Text.svelte.d.ts +26 -26
  35. package/dist/control/Textarea.svelte +34 -34
  36. package/dist/control/Textarea.svelte.d.ts +29 -29
  37. package/dist/control/Wheel.svelte +8 -8
  38. package/dist/control/Wheel.svelte.d.ts +32 -32
  39. package/dist/core/Binding.svelte +60 -60
  40. package/dist/core/Binding.svelte.d.ts +33 -33
  41. package/dist/core/Blade.svelte +30 -30
  42. package/dist/core/Blade.svelte.d.ts +21 -21
  43. package/dist/core/Folder.svelte +34 -34
  44. package/dist/core/Folder.svelte.d.ts +22 -22
  45. package/dist/core/Pane.svelte +17 -17
  46. package/dist/core/Pane.svelte.d.ts +56 -56
  47. package/dist/core/Separator.svelte +5 -5
  48. package/dist/core/Separator.svelte.d.ts +20 -20
  49. package/dist/core/TabGroup.svelte +29 -29
  50. package/dist/core/TabGroup.svelte.d.ts +18 -18
  51. package/dist/core/TabPage.svelte +36 -36
  52. package/dist/core/TabPage.svelte.d.ts +21 -21
  53. package/dist/extra/AutoObject.svelte +20 -20
  54. package/dist/extra/AutoObject.svelte.d.ts +22 -22
  55. package/dist/extra/AutoValue.svelte +3 -3
  56. package/dist/extra/AutoValue.svelte.d.ts +26 -26
  57. package/dist/extra/Element.svelte +10 -10
  58. package/dist/extra/Element.svelte.d.ts +26 -26
  59. package/dist/index.d.ts +48 -48
  60. package/dist/index.js +35 -35
  61. package/dist/internal/ClsPad.svelte +11 -11
  62. package/dist/internal/ClsPad.svelte.d.ts +17 -17
  63. package/dist/internal/GenericBinding.svelte +11 -11
  64. package/dist/internal/GenericBinding.svelte.d.ts +25 -25
  65. package/dist/internal/GenericBladeFolding.svelte +19 -19
  66. package/dist/internal/GenericBladeFolding.svelte.d.ts +20 -20
  67. package/dist/internal/GenericInput.svelte +7 -7
  68. package/dist/internal/GenericInput.svelte.d.ts +27 -27
  69. package/dist/internal/GenericInputFolding.svelte +21 -21
  70. package/dist/internal/GenericInputFolding.svelte.d.ts +32 -32
  71. package/dist/internal/GenericMonitor.svelte +10 -10
  72. package/dist/internal/GenericMonitor.svelte.d.ts +29 -29
  73. package/dist/internal/GenericPane.svelte +48 -48
  74. package/dist/internal/GenericPane.svelte.d.ts +22 -22
  75. package/dist/internal/GenericSlider.svelte +15 -15
  76. package/dist/internal/GenericSlider.svelte.d.ts +29 -29
  77. package/dist/internal/InternalMonitorBoolean.svelte +5 -5
  78. package/dist/internal/InternalMonitorBoolean.svelte.d.ts +31 -31
  79. package/dist/internal/InternalMonitorNumber.svelte +14 -14
  80. package/dist/internal/InternalMonitorNumber.svelte.d.ts +37 -37
  81. package/dist/internal/InternalMonitorString.svelte +9 -9
  82. package/dist/internal/InternalMonitorString.svelte.d.ts +32 -32
  83. package/dist/internal/InternalPaneDraggable.svelte +169 -173
  84. package/dist/internal/InternalPaneDraggable.svelte.d.ts +30 -30
  85. package/dist/internal/InternalPaneFixed.svelte +13 -13
  86. package/dist/internal/InternalPaneFixed.svelte.d.ts +23 -23
  87. package/dist/internal/InternalPaneInline.svelte +14 -14
  88. package/dist/internal/InternalPaneInline.svelte.d.ts +21 -21
  89. package/dist/monitor/FpsGraph.svelte +35 -35
  90. package/dist/monitor/FpsGraph.svelte.d.ts +50 -42
  91. package/dist/monitor/Monitor.svelte +4 -4
  92. package/dist/monitor/Monitor.svelte.d.ts +87 -88
  93. package/dist/monitor/Profiler.svelte +37 -37
  94. package/dist/monitor/Profiler.svelte.d.ts +78 -76
  95. package/dist/monitor/WaveformMonitor.svelte +12 -12
  96. package/dist/monitor/WaveformMonitor.svelte.d.ts +39 -39
  97. package/dist/theme.d.ts +61 -61
  98. package/dist/theme.js +49 -53
  99. package/dist/utils.d.ts +62 -66
  100. package/dist/utils.js +78 -78
  101. package/license.txt +1 -1
  102. package/package.json +100 -115
  103. package/readme.md +1 -1
@@ -1,42 +1,42 @@
1
- import { SvelteComponent } from 'svelte';
2
- import type { Simplify } from '../utils';
3
- import type { ValueChangeEvent } from '../utils.js';
4
- import type { Point2dInputParams, Point3dInputParams, Point4dInputParams } from 'tweakpane';
1
+ import { SvelteComponent } from 'svelte'
2
+ import type { Simplify } from '../utils'
3
+ import type { ValueChangeEvent } from '../utils.js'
4
+ import type { Point2dInputParams, Point3dInputParams, Point4dInputParams } from 'tweakpane'
5
5
  export type PointValue2dObject = {
6
- x: number;
7
- y: number;
8
- };
9
- export type PointValue2dTuple = [x: number, y: number];
10
- export type PointValue2d = Simplify<PointValue2dObject | PointValue2dTuple>;
6
+ x: number
7
+ y: number
8
+ }
9
+ export type PointValue2dTuple = [x: number, y: number]
10
+ export type PointValue2d = Simplify<PointValue2dObject | PointValue2dTuple>
11
11
  export type PointValue3dObject = {
12
- x: number;
13
- y: number;
14
- z: number;
15
- };
16
- export type PointValue3dTuple = [x: number, y: number, z: number];
17
- export type PointValue3d = Simplify<PointValue3dObject | PointValue3dTuple>;
12
+ x: number
13
+ y: number
14
+ z: number
15
+ }
16
+ export type PointValue3dTuple = [x: number, y: number, z: number]
17
+ export type PointValue3d = Simplify<PointValue3dObject | PointValue3dTuple>
18
18
  export type PointValue4dObject = {
19
- x: number;
20
- y: number;
21
- z: number;
22
- w: number;
23
- };
24
- export type PointValue4dTuple = [x: number, y: number, z: number, w: number];
25
- export type PointValue4d = Simplify<PointValue4dObject | PointValue4dTuple>;
19
+ x: number
20
+ y: number
21
+ z: number
22
+ w: number
23
+ }
24
+ export type PointValue4dTuple = [x: number, y: number, z: number, w: number]
25
+ export type PointValue4d = Simplify<PointValue4dObject | PointValue4dTuple>
26
26
  /**
27
27
  * TODO docs
28
28
  */
29
29
  export type PointOptions<
30
30
  Dimensions extends '2' | '3' | '4',
31
- Axis extends 'w' | 'x' | 'y' | 'z'
31
+ Axis extends 'w' | 'x' | 'y' | 'z',
32
32
  > = Dimensions extends '4'
33
33
  ? Point4dInputParams[Axis]
34
34
  : Dimensions extends '3'
35
35
  ? Point3dInputParams[Axis]
36
36
  : Dimensions extends '2'
37
37
  ? Point2dInputParams[Axis]
38
- : never;
39
- export type PointChangeEvent = ValueChangeEvent<PointValue2d | PointValue3d | PointValue4d>;
38
+ : never
39
+ export type PointChangeEvent = ValueChangeEvent<PointValue2d | PointValue3d | PointValue4d>
40
40
  declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointValue4d> {
41
41
  props(): {
42
42
  /**
@@ -48,67 +48,67 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
48
48
  * The type of this value will determine the availability of axis-specific option props.
49
49
  * @bindable
50
50
  * */
51
- value: T;
51
+ value: T
52
52
  /**
53
53
  * The minimum value for all dimensions.
54
54
  * @default `undefined` \
55
55
  * No minimum.
56
56
  * */
57
- min?: number;
57
+ min?: number
58
58
  /**
59
59
  * The maximum value for all dimensions.
60
60
  * @default `undefined` \
61
61
  * No maximum.
62
62
  * */
63
- max?: number;
63
+ max?: number
64
64
  /**
65
65
  * A function to customize the point value's string representation (e.g. rounding, etc.).
66
66
  * @default `undefined` \
67
67
  * Normal `.toString()` formatting.
68
68
  * */
69
- format?: ((value: number) => string) | undefined;
69
+ format?: ((value: number) => string) | undefined
70
70
  /**
71
71
  * The unit scale for key-based input for all dimensions (e.g. the up and down arrow keys).
72
72
  * @default `1` \
73
73
  * Or `stepValue` if defined.
74
74
  * */
75
- keyScale?: number;
75
+ keyScale?: number
76
76
  /**
77
77
  * The unit scale for pointer-based input for all dimensions.
78
78
  * @default `undefined` \
79
79
  * [Dynamic based on magnitude of
80
80
  * `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
81
81
  * */
82
- pointerScale?: number;
82
+ pointerScale?: number
83
83
  /**
84
84
  * The minimum step interval for all dimensions.
85
85
  * @default `undefined` \
86
86
  * No step constraint.
87
87
  * */
88
- step?: number;
88
+ step?: number
89
89
  } & Omit<
90
90
  {
91
91
  /**
92
92
  * DOM class name of the button used to expand and collapse the input's picker.
93
93
  * @default `undefined`
94
94
  */
95
- buttonClass?: string;
95
+ buttonClass?: string
96
96
  /**
97
97
  * Expand or collapse the input's picker.
98
98
  * @default `false`
99
99
  * @bindable
100
100
  */
101
- expanded?: boolean;
101
+ expanded?: boolean
102
102
  /**
103
103
  * The style of value "picker" to use in the input.
104
104
  * @default `'popup'`
105
105
  */
106
- picker?: 'inline' | 'popup';
106
+ picker?: 'inline' | 'popup'
107
107
  /**
108
108
  * Allow users to interactively expand / contract the picker.
109
109
  * @default `true`
110
110
  */
111
- userExpandable?: boolean;
111
+ userExpandable?: boolean
112
112
  } & {
113
113
  /**
114
114
  * A 2D, 3D, or 4D point object to control.
@@ -119,26 +119,26 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
119
119
  * The type of this value will determine the availability of axis-specific option props.
120
120
  * @bindable
121
121
  */
122
- value: T;
122
+ value: T
123
123
  } & Omit<
124
124
  {
125
125
  /**
126
126
  * The binding's target object with values to manipulate.
127
127
  * @bindable
128
128
  */
129
- object: import('@tweakpane/core').Bindable & Record<string, T>;
129
+ object: import('@tweakpane/core').Bindable & Record<string, T>
130
130
  /** The key for the value in the target `object` that the control should manipulate. */
131
- key: string;
131
+ key: string
132
132
  /**
133
133
  * Prevent interactivity and gray out the control.
134
134
  * @default `false`
135
135
  */
136
- disabled?: boolean;
136
+ disabled?: boolean
137
137
  /**
138
138
  * Text displayed next to control.
139
139
  * @default `undefined`
140
140
  */
141
- label?: string | undefined;
141
+ label?: string | undefined
142
142
  /**
143
143
  * Tweakpane's internal options object.
144
144
  *
@@ -159,7 +159,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
159
159
  : T extends PointValue2d
160
160
  ? Point2dInputParams
161
161
  : unknown)
162
- | undefined;
162
+ | undefined
163
163
  /**
164
164
  * Custom color scheme.
165
165
  *
@@ -167,7 +167,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
167
167
  * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
168
168
  * set with `setGlobalDefaultTheme()`.
169
169
  */
170
- theme?: import('..').Theme | undefined;
170
+ theme?: import('..').Theme | undefined
171
171
  /**
172
172
  * Reference to internal Tweakpane
173
173
  * [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
@@ -181,7 +181,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
181
181
  * @bindable
182
182
  * @readonly
183
183
  */
184
- ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined;
184
+ ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined
185
185
  /**
186
186
  * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
187
187
  * the `<Binding>`'s containing `<Pane>`.
@@ -193,7 +193,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
193
193
  *
194
194
  * @default `undefined`
195
195
  */
196
- plugin?: import('../utils').Plugin | undefined;
196
+ plugin?: import('../utils').Plugin | undefined
197
197
  },
198
198
  'object' | 'key'
199
199
  >,
@@ -220,7 +220,7 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
220
220
  : unknown
221
221
  : never
222
222
  : never)['x']
223
- | undefined;
223
+ | undefined
224
224
  /**
225
225
  * Input parameters specific to the Y dimension.
226
226
  *
@@ -233,18 +233,18 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
233
233
  * `inverted` is `false`
234
234
  * */
235
235
  optionsY?:
236
- | (T extends infer T_1
237
- ? T_1 extends T
238
- ? T_1 extends PointValue4d
236
+ | (T extends infer T_2
237
+ ? T_2 extends T
238
+ ? T_2 extends PointValue4d
239
239
  ? Point4dInputParams
240
- : T_1 extends PointValue3d
240
+ : T_2 extends PointValue3d
241
241
  ? Point3dInputParams
242
- : T_1 extends PointValue2d
242
+ : T_2 extends PointValue2d
243
243
  ? Point2dInputParams
244
244
  : unknown
245
245
  : never
246
246
  : never)['y']
247
- | undefined;
247
+ | undefined
248
248
  }
249
249
  : unknown) &
250
250
  (T extends PointValue3d | PointValue4d
@@ -257,18 +257,18 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
257
257
  * @default `undefined`
258
258
  * */
259
259
  optionsZ?:
260
- | (T extends infer T_2
261
- ? T_2 extends T
262
- ? T_2 extends PointValue4d
260
+ | (T extends infer T_3
261
+ ? T_3 extends T
262
+ ? T_3 extends PointValue4d
263
263
  ? Point4dInputParams
264
- : T_2 extends PointValue3d
264
+ : T_3 extends PointValue3d
265
265
  ? Point3dInputParams
266
- : T_2 extends PointValue2d
266
+ : T_3 extends PointValue2d
267
267
  ? Point2dInputParams
268
268
  : unknown
269
269
  : never
270
270
  : never)['z']
271
- | undefined;
271
+ | undefined
272
272
  }
273
273
  : unknown) &
274
274
  (T extends PointValue4d
@@ -281,20 +281,20 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
281
281
  * @default `undefined`
282
282
  * */
283
283
  optionsW?:
284
- | (T extends infer T_3
285
- ? T_3 extends T
286
- ? T_3 extends PointValue4d
284
+ | (T extends infer T_4
285
+ ? T_4 extends T
286
+ ? T_4 extends PointValue4d
287
287
  ? Point4dInputParams
288
- : T_3 extends PointValue3d
288
+ : T_4 extends PointValue3d
289
289
  ? Point3dInputParams
290
- : T_3 extends PointValue2d
290
+ : T_4 extends PointValue2d
291
291
  ? Point2dInputParams
292
292
  : unknown
293
293
  : never
294
294
  : never)['w']
295
- | undefined;
295
+ | undefined
296
296
  }
297
- : unknown);
297
+ : unknown)
298
298
  events(): {
299
299
  /**
300
300
  * Fires when `value` changes.
@@ -307,19 +307,19 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
307
307
  * @extends ValueChangeEvent
308
308
  * @event
309
309
  * */
310
- change: PointChangeEvent;
311
- };
312
- slots(): {};
310
+ change: PointChangeEvent
311
+ }
312
+ slots(): {}
313
313
  }
314
314
  export type PointProps<T extends PointValue2d | PointValue3d | PointValue4d> = ReturnType<
315
315
  __sveltets_Render<T>['props']
316
- >;
316
+ >
317
317
  export type PointEvents<T extends PointValue2d | PointValue3d | PointValue4d> = ReturnType<
318
318
  __sveltets_Render<T>['events']
319
- >;
319
+ >
320
320
  export type PointSlots<T extends PointValue2d | PointValue3d | PointValue4d> = ReturnType<
321
321
  __sveltets_Render<T>['slots']
322
- >;
322
+ >
323
323
  /**
324
324
  * Wraps the Tweakpane [point bindings](https://tweakpane.github.io/docs/input-bindings/#point).
325
325
  *
@@ -345,26 +345,26 @@ export type PointSlots<T extends PointValue2d | PointValue3d | PointValue4d> = R
345
345
  * type PointOptions,
346
346
  * type PointValue2d,
347
347
  * type PointValue3d,
348
- * type PointValue4d
349
- * } from 'svelte-tweakpane-ui';
348
+ * type PointValue4d,
349
+ * } from 'svelte-tweakpane-ui'
350
350
  *
351
- * let point2d: PointValue2d = { x: 0, y: 0 };
351
+ * let point2d: PointValue2d = { x: 0, y: 0 }
352
352
  *
353
353
  * // tuples are also fine
354
- * let point3d: PointValue3d = [0, 0, 0];
354
+ * let point3d: PointValue3d = [0, 0, 0]
355
355
  *
356
356
  * // dimension-specific option type needs to know the type of the point value
357
357
  * let point3dXOptions: PointOptions<'3', 'x'> = {
358
358
  * min: -100,
359
- * max: 100
360
- * };
359
+ * max: 100,
360
+ * }
361
361
  *
362
362
  * let point4d: PointValue4d = {
363
363
  * x: 0,
364
364
  * y: 0,
365
365
  * z: 0,
366
- * w: 0
367
- * };
366
+ * w: 0,
367
+ * }
368
368
  * </script>
369
369
  *
370
370
  * <Point
@@ -397,6 +397,6 @@ export type PointSlots<T extends PointValue2d | PointValue3d | PointValue4d> = R
397
397
  * [Point.svelte](https://github.com/kitschpatrol/svelte-tweakpane-ui/blob/main/src/lib/control/Point.svelte)
398
398
  */
399
399
  export default class Point<
400
- T extends PointValue2d | PointValue3d | PointValue4d
400
+ T extends PointValue2d | PointValue3d | PointValue4d,
401
401
  > extends SvelteComponent<PointProps<T>, PointEvents<T>, PointSlots<T>> {}
402
- export {};
402
+ export {}
@@ -1,40 +1,40 @@
1
1
  <script context="module"></script>
2
2
 
3
3
  <script generics="T extends boolean | number | string">
4
- import ClsPad from '../internal/ClsPad.svelte';
5
- import GenericInput from '../internal/GenericInput.svelte';
6
- import { fillWith } from '../utils';
7
- import { getGridDimensions } from '../utils.js';
8
- import * as pluginModule from '@kitschpatrol/tweakpane-plugin-essentials';
9
- import { BROWSER } from 'esm-env';
10
- import { nanoid } from 'nanoid';
11
- const defaultGroupName = nanoid();
12
- export let groupName = void 0;
13
- export let values;
14
- export let value = values[0];
15
- export let columns = void 0;
16
- export let rows = void 0;
17
- export let suffix = void 0;
18
- export let prefix = void 0;
19
- let gridDimensions;
20
- let options;
4
+ import ClsPad from '../internal/ClsPad.svelte'
5
+ import GenericInput from '../internal/GenericInput.svelte'
6
+ import { fillWith } from '../utils'
7
+ import { getGridDimensions } from '../utils.js'
8
+ import * as pluginModule from '@kitschpatrol/tweakpane-plugin-essentials'
9
+ import { BROWSER } from 'esm-env'
10
+ import { nanoid } from 'nanoid'
11
+ const defaultGroupName = nanoid()
12
+ export let groupName = void 0
13
+ export let values
14
+ export let value = values[0]
15
+ export let columns = void 0
16
+ export let rows = void 0
17
+ export let suffix = void 0
18
+ export let prefix = void 0
19
+ let gridDimensions
20
+ let options
21
21
  function cells(x, y) {
22
- const index = y * gridDimensions.columns + x;
22
+ const index = y * gridDimensions.columns + x
23
23
  if (index >= 0 && index < values.length) {
24
24
  return {
25
25
  value: values[index],
26
- title: `${prefix ?? ''}${values[index]}${suffix ?? ''}`
27
- };
26
+ title: `${prefix ?? ''}${values[index]}${suffix ?? ''}`,
27
+ }
28
28
  }
29
- return { value: values[0], title: '' };
29
+ return { value: values[0], title: '' }
30
30
  }
31
- $: gridDimensions = getGridDimensions(values.length, columns, rows);
31
+ $: gridDimensions = getGridDimensions(values.length, columns, rows)
32
32
  $: options = {
33
33
  cells,
34
34
  groupName: groupName ?? defaultGroupName,
35
35
  size: [gridDimensions.columns, gridDimensions.rows],
36
- view: 'radiogrid'
37
- };
36
+ view: 'radiogrid',
37
+ }
38
38
  </script>
39
39
 
40
40
  <GenericInput bind:value on:change {options} plugin={pluginModule} {...$$restProps} />
@@ -1,6 +1,6 @@
1
- import { SvelteComponent } from 'svelte';
2
- import type { ValueChangeEvent } from '../utils.js';
3
- export type RadioGridChangeEvent = ValueChangeEvent<boolean | number | string>;
1
+ import { SvelteComponent } from 'svelte'
2
+ import type { ValueChangeEvent } from '../utils.js'
3
+ export type RadioGridChangeEvent = ValueChangeEvent<boolean | number | string>
4
4
  declare class __sveltets_Render<T extends boolean | number | string> {
5
5
  props(): {
6
6
  /**
@@ -10,12 +10,12 @@ declare class __sveltets_Render<T extends boolean | number | string> {
10
10
  * @bindable
11
11
  * @default `undefined` If undefined, the first value in the `values` array is assigned.
12
12
  * */
13
- value?: T | undefined;
13
+ value?: T | undefined
14
14
  /**
15
15
  * Number of columns to arrange the radio buttons into.
16
16
  * @default `undefined`
17
17
  * */
18
- columns?: number;
18
+ columns?: number
19
19
  /**
20
20
  * Name allowing multiple radio groups to share mutually exclusive selection state.
21
21
  *
@@ -25,27 +25,27 @@ declare class __sveltets_Render<T extends boolean | number | string> {
25
25
  * @default `undefined` \
26
26
  * Uses a dynamically generated globally unique id internally.
27
27
  */
28
- groupName?: string;
28
+ groupName?: string
29
29
  /**
30
30
  * Text to show in the radio button label before the value.
31
31
  * @default `undefined`
32
32
  * */
33
- prefix?: string;
33
+ prefix?: string
34
34
  /**
35
35
  * Number of rows to arrange the radio buttons into.
36
36
  * @default `undefined`
37
37
  * */
38
- rows?: number;
38
+ rows?: number
39
39
  /**
40
40
  * Text to show in the radio button label after the value.
41
41
  * @default `undefined`
42
42
  * */
43
- suffix?: string;
43
+ suffix?: string
44
44
  /**
45
45
  * Array of `number`, `string` or `boolean` values, each of which will become a button in
46
46
  * the radio grid.
47
47
  * */
48
- values: T[];
48
+ values: T[]
49
49
  } & Omit<
50
50
  {
51
51
  /**
@@ -55,26 +55,26 @@ declare class __sveltets_Render<T extends boolean | number | string> {
55
55
  * @bindable
56
56
  * @default `undefined` If undefined, the first value in the `values` array is assigned.
57
57
  */
58
- value: T;
58
+ value: T
59
59
  } & Omit<
60
60
  {
61
61
  /**
62
62
  * The binding's target object with values to manipulate.
63
63
  * @bindable
64
64
  */
65
- object: import('@tweakpane/core').Bindable & Record<string, T>;
65
+ object: import('@tweakpane/core').Bindable & Record<string, T>
66
66
  /** The key for the value in the target `object` that the control should manipulate. */
67
- key: string;
67
+ key: string
68
68
  /**
69
69
  * Prevent interactivity and gray out the control.
70
70
  * @default `false`
71
71
  */
72
- disabled?: boolean;
72
+ disabled?: boolean
73
73
  /**
74
74
  * Text displayed next to control.
75
75
  * @default `undefined`
76
76
  */
77
- label?: string | undefined;
77
+ label?: string | undefined
78
78
  /**
79
79
  * Tweakpane's internal options object.
80
80
  *
@@ -91,16 +91,16 @@ declare class __sveltets_Render<T extends boolean | number | string> {
91
91
  | ({
92
92
  cells: (
93
93
  x: number,
94
- y: number
94
+ y: number,
95
95
  ) => {
96
- value: T;
97
- title: string;
98
- };
99
- groupName: string;
100
- size: [number, number];
101
- view: 'radiogrid';
96
+ value: T
97
+ title: string
98
+ }
99
+ groupName: string
100
+ size: [number, number]
101
+ view: 'radiogrid'
102
102
  } & import('@tweakpane/core').BaseInputParams)
103
- | undefined;
103
+ | undefined
104
104
  /**
105
105
  * Custom color scheme.
106
106
  *
@@ -108,7 +108,7 @@ declare class __sveltets_Render<T extends boolean | number | string> {
108
108
  * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
109
109
  * set with `setGlobalDefaultTheme()`.
110
110
  */
111
- theme?: import('..').Theme | undefined;
111
+ theme?: import('..').Theme | undefined
112
112
  /**
113
113
  * Reference to internal Tweakpane
114
114
  * [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
@@ -122,7 +122,7 @@ declare class __sveltets_Render<T extends boolean | number | string> {
122
122
  * @bindable
123
123
  * @readonly
124
124
  */
125
- ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined;
125
+ ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined
126
126
  /**
127
127
  * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
128
128
  * the `<Binding>`'s containing `<Pane>`.
@@ -134,12 +134,12 @@ declare class __sveltets_Render<T extends boolean | number | string> {
134
134
  *
135
135
  * @default `undefined`
136
136
  */
137
- plugin?: import('../utils.js').Plugin | undefined;
137
+ plugin?: import('../utils.js').Plugin | undefined
138
138
  },
139
139
  'object' | 'key'
140
140
  >,
141
141
  'ref' | 'options' | 'plugin'
142
- >;
142
+ >
143
143
  events(): {
144
144
  /**
145
145
  * Fires when `value` changes.
@@ -152,19 +152,19 @@ declare class __sveltets_Render<T extends boolean | number | string> {
152
152
  * @extends ValueChangeEvent
153
153
  * @event
154
154
  * */
155
- change: RadioGridChangeEvent;
156
- };
157
- slots(): {};
155
+ change: RadioGridChangeEvent
156
+ }
157
+ slots(): {}
158
158
  }
159
159
  export type RadioGridProps<T extends boolean | number | string> = ReturnType<
160
160
  __sveltets_Render<T>['props']
161
- >;
161
+ >
162
162
  export type RadioGridEvents<T extends boolean | number | string> = ReturnType<
163
163
  __sveltets_Render<T>['events']
164
- >;
164
+ >
165
165
  export type RadioGridSlots<T extends boolean | number | string> = ReturnType<
166
166
  __sveltets_Render<T>['slots']
167
- >;
167
+ >
168
168
  /**
169
169
  * A grid of radio buttons.
170
170
  *
@@ -197,22 +197,22 @@ export type RadioGridSlots<T extends boolean | number | string> = ReturnType<
197
197
  * @example
198
198
  * ```svelte
199
199
  * <script lang="ts">
200
- * import { RadioGrid } from 'svelte-tweakpane-ui';
200
+ * import { RadioGrid } from 'svelte-tweakpane-ui'
201
201
  *
202
202
  * // Svelte transition works around CSS gradient
203
203
  * // transition limitations
204
- * import { fade } from 'svelte/transition';
204
+ * import { fade } from 'svelte/transition'
205
205
  *
206
206
  * const radioValues = [
207
207
  * ['magenta', 'orange'],
208
208
  * ['yellow', 'red'],
209
209
  * ['violet', 'gold'],
210
- * ['red', 'rebeccapurple']
211
- * ];
210
+ * ['red', 'rebeccapurple'],
211
+ * ]
212
212
  *
213
- * let value = 1;
213
+ * let value = 1
214
214
  *
215
- * $: [start, end] = radioValues[value - 1];
215
+ * $: [start, end] = radioValues[value - 1]
216
216
  * </script>
217
217
  *
218
218
  * <RadioGrid bind:value prefix="Color Scheme " values={[1, 2, 3, 4]} />
@@ -253,4 +253,4 @@ export default class RadioGrid<T extends boolean | number | string> extends Svel
253
253
  RadioGridEvents<T>,
254
254
  RadioGridSlots<T>
255
255
  > {}
256
- export {};
256
+ export {}
@@ -1,19 +1,19 @@
1
1
  <script context="module"></script>
2
2
 
3
3
  <script>
4
- import GenericSlider from '../internal/GenericSlider.svelte';
5
- import * as pluginModule from '@kitschpatrol/tweakpane-plugin-camerakit';
6
- export let value;
7
- export let series = void 0;
8
- export let unit = void 0;
9
- export let wide = void 0;
10
- let options;
4
+ import GenericSlider from '../internal/GenericSlider.svelte'
5
+ import * as pluginModule from '@kitschpatrol/tweakpane-plugin-camerakit'
6
+ export let value
7
+ export let series = void 0
8
+ export let unit = void 0
9
+ export let wide = void 0
10
+ let options
11
11
  $: options = {
12
12
  series,
13
13
  unit,
14
14
  view: 'cameraring',
15
- wide
16
- };
15
+ wide,
16
+ }
17
17
  </script>
18
18
 
19
19
  <GenericSlider bind:value on:change {options} plugin={pluginModule} {...$$restProps} />