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,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 StepperChangeEvent = 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' | 'amount'
|
|
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: StepperChangeEvent
|
|
150
146
|
}
|
|
151
147
|
}
|
package/dist/control/Text.svelte
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
-
import GenericInput from '../internal/GenericInput.svelte'
|
|
5
4
|
import { onDestroy } from 'svelte'
|
|
5
|
+
import GenericInput from '../internal/GenericInput.svelte'
|
|
6
6
|
export let value
|
|
7
7
|
export let live = true
|
|
8
8
|
const options = { view: 'text' }
|
|
@@ -3,28 +3,8 @@ import type { ValueChangeEvent } from '../utils.js'
|
|
|
3
3
|
export type TextChangeEvent = ValueChangeEvent<string>
|
|
4
4
|
import { type GenericInputRef } from '../internal/GenericInput.svelte'
|
|
5
5
|
declare const __propDef: {
|
|
6
|
-
props:
|
|
7
|
-
|
|
8
|
-
* A `string` value to control.
|
|
9
|
-
* @bindable
|
|
10
|
-
* */
|
|
11
|
-
value: string
|
|
12
|
-
/**
|
|
13
|
-
* Whether to provide live updates to the bound `value` on every keystroke.
|
|
14
|
-
*
|
|
15
|
-
* To match expectations around reactive components, the default here diverges from the
|
|
16
|
-
* vanilla JS Tweakpane behavior, which only updates on blur.
|
|
17
|
-
* @default `true`
|
|
18
|
-
* */
|
|
19
|
-
live?: boolean
|
|
20
|
-
} & Omit<
|
|
21
|
-
{
|
|
22
|
-
/**
|
|
23
|
-
* A `string` value to control.
|
|
24
|
-
* @bindable
|
|
25
|
-
*/
|
|
26
|
-
value: string
|
|
27
|
-
} & Omit<
|
|
6
|
+
props: Omit<
|
|
7
|
+
Omit<
|
|
28
8
|
{
|
|
29
9
|
/**
|
|
30
10
|
* The binding's target object with values to manipulate.
|
|
@@ -58,7 +38,6 @@ declare const __propDef: {
|
|
|
58
38
|
options?: import('@tweakpane/core').BaseInputParams | undefined
|
|
59
39
|
/**
|
|
60
40
|
* Custom color scheme.
|
|
61
|
-
*
|
|
62
41
|
* @default `undefined` \
|
|
63
42
|
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
64
43
|
* set with `setGlobalDefaultTheme()`.
|
|
@@ -73,7 +52,6 @@ declare const __propDef: {
|
|
|
73
52
|
* components wrapping `<Binding>`'s functionality.
|
|
74
53
|
*
|
|
75
54
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
76
|
-
*
|
|
77
55
|
* @bindable
|
|
78
56
|
* @readonly
|
|
79
57
|
*/
|
|
@@ -86,15 +64,34 @@ declare const __propDef: {
|
|
|
86
64
|
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
87
65
|
*
|
|
88
66
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
89
|
-
*
|
|
90
67
|
* @default `undefined`
|
|
91
68
|
*/
|
|
92
69
|
plugin?: import('../utils.js').Plugin | undefined
|
|
93
70
|
},
|
|
94
71
|
'object' | 'key'
|
|
95
|
-
|
|
72
|
+
> & {
|
|
73
|
+
/**
|
|
74
|
+
* A `string` value to control.
|
|
75
|
+
* @bindable
|
|
76
|
+
*/
|
|
77
|
+
value: string
|
|
78
|
+
},
|
|
96
79
|
'ref' | 'options' | 'plugin'
|
|
97
|
-
>
|
|
80
|
+
> & {
|
|
81
|
+
/**
|
|
82
|
+
* A `string` value to control.
|
|
83
|
+
* @bindable
|
|
84
|
+
*/
|
|
85
|
+
value: string
|
|
86
|
+
/**
|
|
87
|
+
* Whether to provide live updates to the bound `value` on every keystroke.
|
|
88
|
+
*
|
|
89
|
+
* To match expectations around reactive components, the default here diverges from the
|
|
90
|
+
* vanilla JS Tweakpane behavior, which only updates on blur.
|
|
91
|
+
* @default `true`
|
|
92
|
+
*/
|
|
93
|
+
live?: boolean
|
|
94
|
+
}
|
|
98
95
|
slots: {}
|
|
99
96
|
events: {
|
|
100
97
|
/**
|
|
@@ -104,10 +101,9 @@ declare const __propDef: {
|
|
|
104
101
|
*
|
|
105
102
|
* The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
|
|
106
103
|
* and changes resulting from programmatic manipulation of the `value` (`external`).
|
|
107
|
-
*
|
|
108
104
|
* @extends ValueChangeEvent
|
|
109
105
|
* @event
|
|
110
|
-
|
|
106
|
+
*/
|
|
111
107
|
change: TextChangeEvent
|
|
112
108
|
}
|
|
113
109
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
-
import GenericInput from '../internal/GenericInput.svelte'
|
|
5
|
-
import {} from '../utils.js'
|
|
6
4
|
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-textarea'
|
|
7
5
|
import { BROWSER } from 'esm-env'
|
|
8
6
|
import { createEventDispatcher, onDestroy } from 'svelte'
|
|
7
|
+
import GenericInput from '../internal/GenericInput.svelte'
|
|
8
|
+
import {} from '../utils.js'
|
|
9
9
|
export let value
|
|
10
10
|
export let live = true
|
|
11
11
|
export let rows = void 0
|
|
@@ -4,37 +4,8 @@ export type TextareaChangeEvent = ValueChangeEvent<string>
|
|
|
4
4
|
import type { TextareaPluginInputParams } from '@kitschpatrol/tweakpane-plugin-textarea/dist/types/plugin.js'
|
|
5
5
|
import { type GenericInputRef } from '../internal/GenericInput.svelte'
|
|
6
6
|
declare const __propDef: {
|
|
7
|
-
props:
|
|
8
|
-
|
|
9
|
-
* Whether to provide live updates to the bound `value` on every keystroke.
|
|
10
|
-
* @default `true`
|
|
11
|
-
*/
|
|
12
|
-
live?: boolean
|
|
13
|
-
/**
|
|
14
|
-
* A `string` value to control.
|
|
15
|
-
* @bindable
|
|
16
|
-
*/
|
|
17
|
-
value: string
|
|
18
|
-
/**
|
|
19
|
-
* Placeholder text to display when the `value` is empty.
|
|
20
|
-
* @default `'Enter text here'`
|
|
21
|
-
*/
|
|
22
|
-
placeholder?: string
|
|
23
|
-
/**
|
|
24
|
-
* The number of lines of text to display.
|
|
25
|
-
*
|
|
26
|
-
* If lines of input exceed this value, then the text area will scroll.
|
|
27
|
-
* @default `3`
|
|
28
|
-
*/
|
|
29
|
-
rows?: number
|
|
30
|
-
} & Omit<
|
|
31
|
-
{
|
|
32
|
-
/**
|
|
33
|
-
* A `string` value to control.
|
|
34
|
-
* @bindable
|
|
35
|
-
*/
|
|
36
|
-
value: string
|
|
37
|
-
} & Omit<
|
|
7
|
+
props: Omit<
|
|
8
|
+
Omit<
|
|
38
9
|
{
|
|
39
10
|
/**
|
|
40
11
|
* The binding's target object with values to manipulate.
|
|
@@ -68,7 +39,6 @@ declare const __propDef: {
|
|
|
68
39
|
options?: TextareaPluginInputParams | undefined
|
|
69
40
|
/**
|
|
70
41
|
* Custom color scheme.
|
|
71
|
-
*
|
|
72
42
|
* @default `undefined` \
|
|
73
43
|
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
74
44
|
* set with `setGlobalDefaultTheme()`.
|
|
@@ -83,7 +53,6 @@ declare const __propDef: {
|
|
|
83
53
|
* components wrapping `<Binding>`'s functionality.
|
|
84
54
|
*
|
|
85
55
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
86
|
-
*
|
|
87
56
|
* @bindable
|
|
88
57
|
* @readonly
|
|
89
58
|
*/
|
|
@@ -96,15 +65,43 @@ declare const __propDef: {
|
|
|
96
65
|
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
97
66
|
*
|
|
98
67
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
99
|
-
*
|
|
100
68
|
* @default `undefined`
|
|
101
69
|
*/
|
|
102
70
|
plugin?: import('../utils.js').Plugin | undefined
|
|
103
71
|
},
|
|
104
72
|
'object' | 'key'
|
|
105
|
-
|
|
73
|
+
> & {
|
|
74
|
+
/**
|
|
75
|
+
* A `string` value to control.
|
|
76
|
+
* @bindable
|
|
77
|
+
*/
|
|
78
|
+
value: string
|
|
79
|
+
},
|
|
106
80
|
'ref' | 'options' | 'plugin'
|
|
107
|
-
>
|
|
81
|
+
> & {
|
|
82
|
+
/**
|
|
83
|
+
* A `string` value to control.
|
|
84
|
+
* @bindable
|
|
85
|
+
*/
|
|
86
|
+
value: string
|
|
87
|
+
/**
|
|
88
|
+
* Whether to provide live updates to the bound `value` on every keystroke.
|
|
89
|
+
* @default `true`
|
|
90
|
+
*/
|
|
91
|
+
live?: boolean
|
|
92
|
+
/**
|
|
93
|
+
* Placeholder text to display when the `value` is empty.
|
|
94
|
+
* @default `'Enter text here'`
|
|
95
|
+
*/
|
|
96
|
+
placeholder?: string
|
|
97
|
+
/**
|
|
98
|
+
* The number of lines of text to display.
|
|
99
|
+
*
|
|
100
|
+
* If lines of input exceed this value, then the text area will scroll.
|
|
101
|
+
* @default `3`
|
|
102
|
+
*/
|
|
103
|
+
rows?: number
|
|
104
|
+
}
|
|
108
105
|
slots: {}
|
|
109
106
|
events: {
|
|
110
107
|
/**
|
|
@@ -114,10 +111,9 @@ declare const __propDef: {
|
|
|
114
111
|
*
|
|
115
112
|
* The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
|
|
116
113
|
* and changes resulting from programmatic manipulation of the `value` (`external`).
|
|
117
|
-
*
|
|
118
114
|
* @extends ValueChangeEvent
|
|
119
115
|
* @event
|
|
120
|
-
|
|
116
|
+
*/
|
|
121
117
|
change: TextareaChangeEvent
|
|
122
118
|
}
|
|
123
119
|
}
|
|
@@ -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-camerakit'
|
|
5
|
+
import GenericSlider from '../internal/GenericSlider.svelte'
|
|
6
6
|
export let value
|
|
7
7
|
export let amount = void 0
|
|
8
8
|
export let wide = void 0
|