svelte-tweakpane-ui 1.2.3 → 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.
Files changed (46) 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 +30 -30
  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/Pane.svelte.d.ts +295 -275
  26. package/dist/extra/AutoValue.svelte.d.ts +8 -8
  27. package/dist/extra/Element.svelte.d.ts +23 -23
  28. package/dist/internal/ClsPad.svelte +1 -1
  29. package/dist/internal/GenericBinding.svelte.d.ts +8 -8
  30. package/dist/internal/GenericBladeFolding.svelte.d.ts +24 -24
  31. package/dist/internal/GenericInput.svelte.d.ts +8 -8
  32. package/dist/internal/GenericInputFolding.svelte.d.ts +78 -78
  33. package/dist/internal/GenericMonitor.svelte.d.ts +76 -76
  34. package/dist/internal/GenericSlider.svelte.d.ts +76 -76
  35. package/dist/internal/InternalMonitorBoolean.svelte.d.ts +82 -82
  36. package/dist/internal/InternalMonitorNumber.svelte.d.ts +101 -101
  37. package/dist/internal/InternalMonitorString.svelte.d.ts +87 -87
  38. package/dist/internal/InternalPaneDraggable.svelte.d.ts +76 -76
  39. package/dist/internal/InternalPaneFixed.svelte.d.ts +26 -26
  40. package/dist/internal/InternalPaneInline.svelte.d.ts +13 -13
  41. package/dist/monitor/FpsGraph.svelte.d.ts +90 -90
  42. package/dist/monitor/Monitor.svelte.d.ts +233 -233
  43. package/dist/monitor/Profiler.svelte.d.ts +131 -131
  44. package/dist/monitor/WaveformMonitor.svelte.d.ts +104 -107
  45. package/dist/theme.d.ts +1 -1
  46. package/package.json +15 -16
@@ -9,84 +9,21 @@ export type IntervalSliderValueObject = {
9
9
  export type IntervalSliderValue = Simplify<IntervalSliderValueObject | IntervalSliderValueTuple>;
10
10
  export type IntervalSliderChangeEvent = ValueChangeEvent<IntervalSliderValue>;
11
11
  declare const __propDef: {
12
- props: Omit<
13
- Omit<
14
- {
15
- /**
16
- * The binding's target object with values to manipulate.
17
- * @bindable
18
- */
19
- object: import('@tweakpane/core').Bindable & Record<string, IntervalSliderValue>;
20
- /** The key for the value in the target `object` that the control should manipulate. */
21
- key: string;
22
- /**
23
- * Prevent interactivity and gray out the control.
24
- * @default `false`
25
- */
26
- disabled?: boolean | undefined;
27
- /**
28
- * Text displayed next to control.
29
- * @default `undefined`
30
- */
31
- label?: string | undefined;
32
- /**
33
- * Tweakpane's internal options object.
34
- *
35
- * See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
36
- *
37
- * Valid types are contingent on the type of the value `key` points to in `object`.
38
- *
39
- * This is intended internal use, when implementing convenience components wrapping Binding's
40
- * functionality. Options of interest are instead exposed as top-level props in _Svelte
41
- * Tweakpane UI_.
42
- * @default `undefined`
43
- */
44
- options?: import('tweakpane').NumberInputParams | undefined;
45
- /**
46
- * Custom color scheme.
47
- *
48
- * @default `undefined` \
49
- * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
50
- * set with `setGlobalDefaultTheme()`.
51
- */
52
- theme?: import('..').Theme | undefined;
53
- /**
54
- * Reference to internal Tweakpane
55
- * [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
56
- * this control.
57
- *
58
- * This property is exposed for advanced use cases only, such as when implementing convenience
59
- * components wrapping `<Binding>`'s functionality.
60
- *
61
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
62
- *
63
- * @bindable
64
- * @readonly
65
- */
66
- ref?: import('tweakpane').SliderInputBindingApi | undefined;
67
- /**
68
- * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
69
- * the `<Binding>`'s containing `<Pane>`.
70
- *
71
- * This property is exposed for advanced use cases only, such as when implementing convenience
72
- * components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
73
- *
74
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
75
- *
76
- * @default `undefined`
77
- */
78
- plugin?: import('tweakpane').TpPluginBundle | undefined;
79
- },
80
- 'object' | 'key'
81
- > & {
82
- /**
83
- * Interval value to control.
84
- *
85
- * Tuples are a convenience addition to the vanilla JS Tweakpane API.
86
- * @bindable
87
- */
88
- value: IntervalSliderValue;
89
- } & {
12
+ props: {
13
+ /**
14
+ * Interval value to control.
15
+ *
16
+ * Tuples are a convenience addition to the vanilla JS Tweakpane API.
17
+ * @bindable
18
+ */
19
+ value: IntervalSliderValue;
20
+ /**
21
+ * Midpoint of the interval range value.
22
+ * @bindable
23
+ * */
24
+ meanValue?: number | undefined;
25
+ } & Omit<
26
+ {
90
27
  /**
91
28
  * Minimum value.
92
29
  *
@@ -119,29 +56,102 @@ declare const __propDef: {
119
56
  * [Dynamic based on magnitude of
120
57
  * `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
121
58
  */
122
- pointerScale?: number | undefined;
59
+ pointerScale?: number | undefined /**
60
+ * Fires when `value` changes.
61
+ *
62
+ * _This event is provided for advanced use cases. It's usually preferred to bind to the `value` prop instead._
63
+ *
64
+ * The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
65
+ * and changes resulting from programmatic manipulation of the `value` (`external`).
66
+ *
67
+ * @extends ValueChangeEvent
68
+ * @event
69
+ * */;
123
70
  /**
124
71
  * The minimum step interval.
125
72
  * @default `undefined` \
126
73
  * No step constraint.
127
74
  */
128
75
  step?: number | undefined;
129
- },
76
+ } & {
77
+ /**
78
+ * Interval value to control.
79
+ *
80
+ * Tuples are a convenience addition to the vanilla JS Tweakpane API.
81
+ * @bindable
82
+ */
83
+ value: IntervalSliderValue;
84
+ } & Omit<
85
+ {
86
+ /**
87
+ * The binding's target object with values to manipulate.
88
+ * @bindable
89
+ */
90
+ object: import('@tweakpane/core').Bindable & Record<string, IntervalSliderValue>;
91
+ /** The key for the value in the target `object` that the control should manipulate. */
92
+ key: string;
93
+ /**
94
+ * Prevent interactivity and gray out the control.
95
+ * @default `false`
96
+ */
97
+ disabled?: boolean | undefined;
98
+ /**
99
+ * Text displayed next to control.
100
+ * @default `undefined`
101
+ */
102
+ label?: string | undefined;
103
+ /**
104
+ * Tweakpane's internal options object.
105
+ *
106
+ * See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
107
+ *
108
+ * Valid types are contingent on the type of the value `key` points to in `object`.
109
+ *
110
+ * This is intended internal use, when implementing convenience components wrapping Binding's
111
+ * functionality. Options of interest are instead exposed as top-level props in _Svelte
112
+ * Tweakpane UI_.
113
+ * @default `undefined`
114
+ */
115
+ options?: import('tweakpane').NumberInputParams | undefined;
116
+ /**
117
+ * Custom color scheme.
118
+ *
119
+ * @default `undefined` \
120
+ * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
121
+ * set with `setGlobalDefaultTheme()`.
122
+ */
123
+ theme?: import('..').Theme | undefined;
124
+ /**
125
+ * Reference to internal Tweakpane
126
+ * [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
127
+ * this control.
128
+ *
129
+ * This property is exposed for advanced use cases only, such as when implementing convenience
130
+ * components wrapping `<Binding>`'s functionality.
131
+ *
132
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
133
+ *
134
+ * @bindable
135
+ * @readonly
136
+ */
137
+ ref?: import('tweakpane').SliderInputBindingApi | undefined;
138
+ /**
139
+ * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
140
+ * the `<Binding>`'s containing `<Pane>`.
141
+ *
142
+ * This property is exposed for advanced use cases only, such as when implementing convenience
143
+ * components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
144
+ *
145
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
146
+ *
147
+ * @default `undefined`
148
+ */
149
+ plugin?: import('tweakpane').TpPluginBundle | undefined;
150
+ },
151
+ 'object' | 'key'
152
+ >,
130
153
  'ref' | 'options' | 'plugin'
131
- > & {
132
- /**
133
- * Interval value to control.
134
- *
135
- * Tuples are a convenience addition to the vanilla JS Tweakpane API.
136
- * @bindable
137
- */
138
- value: IntervalSliderValue;
139
- /**
140
- * Midpoint of the interval range value.
141
- * @bindable
142
- * */
143
- meanValue?: number | undefined;
144
- };
154
+ >;
145
155
  slots: {};
146
156
  events: {
147
157
  /**
@@ -193,7 +203,7 @@ export type IntervalSliderSlots = typeof __propDef.slots;
193
203
  * max={100}
194
204
  * format={(v) => `${v.toFixed(0)}%`}
195
205
  * />
196
- * <div class="demo" style:--e="{value[1]}%" style:--s="{value[0]}%" />
206
+ * <div class="demo" style:--e="{value[1]}%" style:--s="{value[0]}%"></div>
197
207
  *
198
208
  * <style>
199
209
  * div.demo {
@@ -13,7 +13,25 @@ export type ListOptions<T> = Simplify<
13
13
  export type ListChangeEvent = ValueChangeEvent<unknown>;
14
14
  import type { ListBladeApi, ListBladeParams } from 'tweakpane';
15
15
  declare class __sveltets_Render<T extends any> {
16
- props(): Omit<
16
+ props(): {
17
+ /**
18
+ * Value of the selected `options` item.
19
+ * @bindable
20
+ * */
21
+ value: T;
22
+ /**
23
+ * Text displayed next to list.
24
+ * @default `undefined`
25
+ * */
26
+ label?: string | undefined;
27
+ /**
28
+ * A collection of options to select from.
29
+ *
30
+ * The arbitrary array list type is a convenience addition to to the vanilla JS Tweakpane
31
+ * API.
32
+ * */
33
+ options: ListOptions<T>;
34
+ } & Omit<
17
35
  {
18
36
  /**
19
37
  * A collection of options to select from.
@@ -61,25 +79,7 @@ declare class __sveltets_Render<T extends any> {
61
79
  plugin?: import('tweakpane').TpPluginBundle | undefined;
62
80
  },
63
81
  'ref' | 'options' | 'plugin'
64
- > & {
65
- /**
66
- * Value of the selected `options` item.
67
- * @bindable
68
- * */
69
- value: T;
70
- /**
71
- * Text displayed next to list.
72
- * @default `undefined`
73
- * */
74
- label?: string | undefined;
75
- /**
76
- * A collection of options to select from.
77
- *
78
- * The arbitrary array list type is a convenience addition to to the vanilla JS Tweakpane
79
- * API.
80
- * */
81
- options: ListOptions<T>;
82
- };
82
+ >;
83
83
  events(): {
84
84
  /**
85
85
  * Fires when `value` changes.
@@ -95,7 +95,7 @@
95
95
  {:else}
96
96
  <!-- Without a label, the grid takes the full width of the control -->
97
97
  <!-- TODO remove magic number -->
98
- <div style="aspect-ratio: 1; width: calc(100% - 28px);" />
98
+ <div style="aspect-ratio: 1; width: calc(100% - 28px);"></div>
99
99
  {/if}
100
100
  {/if}
101
101
  {/if}
@@ -38,119 +38,7 @@ export type PointOptions<
38
38
  : never;
39
39
  export type PointChangeEvent = ValueChangeEvent<PointValue2d | PointValue3d | PointValue4d>;
40
40
  declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointValue4d> {
41
- props(): Omit<
42
- Omit<
43
- {
44
- /**
45
- * The binding's target object with values to manipulate.
46
- * @bindable
47
- */
48
- object: import('@tweakpane/core').Bindable & Record<string, T>;
49
- /** The key for the value in the target `object` that the control should manipulate. */
50
- key: string;
51
- /**
52
- * Prevent interactivity and gray out the control.
53
- * @default `false`
54
- */
55
- disabled?: boolean | undefined;
56
- /**
57
- * Text displayed next to control.
58
- * @default `undefined`
59
- */
60
- label?: string | undefined;
61
- /**
62
- * Tweakpane's internal options object.
63
- *
64
- * See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
65
- *
66
- * Valid types are contingent on the type of the value `key` points to in `object`.
67
- *
68
- * This is intended internal use, when implementing convenience components wrapping Binding's
69
- * functionality. Options of interest are instead exposed as top-level props in _Svelte
70
- * Tweakpane UI_.
71
- * @default `undefined`
72
- */
73
- options?:
74
- | (T extends PointValue4d
75
- ? Point4dInputParams
76
- : T extends PointValue3d
77
- ? Point3dInputParams
78
- : T extends PointValue2d
79
- ? Point2dInputParams
80
- : unknown)
81
- | undefined;
82
- /**
83
- * Custom color scheme.
84
- *
85
- * @default `undefined` \
86
- * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
87
- * set with `setGlobalDefaultTheme()`.
88
- */
89
- theme?: import('..').Theme | undefined;
90
- /**
91
- * Reference to internal Tweakpane
92
- * [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
93
- * this control.
94
- *
95
- * This property is exposed for advanced use cases only, such as when implementing convenience
96
- * components wrapping `<Binding>`'s functionality.
97
- *
98
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
99
- *
100
- * @bindable
101
- * @readonly
102
- */
103
- ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined;
104
- /**
105
- * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
106
- * the `<Binding>`'s containing `<Pane>`.
107
- *
108
- * This property is exposed for advanced use cases only, such as when implementing convenience
109
- * components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
110
- *
111
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
112
- *
113
- * @default `undefined`
114
- */
115
- plugin?: import('tweakpane').TpPluginBundle | undefined;
116
- },
117
- 'object' | 'key'
118
- > & {
119
- /**
120
- * A 2D, 3D, or 4D point object to control.
121
- *
122
- * Takes a tuple with a `number` value for each dimension, or an object with at least `x`
123
- * and `y` values, and optionally `z` and `w` values for additional dimensions.
124
- *
125
- * The type of this value will determine the availability of axis-specific option props.
126
- * @bindable
127
- */
128
- value: T;
129
- } & {
130
- /**
131
- * DOM class name of the button used to expand and collapse the input's picker.
132
- * @default `undefined`
133
- */
134
- buttonClass?: string | undefined;
135
- /**
136
- * Expand or collapse the input's picker.
137
- * @default `false`
138
- * @bindable
139
- */
140
- expanded?: boolean | undefined;
141
- /**
142
- * The style of value "picker" to use in the input.
143
- * @default `'popup'`
144
- */
145
- picker?: 'inline' | 'popup' | undefined;
146
- /**
147
- * Allow users to interactively expand / contract the picker.
148
- * @default `true`
149
- */
150
- userExpandable?: boolean | undefined;
151
- },
152
- 'ref' | 'options' | 'plugin' | 'buttonClass'
153
- > & {
41
+ props(): {
154
42
  /**
155
43
  * A 2D, 3D, or 4D point object to control.
156
44
  *
@@ -198,7 +86,120 @@ declare class __sveltets_Render<T extends PointValue2d | PointValue3d | PointVal
198
86
  * No step constraint.
199
87
  * */
200
88
  step?: number | undefined;
201
- } & (T extends PointValue2d | PointValue3d | PointValue4d
89
+ } & Omit<
90
+ {
91
+ /**
92
+ * DOM class name of the button used to expand and collapse the input's picker.
93
+ * @default `undefined`
94
+ */
95
+ buttonClass?: string | undefined;
96
+ /**
97
+ * Expand or collapse the input's picker.
98
+ * @default `false`
99
+ * @bindable
100
+ */
101
+ expanded?: boolean | undefined;
102
+ /**
103
+ * The style of value "picker" to use in the input.
104
+ * @default `'popup'`
105
+ */
106
+ picker?: 'inline' | 'popup' | undefined;
107
+ /**
108
+ * Allow users to interactively expand / contract the picker.
109
+ * @default `true`
110
+ */
111
+ userExpandable?: boolean | undefined;
112
+ } & {
113
+ /**
114
+ * A 2D, 3D, or 4D point object to control.
115
+ *
116
+ * Takes a tuple with a `number` value for each dimension, or an object with at least `x`
117
+ * and `y` values, and optionally `z` and `w` values for additional dimensions.
118
+ *
119
+ * The type of this value will determine the availability of axis-specific option props.
120
+ * @bindable
121
+ */
122
+ value: T;
123
+ } & Omit<
124
+ {
125
+ /**
126
+ * The binding's target object with values to manipulate.
127
+ * @bindable
128
+ */
129
+ object: import('@tweakpane/core').Bindable & Record<string, T>;
130
+ /** The key for the value in the target `object` that the control should manipulate. */
131
+ key: string;
132
+ /**
133
+ * Prevent interactivity and gray out the control.
134
+ * @default `false`
135
+ */
136
+ disabled?: boolean | undefined;
137
+ /**
138
+ * Text displayed next to control.
139
+ * @default `undefined`
140
+ */
141
+ label?: string | undefined;
142
+ /**
143
+ * Tweakpane's internal options object.
144
+ *
145
+ * See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
146
+ *
147
+ * Valid types are contingent on the type of the value `key` points to in `object`.
148
+ *
149
+ * This is intended internal use, when implementing convenience components wrapping Binding's
150
+ * functionality. Options of interest are instead exposed as top-level props in _Svelte
151
+ * Tweakpane UI_.
152
+ * @default `undefined`
153
+ */
154
+ options?:
155
+ | (T extends PointValue4d
156
+ ? Point4dInputParams
157
+ : T extends PointValue3d
158
+ ? Point3dInputParams
159
+ : T extends PointValue2d
160
+ ? Point2dInputParams
161
+ : unknown)
162
+ | undefined;
163
+ /**
164
+ * Custom color scheme.
165
+ *
166
+ * @default `undefined` \
167
+ * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
168
+ * set with `setGlobalDefaultTheme()`.
169
+ */
170
+ theme?: import('..').Theme | undefined;
171
+ /**
172
+ * Reference to internal Tweakpane
173
+ * [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
174
+ * this control.
175
+ *
176
+ * This property is exposed for advanced use cases only, such as when implementing convenience
177
+ * components wrapping `<Binding>`'s functionality.
178
+ *
179
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
180
+ *
181
+ * @bindable
182
+ * @readonly
183
+ */
184
+ ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined;
185
+ /**
186
+ * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
187
+ * the `<Binding>`'s containing `<Pane>`.
188
+ *
189
+ * This property is exposed for advanced use cases only, such as when implementing convenience
190
+ * components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
191
+ *
192
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
193
+ *
194
+ * @default `undefined`
195
+ */
196
+ plugin?: import('tweakpane').TpPluginBundle | undefined;
197
+ },
198
+ 'object' | 'key'
199
+ >,
200
+ 'ref' | 'options' | 'plugin' | 'buttonClass'
201
+ > &
202
+ (T extends PointValue2d | PointValue3d | PointValue4d
202
203
  ? {
203
204
  /**
204
205
  * Input parameters specific to the X dimension.
@@ -40,5 +40,5 @@
40
40
  <GenericInput bind:value on:change {options} plugin={pluginModule} {...$$restProps} />
41
41
  {#if !BROWSER}
42
42
  <ClsPad keysAdd={fillWith('containerUnitSize', gridDimensions.rows - 1)} theme={$$props.theme} />
43
- <div style:height={`${2 * (gridDimensions.rows - 1)}px`} />
43
+ <div style:height={`${2 * (gridDimensions.rows - 1)}px`}></div>
44
44
  {/if}
@@ -2,8 +2,61 @@ import { SvelteComponent } from 'svelte';
2
2
  import type { ValueChangeEvent } from '../utils.js';
3
3
  export type RadioGridChangeEvent = ValueChangeEvent<boolean | number | string>;
4
4
  declare class __sveltets_Render<T extends boolean | number | string> {
5
- props(): Omit<
6
- Omit<
5
+ props(): {
6
+ /**
7
+ * Value of selected radio button.
8
+ *
9
+ * Bind to this prop to receive updates when the user clicks a radio button.
10
+ * @bindable
11
+ * @default `undefined` If undefined, the first value in the `values` array is assigned.
12
+ * */
13
+ value?: T | undefined;
14
+ /**
15
+ * Number of columns to arrange the radio buttons into.
16
+ * @default `undefined`
17
+ * */
18
+ columns?: number | undefined;
19
+ /**
20
+ * Name allowing multiple radio groups to share mutually exclusive selection state.
21
+ *
22
+ * Allows spanning exclusive selection state across multiple independent `<RadioGrid>`
23
+ * components, but should remain `undefined` for most use cases to keep exclusivity scoped
24
+ * to a single `<RadioGrid>`.
25
+ * @default `undefined` \
26
+ * Uses a dynamically generated globally unique id internally.
27
+ */
28
+ groupName?: string | undefined;
29
+ /**
30
+ * Text to show in the radio button label before the value.
31
+ * @default `undefined`
32
+ * */
33
+ prefix?: string | undefined;
34
+ /**
35
+ * Number of rows to arrange the radio buttons into.
36
+ * @default `undefined`
37
+ * */
38
+ rows?: number | undefined;
39
+ /**
40
+ * Text to show in the radio button label after the value.
41
+ * @default `undefined`
42
+ * */
43
+ suffix?: string | undefined;
44
+ /**
45
+ * Array of `number`, `string` or `boolean` values, each of which will become a button in
46
+ * the radio grid.
47
+ * */
48
+ values: T[];
49
+ } & Omit<
50
+ {
51
+ /**
52
+ * Value of selected radio button.
53
+ *
54
+ * Bind to this prop to receive updates when the user clicks a radio button.
55
+ * @bindable
56
+ * @default `undefined` If undefined, the first value in the `values` array is assigned.
57
+ */
58
+ value: T;
59
+ } & Omit<
7
60
  {
8
61
  /**
9
62
  * The binding's target object with values to manipulate.
@@ -35,7 +88,7 @@ declare class __sveltets_Render<T extends boolean | number | string> {
35
88
  * @default `undefined`
36
89
  */
37
90
  options?:
38
- | (import('@tweakpane/core').BaseInputParams & {
91
+ | ({
39
92
  cells: (
40
93
  x: number,
41
94
  y: number
@@ -46,7 +99,7 @@ declare class __sveltets_Render<T extends boolean | number | string> {
46
99
  groupName: string;
47
100
  size: [number, number];
48
101
  view: 'radiogrid';
49
- })
102
+ } & import('@tweakpane/core').BaseInputParams)
50
103
  | undefined;
51
104
  /**
52
105
  * Custom color scheme.
@@ -84,62 +137,9 @@ declare class __sveltets_Render<T extends boolean | number | string> {
84
137
  plugin?: import('tweakpane').TpPluginBundle | undefined;
85
138
  },
86
139
  'object' | 'key'
87
- > & {
88
- /**
89
- * Value of selected radio button.
90
- *
91
- * Bind to this prop to receive updates when the user clicks a radio button.
92
- * @bindable
93
- * @default `undefined` If undefined, the first value in the `values` array is assigned.
94
- */
95
- value: T;
96
- },
140
+ >,
97
141
  'ref' | 'options' | 'plugin'
98
- > & {
99
- /**
100
- * Value of selected radio button.
101
- *
102
- * Bind to this prop to receive updates when the user clicks a radio button.
103
- * @bindable
104
- * @default `undefined` If undefined, the first value in the `values` array is assigned.
105
- * */
106
- value?: T | undefined;
107
- /**
108
- * Number of columns to arrange the radio buttons into.
109
- * @default `undefined`
110
- * */
111
- columns?: number | undefined;
112
- /**
113
- * Name allowing multiple radio groups to share mutually exclusive selection state.
114
- *
115
- * Allows spanning exclusive selection state across multiple independent `<RadioGrid>`
116
- * components, but should remain `undefined` for most use cases to keep exclusivity scoped
117
- * to a single `<RadioGrid>`.
118
- * @default `undefined` \
119
- * Uses a dynamically generated globally unique id internally.
120
- */
121
- groupName?: string | undefined;
122
- /**
123
- * Text to show in the radio button label before the value.
124
- * @default `undefined`
125
- * */
126
- prefix?: string | undefined;
127
- /**
128
- * Number of rows to arrange the radio buttons into.
129
- * @default `undefined`
130
- * */
131
- rows?: number | undefined;
132
- /**
133
- * Text to show in the radio button label after the value.
134
- * @default `undefined`
135
- * */
136
- suffix?: string | undefined;
137
- /**
138
- * Array of `number`, `string` or `boolean` values, each of which will become a button in
139
- * the radio grid.
140
- * */
141
- values: T[];
142
- };
142
+ >;
143
143
  events(): {
144
144
  /**
145
145
  * Fires when `value` changes.