svelte-tweakpane-ui 1.2.3 → 1.2.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 +1 -1
- package/dist/control/ButtonGrid.svelte.d.ts +30 -30
- package/dist/control/Checkbox.svelte.d.ts +8 -8
- package/dist/control/Color.svelte.d.ts +96 -96
- package/dist/control/CubicBezier.svelte.d.ts +41 -41
- package/dist/control/Image.svelte.d.ts +40 -34
- package/dist/control/IntervalSlider.svelte.d.ts +105 -95
- package/dist/control/List.svelte.d.ts +20 -20
- package/dist/control/Point.svelte +1 -1
- package/dist/control/Point.svelte.d.ts +115 -114
- package/dist/control/RadioGrid.svelte +1 -1
- package/dist/control/RadioGrid.svelte.d.ts +59 -59
- package/dist/control/Ring.svelte.d.ts +102 -107
- package/dist/control/RotationEuler.svelte +1 -1
- package/dist/control/RotationEuler.svelte.d.ts +106 -106
- package/dist/control/RotationQuaternion.svelte +1 -1
- package/dist/control/RotationQuaternion.svelte.d.ts +104 -104
- package/dist/control/Slider.svelte.d.ts +84 -84
- package/dist/control/Text.svelte.d.ts +24 -24
- package/dist/control/Textarea.svelte +1 -1
- package/dist/control/Textarea.svelte.d.ts +33 -33
- package/dist/control/Wheel.svelte.d.ts +97 -97
- package/dist/core/Binding.svelte +1 -1
- package/dist/core/Blade.svelte +1 -1
- package/dist/core/Folder.svelte.d.ts +4 -1
- package/dist/core/Pane.svelte.d.ts +295 -275
- package/dist/extra/AutoValue.svelte.d.ts +8 -8
- package/dist/extra/Element.svelte.d.ts +23 -23
- package/dist/internal/ClsPad.svelte +1 -1
- package/dist/internal/GenericBinding.svelte.d.ts +8 -8
- package/dist/internal/GenericBladeFolding.svelte.d.ts +24 -24
- package/dist/internal/GenericInput.svelte.d.ts +8 -8
- package/dist/internal/GenericInputFolding.svelte.d.ts +78 -78
- package/dist/internal/GenericMonitor.svelte.d.ts +76 -76
- package/dist/internal/GenericSlider.svelte.d.ts +76 -76
- package/dist/internal/InternalMonitorBoolean.svelte.d.ts +82 -82
- package/dist/internal/InternalMonitorNumber.svelte.d.ts +101 -101
- package/dist/internal/InternalMonitorString.svelte.d.ts +87 -87
- package/dist/internal/InternalPaneDraggable.svelte +79 -42
- package/dist/internal/InternalPaneDraggable.svelte.d.ts +76 -76
- package/dist/internal/InternalPaneFixed.svelte.d.ts +26 -26
- package/dist/internal/InternalPaneInline.svelte.d.ts +13 -13
- package/dist/monitor/FpsGraph.svelte.d.ts +90 -90
- package/dist/monitor/Monitor.svelte.d.ts +502 -381
- package/dist/monitor/Profiler.svelte.d.ts +131 -131
- package/dist/monitor/WaveformMonitor.svelte.d.ts +104 -107
- package/dist/theme.d.ts +1 -1
- package/package.json +21 -22
- package/readme.md +2 -2
|
@@ -36,138 +36,138 @@ declare const __propDef: {
|
|
|
36
36
|
* @default `undefined`
|
|
37
37
|
*/
|
|
38
38
|
measureAsync?: ProfilerMeasureAsync | undefined;
|
|
39
|
+
} & {
|
|
40
|
+
/**
|
|
41
|
+
* Number of duration samples from which to calculate the delta value when `calcMode` is
|
|
42
|
+
* `'mean'` or `'median'`.
|
|
43
|
+
* @default `30`
|
|
44
|
+
*/
|
|
45
|
+
bufferSize?: number | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* How to calculate the delta value.
|
|
48
|
+
*
|
|
49
|
+
* `'frame'` takes only the latest sample into account, while `'mean'` and `'median'` are
|
|
50
|
+
* calculated from the samples in the buffer.
|
|
51
|
+
* @default `'mean'`
|
|
52
|
+
*/
|
|
53
|
+
calcMode?: ProfilerCalcMode | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Label suffix for the delta values shown in the control.
|
|
56
|
+
*
|
|
57
|
+
* Possibly useful if you're using a custom `ProfilerBladeDefaultMeasureHandler` and are
|
|
58
|
+
* measuring something other than time.
|
|
59
|
+
* @default `'ms'`
|
|
60
|
+
* */
|
|
61
|
+
deltaUnit?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Precision of the delta values shown in the control.
|
|
64
|
+
* @default `2`
|
|
65
|
+
*/
|
|
66
|
+
fractionDigits?: number | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Milliseconds between updates to the profiler visualization and delta label text.
|
|
69
|
+
*
|
|
70
|
+
* Note that this does not affect the internal sampling rate of the profiler itself, which
|
|
71
|
+
* is determined by your calls to the bound `measure` function.
|
|
72
|
+
* @default `500`
|
|
73
|
+
*/
|
|
74
|
+
interval?: number | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Text displayed next to the profiler visualization.
|
|
77
|
+
* @default `undefined`
|
|
78
|
+
* */
|
|
79
|
+
label?: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Function handle that wraps another function to measure its execution duration.
|
|
82
|
+
*
|
|
83
|
+
* If you want to measure something other than execution duration, customize
|
|
84
|
+
* `ProfilerBladeDefaultMeasureHandler`.
|
|
85
|
+
*
|
|
86
|
+
* @example `measure('Hard Work', () => { ... })`;
|
|
87
|
+
*
|
|
88
|
+
* @bindable
|
|
89
|
+
* @readonly
|
|
90
|
+
* @default `undefined`
|
|
91
|
+
*/
|
|
92
|
+
measure?: ProfilerMeasure | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Async variation of function handle that wraps another function to measure its execution
|
|
95
|
+
* duration.
|
|
96
|
+
*
|
|
97
|
+
* @example `measureAsync('Hard Work', async () => { ... })`;
|
|
98
|
+
*
|
|
99
|
+
* @bindable
|
|
100
|
+
* @async
|
|
101
|
+
* @readonly
|
|
102
|
+
* @default `undefined`
|
|
103
|
+
*/
|
|
104
|
+
measureAsync?: ProfilerMeasureAsync | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Function wrapping the `measure` function.
|
|
107
|
+
*
|
|
108
|
+
* The default is fine for most cases when you want to measure a temporal duration.
|
|
109
|
+
* @default [`new
|
|
110
|
+
* ProfilerBladeDefaultMeasureHandler()`](https://github.com/0b5vr/tweakpane-plugin-profiler/blob/dev/src/ProfilerBladeDefaultMeasureHandler.ts)
|
|
111
|
+
*/
|
|
112
|
+
measureHandler?:
|
|
113
|
+
| {
|
|
114
|
+
measureStart: () => () => number | Promise<number>;
|
|
115
|
+
}
|
|
116
|
+
| undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Determines the horizontal scale and color mapping of the profiler visualization bars.
|
|
119
|
+
* @default `16.67` \
|
|
120
|
+
* 60fps.
|
|
121
|
+
*/
|
|
122
|
+
targetDelta?: number | undefined;
|
|
39
123
|
} & Omit<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Number of duration samples from which to calculate the delta value when `calcMode` is
|
|
89
|
-
* `'mean'` or `'median'`.
|
|
90
|
-
* @default `30`
|
|
91
|
-
*/
|
|
92
|
-
bufferSize?: number | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* How to calculate the delta value.
|
|
95
|
-
*
|
|
96
|
-
* `'frame'` takes only the latest sample into account, while `'mean'` and `'median'` are
|
|
97
|
-
* calculated from the samples in the buffer.
|
|
98
|
-
* @default `'mean'`
|
|
99
|
-
*/
|
|
100
|
-
calcMode?: ProfilerCalcMode | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* Label suffix for the delta values shown in the control.
|
|
103
|
-
*
|
|
104
|
-
* Possibly useful if you're using a custom `ProfilerBladeDefaultMeasureHandler` and are
|
|
105
|
-
* measuring something other than time.
|
|
106
|
-
* @default `'ms'`
|
|
107
|
-
* */
|
|
108
|
-
deltaUnit?: string | undefined;
|
|
109
|
-
/**
|
|
110
|
-
* Precision of the delta values shown in the control.
|
|
111
|
-
* @default `2`
|
|
112
|
-
*/
|
|
113
|
-
fractionDigits?: number | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* Milliseconds between updates to the profiler visualization and delta label text.
|
|
116
|
-
*
|
|
117
|
-
* Note that this does not affect the internal sampling rate of the profiler itself, which
|
|
118
|
-
* is determined by your calls to the bound `measure` function.
|
|
119
|
-
* @default `500`
|
|
120
|
-
*/
|
|
121
|
-
interval?: number | undefined;
|
|
122
|
-
/**
|
|
123
|
-
* Text displayed next to the profiler visualization.
|
|
124
|
-
* @default `undefined`
|
|
125
|
-
* */
|
|
126
|
-
label?: string | undefined;
|
|
127
|
-
/**
|
|
128
|
-
* Function handle that wraps another function to measure its execution duration.
|
|
129
|
-
*
|
|
130
|
-
* If you want to measure something other than execution duration, customize
|
|
131
|
-
* `ProfilerBladeDefaultMeasureHandler`.
|
|
132
|
-
*
|
|
133
|
-
* @example `measure('Hard Work', () => { ... })`;
|
|
134
|
-
*
|
|
135
|
-
* @bindable
|
|
136
|
-
* @readonly
|
|
137
|
-
* @default `undefined`
|
|
138
|
-
*/
|
|
139
|
-
measure?: ProfilerMeasure | undefined;
|
|
140
|
-
/**
|
|
141
|
-
* Async variation of function handle that wraps another function to measure its execution
|
|
142
|
-
* duration.
|
|
143
|
-
*
|
|
144
|
-
* @example `measureAsync('Hard Work', async () => { ... })`;
|
|
145
|
-
*
|
|
146
|
-
* @bindable
|
|
147
|
-
* @async
|
|
148
|
-
* @readonly
|
|
149
|
-
* @default `undefined`
|
|
150
|
-
*/
|
|
151
|
-
measureAsync?: ProfilerMeasureAsync | undefined;
|
|
152
|
-
/**
|
|
153
|
-
* Function wrapping the `measure` function.
|
|
154
|
-
*
|
|
155
|
-
* The default is fine for most cases when you want to measure a temporal duration.
|
|
156
|
-
* @default [`new
|
|
157
|
-
* ProfilerBladeDefaultMeasureHandler()`](https://github.com/0b5vr/tweakpane-plugin-profiler/blob/dev/src/ProfilerBladeDefaultMeasureHandler.ts)
|
|
158
|
-
*/
|
|
159
|
-
measureHandler?:
|
|
160
|
-
| {
|
|
161
|
-
measureStart: () => () => number | Promise<number>;
|
|
162
|
-
}
|
|
163
|
-
| undefined;
|
|
164
|
-
/**
|
|
165
|
-
* Determines the horizontal scale and color mapping of the profiler visualization bars.
|
|
166
|
-
* @default `16.67` \
|
|
167
|
-
* 60fps.
|
|
168
|
-
*/
|
|
169
|
-
targetDelta?: number | undefined;
|
|
170
|
-
};
|
|
124
|
+
{
|
|
125
|
+
/**
|
|
126
|
+
* Blade configuration exposing Tweakpane's internal
|
|
127
|
+
* [`BladeParams`](https://tweakpane.github.io/docs/api/interfaces/BaseBladeParams.html).
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
options: ProfilerOptions;
|
|
131
|
+
/**
|
|
132
|
+
* Prevent interactivity and gray out the control.
|
|
133
|
+
* @default `false`
|
|
134
|
+
*/
|
|
135
|
+
disabled?: boolean | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Custom color scheme.
|
|
138
|
+
* @default `undefined` \
|
|
139
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
140
|
+
* set with `setGlobalDefaultTheme()`.
|
|
141
|
+
*/
|
|
142
|
+
theme?: import('..').Theme | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Reference to internal Tweakpane
|
|
145
|
+
* [`BladeApi`](https://tweakpane.github.io/docs/api/classes/BladeApi.html) for this blade.
|
|
146
|
+
*
|
|
147
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
148
|
+
* components wrapping `<Blade>`'s functionality.
|
|
149
|
+
*
|
|
150
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
151
|
+
*
|
|
152
|
+
* @bindable
|
|
153
|
+
* @readonly
|
|
154
|
+
*/
|
|
155
|
+
ref?: ProfilerRef | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
158
|
+
* the `<Blade>`'s containing `<Pane>`.
|
|
159
|
+
*
|
|
160
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
161
|
+
* components wrapping `<Blade>`'s functionality in combination with a Tweakpane plugin.
|
|
162
|
+
*
|
|
163
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
164
|
+
*
|
|
165
|
+
* @default `undefined`
|
|
166
|
+
*/
|
|
167
|
+
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
168
|
+
},
|
|
169
|
+
'ref' | 'options' | 'plugin'
|
|
170
|
+
>;
|
|
171
171
|
slots: {};
|
|
172
172
|
events: {
|
|
173
173
|
/**
|
|
@@ -2,88 +2,29 @@ import { SvelteComponent } from 'svelte';
|
|
|
2
2
|
export type WaveformMonitorValue = Uint8Array | Uint16Array | Uint32Array | number[];
|
|
3
3
|
import type { WaveformStyles as WaveformMonitorLineStyle } from 'tweakpane-plugin-waveform/dist/types/view/waveform.js';
|
|
4
4
|
declare const __propDef: {
|
|
5
|
-
props:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
29
|
-
*
|
|
30
|
-
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
31
|
-
*
|
|
32
|
-
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
33
|
-
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
34
|
-
* Tweakpane UI_.
|
|
35
|
-
* @default `undefined`
|
|
36
|
-
*/
|
|
37
|
-
options?:
|
|
38
|
-
| (import('@tweakpane/core').BaseMonitorParams & {
|
|
39
|
-
min?: number | undefined;
|
|
40
|
-
max?: number | undefined;
|
|
41
|
-
lineStyle?: WaveformMonitorLineStyle | undefined;
|
|
42
|
-
})
|
|
43
|
-
| undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Custom color scheme.
|
|
46
|
-
*
|
|
47
|
-
* @default `undefined` \
|
|
48
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
49
|
-
* set with `setGlobalDefaultTheme()`.
|
|
50
|
-
*/
|
|
51
|
-
theme?: import('..').Theme | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Reference to internal Tweakpane
|
|
54
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
55
|
-
* this control.
|
|
56
|
-
*
|
|
57
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
58
|
-
* components wrapping `<Binding>`'s functionality.
|
|
59
|
-
*
|
|
60
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
61
|
-
*
|
|
62
|
-
* @bindable
|
|
63
|
-
* @readonly
|
|
64
|
-
*/
|
|
65
|
-
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
68
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
69
|
-
*
|
|
70
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
71
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
72
|
-
*
|
|
73
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
74
|
-
*
|
|
75
|
-
* @default `undefined`
|
|
76
|
-
*/
|
|
77
|
-
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
78
|
-
},
|
|
79
|
-
'object' | 'key'
|
|
80
|
-
> & {
|
|
81
|
-
/**
|
|
82
|
-
* Waveform values.
|
|
83
|
-
* @bindable
|
|
84
|
-
*/
|
|
85
|
-
value: WaveformMonitorValue;
|
|
86
|
-
} & {
|
|
5
|
+
props: {
|
|
6
|
+
/**
|
|
7
|
+
* Waveform values.
|
|
8
|
+
* @bindable
|
|
9
|
+
* */
|
|
10
|
+
value: WaveformMonitorValue;
|
|
11
|
+
/**
|
|
12
|
+
* Minimum graph bound.
|
|
13
|
+
* @default `0`
|
|
14
|
+
* */
|
|
15
|
+
min?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum graph bound.
|
|
18
|
+
* @default `100`
|
|
19
|
+
* */
|
|
20
|
+
max?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Line style.
|
|
23
|
+
* @default `'linear''`
|
|
24
|
+
* */
|
|
25
|
+
lineStyle?: 'linear' | 'bezier' | undefined;
|
|
26
|
+
} & Omit<
|
|
27
|
+
{
|
|
87
28
|
/**
|
|
88
29
|
* Number of past states to retain.
|
|
89
30
|
* @default `1` \
|
|
@@ -105,34 +46,90 @@ declare const __propDef: {
|
|
|
105
46
|
* @default `1` \
|
|
106
47
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
107
48
|
*/
|
|
108
|
-
rows?: number | undefined
|
|
49
|
+
rows?: number | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
/**
|
|
109
52
|
* Waveform values.
|
|
110
53
|
* @bindable
|
|
111
|
-
|
|
112
|
-
|
|
54
|
+
*/
|
|
55
|
+
value: WaveformMonitorValue;
|
|
56
|
+
} & Omit<
|
|
57
|
+
{
|
|
58
|
+
/**
|
|
59
|
+
* The binding's target object with values to manipulate.
|
|
60
|
+
* @bindable
|
|
61
|
+
*/
|
|
62
|
+
object: import('@tweakpane/core').Bindable & Record<string, WaveformMonitorValue>;
|
|
63
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
64
|
+
key: string;
|
|
65
|
+
/**
|
|
66
|
+
* Prevent interactivity and gray out the control.
|
|
67
|
+
* @default `false`
|
|
68
|
+
*/
|
|
69
|
+
disabled?: boolean | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Text displayed next to control.
|
|
72
|
+
* @default `undefined`
|
|
73
|
+
*/
|
|
74
|
+
label?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Tweakpane's internal options object.
|
|
77
|
+
*
|
|
78
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
79
|
+
*
|
|
80
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
81
|
+
*
|
|
82
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
83
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
84
|
+
* Tweakpane UI_.
|
|
85
|
+
* @default `undefined`
|
|
86
|
+
*/
|
|
87
|
+
options?:
|
|
88
|
+
| ({
|
|
89
|
+
min?: number | undefined;
|
|
90
|
+
max?: number | undefined;
|
|
91
|
+
lineStyle?: WaveformMonitorLineStyle | undefined;
|
|
92
|
+
} & import('@tweakpane/core').BaseMonitorParams)
|
|
93
|
+
| undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Custom color scheme.
|
|
96
|
+
*
|
|
97
|
+
* @default `undefined` \
|
|
98
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
99
|
+
* set with `setGlobalDefaultTheme()`.
|
|
100
|
+
*/
|
|
101
|
+
theme?: import('..').Theme | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Reference to internal Tweakpane
|
|
104
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
105
|
+
* this control.
|
|
106
|
+
*
|
|
107
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
108
|
+
* components wrapping `<Binding>`'s functionality.
|
|
109
|
+
*
|
|
110
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
111
|
+
*
|
|
112
|
+
* @bindable
|
|
113
|
+
* @readonly
|
|
114
|
+
*/
|
|
115
|
+
ref?: import('../internal/GenericMonitor.svelte').GenericMonitorRef | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
118
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
119
|
+
*
|
|
120
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
121
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
122
|
+
*
|
|
123
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
124
|
+
*
|
|
125
|
+
* @default `undefined`
|
|
126
|
+
*/
|
|
127
|
+
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
128
|
+
},
|
|
129
|
+
'object' | 'key'
|
|
130
|
+
>,
|
|
113
131
|
'ref' | 'options' | 'plugin'
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Waveform values.
|
|
117
|
-
* @bindable
|
|
118
|
-
* */
|
|
119
|
-
value: WaveformMonitorValue;
|
|
120
|
-
/**
|
|
121
|
-
* Minimum graph bound.
|
|
122
|
-
* @default `0`
|
|
123
|
-
* */
|
|
124
|
-
min?: number | undefined;
|
|
125
|
-
/**
|
|
126
|
-
* Maximum graph bound.
|
|
127
|
-
* @default `100`
|
|
128
|
-
* */
|
|
129
|
-
max?: number | undefined;
|
|
130
|
-
/**
|
|
131
|
-
* Line style.
|
|
132
|
-
* @default `'linear''`
|
|
133
|
-
* */
|
|
134
|
-
lineStyle?: 'linear' | 'bezier' | undefined;
|
|
135
|
-
};
|
|
132
|
+
>;
|
|
136
133
|
events: {
|
|
137
134
|
[evt: string]: CustomEvent<any>;
|
|
138
135
|
};
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type RgbColorObject, type RgbaColorObject } from '@tweakpane/core';
|
|
2
2
|
import type { Simplify } from './utils';
|
|
3
3
|
export type ThemeColorValue = Simplify<RgbColorObject | RgbaColorObject | string>;
|
|
4
|
-
export type Theme =
|
|
4
|
+
export type Theme = CustomThemeKeys & ThemeKeys;
|
|
5
5
|
type ThemeKeys = {
|
|
6
6
|
baseBackgroundColor?: ThemeColorValue;
|
|
7
7
|
baseBorderRadius?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-tweakpane-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Svelte component library wrapping UI elements from Tweakpane, plus some additional functionality for convenience and flexibility.",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"url": "https://ericmika.com"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
|
-
"packageManager": "pnpm@8.15.5+sha256.4b4efa12490e5055d59b9b9fc9438b7d581a6b7af3b5675eb5c5f447cee1a589",
|
|
22
21
|
"engines": {
|
|
23
22
|
"node": ">=18.0.0",
|
|
24
23
|
"pnpm": ">=8.0.0"
|
|
@@ -201,35 +200,35 @@
|
|
|
201
200
|
"tweakpane-plugin-waveform": "1.0.0"
|
|
202
201
|
},
|
|
203
202
|
"devDependencies": {
|
|
204
|
-
"@kitschpatrol/shared-config": "^4.6.
|
|
203
|
+
"@kitschpatrol/shared-config": "^4.6.3",
|
|
205
204
|
"@phenomnomnominal/tsquery": "^6.1.3",
|
|
206
|
-
"@playwright/test": "^1.
|
|
205
|
+
"@playwright/test": "^1.44.0",
|
|
207
206
|
"@stkb/rewrap": "^0.1.0",
|
|
208
207
|
"@sveltejs/adapter-static": "^3.0.1",
|
|
209
|
-
"@sveltejs/kit": "^2.5.
|
|
210
|
-
"@sveltejs/package": "^2.3.
|
|
211
|
-
"@sveltejs/vite-plugin-svelte": "^3.0
|
|
212
|
-
"@types/eslint": "^8.56.
|
|
208
|
+
"@sveltejs/kit": "^2.5.8",
|
|
209
|
+
"@sveltejs/package": "^2.3.1",
|
|
210
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
|
211
|
+
"@types/eslint": "^8.56.10",
|
|
213
212
|
"@types/fs-extra": "^11.0.4",
|
|
214
|
-
"@types/node": "^20.11
|
|
215
|
-
"bumpp": "^9.4.
|
|
213
|
+
"@types/node": "^20.12.11",
|
|
214
|
+
"bumpp": "^9.4.1",
|
|
216
215
|
"eslint": "^8.57.0",
|
|
217
216
|
"fs-extra": "^11.2.0",
|
|
218
|
-
"glob": "^10.3.
|
|
217
|
+
"glob": "^10.3.15",
|
|
219
218
|
"npm-run-all": "^4.1.5",
|
|
220
|
-
"postcss-html": "^1.
|
|
219
|
+
"postcss-html": "^1.7.0",
|
|
221
220
|
"publint": "^0.2.7",
|
|
222
221
|
"read-package-up": "^11.0.0",
|
|
223
|
-
"svelte": "^4.2.
|
|
224
|
-
"svelte-check": "^3.
|
|
225
|
-
"svelte-language-server": "^0.16.
|
|
226
|
-
"svelte2tsx": "^0.7.
|
|
227
|
-
"ts-morph": "^
|
|
222
|
+
"svelte": "^4.2.17",
|
|
223
|
+
"svelte-check": "^3.7.1",
|
|
224
|
+
"svelte-language-server": "^0.16.9",
|
|
225
|
+
"svelte2tsx": "^0.7.8",
|
|
226
|
+
"ts-morph": "^22.0.0",
|
|
228
227
|
"tslib": "^2.6.2",
|
|
229
|
-
"tsx": "^4.
|
|
230
|
-
"typescript": "
|
|
231
|
-
"vite": "^5.2.
|
|
232
|
-
"yaml": "^2.4.
|
|
228
|
+
"tsx": "^4.10.2",
|
|
229
|
+
"typescript": "^5.4.5",
|
|
230
|
+
"vite": "^5.2.11",
|
|
231
|
+
"yaml": "^2.4.2"
|
|
233
232
|
},
|
|
234
233
|
"scripts": {
|
|
235
234
|
"build": "run-s --print-label build:*",
|
|
@@ -263,7 +262,7 @@
|
|
|
263
262
|
"release": "run-s --print-label release:*",
|
|
264
263
|
"release:1-build": "pnpm run build",
|
|
265
264
|
"release:2-version": "pnpm bumpp --commit 'Release: %s' --tag 'v%s'",
|
|
266
|
-
"release:3-publish": "pnpm publish --ignore-scripts --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
|
|
265
|
+
"release:3-publish": "pnpm publish --no-git-checks --ignore-scripts --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
|
|
267
266
|
"rewrap": "rewrap -i --column 100 `find src \\( -name '*.svelte' -o -name '*.ts' -o -name '*.html' \\) -type f | grep -v src/examples`",
|
|
268
267
|
"test": "run-s --print-label test:*",
|
|
269
268
|
"test:integration": "playwright test",
|
package/readme.md
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
[](https://npmjs.com/package/svelte-tweakpane-ui)
|
|
30
30
|
[](https://opensource.org/licenses/MIT)
|
|
31
31
|
[](https://madewithsvelte.com/p/svelte-tweakpane-ui/shield-link)
|
|
32
|
-
[](https://kitschpatrol.com/svelte-tweakpane-ui)
|
|
33
33
|
|
|
34
34
|
<!-- /badges -->
|
|
35
35
|
|
|
@@ -84,6 +84,6 @@ npm install svelte-tweakpane-ui
|
|
|
84
84
|
|
|
85
85
|
<!-- /footer -->
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
***
|
|
88
88
|
|
|
89
89
|
_Note: This library is not to be confused with Karl Moore's [`svelte-tweakpane`](https://github.com/pierogis/svelte-tweakpane)._
|