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
|
@@ -9,19 +9,19 @@ declare const __propDef: {
|
|
|
9
9
|
* @default `undefined` \
|
|
10
10
|
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
11
11
|
* set with `setGlobalDefaultTheme()`.
|
|
12
|
-
|
|
12
|
+
*/ theme?: Theme | undefined
|
|
13
13
|
/**
|
|
14
14
|
* Transforms keys into more pleasant control labels (e.g. capitalization and spaces in lieu of
|
|
15
15
|
* camelCase, kebab-case, etc.)
|
|
16
16
|
* @default `true`
|
|
17
|
-
|
|
17
|
+
*/ prettyLabels?: boolean
|
|
18
18
|
/**
|
|
19
19
|
* Object to create an automatic set of Tweakpane controls for.
|
|
20
20
|
*
|
|
21
21
|
* Keys will be used as labels, and a (reasonably) appropriate Tweakpane control will be used
|
|
22
22
|
* for each value's type.
|
|
23
23
|
* @bindable
|
|
24
|
-
|
|
24
|
+
*/ object: BindingObject
|
|
25
25
|
}
|
|
26
26
|
slots: {}
|
|
27
27
|
events: {
|
|
@@ -32,10 +32,9 @@ declare const __propDef: {
|
|
|
32
32
|
*
|
|
33
33
|
* The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
|
|
34
34
|
* and changes resulting from programmatic manipulation of the `object` (`external`).
|
|
35
|
-
*
|
|
36
35
|
* @extends ValueChangeEvent
|
|
37
36
|
* @event
|
|
38
|
-
|
|
37
|
+
*/
|
|
39
38
|
change: AutoObjectChangeEvent
|
|
40
39
|
}
|
|
41
40
|
}
|
|
@@ -3,13 +3,7 @@ import type { ValueChangeEvent } from '../utils.js'
|
|
|
3
3
|
export type AutoValueChangeEvent = ValueChangeEvent<boolean | number | object | string>
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: Omit<
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The value to control.
|
|
9
|
-
* @bindable
|
|
10
|
-
*/
|
|
11
|
-
value: string | number | boolean | object
|
|
12
|
-
} & Omit<
|
|
6
|
+
Omit<
|
|
13
7
|
{
|
|
14
8
|
/**
|
|
15
9
|
* The binding's target object with values to manipulate.
|
|
@@ -44,7 +38,6 @@ declare const __propDef: {
|
|
|
44
38
|
options?: import('tweakpane').BindingParams | undefined
|
|
45
39
|
/**
|
|
46
40
|
* Custom color scheme.
|
|
47
|
-
*
|
|
48
41
|
* @default `undefined` \
|
|
49
42
|
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
50
43
|
* set with `setGlobalDefaultTheme()`.
|
|
@@ -59,7 +52,6 @@ declare const __propDef: {
|
|
|
59
52
|
* components wrapping `<Binding>`'s functionality.
|
|
60
53
|
*
|
|
61
54
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
62
|
-
*
|
|
63
55
|
* @bindable
|
|
64
56
|
* @readonly
|
|
65
57
|
*/
|
|
@@ -72,13 +64,18 @@ declare const __propDef: {
|
|
|
72
64
|
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
73
65
|
*
|
|
74
66
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
75
|
-
*
|
|
76
67
|
* @default `undefined`
|
|
77
68
|
*/
|
|
78
69
|
plugin?: import('../utils.js').Plugin | undefined
|
|
79
70
|
},
|
|
80
71
|
'object' | 'key'
|
|
81
|
-
|
|
72
|
+
> & {
|
|
73
|
+
/**
|
|
74
|
+
* The value to control.
|
|
75
|
+
* @bindable
|
|
76
|
+
*/
|
|
77
|
+
value: string | number | boolean | object
|
|
78
|
+
},
|
|
82
79
|
'ref' | 'options' | 'plugin'
|
|
83
80
|
>
|
|
84
81
|
slots: {}
|
|
@@ -90,10 +87,9 @@ declare const __propDef: {
|
|
|
90
87
|
*
|
|
91
88
|
* The `event.details` payload includes a copy of the value and an `origin` field to distinguish between user-interactive changes (`internal`)
|
|
92
89
|
* and changes resulting from programmatic manipulation of the `value` (`external`).
|
|
93
|
-
*
|
|
94
90
|
* @extends ValueChangeEvent
|
|
95
91
|
* @event
|
|
96
|
-
|
|
92
|
+
*/
|
|
97
93
|
change: AutoValueChangeEvent
|
|
98
94
|
}
|
|
99
95
|
}
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte'
|
|
2
2
|
import type { BladeRef } from '../core/Blade.svelte'
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
5
|
-
/**
|
|
6
|
-
* Maximum height of the element block, in pixels. By default, the element
|
|
7
|
-
* block will expand vertically to fit its contents, but clip any horizontal
|
|
8
|
-
* excess.
|
|
9
|
-
*
|
|
10
|
-
* If a max height is set, it is used as the component height during SSR. If
|
|
11
|
-
* the actual element content is less than the max, you will see CLS. If it
|
|
12
|
-
* is not set, the contents are rendered... but keep in mind that style and
|
|
13
|
-
* other contextual changes during the client render could result in CLS.
|
|
14
|
-
* @default `undefined` \
|
|
15
|
-
* No max height.
|
|
16
|
-
*/
|
|
17
|
-
maxHeight?: number
|
|
18
|
-
/**
|
|
19
|
-
* Whether to reset the CSS of the element block to its default values.
|
|
20
|
-
* Avoids inheritance of Tweakpane's CSS styles. Note that this uses a
|
|
21
|
-
* simple `all: initial;` rule.
|
|
22
|
-
* @default `true`
|
|
23
|
-
*/
|
|
24
|
-
resetStyle?: boolean
|
|
25
|
-
} & Omit<
|
|
4
|
+
props: Omit<
|
|
26
5
|
{
|
|
27
6
|
/**
|
|
28
7
|
* Blade configuration exposing Tweakpane's internal
|
|
@@ -50,7 +29,6 @@ declare const __propDef: {
|
|
|
50
29
|
* components wrapping `<Blade>`'s functionality.
|
|
51
30
|
*
|
|
52
31
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
53
|
-
*
|
|
54
32
|
* @bindable
|
|
55
33
|
* @readonly
|
|
56
34
|
*/
|
|
@@ -63,13 +41,33 @@ declare const __propDef: {
|
|
|
63
41
|
* components wrapping `<Blade>`'s functionality in combination with a Tweakpane plugin.
|
|
64
42
|
*
|
|
65
43
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
66
|
-
*
|
|
67
44
|
* @default `undefined`
|
|
68
45
|
*/
|
|
69
46
|
plugin?: import('../core/Blade.svelte').Plugin | undefined
|
|
70
47
|
},
|
|
71
48
|
'ref' | 'disabled' | 'options' | 'plugin'
|
|
72
|
-
>
|
|
49
|
+
> & {
|
|
50
|
+
/**
|
|
51
|
+
* Maximum height of the element block, in pixels. By default, the element
|
|
52
|
+
* block will expand vertically to fit its contents, but clip any horizontal
|
|
53
|
+
* excess.
|
|
54
|
+
*
|
|
55
|
+
* If a max height is set, it is used as the component height during SSR. If
|
|
56
|
+
* the actual element content is less than the max, you will see CLS. If it
|
|
57
|
+
* is not set, the contents are rendered... but keep in mind that style and
|
|
58
|
+
* other contextual changes during the client render could result in CLS.
|
|
59
|
+
* @default `undefined` \
|
|
60
|
+
* No max height.
|
|
61
|
+
*/
|
|
62
|
+
maxHeight?: number
|
|
63
|
+
/**
|
|
64
|
+
* Whether to reset the CSS of the element block to its default values.
|
|
65
|
+
* Avoids inheritance of Tweakpane's CSS styles. Note that this uses a
|
|
66
|
+
* simple `all: initial;` rule.
|
|
67
|
+
* @default `true`
|
|
68
|
+
*/
|
|
69
|
+
resetStyle?: boolean
|
|
70
|
+
}
|
|
73
71
|
events: {
|
|
74
72
|
[evt: string]: CustomEvent<any>
|
|
75
73
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { getValueOrFallback } from '../theme.js'
|
|
3
2
|
import { DEV } from 'esm-env'
|
|
3
|
+
import { getValueOrFallback } from '../theme.js'
|
|
4
4
|
export let theme = void 0
|
|
5
5
|
export let keysAdd = []
|
|
6
6
|
export let keysSubtract = []
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
}
|
|
15
15
|
function getTotal(add, sub, extra2 = 0) {
|
|
16
16
|
return (
|
|
17
|
-
|
|
17
|
+
// eslint-disable-next-line no-return-assign
|
|
18
|
+
add.reduce((acc, key) => (acc += getPixelValue(getValueOrFallback(theme, key))), 0) - // eslint-disable-next-line no-return-assign
|
|
18
19
|
sub.reduce((acc, key) => (acc += getPixelValue(getValueOrFallback(theme, key))), 0) +
|
|
19
20
|
extra2
|
|
20
21
|
)
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
<script
|
|
4
4
|
generics="T extends any, U extends BindingOptions = BindingOptions, V extends BindingRef = BindingRef"
|
|
5
5
|
>
|
|
6
|
-
import Binding from '../core/Binding.svelte'
|
|
7
6
|
import { shallowEqual } from 'fast-equals'
|
|
7
|
+
import Binding from '../core/Binding.svelte'
|
|
8
8
|
export let value
|
|
9
9
|
export let ref = void 0
|
|
10
10
|
export let options = void 0
|
|
11
|
-
const key = Symbol('key')
|
|
11
|
+
const key = /* @__PURE__ */ Symbol('key')
|
|
12
12
|
function getValue() {
|
|
13
13
|
return value
|
|
14
14
|
}
|
|
@@ -5,13 +5,7 @@ declare class __sveltets_Render<
|
|
|
5
5
|
U extends BindingOptions = BindingOptions,
|
|
6
6
|
V extends BindingRef = BindingRef,
|
|
7
7
|
> {
|
|
8
|
-
props():
|
|
9
|
-
/**
|
|
10
|
-
* The value to control.
|
|
11
|
-
* @bindable
|
|
12
|
-
* */
|
|
13
|
-
value: T
|
|
14
|
-
} & Omit<
|
|
8
|
+
props(): Omit<
|
|
15
9
|
{
|
|
16
10
|
/**
|
|
17
11
|
* The binding's target object with values to manipulate.
|
|
@@ -45,7 +39,6 @@ declare class __sveltets_Render<
|
|
|
45
39
|
options?: U | undefined
|
|
46
40
|
/**
|
|
47
41
|
* Custom color scheme.
|
|
48
|
-
*
|
|
49
42
|
* @default `undefined` \
|
|
50
43
|
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
51
44
|
* set with `setGlobalDefaultTheme()`.
|
|
@@ -60,7 +53,6 @@ declare class __sveltets_Render<
|
|
|
60
53
|
* components wrapping `<Binding>`'s functionality.
|
|
61
54
|
*
|
|
62
55
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
63
|
-
*
|
|
64
56
|
* @bindable
|
|
65
57
|
* @readonly
|
|
66
58
|
*/
|
|
@@ -73,13 +65,18 @@ declare class __sveltets_Render<
|
|
|
73
65
|
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
74
66
|
*
|
|
75
67
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
76
|
-
*
|
|
77
68
|
* @default `undefined`
|
|
78
69
|
*/
|
|
79
70
|
plugin?: import('../utils.js').Plugin | undefined
|
|
80
71
|
},
|
|
81
72
|
'object' | 'key'
|
|
82
|
-
>
|
|
73
|
+
> & {
|
|
74
|
+
/**
|
|
75
|
+
* The value to control.
|
|
76
|
+
* @bindable
|
|
77
|
+
*/
|
|
78
|
+
value: T
|
|
79
|
+
}
|
|
83
80
|
events(): {
|
|
84
81
|
change: import('../core/Binding.svelte').BindingChangeEvent
|
|
85
82
|
} & {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<script generics="T extends BladeOptions, U extends BladeRef">
|
|
4
4
|
import Blade from '../core/Blade.svelte'
|
|
5
|
-
import { updateCollapsibility } from '../utils'
|
|
5
|
+
import { updateCollapsibility } from '../utils.js'
|
|
6
6
|
export let options
|
|
7
7
|
export let ref = void 0
|
|
8
8
|
export let userExpandable = true
|
|
@@ -2,30 +2,6 @@ import { SvelteComponent } from 'svelte'
|
|
|
2
2
|
import type { BladeOptions, BladeRef } from '../core/Blade.svelte'
|
|
3
3
|
declare class __sveltets_Render<T extends BladeOptions, U extends BladeRef> {
|
|
4
4
|
props(): {
|
|
5
|
-
/**
|
|
6
|
-
* DOM class name of the button used to expand and collapse the blade's picker.
|
|
7
|
-
* @default `undefined`
|
|
8
|
-
* */
|
|
9
|
-
buttonClass?: string
|
|
10
|
-
/**
|
|
11
|
-
* Expand or collapse the blade's picker.
|
|
12
|
-
* @default `true`
|
|
13
|
-
* @bindable
|
|
14
|
-
* */
|
|
15
|
-
expanded?: boolean
|
|
16
|
-
/**
|
|
17
|
-
* The style of value "picker" to use in the blade.
|
|
18
|
-
* @default `'popup'`
|
|
19
|
-
*/
|
|
20
|
-
picker?: 'inline' | 'popup'
|
|
21
|
-
/**
|
|
22
|
-
* Allow users to interactively expand / contract the value picker by clicking its icon.
|
|
23
|
-
*
|
|
24
|
-
* Most useful when `picker` is `inline`.
|
|
25
|
-
* @default `true`
|
|
26
|
-
* */
|
|
27
|
-
userExpandable?: boolean
|
|
28
|
-
} & {
|
|
29
5
|
/**
|
|
30
6
|
* Blade configuration exposing Tweakpane's internal
|
|
31
7
|
* [`BladeParams`](https://tweakpane.github.io/docs/api/interfaces/BaseBladeParams.html).
|
|
@@ -52,7 +28,6 @@ declare class __sveltets_Render<T extends BladeOptions, U extends BladeRef> {
|
|
|
52
28
|
* components wrapping `<Blade>`'s functionality.
|
|
53
29
|
*
|
|
54
30
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
55
|
-
*
|
|
56
31
|
* @bindable
|
|
57
32
|
* @readonly
|
|
58
33
|
*/
|
|
@@ -65,10 +40,33 @@ declare class __sveltets_Render<T extends BladeOptions, U extends BladeRef> {
|
|
|
65
40
|
* components wrapping `<Blade>`'s functionality in combination with a Tweakpane plugin.
|
|
66
41
|
*
|
|
67
42
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
68
|
-
*
|
|
69
43
|
* @default `undefined`
|
|
70
44
|
*/
|
|
71
|
-
plugin?: import('../utils').Plugin | undefined
|
|
45
|
+
plugin?: import('../utils.js').Plugin | undefined
|
|
46
|
+
} & {
|
|
47
|
+
/**
|
|
48
|
+
* DOM class name of the button used to expand and collapse the blade's picker.
|
|
49
|
+
* @default `undefined`
|
|
50
|
+
*/
|
|
51
|
+
buttonClass?: string
|
|
52
|
+
/**
|
|
53
|
+
* Expand or collapse the blade's picker.
|
|
54
|
+
* @default `true`
|
|
55
|
+
* @bindable
|
|
56
|
+
*/
|
|
57
|
+
expanded?: boolean
|
|
58
|
+
/**
|
|
59
|
+
* The style of value "picker" to use in the blade.
|
|
60
|
+
* @default `'popup'`
|
|
61
|
+
*/
|
|
62
|
+
picker?: 'inline' | 'popup'
|
|
63
|
+
/**
|
|
64
|
+
* Allow users to interactively expand / contract the value picker by clicking its icon.
|
|
65
|
+
*
|
|
66
|
+
* Most useful when `picker` is `inline`.
|
|
67
|
+
* @default `true`
|
|
68
|
+
*/
|
|
69
|
+
userExpandable?: boolean
|
|
72
70
|
}
|
|
73
71
|
events(): {} & {
|
|
74
72
|
[evt: string]: CustomEvent<any>
|
|
@@ -7,13 +7,7 @@ declare class __sveltets_Render<
|
|
|
7
7
|
U extends GenericInputOptions = GenericInputOptions,
|
|
8
8
|
V extends GenericInputRef = GenericInputRef,
|
|
9
9
|
> {
|
|
10
|
-
props():
|
|
11
|
-
/**
|
|
12
|
-
* The value to control.
|
|
13
|
-
* @bindable
|
|
14
|
-
*/
|
|
15
|
-
value: T
|
|
16
|
-
} & Omit<
|
|
10
|
+
props(): Omit<
|
|
17
11
|
{
|
|
18
12
|
/**
|
|
19
13
|
* The binding's target object with values to manipulate.
|
|
@@ -47,7 +41,6 @@ declare class __sveltets_Render<
|
|
|
47
41
|
options?: U | undefined
|
|
48
42
|
/**
|
|
49
43
|
* Custom color scheme.
|
|
50
|
-
*
|
|
51
44
|
* @default `undefined` \
|
|
52
45
|
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
53
46
|
* set with `setGlobalDefaultTheme()`.
|
|
@@ -62,7 +55,6 @@ declare class __sveltets_Render<
|
|
|
62
55
|
* components wrapping `<Binding>`'s functionality.
|
|
63
56
|
*
|
|
64
57
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
65
|
-
*
|
|
66
58
|
* @bindable
|
|
67
59
|
* @readonly
|
|
68
60
|
*/
|
|
@@ -75,13 +67,18 @@ declare class __sveltets_Render<
|
|
|
75
67
|
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
76
68
|
*
|
|
77
69
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
78
|
-
*
|
|
79
70
|
* @default `undefined`
|
|
80
71
|
*/
|
|
81
72
|
plugin?: import('..').Plugin | undefined
|
|
82
73
|
},
|
|
83
74
|
'object' | 'key'
|
|
84
|
-
>
|
|
75
|
+
> & {
|
|
76
|
+
/**
|
|
77
|
+
* The value to control.
|
|
78
|
+
* @bindable
|
|
79
|
+
*/
|
|
80
|
+
value: T
|
|
81
|
+
}
|
|
85
82
|
events(): {
|
|
86
83
|
change: import('..').BindingChangeEvent
|
|
87
84
|
} & {
|
|
@@ -1,25 +1,96 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte'
|
|
2
2
|
import type { GenericInputOptions, GenericInputRef } from './GenericInput.svelte'
|
|
3
|
-
export type GenericInputFoldingOptions = {
|
|
3
|
+
export type GenericInputFoldingOptions = GenericInputOptions & {
|
|
4
4
|
expanded?: boolean
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
6
|
export type GenericInputFoldingRef = GenericInputRef
|
|
7
7
|
declare class __sveltets_Render<
|
|
8
8
|
T extends any,
|
|
9
9
|
U extends GenericInputFoldingOptions = GenericInputFoldingOptions,
|
|
10
10
|
V extends GenericInputFoldingRef = GenericInputFoldingRef,
|
|
11
11
|
> {
|
|
12
|
-
props():
|
|
12
|
+
props(): Omit<
|
|
13
|
+
{
|
|
14
|
+
/**
|
|
15
|
+
* The binding's target object with values to manipulate.
|
|
16
|
+
* @bindable
|
|
17
|
+
*/
|
|
18
|
+
object: import('@tweakpane/core').Bindable & Record<string, T>
|
|
19
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
20
|
+
key: string
|
|
21
|
+
/**
|
|
22
|
+
* Prevent interactivity and gray out the control.
|
|
23
|
+
* @default `false`
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean
|
|
26
|
+
/**
|
|
27
|
+
* Text displayed next to control.
|
|
28
|
+
* @default `undefined`
|
|
29
|
+
*/
|
|
30
|
+
label?: string | undefined
|
|
31
|
+
/**
|
|
32
|
+
* Tweakpane's internal options object.
|
|
33
|
+
*
|
|
34
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
35
|
+
*
|
|
36
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
37
|
+
*
|
|
38
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
39
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
40
|
+
* Tweakpane UI_.
|
|
41
|
+
* @default `undefined`
|
|
42
|
+
*/
|
|
43
|
+
options?: U | undefined
|
|
44
|
+
/**
|
|
45
|
+
* Custom color scheme.
|
|
46
|
+
* @default `undefined` \
|
|
47
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
48
|
+
* set with `setGlobalDefaultTheme()`.
|
|
49
|
+
*/
|
|
50
|
+
theme?: import('..').Theme | undefined
|
|
51
|
+
/**
|
|
52
|
+
* Reference to internal Tweakpane
|
|
53
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
54
|
+
* this control.
|
|
55
|
+
*
|
|
56
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
57
|
+
* components wrapping `<Binding>`'s functionality.
|
|
58
|
+
*
|
|
59
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
60
|
+
* @bindable
|
|
61
|
+
* @readonly
|
|
62
|
+
*/
|
|
63
|
+
ref?: V | undefined
|
|
64
|
+
/**
|
|
65
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
66
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
67
|
+
*
|
|
68
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
69
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
70
|
+
*
|
|
71
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
72
|
+
* @default `undefined`
|
|
73
|
+
*/
|
|
74
|
+
plugin?: import('../utils.js').Plugin | undefined
|
|
75
|
+
},
|
|
76
|
+
'object' | 'key'
|
|
77
|
+
> & {
|
|
78
|
+
/**
|
|
79
|
+
* The value to control.
|
|
80
|
+
* @bindable
|
|
81
|
+
*/
|
|
82
|
+
value: T
|
|
83
|
+
} & {
|
|
13
84
|
/**
|
|
14
85
|
* DOM class name of the button used to expand and collapse the input's picker.
|
|
15
86
|
* @default `undefined`
|
|
16
|
-
|
|
87
|
+
*/
|
|
17
88
|
buttonClass?: string
|
|
18
89
|
/**
|
|
19
90
|
* Expand or collapse the input's picker.
|
|
20
91
|
* @default `false`
|
|
21
92
|
* @bindable
|
|
22
|
-
|
|
93
|
+
*/
|
|
23
94
|
expanded?: boolean
|
|
24
95
|
/**
|
|
25
96
|
* The style of value "picker" to use in the input.
|
|
@@ -29,83 +100,9 @@ declare class __sveltets_Render<
|
|
|
29
100
|
/**
|
|
30
101
|
* Allow users to interactively expand / contract the picker.
|
|
31
102
|
* @default `true`
|
|
32
|
-
* */
|
|
33
|
-
userExpandable?: boolean
|
|
34
|
-
} & {
|
|
35
|
-
/**
|
|
36
|
-
* The value to control.
|
|
37
|
-
* @bindable
|
|
38
103
|
*/
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
{
|
|
42
|
-
/**
|
|
43
|
-
* The binding's target object with values to manipulate.
|
|
44
|
-
* @bindable
|
|
45
|
-
*/
|
|
46
|
-
object: import('@tweakpane/core').Bindable & Record<string, T>
|
|
47
|
-
/** The key for the value in the target `object` that the control should manipulate. */
|
|
48
|
-
key: string
|
|
49
|
-
/**
|
|
50
|
-
* Prevent interactivity and gray out the control.
|
|
51
|
-
* @default `false`
|
|
52
|
-
*/
|
|
53
|
-
disabled?: boolean
|
|
54
|
-
/**
|
|
55
|
-
* Text displayed next to control.
|
|
56
|
-
* @default `undefined`
|
|
57
|
-
*/
|
|
58
|
-
label?: string | undefined
|
|
59
|
-
/**
|
|
60
|
-
* Tweakpane's internal options object.
|
|
61
|
-
*
|
|
62
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
63
|
-
*
|
|
64
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
65
|
-
*
|
|
66
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
67
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
68
|
-
* Tweakpane UI_.
|
|
69
|
-
* @default `undefined`
|
|
70
|
-
*/
|
|
71
|
-
options?: U | undefined
|
|
72
|
-
/**
|
|
73
|
-
* Custom color scheme.
|
|
74
|
-
*
|
|
75
|
-
* @default `undefined` \
|
|
76
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
77
|
-
* set with `setGlobalDefaultTheme()`.
|
|
78
|
-
*/
|
|
79
|
-
theme?: import('..').Theme | undefined
|
|
80
|
-
/**
|
|
81
|
-
* Reference to internal Tweakpane
|
|
82
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
83
|
-
* this control.
|
|
84
|
-
*
|
|
85
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
86
|
-
* components wrapping `<Binding>`'s functionality.
|
|
87
|
-
*
|
|
88
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
89
|
-
*
|
|
90
|
-
* @bindable
|
|
91
|
-
* @readonly
|
|
92
|
-
*/
|
|
93
|
-
ref?: V | undefined
|
|
94
|
-
/**
|
|
95
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
96
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
97
|
-
*
|
|
98
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
99
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
100
|
-
*
|
|
101
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
102
|
-
*
|
|
103
|
-
* @default `undefined`
|
|
104
|
-
*/
|
|
105
|
-
plugin?: import('../utils.js').Plugin | undefined
|
|
106
|
-
},
|
|
107
|
-
'object' | 'key'
|
|
108
|
-
>
|
|
104
|
+
userExpandable?: boolean
|
|
105
|
+
}
|
|
109
106
|
events(): {
|
|
110
107
|
change: import('..').BindingChangeEvent
|
|
111
108
|
} & {
|