svelte-tweakpane-ui 1.3.0 → 1.3.1
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.d.ts +2 -2
- package/dist/control/ButtonGrid.svelte +1 -1
- package/dist/control/ButtonGrid.svelte.d.ts +5 -5
- package/dist/control/Checkbox.svelte.d.ts +2 -2
- package/dist/control/Color.svelte +1 -1
- package/dist/control/Color.svelte.d.ts +13 -13
- package/dist/control/CubicBezier.svelte +2 -2
- package/dist/control/CubicBezier.svelte.d.ts +7 -7
- package/dist/control/Image.svelte +1 -1
- package/dist/control/Image.svelte.d.ts +4 -4
- package/dist/control/IntervalSlider.svelte +1 -1
- package/dist/control/IntervalSlider.svelte.d.ts +9 -9
- package/dist/control/List.svelte.d.ts +3 -3
- package/dist/control/Point.svelte.d.ts +26 -26
- package/dist/control/RadioGrid.svelte +1 -1
- package/dist/control/RadioGrid.svelte.d.ts +7 -7
- package/dist/control/Ring.svelte +1 -1
- package/dist/control/Ring.svelte.d.ts +11 -11
- package/dist/control/RotationEuler.svelte +1 -1
- package/dist/control/RotationEuler.svelte.d.ts +13 -40
- package/dist/control/RotationQuaternion.svelte +1 -1
- package/dist/control/RotationQuaternion.svelte.d.ts +11 -47
- package/dist/control/Slider.svelte.d.ts +8 -8
- package/dist/control/Text.svelte.d.ts +3 -3
- package/dist/control/Textarea.svelte +1 -1
- package/dist/control/Textarea.svelte.d.ts +5 -5
- package/dist/control/Wheel.svelte +1 -1
- package/dist/control/Wheel.svelte.d.ts +9 -9
- package/dist/core/Binding.svelte.d.ts +4 -3
- package/dist/core/Blade.svelte.d.ts +3 -2
- package/dist/core/Folder.svelte.d.ts +4 -4
- package/dist/core/Pane.svelte.d.ts +27 -27
- package/dist/core/Separator.svelte.d.ts +2 -2
- package/dist/core/TabGroup.svelte.d.ts +2 -2
- package/dist/core/TabPage.svelte.d.ts +3 -3
- package/dist/extra/AutoObject.svelte +4 -4
- package/dist/extra/AutoObject.svelte.d.ts +1 -1
- package/dist/extra/AutoValue.svelte.d.ts +2 -2
- package/dist/extra/Element.svelte.d.ts +4 -4
- package/dist/index.d.ts +26 -26
- package/dist/internal/ClsPad.svelte.d.ts +3 -71
- package/dist/internal/GenericBinding.svelte.d.ts +2 -2
- package/dist/internal/GenericBladeFolding.svelte.d.ts +6 -6
- package/dist/internal/GenericInput.svelte.d.ts +2 -2
- package/dist/internal/GenericInputFolding.svelte.d.ts +6 -6
- package/dist/internal/GenericMonitor.svelte.d.ts +5 -5
- package/dist/internal/GenericPane.svelte.d.ts +4 -4
- package/dist/internal/GenericSlider.svelte.d.ts +8 -8
- package/dist/internal/InternalMonitorBoolean.svelte.d.ts +5 -5
- package/dist/internal/InternalMonitorNumber.svelte.d.ts +9 -9
- package/dist/internal/InternalMonitorString.svelte.d.ts +7 -7
- package/dist/internal/InternalPaneDraggable.svelte +1 -1
- package/dist/internal/InternalPaneDraggable.svelte.d.ts +14 -14
- package/dist/internal/InternalPaneFixed.svelte.d.ts +7 -7
- package/dist/internal/InternalPaneInline.svelte.d.ts +5 -5
- package/dist/monitor/FpsGraph.svelte +1 -1
- package/dist/monitor/FpsGraph.svelte.d.ts +57 -57
- package/dist/monitor/Monitor.svelte.d.ts +31 -31
- package/dist/monitor/Profiler.svelte +1 -1
- package/dist/monitor/Profiler.svelte.d.ts +61 -65
- package/dist/monitor/WaveformMonitor.svelte +1 -1
- package/dist/monitor/WaveformMonitor.svelte.d.ts +12 -12
- package/dist/theme.d.ts +2 -2
- package/dist/theme.js +1 -1
- package/package.json +43 -37
- package/readme.md +7 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
|
-
import type { RingSeries } from '@kitschpatrol/tweakpane-plugin-camerakit/dist/types/util.js';
|
|
3
2
|
import type { ValueChangeEvent } from '../utils.js';
|
|
3
|
+
import type { RingSeries } from '@kitschpatrol/tweakpane-plugin-camerakit/dist/types/util.js';
|
|
4
4
|
type RingUnit = {
|
|
5
5
|
/**
|
|
6
6
|
* The value for the unit.
|
|
@@ -38,12 +38,12 @@ declare const __propDef: {
|
|
|
38
38
|
* Style variations.
|
|
39
39
|
* @default `0`
|
|
40
40
|
* */
|
|
41
|
-
series?: RingSeries
|
|
41
|
+
series?: RingSeries;
|
|
42
42
|
/**
|
|
43
43
|
* Density and value mapping of the ring's tick marks.
|
|
44
44
|
* @default `{ ticks: 5, pixels: 40, value: 10 }`
|
|
45
45
|
* */
|
|
46
|
-
unit?: RingUnit
|
|
46
|
+
unit?: RingUnit;
|
|
47
47
|
} & Omit<
|
|
48
48
|
{
|
|
49
49
|
/**
|
|
@@ -52,14 +52,14 @@ declare const __propDef: {
|
|
|
52
52
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
53
53
|
* @default `undefined`
|
|
54
54
|
*/
|
|
55
|
-
min?: number
|
|
55
|
+
min?: number;
|
|
56
56
|
/**
|
|
57
57
|
* Maximum value.
|
|
58
58
|
*
|
|
59
59
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
60
60
|
* @default `undefined`
|
|
61
61
|
*/
|
|
62
|
-
max?: number
|
|
62
|
+
max?: number;
|
|
63
63
|
/**
|
|
64
64
|
* A function to customize the point value's string representation (e.g. rounding, etc.).
|
|
65
65
|
* @default `undefined` \
|
|
@@ -71,26 +71,26 @@ declare const __propDef: {
|
|
|
71
71
|
* @default `1` \
|
|
72
72
|
* Or `stepValue` if defined.
|
|
73
73
|
*/
|
|
74
|
-
keyScale?: number
|
|
74
|
+
keyScale?: number;
|
|
75
75
|
/**
|
|
76
76
|
* The unit scale for pointer-based input for all dimensions.
|
|
77
77
|
* @default `undefined` \
|
|
78
78
|
* [Dynamic based on magnitude of
|
|
79
79
|
* `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
|
|
80
80
|
*/
|
|
81
|
-
pointerScale?: number
|
|
81
|
+
pointerScale?: number;
|
|
82
82
|
/**
|
|
83
83
|
* The minimum step interval.
|
|
84
84
|
* @default `undefined` \
|
|
85
85
|
* No step constraint.
|
|
86
86
|
*/
|
|
87
|
-
step?: number
|
|
87
|
+
step?: number;
|
|
88
88
|
/**
|
|
89
89
|
* When `true`, expand the width of the control at the expense of the numeric input
|
|
90
90
|
* field.
|
|
91
91
|
* @default `false`
|
|
92
92
|
*/
|
|
93
|
-
wide?: boolean
|
|
93
|
+
wide?: boolean;
|
|
94
94
|
} & {
|
|
95
95
|
/**
|
|
96
96
|
* A `number` value to control.
|
|
@@ -110,7 +110,7 @@ declare const __propDef: {
|
|
|
110
110
|
* Prevent interactivity and gray out the control.
|
|
111
111
|
* @default `false`
|
|
112
112
|
*/
|
|
113
|
-
disabled?: boolean
|
|
113
|
+
disabled?: boolean;
|
|
114
114
|
/**
|
|
115
115
|
* Text displayed next to control.
|
|
116
116
|
* @default `undefined`
|
|
@@ -162,7 +162,7 @@ declare const __propDef: {
|
|
|
162
162
|
*
|
|
163
163
|
* @default `undefined`
|
|
164
164
|
*/
|
|
165
|
-
plugin?: import('
|
|
165
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
166
166
|
},
|
|
167
167
|
'object' | 'key'
|
|
168
168
|
>,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
-
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-rotation';
|
|
5
4
|
import ClsPad from '../internal/ClsPad.svelte';
|
|
6
5
|
import GenericInputFolding from '../internal/GenericInputFolding.svelte';
|
|
6
|
+
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-rotation';
|
|
7
7
|
import { BROWSER } from 'esm-env';
|
|
8
8
|
export let value;
|
|
9
9
|
export let order = void 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
|
+
import type { Simplify } from '../utils';
|
|
3
|
+
import type { ValueChangeEvent } from '../utils.js';
|
|
2
4
|
import type { EulerOrder } from '@kitschpatrol/tweakpane-plugin-rotation/dist/types/EulerOrder.js';
|
|
3
5
|
import type { EulerUnit } from '@kitschpatrol/tweakpane-plugin-rotation/dist/types/EulerUnit.js';
|
|
4
6
|
import type { PointDimensionParams } from '@tweakpane/core';
|
|
5
|
-
import type { Simplify } from '../utils';
|
|
6
|
-
import type { ValueChangeEvent } from '../utils.js';
|
|
7
7
|
export type RotationEulerOptions = Simplify<PointDimensionParams>;
|
|
8
8
|
export type RotationEulerOrder = EulerOrder;
|
|
9
9
|
export type RotationEulerUnit = EulerUnit;
|
|
@@ -35,16 +35,7 @@ declare const __propDef: {
|
|
|
35
35
|
* object of options, not a value.
|
|
36
36
|
* @default `undefined`
|
|
37
37
|
* */
|
|
38
|
-
optionsX?:
|
|
39
|
-
| {
|
|
40
|
-
format?: import('@tweakpane/core').Formatter<number> | undefined;
|
|
41
|
-
keyScale?: number | undefined;
|
|
42
|
-
max?: number | undefined;
|
|
43
|
-
min?: number | undefined;
|
|
44
|
-
pointerScale?: number | undefined;
|
|
45
|
-
step?: number | undefined;
|
|
46
|
-
}
|
|
47
|
-
| undefined;
|
|
38
|
+
optionsX?: RotationEulerOptions;
|
|
48
39
|
/**
|
|
49
40
|
* Input parameters specific to the Y dimension.
|
|
50
41
|
*
|
|
@@ -52,16 +43,7 @@ declare const __propDef: {
|
|
|
52
43
|
* object of options, not a value.
|
|
53
44
|
* @default `undefined`
|
|
54
45
|
* */
|
|
55
|
-
optionsY?:
|
|
56
|
-
| {
|
|
57
|
-
format?: import('@tweakpane/core').Formatter<number> | undefined;
|
|
58
|
-
keyScale?: number | undefined;
|
|
59
|
-
max?: number | undefined;
|
|
60
|
-
min?: number | undefined;
|
|
61
|
-
pointerScale?: number | undefined;
|
|
62
|
-
step?: number | undefined;
|
|
63
|
-
}
|
|
64
|
-
| undefined;
|
|
46
|
+
optionsY?: RotationEulerOptions;
|
|
65
47
|
/**
|
|
66
48
|
* Input parameters specific to the Z dimension.
|
|
67
49
|
*
|
|
@@ -69,16 +51,7 @@ declare const __propDef: {
|
|
|
69
51
|
* object of options, not a value.
|
|
70
52
|
* @default `undefined`
|
|
71
53
|
* */
|
|
72
|
-
optionsZ?:
|
|
73
|
-
| {
|
|
74
|
-
format?: import('@tweakpane/core').Formatter<number> | undefined;
|
|
75
|
-
keyScale?: number | undefined;
|
|
76
|
-
max?: number | undefined;
|
|
77
|
-
min?: number | undefined;
|
|
78
|
-
pointerScale?: number | undefined;
|
|
79
|
-
step?: number | undefined;
|
|
80
|
-
}
|
|
81
|
-
| undefined;
|
|
54
|
+
optionsZ?: RotationEulerOptions;
|
|
82
55
|
/**
|
|
83
56
|
* Order of in which rotations are applied.
|
|
84
57
|
*
|
|
@@ -87,35 +60,35 @@ declare const __propDef: {
|
|
|
87
60
|
* behavior.
|
|
88
61
|
* @default `'XYZ'`
|
|
89
62
|
* */
|
|
90
|
-
order?:
|
|
63
|
+
order?: RotationEulerOrder;
|
|
91
64
|
/**
|
|
92
65
|
* Units of rotation.
|
|
93
66
|
* @default `'rad'`
|
|
94
67
|
*/
|
|
95
|
-
unit?:
|
|
68
|
+
unit?: RotationEulerUnit;
|
|
96
69
|
} & Omit<
|
|
97
70
|
{
|
|
98
71
|
/**
|
|
99
72
|
* DOM class name of the button used to expand and collapse the input's picker.
|
|
100
73
|
* @default `undefined`
|
|
101
74
|
*/
|
|
102
|
-
buttonClass?: string
|
|
75
|
+
buttonClass?: string;
|
|
103
76
|
/**
|
|
104
77
|
* Expand or collapse the input's picker.
|
|
105
78
|
* @default `false`
|
|
106
79
|
* @bindable
|
|
107
80
|
*/
|
|
108
|
-
expanded?: boolean
|
|
81
|
+
expanded?: boolean;
|
|
109
82
|
/**
|
|
110
83
|
* The style of value "picker" to use in the input.
|
|
111
84
|
* @default `'popup'`
|
|
112
85
|
*/
|
|
113
|
-
picker?: 'inline' | 'popup'
|
|
86
|
+
picker?: 'inline' | 'popup';
|
|
114
87
|
/**
|
|
115
88
|
* Allow users to interactively expand / contract the picker.
|
|
116
89
|
* @default `true`
|
|
117
90
|
*/
|
|
118
|
-
userExpandable?: boolean
|
|
91
|
+
userExpandable?: boolean;
|
|
119
92
|
} & {
|
|
120
93
|
/**
|
|
121
94
|
* The rotation value to control.
|
|
@@ -140,7 +113,7 @@ declare const __propDef: {
|
|
|
140
113
|
* Prevent interactivity and gray out the control.
|
|
141
114
|
* @default `false`
|
|
142
115
|
*/
|
|
143
|
-
disabled?: boolean
|
|
116
|
+
disabled?: boolean;
|
|
144
117
|
/**
|
|
145
118
|
* Text displayed next to control.
|
|
146
119
|
* @default `undefined`
|
|
@@ -192,7 +165,7 @@ declare const __propDef: {
|
|
|
192
165
|
*
|
|
193
166
|
* @default `undefined`
|
|
194
167
|
*/
|
|
195
|
-
plugin?: import('
|
|
168
|
+
plugin?: import('../utils').Plugin | undefined;
|
|
196
169
|
},
|
|
197
170
|
'object' | 'key'
|
|
198
171
|
>,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
-
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-rotation';
|
|
5
4
|
import ClsPad from '../internal/ClsPad.svelte';
|
|
6
5
|
import GenericInputFolding from '../internal/GenericInputFolding.svelte';
|
|
6
|
+
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-rotation';
|
|
7
7
|
import { BROWSER } from 'esm-env';
|
|
8
8
|
export let value;
|
|
9
9
|
export let optionsX = void 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
|
-
import type { PointDimensionParams } from '@tweakpane/core';
|
|
3
2
|
import type { Simplify } from '../utils';
|
|
4
3
|
import type { ValueChangeEvent } from '../utils.js';
|
|
4
|
+
import type { PointDimensionParams } from '@tweakpane/core';
|
|
5
5
|
export type RotationQuaternionOptions = Simplify<PointDimensionParams>;
|
|
6
6
|
export type RotationQuaternionValueObject = {
|
|
7
7
|
x: number;
|
|
@@ -32,16 +32,7 @@ declare const __propDef: {
|
|
|
32
32
|
* options, not a value.
|
|
33
33
|
* @default `undefined`
|
|
34
34
|
* */
|
|
35
|
-
optionsX?:
|
|
36
|
-
| {
|
|
37
|
-
format?: import('@tweakpane/core').Formatter<number> | undefined;
|
|
38
|
-
keyScale?: number | undefined;
|
|
39
|
-
max?: number | undefined;
|
|
40
|
-
min?: number | undefined;
|
|
41
|
-
pointerScale?: number | undefined;
|
|
42
|
-
step?: number | undefined;
|
|
43
|
-
}
|
|
44
|
-
| undefined;
|
|
35
|
+
optionsX?: RotationQuaternionOptions;
|
|
45
36
|
/**
|
|
46
37
|
* Input parameters specific to the Y dimension.
|
|
47
38
|
*
|
|
@@ -49,16 +40,7 @@ declare const __propDef: {
|
|
|
49
40
|
* options, not a value.
|
|
50
41
|
* @default `undefined`
|
|
51
42
|
* */
|
|
52
|
-
optionsY?:
|
|
53
|
-
| {
|
|
54
|
-
format?: import('@tweakpane/core').Formatter<number> | undefined;
|
|
55
|
-
keyScale?: number | undefined;
|
|
56
|
-
max?: number | undefined;
|
|
57
|
-
min?: number | undefined;
|
|
58
|
-
pointerScale?: number | undefined;
|
|
59
|
-
step?: number | undefined;
|
|
60
|
-
}
|
|
61
|
-
| undefined;
|
|
43
|
+
optionsY?: RotationQuaternionOptions;
|
|
62
44
|
/**
|
|
63
45
|
* Input parameters specific to the Z dimension.
|
|
64
46
|
*
|
|
@@ -66,16 +48,7 @@ declare const __propDef: {
|
|
|
66
48
|
* options, not a value.
|
|
67
49
|
* @default `undefined`
|
|
68
50
|
* */
|
|
69
|
-
optionsZ?:
|
|
70
|
-
| {
|
|
71
|
-
format?: import('@tweakpane/core').Formatter<number> | undefined;
|
|
72
|
-
keyScale?: number | undefined;
|
|
73
|
-
max?: number | undefined;
|
|
74
|
-
min?: number | undefined;
|
|
75
|
-
pointerScale?: number | undefined;
|
|
76
|
-
step?: number | undefined;
|
|
77
|
-
}
|
|
78
|
-
| undefined;
|
|
51
|
+
optionsZ?: RotationQuaternionOptions;
|
|
79
52
|
/**
|
|
80
53
|
* Input parameters specific to the W dimension.
|
|
81
54
|
*
|
|
@@ -83,39 +56,30 @@ declare const __propDef: {
|
|
|
83
56
|
* options, not a value.
|
|
84
57
|
* @default `undefined`
|
|
85
58
|
* */
|
|
86
|
-
optionsW?:
|
|
87
|
-
| {
|
|
88
|
-
format?: import('@tweakpane/core').Formatter<number> | undefined;
|
|
89
|
-
keyScale?: number | undefined;
|
|
90
|
-
max?: number | undefined;
|
|
91
|
-
min?: number | undefined;
|
|
92
|
-
pointerScale?: number | undefined;
|
|
93
|
-
step?: number | undefined;
|
|
94
|
-
}
|
|
95
|
-
| undefined;
|
|
59
|
+
optionsW?: RotationQuaternionOptions;
|
|
96
60
|
} & Omit<
|
|
97
61
|
{
|
|
98
62
|
/**
|
|
99
63
|
* DOM class name of the button used to expand and collapse the input's picker.
|
|
100
64
|
* @default `undefined`
|
|
101
65
|
*/
|
|
102
|
-
buttonClass?: string
|
|
66
|
+
buttonClass?: string;
|
|
103
67
|
/**
|
|
104
68
|
* Expand or collapse the input's picker.
|
|
105
69
|
* @default `false`
|
|
106
70
|
* @bindable
|
|
107
71
|
*/
|
|
108
|
-
expanded?: boolean
|
|
72
|
+
expanded?: boolean;
|
|
109
73
|
/**
|
|
110
74
|
* The style of value "picker" to use in the input.
|
|
111
75
|
* @default `'popup'`
|
|
112
76
|
*/
|
|
113
|
-
picker?: 'inline' | 'popup'
|
|
77
|
+
picker?: 'inline' | 'popup';
|
|
114
78
|
/**
|
|
115
79
|
* Allow users to interactively expand / contract the picker.
|
|
116
80
|
* @default `true`
|
|
117
81
|
*/
|
|
118
|
-
userExpandable?: boolean
|
|
82
|
+
userExpandable?: boolean;
|
|
119
83
|
} & {
|
|
120
84
|
/**
|
|
121
85
|
* The quaternion value to control.
|
|
@@ -138,7 +102,7 @@ declare const __propDef: {
|
|
|
138
102
|
* Prevent interactivity and gray out the control.
|
|
139
103
|
* @default `false`
|
|
140
104
|
*/
|
|
141
|
-
disabled?: boolean
|
|
105
|
+
disabled?: boolean;
|
|
142
106
|
/**
|
|
143
107
|
* Text displayed next to control.
|
|
144
108
|
* @default `undefined`
|
|
@@ -190,7 +154,7 @@ declare const __propDef: {
|
|
|
190
154
|
*
|
|
191
155
|
* @default `undefined`
|
|
192
156
|
*/
|
|
193
|
-
plugin?: import('
|
|
157
|
+
plugin?: import('../utils').Plugin | undefined;
|
|
194
158
|
},
|
|
195
159
|
'object' | 'key'
|
|
196
160
|
>,
|
|
@@ -17,14 +17,14 @@ declare const __propDef: {
|
|
|
17
17
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
18
18
|
* @default `undefined`
|
|
19
19
|
*/
|
|
20
|
-
min?: number
|
|
20
|
+
min?: number;
|
|
21
21
|
/**
|
|
22
22
|
* Maximum value.
|
|
23
23
|
*
|
|
24
24
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
25
25
|
* @default `undefined`
|
|
26
26
|
*/
|
|
27
|
-
max?: number
|
|
27
|
+
max?: number;
|
|
28
28
|
/**
|
|
29
29
|
* A function to customize the point value's string representation (e.g. rounding, etc.).
|
|
30
30
|
* @default `undefined` \
|
|
@@ -36,26 +36,26 @@ declare const __propDef: {
|
|
|
36
36
|
* @default `1` \
|
|
37
37
|
* Or `stepValue` if defined.
|
|
38
38
|
*/
|
|
39
|
-
keyScale?: number
|
|
39
|
+
keyScale?: number;
|
|
40
40
|
/**
|
|
41
41
|
* The unit scale for pointer-based input for all dimensions.
|
|
42
42
|
* @default `undefined` \
|
|
43
43
|
* [Dynamic based on magnitude of
|
|
44
44
|
* `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
|
|
45
45
|
*/
|
|
46
|
-
pointerScale?: number
|
|
46
|
+
pointerScale?: number;
|
|
47
47
|
/**
|
|
48
48
|
* The minimum step interval.
|
|
49
49
|
* @default `undefined` \
|
|
50
50
|
* No step constraint.
|
|
51
51
|
*/
|
|
52
|
-
step?: number
|
|
52
|
+
step?: number;
|
|
53
53
|
/**
|
|
54
54
|
* When `true`, expand the width of the control at the expense of the numeric input
|
|
55
55
|
* field.
|
|
56
56
|
* @default `false`
|
|
57
57
|
*/
|
|
58
|
-
wide?: boolean
|
|
58
|
+
wide?: boolean;
|
|
59
59
|
} & {
|
|
60
60
|
/**
|
|
61
61
|
* A `number` value to control.
|
|
@@ -75,7 +75,7 @@ declare const __propDef: {
|
|
|
75
75
|
* Prevent interactivity and gray out the control.
|
|
76
76
|
* @default `false`
|
|
77
77
|
*/
|
|
78
|
-
disabled?: boolean
|
|
78
|
+
disabled?: boolean;
|
|
79
79
|
/**
|
|
80
80
|
* Text displayed next to control.
|
|
81
81
|
* @default `undefined`
|
|
@@ -127,7 +127,7 @@ declare const __propDef: {
|
|
|
127
127
|
*
|
|
128
128
|
* @default `undefined`
|
|
129
129
|
*/
|
|
130
|
-
plugin?: import('
|
|
130
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
131
131
|
},
|
|
132
132
|
'object' | 'key'
|
|
133
133
|
>,
|
|
@@ -16,7 +16,7 @@ declare const __propDef: {
|
|
|
16
16
|
* vanilla JS Tweakpane behavior, which only updates on blur.
|
|
17
17
|
* @default `true`
|
|
18
18
|
* */
|
|
19
|
-
live?: boolean
|
|
19
|
+
live?: boolean;
|
|
20
20
|
} & Omit<
|
|
21
21
|
{
|
|
22
22
|
/**
|
|
@@ -37,7 +37,7 @@ declare const __propDef: {
|
|
|
37
37
|
* Prevent interactivity and gray out the control.
|
|
38
38
|
* @default `false`
|
|
39
39
|
*/
|
|
40
|
-
disabled?: boolean
|
|
40
|
+
disabled?: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Text displayed next to control.
|
|
43
43
|
* @default `undefined`
|
|
@@ -89,7 +89,7 @@ declare const __propDef: {
|
|
|
89
89
|
*
|
|
90
90
|
* @default `undefined`
|
|
91
91
|
*/
|
|
92
|
-
plugin?: import('
|
|
92
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
93
93
|
},
|
|
94
94
|
'object' | 'key'
|
|
95
95
|
>,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
-
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-textarea';
|
|
5
4
|
import GenericInput from '../internal/GenericInput.svelte';
|
|
6
5
|
import {} from '../utils.js';
|
|
6
|
+
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-textarea';
|
|
7
7
|
import { BROWSER } from 'esm-env';
|
|
8
8
|
import { createEventDispatcher, onDestroy } from 'svelte';
|
|
9
9
|
export let value;
|
|
@@ -14,19 +14,19 @@ declare const __propDef: {
|
|
|
14
14
|
* Whether to provide live updates to the bound `value` on every keystroke.
|
|
15
15
|
* @default `true`
|
|
16
16
|
* */
|
|
17
|
-
live?: boolean
|
|
17
|
+
live?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* Placeholder text to display when the `value` is empty.
|
|
20
20
|
* @default `'Enter text here'`
|
|
21
21
|
*/
|
|
22
|
-
placeholder?: string
|
|
22
|
+
placeholder?: string;
|
|
23
23
|
/**
|
|
24
24
|
* The number of lines of text to display.
|
|
25
25
|
*
|
|
26
26
|
* If lines of input exceed this value, then the text area will scroll.
|
|
27
27
|
* @default `3`
|
|
28
28
|
*/
|
|
29
|
-
rows?: number
|
|
29
|
+
rows?: number;
|
|
30
30
|
} & Omit<
|
|
31
31
|
{
|
|
32
32
|
/**
|
|
@@ -47,7 +47,7 @@ declare const __propDef: {
|
|
|
47
47
|
* Prevent interactivity and gray out the control.
|
|
48
48
|
* @default `false`
|
|
49
49
|
*/
|
|
50
|
-
disabled?: boolean
|
|
50
|
+
disabled?: boolean;
|
|
51
51
|
/**
|
|
52
52
|
* Text displayed next to control.
|
|
53
53
|
* @default `undefined`
|
|
@@ -99,7 +99,7 @@ declare const __propDef: {
|
|
|
99
99
|
*
|
|
100
100
|
* @default `undefined`
|
|
101
101
|
*/
|
|
102
|
-
plugin?: import('
|
|
102
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
103
103
|
},
|
|
104
104
|
'object' | 'key'
|
|
105
105
|
>,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
-
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-camerakit';
|
|
5
4
|
import GenericSlider from '../internal/GenericSlider.svelte';
|
|
5
|
+
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-camerakit';
|
|
6
6
|
export let value;
|
|
7
7
|
export let amount = void 0;
|
|
8
8
|
export let wide = void 0;
|
|
@@ -13,7 +13,7 @@ declare const __propDef: {
|
|
|
13
13
|
* [Dynamic based on magnitude of
|
|
14
14
|
* `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
|
|
15
15
|
*/
|
|
16
|
-
amount?: number
|
|
16
|
+
amount?: number;
|
|
17
17
|
} & Omit<
|
|
18
18
|
{
|
|
19
19
|
/**
|
|
@@ -22,14 +22,14 @@ declare const __propDef: {
|
|
|
22
22
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
23
23
|
* @default `undefined`
|
|
24
24
|
*/
|
|
25
|
-
min?: number
|
|
25
|
+
min?: number;
|
|
26
26
|
/**
|
|
27
27
|
* Maximum value.
|
|
28
28
|
*
|
|
29
29
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
30
30
|
* @default `undefined`
|
|
31
31
|
*/
|
|
32
|
-
max?: number
|
|
32
|
+
max?: number;
|
|
33
33
|
/**
|
|
34
34
|
* A function to customize the point value's string representation (e.g. rounding, etc.).
|
|
35
35
|
* @default `undefined` \
|
|
@@ -41,26 +41,26 @@ declare const __propDef: {
|
|
|
41
41
|
* @default `1` \
|
|
42
42
|
* Or `stepValue` if defined.
|
|
43
43
|
*/
|
|
44
|
-
keyScale?: number
|
|
44
|
+
keyScale?: number;
|
|
45
45
|
/**
|
|
46
46
|
* The unit scale for pointer-based input for all dimensions.
|
|
47
47
|
* @default `undefined` \
|
|
48
48
|
* [Dynamic based on magnitude of
|
|
49
49
|
* `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
|
|
50
50
|
*/
|
|
51
|
-
pointerScale?: number
|
|
51
|
+
pointerScale?: number;
|
|
52
52
|
/**
|
|
53
53
|
* The minimum step interval.
|
|
54
54
|
* @default `undefined` \
|
|
55
55
|
* No step constraint.
|
|
56
56
|
*/
|
|
57
|
-
step?: number
|
|
57
|
+
step?: number;
|
|
58
58
|
/**
|
|
59
59
|
* When `true`, expand the width of the control at the expense of the numeric input
|
|
60
60
|
* field.
|
|
61
61
|
* @default `false`
|
|
62
62
|
*/
|
|
63
|
-
wide?: boolean
|
|
63
|
+
wide?: boolean;
|
|
64
64
|
} & {
|
|
65
65
|
/**
|
|
66
66
|
* A `number` value to control.
|
|
@@ -80,7 +80,7 @@ declare const __propDef: {
|
|
|
80
80
|
* Prevent interactivity and gray out the control.
|
|
81
81
|
* @default `false`
|
|
82
82
|
*/
|
|
83
|
-
disabled?: boolean
|
|
83
|
+
disabled?: boolean;
|
|
84
84
|
/**
|
|
85
85
|
* Text displayed next to control.
|
|
86
86
|
* @default `undefined`
|
|
@@ -132,7 +132,7 @@ declare const __propDef: {
|
|
|
132
132
|
*
|
|
133
133
|
* @default `undefined`
|
|
134
134
|
*/
|
|
135
|
-
plugin?: import('
|
|
135
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
136
136
|
},
|
|
137
137
|
'object' | 'key'
|
|
138
138
|
>,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
|
-
import type { BindingApi, BindingParams } from '@tweakpane/core';
|
|
3
2
|
import type { BindingObject } from '../utils';
|
|
4
3
|
import type { ValueChangeEvent } from '../utils.js';
|
|
4
|
+
import type { BindingApi, BindingParams } from '@tweakpane/core';
|
|
5
5
|
export type BindingOptions = BindingParams;
|
|
6
6
|
export type BindingRef = BindingApi;
|
|
7
7
|
export type BindingChangeEvent = ValueChangeEvent<BindingObject>;
|
|
8
8
|
import type { Theme } from '../theme.js';
|
|
9
|
+
import { type Plugin } from '../utils.js';
|
|
9
10
|
declare class __sveltets_Render<
|
|
10
11
|
T extends BindingObject,
|
|
11
12
|
U extends BindingOptions,
|
|
@@ -20,7 +21,7 @@ declare class __sveltets_Render<
|
|
|
20
21
|
/**
|
|
21
22
|
* Prevent interactivity and gray out the control.
|
|
22
23
|
* @default `false`
|
|
23
|
-
* */ disabled?: boolean
|
|
24
|
+
* */ disabled?: boolean;
|
|
24
25
|
/**
|
|
25
26
|
* Text displayed next to control.
|
|
26
27
|
* @default `undefined`
|
|
@@ -67,7 +68,7 @@ declare class __sveltets_Render<
|
|
|
67
68
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
68
69
|
*
|
|
69
70
|
* @default `undefined`
|
|
70
|
-
* */ plugin?:
|
|
71
|
+
* */ plugin?: Plugin | undefined;
|
|
71
72
|
};
|
|
72
73
|
events(): {
|
|
73
74
|
/**
|
|
@@ -4,6 +4,7 @@ export type BladeRef = BladeApi;
|
|
|
4
4
|
export type BladeOptions = BaseBladeParams;
|
|
5
5
|
export type { Plugin } from '../utils.js';
|
|
6
6
|
import type { Theme } from '../theme.js';
|
|
7
|
+
import { type Plugin } from '../utils.js';
|
|
7
8
|
declare class __sveltets_Render<U extends BladeOptions, V extends BladeRef> {
|
|
8
9
|
props(): {
|
|
9
10
|
/**
|
|
@@ -14,7 +15,7 @@ declare class __sveltets_Render<U extends BladeOptions, V extends BladeRef> {
|
|
|
14
15
|
/**
|
|
15
16
|
* Prevent interactivity and gray out the control.
|
|
16
17
|
* @default `false`
|
|
17
|
-
* */ disabled?: boolean
|
|
18
|
+
* */ disabled?: boolean;
|
|
18
19
|
/**
|
|
19
20
|
* Custom color scheme.
|
|
20
21
|
* @default `undefined` \
|
|
@@ -43,7 +44,7 @@ declare class __sveltets_Render<U extends BladeOptions, V extends BladeRef> {
|
|
|
43
44
|
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
44
45
|
*
|
|
45
46
|
* @default `undefined`
|
|
46
|
-
* */ plugin?:
|
|
47
|
+
* */ plugin?: Plugin | undefined;
|
|
47
48
|
};
|
|
48
49
|
events(): {} & {
|
|
49
50
|
[evt: string]: CustomEvent<any>;
|
|
@@ -8,22 +8,22 @@ declare const __propDef: {
|
|
|
8
8
|
* Unlike a `<Pane>`, a `<Folder>`'s title bar is always visible and the title is always shown.
|
|
9
9
|
* It can be set to an empty string if you want an unadorned title bar.
|
|
10
10
|
* @default `'Folder'`
|
|
11
|
-
* */ title?: string
|
|
11
|
+
* */ title?: string;
|
|
12
12
|
/**
|
|
13
13
|
* Prevent interactivity and gray out the control.
|
|
14
14
|
* @default `false`
|
|
15
|
-
* */ disabled?: boolean
|
|
15
|
+
* */ disabled?: boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Expand or collapse folder.
|
|
18
18
|
*
|
|
19
19
|
* When bound it will indicate whether the folder is expanded or collapsed.
|
|
20
20
|
* @default `true`
|
|
21
21
|
* @bindable
|
|
22
|
-
* */ expanded?: boolean
|
|
22
|
+
* */ expanded?: boolean;
|
|
23
23
|
/**
|
|
24
24
|
* Allow the user to be collapse and expand the folder by clicking its title bar.
|
|
25
25
|
* @default `true`
|
|
26
|
-
* */ userExpandable?: boolean
|
|
26
|
+
* */ userExpandable?: boolean;
|
|
27
27
|
/**
|
|
28
28
|
* Custom color scheme.
|
|
29
29
|
* @default `undefined` \
|