svelte-tweakpane-ui 1.6.0-preview.3 → 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 +27 -32
|
@@ -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 { PointDimensionParams } from '@tweakpane/core'
|
|
3
|
+
import type { Simplify, ValueChangeEvent } from '../utils.js'
|
|
5
4
|
export type RotationQuaternionOptions = Simplify<PointDimensionParams>
|
|
6
5
|
export type RotationQuaternionValueObject = {
|
|
7
6
|
x: number
|
|
@@ -16,14 +15,113 @@ export type RotationQuaternionValue = Simplify<
|
|
|
16
15
|
export type RotationQuaternionChangeEvent = ValueChangeEvent<RotationQuaternionValue>
|
|
17
16
|
import type { RotationInputPluginQuaternionParams as RotationQuaternionOptionsInternal } from '@kitschpatrol/tweakpane-plugin-rotation/dist/types/RotationInputPluginQuaternionParams'
|
|
18
17
|
declare const __propDef: {
|
|
19
|
-
props:
|
|
18
|
+
props: Omit<
|
|
19
|
+
Omit<
|
|
20
|
+
{
|
|
21
|
+
/**
|
|
22
|
+
* The binding's target object with values to manipulate.
|
|
23
|
+
* @bindable
|
|
24
|
+
*/
|
|
25
|
+
object: import('@tweakpane/core').Bindable & Record<string, RotationQuaternionValue>
|
|
26
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
27
|
+
key: string
|
|
28
|
+
/**
|
|
29
|
+
* Prevent interactivity and gray out the control.
|
|
30
|
+
* @default `false`
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean
|
|
33
|
+
/**
|
|
34
|
+
* Text displayed next to control.
|
|
35
|
+
* @default `undefined`
|
|
36
|
+
*/
|
|
37
|
+
label?: string | undefined
|
|
38
|
+
/**
|
|
39
|
+
* Tweakpane's internal options object.
|
|
40
|
+
*
|
|
41
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
42
|
+
*
|
|
43
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
44
|
+
*
|
|
45
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
46
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
47
|
+
* Tweakpane UI_.
|
|
48
|
+
* @default `undefined`
|
|
49
|
+
*/
|
|
50
|
+
options?: RotationQuaternionOptionsInternal | undefined
|
|
51
|
+
/**
|
|
52
|
+
* Custom color scheme.
|
|
53
|
+
* @default `undefined` \
|
|
54
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
55
|
+
* set with `setGlobalDefaultTheme()`.
|
|
56
|
+
*/
|
|
57
|
+
theme?: import('..').Theme | undefined
|
|
58
|
+
/**
|
|
59
|
+
* Reference to internal Tweakpane
|
|
60
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
61
|
+
* this control.
|
|
62
|
+
*
|
|
63
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
64
|
+
* components wrapping `<Binding>`'s functionality.
|
|
65
|
+
*
|
|
66
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
67
|
+
* @bindable
|
|
68
|
+
* @readonly
|
|
69
|
+
*/
|
|
70
|
+
ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined
|
|
71
|
+
/**
|
|
72
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
73
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
74
|
+
*
|
|
75
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
76
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
77
|
+
*
|
|
78
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
79
|
+
* @default `undefined`
|
|
80
|
+
*/
|
|
81
|
+
plugin?: import('../utils.js').Plugin | undefined
|
|
82
|
+
},
|
|
83
|
+
'object' | 'key'
|
|
84
|
+
> & {
|
|
85
|
+
/**
|
|
86
|
+
* The quaternion value to control.
|
|
87
|
+
*
|
|
88
|
+
* Tuple values are a convenience added by _Svelte Tweakpane UI_, and is not part of the
|
|
89
|
+
* original TweakpaneRotationPlugin API.
|
|
90
|
+
* @bindable
|
|
91
|
+
*/
|
|
92
|
+
value: RotationQuaternionValue
|
|
93
|
+
} & {
|
|
94
|
+
/**
|
|
95
|
+
* DOM class name of the button used to expand and collapse the input's picker.
|
|
96
|
+
* @default `undefined`
|
|
97
|
+
*/
|
|
98
|
+
buttonClass?: string
|
|
99
|
+
/**
|
|
100
|
+
* Expand or collapse the input's picker.
|
|
101
|
+
* @default `false`
|
|
102
|
+
* @bindable
|
|
103
|
+
*/
|
|
104
|
+
expanded?: boolean
|
|
105
|
+
/**
|
|
106
|
+
* The style of value "picker" to use in the input.
|
|
107
|
+
* @default `'popup'`
|
|
108
|
+
*/
|
|
109
|
+
picker?: 'inline' | 'popup'
|
|
110
|
+
/**
|
|
111
|
+
* Allow users to interactively expand / contract the picker.
|
|
112
|
+
* @default `true`
|
|
113
|
+
*/
|
|
114
|
+
userExpandable?: boolean
|
|
115
|
+
},
|
|
116
|
+
'ref' | 'options' | 'plugin' | 'buttonClass'
|
|
117
|
+
> & {
|
|
20
118
|
/**
|
|
21
119
|
* The quaternion value to control.
|
|
22
120
|
*
|
|
23
121
|
* Tuple values are a convenience added by _Svelte Tweakpane UI_, and is not part of the
|
|
24
122
|
* original TweakpaneRotationPlugin API.
|
|
25
123
|
* @bindable
|
|
26
|
-
|
|
124
|
+
*/
|
|
27
125
|
value: RotationQuaternionValue
|
|
28
126
|
/**
|
|
29
127
|
* Input parameters specific to the X dimension.
|
|
@@ -31,7 +129,7 @@ declare const __propDef: {
|
|
|
31
129
|
* Renamed from `x` in TweakpaneRotationPlugin API to clarify that it is an object of
|
|
32
130
|
* options, not a value.
|
|
33
131
|
* @default `undefined`
|
|
34
|
-
|
|
132
|
+
*/
|
|
35
133
|
optionsX?: RotationQuaternionOptions
|
|
36
134
|
/**
|
|
37
135
|
* Input parameters specific to the Y dimension.
|
|
@@ -39,7 +137,7 @@ declare const __propDef: {
|
|
|
39
137
|
* Renamed from `y` in TweakpaneRotationPlugin API to clarify that it is an object of
|
|
40
138
|
* options, not a value.
|
|
41
139
|
* @default `undefined`
|
|
42
|
-
|
|
140
|
+
*/
|
|
43
141
|
optionsY?: RotationQuaternionOptions
|
|
44
142
|
/**
|
|
45
143
|
* Input parameters specific to the Z dimension.
|
|
@@ -47,7 +145,7 @@ declare const __propDef: {
|
|
|
47
145
|
* Renamed from `z` in TweakpaneRotationPlugin API to clarify that it is an object of
|
|
48
146
|
* options, not a value.
|
|
49
147
|
* @default `undefined`
|
|
50
|
-
|
|
148
|
+
*/
|
|
51
149
|
optionsZ?: RotationQuaternionOptions
|
|
52
150
|
/**
|
|
53
151
|
* Input parameters specific to the W dimension.
|
|
@@ -55,111 +153,9 @@ declare const __propDef: {
|
|
|
55
153
|
* Renamed from `w` in TweakpaneRotationPlugin API to clarify that it is an object of
|
|
56
154
|
* options, not a value.
|
|
57
155
|
* @default `undefined`
|
|
58
|
-
|
|
156
|
+
*/
|
|
59
157
|
optionsW?: RotationQuaternionOptions
|
|
60
|
-
}
|
|
61
|
-
{
|
|
62
|
-
/**
|
|
63
|
-
* DOM class name of the button used to expand and collapse the input's picker.
|
|
64
|
-
* @default `undefined`
|
|
65
|
-
*/
|
|
66
|
-
buttonClass?: string
|
|
67
|
-
/**
|
|
68
|
-
* Expand or collapse the input's picker.
|
|
69
|
-
* @default `false`
|
|
70
|
-
* @bindable
|
|
71
|
-
*/
|
|
72
|
-
expanded?: boolean
|
|
73
|
-
/**
|
|
74
|
-
* The style of value "picker" to use in the input.
|
|
75
|
-
* @default `'popup'`
|
|
76
|
-
*/
|
|
77
|
-
picker?: 'inline' | 'popup'
|
|
78
|
-
/**
|
|
79
|
-
* Allow users to interactively expand / contract the picker.
|
|
80
|
-
* @default `true`
|
|
81
|
-
*/
|
|
82
|
-
userExpandable?: boolean
|
|
83
|
-
} & {
|
|
84
|
-
/**
|
|
85
|
-
* The quaternion value to control.
|
|
86
|
-
*
|
|
87
|
-
* Tuple values are a convenience added by _Svelte Tweakpane UI_, and is not part of the
|
|
88
|
-
* original TweakpaneRotationPlugin API.
|
|
89
|
-
* @bindable
|
|
90
|
-
*/
|
|
91
|
-
value: RotationQuaternionValue
|
|
92
|
-
} & Omit<
|
|
93
|
-
{
|
|
94
|
-
/**
|
|
95
|
-
* The binding's target object with values to manipulate.
|
|
96
|
-
* @bindable
|
|
97
|
-
*/
|
|
98
|
-
object: import('@tweakpane/core').Bindable & Record<string, RotationQuaternionValue>
|
|
99
|
-
/** The key for the value in the target `object` that the control should manipulate. */
|
|
100
|
-
key: string
|
|
101
|
-
/**
|
|
102
|
-
* Prevent interactivity and gray out the control.
|
|
103
|
-
* @default `false`
|
|
104
|
-
*/
|
|
105
|
-
disabled?: boolean
|
|
106
|
-
/**
|
|
107
|
-
* Text displayed next to control.
|
|
108
|
-
* @default `undefined`
|
|
109
|
-
*/
|
|
110
|
-
label?: string | undefined
|
|
111
|
-
/**
|
|
112
|
-
* Tweakpane's internal options object.
|
|
113
|
-
*
|
|
114
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
115
|
-
*
|
|
116
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
117
|
-
*
|
|
118
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
119
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
120
|
-
* Tweakpane UI_.
|
|
121
|
-
* @default `undefined`
|
|
122
|
-
*/
|
|
123
|
-
options?: RotationQuaternionOptionsInternal | undefined
|
|
124
|
-
/**
|
|
125
|
-
* Custom color scheme.
|
|
126
|
-
*
|
|
127
|
-
* @default `undefined` \
|
|
128
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
129
|
-
* set with `setGlobalDefaultTheme()`.
|
|
130
|
-
*/
|
|
131
|
-
theme?: import('..').Theme | undefined
|
|
132
|
-
/**
|
|
133
|
-
* Reference to internal Tweakpane
|
|
134
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
135
|
-
* this control.
|
|
136
|
-
*
|
|
137
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
138
|
-
* components wrapping `<Binding>`'s functionality.
|
|
139
|
-
*
|
|
140
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
141
|
-
*
|
|
142
|
-
* @bindable
|
|
143
|
-
* @readonly
|
|
144
|
-
*/
|
|
145
|
-
ref?: import('../internal/GenericInput.svelte').GenericInputRef | undefined
|
|
146
|
-
/**
|
|
147
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
148
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
149
|
-
*
|
|
150
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
151
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
152
|
-
*
|
|
153
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
154
|
-
*
|
|
155
|
-
* @default `undefined`
|
|
156
|
-
*/
|
|
157
|
-
plugin?: import('../utils').Plugin | undefined
|
|
158
|
-
},
|
|
159
|
-
'object' | 'key'
|
|
160
|
-
>,
|
|
161
|
-
'ref' | 'options' | 'plugin' | 'buttonClass'
|
|
162
|
-
>
|
|
158
|
+
}
|
|
163
159
|
slots: {}
|
|
164
160
|
events: {
|
|
165
161
|
/**
|
|
@@ -169,10 +165,9 @@ declare const __propDef: {
|
|
|
169
165
|
*
|
|
170
166
|
* The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
|
|
171
167
|
* and changes resulting from programmatic manipulation of the `value` (`external`).
|
|
172
|
-
*
|
|
173
168
|
* @extends ValueChangeEvent
|
|
174
169
|
* @event
|
|
175
|
-
|
|
170
|
+
*/
|
|
176
171
|
change: RotationQuaternionChangeEvent
|
|
177
172
|
}
|
|
178
173
|
}
|
|
@@ -1,30 +1,81 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte'
|
|
2
|
-
import type { ValueChangeEvent } from '../utils.js'
|
|
3
2
|
import type { SliderInputBindingApi as GenericSliderRef } from 'tweakpane'
|
|
3
|
+
import type { ValueChangeEvent } from '../utils.js'
|
|
4
4
|
export type SliderChangeEvent = ValueChangeEvent<number>
|
|
5
5
|
declare const __propDef: {
|
|
6
|
-
props:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
props: Omit<
|
|
7
|
+
Omit<
|
|
8
|
+
{
|
|
9
|
+
/**
|
|
10
|
+
* The binding's target object with values to manipulate.
|
|
11
|
+
* @bindable
|
|
12
|
+
*/
|
|
13
|
+
object: import('@tweakpane/core').Bindable & Record<string, number>
|
|
14
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
15
|
+
key: string
|
|
16
|
+
/**
|
|
17
|
+
* Prevent interactivity and gray out the control.
|
|
18
|
+
* @default `false`
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean
|
|
21
|
+
/**
|
|
22
|
+
* Text displayed next to control.
|
|
23
|
+
* @default `undefined`
|
|
24
|
+
*/
|
|
25
|
+
label?: string | undefined
|
|
26
|
+
/**
|
|
27
|
+
* Tweakpane's internal options object.
|
|
28
|
+
*
|
|
29
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
30
|
+
*
|
|
31
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
32
|
+
*
|
|
33
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
34
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
35
|
+
* Tweakpane UI_.
|
|
36
|
+
* @default `undefined`
|
|
37
|
+
*/
|
|
38
|
+
options?: import('tweakpane').NumberInputParams | undefined
|
|
39
|
+
/**
|
|
40
|
+
* Custom color scheme.
|
|
41
|
+
* @default `undefined` \
|
|
42
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
43
|
+
* set with `setGlobalDefaultTheme()`.
|
|
44
|
+
*/
|
|
45
|
+
theme?: import('..').Theme | undefined
|
|
46
|
+
/**
|
|
47
|
+
* Reference to internal Tweakpane
|
|
48
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
49
|
+
* this control.
|
|
50
|
+
*
|
|
51
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
52
|
+
* components wrapping `<Binding>`'s functionality.
|
|
53
|
+
*
|
|
54
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
55
|
+
* @bindable
|
|
56
|
+
* @readonly
|
|
57
|
+
*/
|
|
58
|
+
ref?: GenericSliderRef | undefined
|
|
59
|
+
/**
|
|
60
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
61
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
62
|
+
*
|
|
63
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
64
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
65
|
+
*
|
|
66
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
67
|
+
* @default `undefined`
|
|
68
|
+
*/
|
|
69
|
+
plugin?: import('../utils.js').Plugin | undefined
|
|
70
|
+
},
|
|
71
|
+
'object' | 'key'
|
|
72
|
+
> & {
|
|
21
73
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
25
|
-
* @default `undefined`
|
|
74
|
+
* A `number` value to control.
|
|
75
|
+
* @bindable .
|
|
26
76
|
*/
|
|
27
|
-
|
|
77
|
+
value: number
|
|
78
|
+
} & {
|
|
28
79
|
/**
|
|
29
80
|
* A function to customize the point value's string representation (e.g. rounding, etc.).
|
|
30
81
|
* @default `undefined` \
|
|
@@ -37,6 +88,20 @@ declare const __propDef: {
|
|
|
37
88
|
* Or `stepValue` if defined.
|
|
38
89
|
*/
|
|
39
90
|
keyScale?: number
|
|
91
|
+
/**
|
|
92
|
+
* Maximum value.
|
|
93
|
+
*
|
|
94
|
+
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
95
|
+
* @default `undefined`
|
|
96
|
+
*/
|
|
97
|
+
max?: number
|
|
98
|
+
/**
|
|
99
|
+
* Minimum value.
|
|
100
|
+
*
|
|
101
|
+
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
102
|
+
* @default `undefined`
|
|
103
|
+
*/
|
|
104
|
+
min?: number
|
|
40
105
|
/**
|
|
41
106
|
* The unit scale for pointer-based input for all dimensions.
|
|
42
107
|
* @default `undefined` \
|
|
@@ -56,83 +121,15 @@ declare const __propDef: {
|
|
|
56
121
|
* @default `false`
|
|
57
122
|
*/
|
|
58
123
|
wide?: boolean
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* A `number` value to control.
|
|
62
|
-
* @bindable .
|
|
63
|
-
*/
|
|
64
|
-
value: number
|
|
65
|
-
} & Omit<
|
|
66
|
-
{
|
|
67
|
-
/**
|
|
68
|
-
* The binding's target object with values to manipulate.
|
|
69
|
-
* @bindable
|
|
70
|
-
*/
|
|
71
|
-
object: import('@tweakpane/core').Bindable & Record<string, number>
|
|
72
|
-
/** The key for the value in the target `object` that the control should manipulate. */
|
|
73
|
-
key: string
|
|
74
|
-
/**
|
|
75
|
-
* Prevent interactivity and gray out the control.
|
|
76
|
-
* @default `false`
|
|
77
|
-
*/
|
|
78
|
-
disabled?: boolean
|
|
79
|
-
/**
|
|
80
|
-
* Text displayed next to control.
|
|
81
|
-
* @default `undefined`
|
|
82
|
-
*/
|
|
83
|
-
label?: string | undefined
|
|
84
|
-
/**
|
|
85
|
-
* Tweakpane's internal options object.
|
|
86
|
-
*
|
|
87
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
88
|
-
*
|
|
89
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
90
|
-
*
|
|
91
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
92
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
93
|
-
* Tweakpane UI_.
|
|
94
|
-
* @default `undefined`
|
|
95
|
-
*/
|
|
96
|
-
options?: import('tweakpane').NumberInputParams | undefined
|
|
97
|
-
/**
|
|
98
|
-
* Custom color scheme.
|
|
99
|
-
*
|
|
100
|
-
* @default `undefined` \
|
|
101
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
102
|
-
* set with `setGlobalDefaultTheme()`.
|
|
103
|
-
*/
|
|
104
|
-
theme?: import('..').Theme | undefined
|
|
105
|
-
/**
|
|
106
|
-
* Reference to internal Tweakpane
|
|
107
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
108
|
-
* this control.
|
|
109
|
-
*
|
|
110
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
111
|
-
* components wrapping `<Binding>`'s functionality.
|
|
112
|
-
*
|
|
113
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
114
|
-
*
|
|
115
|
-
* @bindable
|
|
116
|
-
* @readonly
|
|
117
|
-
*/
|
|
118
|
-
ref?: GenericSliderRef | undefined
|
|
119
|
-
/**
|
|
120
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
121
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
122
|
-
*
|
|
123
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
124
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
125
|
-
*
|
|
126
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
127
|
-
*
|
|
128
|
-
* @default `undefined`
|
|
129
|
-
*/
|
|
130
|
-
plugin?: import('../utils.js').Plugin | undefined
|
|
131
|
-
},
|
|
132
|
-
'object' | 'key'
|
|
133
|
-
>,
|
|
124
|
+
},
|
|
134
125
|
'ref' | 'options' | 'plugin'
|
|
135
|
-
>
|
|
126
|
+
> & {
|
|
127
|
+
/**
|
|
128
|
+
* A `number` value to control.
|
|
129
|
+
* @bindable.
|
|
130
|
+
*/
|
|
131
|
+
value: number
|
|
132
|
+
}
|
|
136
133
|
slots: {}
|
|
137
134
|
events: {
|
|
138
135
|
/**
|
|
@@ -142,10 +139,9 @@ declare const __propDef: {
|
|
|
142
139
|
*
|
|
143
140
|
* The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
|
|
144
141
|
* and changes resulting from programmatic manipulation of the `value` (`external`).
|
|
145
|
-
*
|
|
146
142
|
* @extends ValueChangeEvent
|
|
147
143
|
* @event
|
|
148
|
-
|
|
144
|
+
*/
|
|
149
145
|
change: SliderChangeEvent
|
|
150
146
|
}
|
|
151
147
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
-
import GenericSlider from '../internal/GenericSlider.svelte'
|
|
5
4
|
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-inputs'
|
|
5
|
+
import GenericSlider from '../internal/GenericSlider.svelte'
|
|
6
6
|
export let value
|
|
7
7
|
export let wide = void 0
|
|
8
8
|
let options
|