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.
- package/dist/control/Button.svelte +5 -5
- package/dist/control/Button.svelte.d.ts +5 -5
- package/dist/control/ButtonGrid.svelte +5 -5
- package/dist/control/ButtonGrid.svelte.d.ts +32 -34
- package/dist/control/Checkbox.svelte.d.ts +9 -13
- package/dist/control/Color.svelte +3 -4
- package/dist/control/Color.svelte.d.ts +94 -99
- package/dist/control/ColorPlus.svelte +2 -2
- package/dist/control/ColorPlus.svelte.d.ts +95 -99
- package/dist/control/CubicBezier.svelte +5 -5
- package/dist/control/CubicBezier.svelte.d.ts +43 -47
- package/dist/control/File.svelte +3 -3
- package/dist/control/File.svelte.d.ts +34 -38
- package/dist/control/Image.svelte +3 -3
- package/dist/control/Image.svelte.d.ts +31 -35
- package/dist/control/IntervalSlider.svelte +1 -1
- package/dist/control/IntervalSlider.svelte.d.ts +103 -108
- package/dist/control/List.svelte +5 -5
- package/dist/control/List.svelte.d.ts +24 -28
- package/dist/control/Point.svelte +9 -9
- package/dist/control/Point.svelte.d.ts +142 -147
- package/dist/control/RadioGrid.svelte +3 -4
- package/dist/control/RadioGrid.svelte.d.ts +60 -64
- package/dist/control/Ring.svelte +1 -1
- package/dist/control/Ring.svelte.d.ts +105 -109
- package/dist/control/RotationEuler.svelte +5 -5
- package/dist/control/RotationEuler.svelte.d.ts +110 -115
- package/dist/control/RotationQuaternion.svelte +5 -5
- package/dist/control/RotationQuaternion.svelte.d.ts +108 -113
- package/dist/control/Slider.svelte +1 -1
- package/dist/control/Slider.svelte.d.ts +95 -99
- package/dist/control/Stepper.svelte +1 -1
- package/dist/control/Stepper.svelte.d.ts +95 -99
- package/dist/control/Text.svelte +1 -1
- package/dist/control/Text.svelte.d.ts +25 -29
- package/dist/control/Textarea.svelte +2 -2
- package/dist/control/Textarea.svelte.d.ts +34 -38
- package/dist/control/Wheel.svelte +1 -1
- package/dist/control/Wheel.svelte.d.ts +101 -104
- package/dist/core/Binding.svelte +5 -5
- package/dist/core/Binding.svelte.d.ts +9 -14
- package/dist/core/Blade.svelte +3 -3
- package/dist/core/Blade.svelte.d.ts +5 -7
- package/dist/core/Folder.svelte +4 -4
- package/dist/core/Folder.svelte.d.ts +5 -5
- package/dist/core/Pane.svelte +3 -3
- package/dist/core/Pane.svelte.d.ts +217 -221
- package/dist/core/Separator.svelte +1 -1
- package/dist/core/Separator.svelte.d.ts +0 -2
- package/dist/core/TabGroup.svelte +4 -4
- package/dist/core/TabGroup.svelte.d.ts +3 -3
- package/dist/core/TabPage.svelte +4 -4
- package/dist/core/TabPage.svelte.d.ts +4 -4
- package/dist/extra/AutoObject.svelte +5 -5
- package/dist/extra/AutoObject.svelte.d.ts +4 -5
- package/dist/extra/AutoValue.svelte.d.ts +9 -13
- package/dist/extra/Element.svelte +1 -1
- package/dist/extra/Element.svelte.d.ts +23 -25
- package/dist/internal/ClsPad.svelte +3 -2
- package/dist/internal/GenericBinding.svelte +2 -2
- package/dist/internal/GenericBinding.svelte.d.ts +8 -11
- package/dist/internal/GenericBladeFolding.svelte +1 -1
- package/dist/internal/GenericBladeFolding.svelte.d.ts +25 -27
- package/dist/internal/GenericInput.svelte.d.ts +8 -11
- package/dist/internal/GenericInputFolding.svelte.d.ts +78 -81
- package/dist/internal/GenericMonitor.svelte.d.ts +76 -79
- package/dist/internal/GenericPane.svelte +4 -4
- package/dist/internal/GenericPane.svelte.d.ts +6 -7
- package/dist/internal/GenericSlider.svelte +1 -1
- package/dist/internal/GenericSlider.svelte.d.ts +100 -101
- package/dist/internal/InternalMonitorBoolean.svelte +2 -2
- package/dist/internal/InternalMonitorBoolean.svelte.d.ts +79 -82
- package/dist/internal/InternalMonitorNumber.svelte +3 -3
- package/dist/internal/InternalMonitorNumber.svelte.d.ts +100 -103
- package/dist/internal/InternalMonitorString.svelte +2 -2
- package/dist/internal/InternalMonitorString.svelte.d.ts +84 -87
- package/dist/internal/InternalPaneDraggable.svelte +5 -5
- package/dist/internal/InternalPaneDraggable.svelte.d.ts +86 -88
- package/dist/internal/InternalPaneFixed.svelte.d.ts +26 -27
- package/dist/internal/InternalPaneInline.svelte +1 -1
- package/dist/internal/InternalPaneInline.svelte.d.ts +13 -14
- package/dist/monitor/FpsGraph.svelte +5 -5
- package/dist/monitor/FpsGraph.svelte.d.ts +45 -47
- package/dist/monitor/Monitor.svelte +1 -1
- package/dist/monitor/Monitor.svelte.d.ts +316 -331
- package/dist/monitor/Profiler.svelte +3 -3
- package/dist/monitor/Profiler.svelte.d.ts +51 -59
- package/dist/monitor/WaveformMonitor.svelte +5 -5
- package/dist/monitor/WaveformMonitor.svelte.d.ts +102 -105
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +0 -1
- package/dist/utils.d.ts +5 -5
- package/dist/utils.js +2 -4
- package/license.txt +1 -1
- package/package.json +23 -28
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte'
|
|
2
|
-
import type { Simplify } from '../utils'
|
|
3
|
-
import type { ValueChangeEvent } from '../utils.js'
|
|
4
2
|
import type { SliderInputBindingApi as GenericSliderRef } from 'tweakpane'
|
|
3
|
+
import type { Simplify, ValueChangeEvent } from '../utils.js'
|
|
5
4
|
export type IntervalSliderValueTuple = [min: number, max: number]
|
|
6
5
|
export type IntervalSliderValueObject = {
|
|
7
6
|
min: number
|
|
@@ -10,35 +9,81 @@ export type IntervalSliderValueObject = {
|
|
|
10
9
|
export type IntervalSliderValue = Simplify<IntervalSliderValueObject | IntervalSliderValueTuple>
|
|
11
10
|
export type IntervalSliderChangeEvent = ValueChangeEvent<IntervalSliderValue>
|
|
12
11
|
declare const __propDef: {
|
|
13
|
-
props:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
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
|
+
* @default `undefined` \
|
|
48
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
49
|
+
* set with `setGlobalDefaultTheme()`.
|
|
50
|
+
*/
|
|
51
|
+
theme?: import('..').Theme | undefined
|
|
52
|
+
/**
|
|
53
|
+
* Reference to internal Tweakpane
|
|
54
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
55
|
+
* this control.
|
|
56
|
+
*
|
|
57
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
58
|
+
* components wrapping `<Binding>`'s functionality.
|
|
59
|
+
*
|
|
60
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
61
|
+
* @bindable
|
|
62
|
+
* @readonly
|
|
63
|
+
*/
|
|
64
|
+
ref?: GenericSliderRef | undefined
|
|
65
|
+
/**
|
|
66
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
67
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
68
|
+
*
|
|
69
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
70
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
71
|
+
*
|
|
72
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
73
|
+
* @default `undefined`
|
|
74
|
+
*/
|
|
75
|
+
plugin?: import('../utils.js').Plugin | undefined
|
|
76
|
+
},
|
|
77
|
+
'object' | 'key'
|
|
78
|
+
> & {
|
|
35
79
|
/**
|
|
36
|
-
*
|
|
80
|
+
* Interval value to control.
|
|
37
81
|
*
|
|
38
|
-
*
|
|
39
|
-
* @
|
|
82
|
+
* Tuples are a convenience addition to the vanilla JS Tweakpane API.
|
|
83
|
+
* @bindable
|
|
40
84
|
*/
|
|
41
|
-
|
|
85
|
+
value: IntervalSliderValue
|
|
86
|
+
} & {
|
|
42
87
|
/**
|
|
43
88
|
* A function to customize the point value's string representation (e.g. rounding, etc.).
|
|
44
89
|
* @default `undefined` \
|
|
@@ -51,6 +96,20 @@ declare const __propDef: {
|
|
|
51
96
|
* Or `stepValue` if defined.
|
|
52
97
|
*/
|
|
53
98
|
keyScale?: number
|
|
99
|
+
/**
|
|
100
|
+
* Maximum value.
|
|
101
|
+
*
|
|
102
|
+
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
103
|
+
* @default `undefined`
|
|
104
|
+
*/
|
|
105
|
+
max?: number
|
|
106
|
+
/**
|
|
107
|
+
* Minimum value.
|
|
108
|
+
*
|
|
109
|
+
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
110
|
+
* @default `undefined`
|
|
111
|
+
*/
|
|
112
|
+
min?: number
|
|
54
113
|
/**
|
|
55
114
|
* The unit scale for pointer-based input for all dimensions.
|
|
56
115
|
* @default `undefined` \
|
|
@@ -70,85 +129,22 @@ declare const __propDef: {
|
|
|
70
129
|
* @default `false`
|
|
71
130
|
*/
|
|
72
131
|
wide?: boolean
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Interval value to control.
|
|
76
|
-
*
|
|
77
|
-
* Tuples are a convenience addition to the vanilla JS Tweakpane API.
|
|
78
|
-
* @bindable
|
|
79
|
-
*/
|
|
80
|
-
value: IntervalSliderValue
|
|
81
|
-
} & Omit<
|
|
82
|
-
{
|
|
83
|
-
/**
|
|
84
|
-
* The binding's target object with values to manipulate.
|
|
85
|
-
* @bindable
|
|
86
|
-
*/
|
|
87
|
-
object: import('@tweakpane/core').Bindable & Record<string, IntervalSliderValue>
|
|
88
|
-
/** The key for the value in the target `object` that the control should manipulate. */
|
|
89
|
-
key: string
|
|
90
|
-
/**
|
|
91
|
-
* Prevent interactivity and gray out the control.
|
|
92
|
-
* @default `false`
|
|
93
|
-
*/
|
|
94
|
-
disabled?: boolean
|
|
95
|
-
/**
|
|
96
|
-
* Text displayed next to control.
|
|
97
|
-
* @default `undefined`
|
|
98
|
-
*/
|
|
99
|
-
label?: string | undefined
|
|
100
|
-
/**
|
|
101
|
-
* Tweakpane's internal options object.
|
|
102
|
-
*
|
|
103
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
104
|
-
*
|
|
105
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
106
|
-
*
|
|
107
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
108
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
109
|
-
* Tweakpane UI_.
|
|
110
|
-
* @default `undefined`
|
|
111
|
-
*/
|
|
112
|
-
options?: import('tweakpane').NumberInputParams | undefined
|
|
113
|
-
/**
|
|
114
|
-
* Custom color scheme.
|
|
115
|
-
*
|
|
116
|
-
* @default `undefined` \
|
|
117
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
118
|
-
* set with `setGlobalDefaultTheme()`.
|
|
119
|
-
*/
|
|
120
|
-
theme?: import('..').Theme | undefined
|
|
121
|
-
/**
|
|
122
|
-
* Reference to internal Tweakpane
|
|
123
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
124
|
-
* this control.
|
|
125
|
-
*
|
|
126
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
127
|
-
* components wrapping `<Binding>`'s functionality.
|
|
128
|
-
*
|
|
129
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
130
|
-
*
|
|
131
|
-
* @bindable
|
|
132
|
-
* @readonly
|
|
133
|
-
*/
|
|
134
|
-
ref?: GenericSliderRef | undefined
|
|
135
|
-
/**
|
|
136
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
137
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
138
|
-
*
|
|
139
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
140
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
141
|
-
*
|
|
142
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
143
|
-
*
|
|
144
|
-
* @default `undefined`
|
|
145
|
-
*/
|
|
146
|
-
plugin?: import('../utils').Plugin | undefined
|
|
147
|
-
},
|
|
148
|
-
'object' | 'key'
|
|
149
|
-
>,
|
|
132
|
+
},
|
|
150
133
|
'ref' | 'options' | 'plugin'
|
|
151
|
-
>
|
|
134
|
+
> & {
|
|
135
|
+
/**
|
|
136
|
+
* Interval value to control.
|
|
137
|
+
*
|
|
138
|
+
* Tuples are a convenience addition to the vanilla JS Tweakpane API.
|
|
139
|
+
* @bindable
|
|
140
|
+
*/
|
|
141
|
+
value: IntervalSliderValue
|
|
142
|
+
/**
|
|
143
|
+
* Midpoint of the interval range value.
|
|
144
|
+
* @bindable
|
|
145
|
+
*/
|
|
146
|
+
meanValue?: number
|
|
147
|
+
}
|
|
152
148
|
slots: {}
|
|
153
149
|
events: {
|
|
154
150
|
/**
|
|
@@ -158,10 +154,9 @@ declare const __propDef: {
|
|
|
158
154
|
*
|
|
159
155
|
* The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
|
|
160
156
|
* and changes resulting from programmatic manipulation of the `value` (`external`).
|
|
161
|
-
*
|
|
162
157
|
* @extends ValueChangeEvent
|
|
163
158
|
* @event
|
|
164
|
-
|
|
159
|
+
*/
|
|
165
160
|
change: IntervalSliderChangeEvent
|
|
166
161
|
}
|
|
167
162
|
}
|
package/dist/control/List.svelte
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script generics="T extends any">
|
|
4
|
-
import Blade from '../core/Blade.svelte'
|
|
5
|
-
import ClsPad from '../internal/ClsPad.svelte'
|
|
6
|
-
import {} from '../utils'
|
|
7
4
|
import { BROWSER } from 'esm-env'
|
|
8
|
-
import copy from 'fast-copy'
|
|
5
|
+
import { copy } from 'fast-copy'
|
|
9
6
|
import { shallowEqual } from 'fast-equals'
|
|
10
7
|
import { createEventDispatcher } from 'svelte'
|
|
8
|
+
import Blade from '../core/Blade.svelte'
|
|
9
|
+
import ClsPad from '../internal/ClsPad.svelte'
|
|
10
|
+
import {} from '../utils.js'
|
|
11
11
|
export let value
|
|
12
12
|
export let options
|
|
13
13
|
export let label = void 0
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
$: bladeOptions = {
|
|
71
|
-
value: getInitialValue(),
|
|
72
71
|
label,
|
|
73
72
|
options: getInternalOptions(options),
|
|
73
|
+
value: getInitialValue(),
|
|
74
74
|
view: 'list',
|
|
75
75
|
}
|
|
76
76
|
$: listBlade && addEvent()
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte'
|
|
2
|
-
import type { Simplify } from '../utils'
|
|
3
|
-
import type { ValueChangeEvent } from '../utils.js'
|
|
2
|
+
import type { Simplify, ValueChangeEvent } from '../utils.js'
|
|
4
3
|
export type ListOptionsArray<T> = T[]
|
|
5
4
|
export type ListOptionsObjectArray<T> = Array<{
|
|
6
5
|
value: T
|
|
@@ -13,25 +12,7 @@ export type ListOptions<T> = Simplify<
|
|
|
13
12
|
export type ListChangeEvent = ValueChangeEvent<unknown>
|
|
14
13
|
import type { ListBladeApi, ListBladeParams } from 'tweakpane'
|
|
15
14
|
declare class __sveltets_Render<T extends any> {
|
|
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
|
|
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<
|
|
15
|
+
props(): Omit<
|
|
35
16
|
{
|
|
36
17
|
/**
|
|
37
18
|
* A collection of options to select from.
|
|
@@ -60,7 +41,6 @@ declare class __sveltets_Render<T extends any> {
|
|
|
60
41
|
* components wrapping `<Blade>`'s functionality.
|
|
61
42
|
*
|
|
62
43
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
63
|
-
*
|
|
64
44
|
* @bindable
|
|
65
45
|
* @readonly
|
|
66
46
|
*/
|
|
@@ -73,13 +53,30 @@ declare class __sveltets_Render<T extends any> {
|
|
|
73
53
|
* components wrapping `<Blade>`'s functionality in combination with a Tweakpane plugin.
|
|
74
54
|
*
|
|
75
55
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
76
|
-
*
|
|
77
56
|
* @default `undefined`
|
|
78
57
|
*/
|
|
79
|
-
plugin?: import('../utils').Plugin | undefined
|
|
58
|
+
plugin?: import('../utils.js').Plugin | undefined
|
|
80
59
|
},
|
|
81
60
|
'ref' | 'options' | 'plugin'
|
|
82
|
-
>
|
|
61
|
+
> & {
|
|
62
|
+
/**
|
|
63
|
+
* Value of the selected `options` item.
|
|
64
|
+
* @bindable
|
|
65
|
+
*/
|
|
66
|
+
value: T
|
|
67
|
+
/**
|
|
68
|
+
* Text displayed next to list.
|
|
69
|
+
* @default `undefined`
|
|
70
|
+
*/
|
|
71
|
+
label?: string
|
|
72
|
+
/**
|
|
73
|
+
* A collection of options to select from.
|
|
74
|
+
*
|
|
75
|
+
* The arbitrary array list type is a convenience addition to to the vanilla JS Tweakpane
|
|
76
|
+
* API.
|
|
77
|
+
*/
|
|
78
|
+
options: ListOptions<T>
|
|
79
|
+
}
|
|
83
80
|
events(): {
|
|
84
81
|
/**
|
|
85
82
|
* Fires when `value` changes.
|
|
@@ -88,10 +85,9 @@ declare class __sveltets_Render<T extends any> {
|
|
|
88
85
|
*
|
|
89
86
|
* The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
|
|
90
87
|
* and changes resulting from programmatic manipulation of the `value` (`external`).
|
|
91
|
-
*
|
|
92
88
|
* @extends ValueChangeEvent
|
|
93
89
|
* @event
|
|
94
|
-
|
|
90
|
+
*/
|
|
95
91
|
change: ListChangeEvent
|
|
96
92
|
}
|
|
97
93
|
slots(): {}
|
|
@@ -123,8 +119,8 @@ export type ListSlots<T extends any> = ReturnType<__sveltets_Render<T>['slots']>
|
|
|
123
119
|
* import { List, type ListOptions } from 'svelte-tweakpane-ui'
|
|
124
120
|
*
|
|
125
121
|
* const options: ListOptions<number> = {
|
|
126
|
-
* b: 2,
|
|
127
122
|
* a: 1,
|
|
123
|
+
* b: 2,
|
|
128
124
|
* c: 3,
|
|
129
125
|
* }
|
|
130
126
|
* let selection: number = 1
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script generics="T extends PointValue2d | PointValue3d | PointValue4d">
|
|
4
|
-
import ClsPad from '../internal/ClsPad.svelte'
|
|
5
|
-
import GenericInputFolding from '../internal/GenericInputFolding.svelte'
|
|
6
|
-
import { removeKeys } from '../utils'
|
|
7
4
|
import { BROWSER } from 'esm-env'
|
|
8
5
|
import { shallowEqual } from 'fast-equals'
|
|
6
|
+
import ClsPad from '../internal/ClsPad.svelte'
|
|
7
|
+
import GenericInputFolding from '../internal/GenericInputFolding.svelte'
|
|
8
|
+
import { removeKeys } from '../utils.js'
|
|
9
9
|
export let value
|
|
10
10
|
export let expanded = $$props.expanded ?? void 0
|
|
11
11
|
let pointerScale = $$props['pointerScale'] ?? void 0
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
$: (value, updateInternalValueFromValue())
|
|
55
55
|
$: (internalValue, updateValueFromInternalValue())
|
|
56
56
|
$: options = {
|
|
57
|
-
x: optionsX,
|
|
58
|
-
y: optionsY,
|
|
59
|
-
z: optionsZ,
|
|
60
|
-
w: optionsW,
|
|
61
|
-
min,
|
|
62
|
-
max,
|
|
63
57
|
format,
|
|
64
58
|
keyScale,
|
|
59
|
+
max,
|
|
60
|
+
min,
|
|
65
61
|
pointerScale,
|
|
66
62
|
step,
|
|
63
|
+
w: optionsW,
|
|
64
|
+
x: optionsX,
|
|
65
|
+
y: optionsY,
|
|
66
|
+
z: optionsZ,
|
|
67
67
|
}
|
|
68
68
|
</script>
|
|
69
69
|
|