svelte-tweakpane-ui 1.2.7 → 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 +19 -2
- package/dist/control/IntervalSlider.svelte.d.ts +16 -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 +16 -16
- 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 +12 -1
- package/dist/control/Slider.svelte.d.ts +15 -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 +14 -14
- 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 +7 -8
- package/dist/core/Pane.svelte.d.ts +29 -27
- package/dist/core/Separator.svelte.d.ts +4 -2
- package/dist/core/TabGroup.svelte.d.ts +4 -2
- package/dist/core/TabPage.svelte.d.ts +5 -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 +6 -4
- package/dist/index.d.ts +26 -26
- package/dist/internal/ClsPad.svelte.d.ts +5 -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 +6 -4
- package/dist/internal/GenericSlider.svelte +2 -1
- package/dist/internal/GenericSlider.svelte.d.ts +13 -7
- package/dist/internal/InternalMonitorBoolean.svelte.d.ts +7 -5
- package/dist/internal/InternalMonitorNumber.svelte.d.ts +11 -9
- package/dist/internal/InternalMonitorString.svelte.d.ts +9 -7
- package/dist/internal/InternalPaneDraggable.svelte +1 -1
- package/dist/internal/InternalPaneDraggable.svelte.d.ts +16 -14
- package/dist/internal/InternalPaneFixed.svelte.d.ts +9 -7
- package/dist/internal/InternalPaneInline.svelte.d.ts +7 -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 +14 -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,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
|
-
import { type Theme } from '../theme.js';
|
|
2
|
+
import { getValueOrFallback, type Theme } from '../theme.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
/**
|
|
@@ -7,78 +7,10 @@ declare const __propDef: {
|
|
|
7
7
|
*/ theme?: Theme | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* Theme keys to add to the height estimate.
|
|
10
|
-
*/ keysAdd?:
|
|
11
|
-
| (keyof {
|
|
12
|
-
baseBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
13
|
-
baseBorderRadius?: string | undefined;
|
|
14
|
-
baseFontFamily?: string | undefined;
|
|
15
|
-
baseShadowColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
16
|
-
bladeBorderRadius?: string | undefined;
|
|
17
|
-
bladeHorizontalPadding?: string | undefined;
|
|
18
|
-
bladeValueWidth?: string | undefined;
|
|
19
|
-
buttonBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
20
|
-
buttonBackgroundColorActive?: import('../theme.js').ThemeColorValue | undefined;
|
|
21
|
-
buttonBackgroundColorFocus?: import('../theme.js').ThemeColorValue | undefined;
|
|
22
|
-
buttonBackgroundColorHover?: import('../theme.js').ThemeColorValue | undefined;
|
|
23
|
-
buttonForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
24
|
-
containerBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
25
|
-
containerBackgroundColorActive?: import('../theme.js').ThemeColorValue | undefined;
|
|
26
|
-
containerBackgroundColorFocus?: import('../theme.js').ThemeColorValue | undefined;
|
|
27
|
-
containerBackgroundColorHover?: import('../theme.js').ThemeColorValue | undefined;
|
|
28
|
-
containerForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
29
|
-
containerHorizontalPadding?: string | undefined;
|
|
30
|
-
containerUnitSize?: string | undefined;
|
|
31
|
-
containerUnitSpacing?: string | undefined;
|
|
32
|
-
containerVerticalPadding?: string | undefined;
|
|
33
|
-
grooveForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
34
|
-
inputBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
35
|
-
inputBackgroundColorActive?: import('../theme.js').ThemeColorValue | undefined;
|
|
36
|
-
inputBackgroundColorFocus?: import('../theme.js').ThemeColorValue | undefined;
|
|
37
|
-
inputBackgroundColorHover?: import('../theme.js').ThemeColorValue | undefined;
|
|
38
|
-
inputForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
39
|
-
labelForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
40
|
-
monitorBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
41
|
-
monitorForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
42
|
-
pluginImageDraggingColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
43
|
-
})[]
|
|
44
|
-
| undefined;
|
|
10
|
+
*/ keysAdd?: Array<Parameters<typeof getValueOrFallback>[1]>;
|
|
45
11
|
/**
|
|
46
12
|
* Theme keys to subtract from the height estimate.
|
|
47
|
-
*/ keysSubtract?:
|
|
48
|
-
| (keyof {
|
|
49
|
-
baseBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
50
|
-
baseBorderRadius?: string | undefined;
|
|
51
|
-
baseFontFamily?: string | undefined;
|
|
52
|
-
baseShadowColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
53
|
-
bladeBorderRadius?: string | undefined;
|
|
54
|
-
bladeHorizontalPadding?: string | undefined;
|
|
55
|
-
bladeValueWidth?: string | undefined;
|
|
56
|
-
buttonBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
57
|
-
buttonBackgroundColorActive?: import('../theme.js').ThemeColorValue | undefined;
|
|
58
|
-
buttonBackgroundColorFocus?: import('../theme.js').ThemeColorValue | undefined;
|
|
59
|
-
buttonBackgroundColorHover?: import('../theme.js').ThemeColorValue | undefined;
|
|
60
|
-
buttonForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
61
|
-
containerBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
62
|
-
containerBackgroundColorActive?: import('../theme.js').ThemeColorValue | undefined;
|
|
63
|
-
containerBackgroundColorFocus?: import('../theme.js').ThemeColorValue | undefined;
|
|
64
|
-
containerBackgroundColorHover?: import('../theme.js').ThemeColorValue | undefined;
|
|
65
|
-
containerForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
66
|
-
containerHorizontalPadding?: string | undefined;
|
|
67
|
-
containerUnitSize?: string | undefined;
|
|
68
|
-
containerUnitSpacing?: string | undefined;
|
|
69
|
-
containerVerticalPadding?: string | undefined;
|
|
70
|
-
grooveForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
71
|
-
inputBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
72
|
-
inputBackgroundColorActive?: import('../theme.js').ThemeColorValue | undefined;
|
|
73
|
-
inputBackgroundColorFocus?: import('../theme.js').ThemeColorValue | undefined;
|
|
74
|
-
inputBackgroundColorHover?: import('../theme.js').ThemeColorValue | undefined;
|
|
75
|
-
inputForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
76
|
-
labelForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
77
|
-
monitorBackgroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
78
|
-
monitorForegroundColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
79
|
-
pluginImageDraggingColor?: import('../theme.js').ThemeColorValue | undefined;
|
|
80
|
-
})[]
|
|
81
|
-
| undefined;
|
|
13
|
+
*/ keysSubtract?: Array<Parameters<typeof getValueOrFallback>[1]>;
|
|
82
14
|
/**
|
|
83
15
|
* Extra arbitrary space to add to the height estimate, in pixels.
|
|
84
16
|
*/ extra?: number | undefined;
|
|
@@ -87,6 +19,8 @@ declare const __propDef: {
|
|
|
87
19
|
[evt: string]: CustomEvent<any>;
|
|
88
20
|
};
|
|
89
21
|
slots: {};
|
|
22
|
+
exports?: {} | undefined;
|
|
23
|
+
bindings?: string | undefined;
|
|
90
24
|
};
|
|
91
25
|
export type ClsPadProps = typeof __propDef.props;
|
|
92
26
|
export type ClsPadEvents = typeof __propDef.events;
|
|
@@ -24,7 +24,7 @@ declare class __sveltets_Render<
|
|
|
24
24
|
* Prevent interactivity and gray out the control.
|
|
25
25
|
* @default `false`
|
|
26
26
|
*/
|
|
27
|
-
disabled?: boolean
|
|
27
|
+
disabled?: boolean;
|
|
28
28
|
/**
|
|
29
29
|
* Text displayed next to control.
|
|
30
30
|
* @default `undefined`
|
|
@@ -76,7 +76,7 @@ declare class __sveltets_Render<
|
|
|
76
76
|
*
|
|
77
77
|
* @default `undefined`
|
|
78
78
|
*/
|
|
79
|
-
plugin?: import('
|
|
79
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
80
80
|
},
|
|
81
81
|
'object' | 'key'
|
|
82
82
|
>;
|
|
@@ -6,25 +6,25 @@ declare class __sveltets_Render<T extends BladeOptions, U extends BladeRef> {
|
|
|
6
6
|
* DOM class name of the button used to expand and collapse the blade's picker.
|
|
7
7
|
* @default `undefined`
|
|
8
8
|
* */
|
|
9
|
-
buttonClass?: string
|
|
9
|
+
buttonClass?: string;
|
|
10
10
|
/**
|
|
11
11
|
* Expand or collapse the blade's picker.
|
|
12
12
|
* @default `true`
|
|
13
13
|
* @bindable
|
|
14
14
|
* */
|
|
15
|
-
expanded?: boolean
|
|
15
|
+
expanded?: boolean;
|
|
16
16
|
/**
|
|
17
17
|
* The style of value "picker" to use in the blade.
|
|
18
18
|
* @default `'popup'`
|
|
19
19
|
*/
|
|
20
|
-
picker?: 'inline' | 'popup'
|
|
20
|
+
picker?: 'inline' | 'popup';
|
|
21
21
|
/**
|
|
22
22
|
* Allow users to interactively expand / contract the value picker by clicking its icon.
|
|
23
23
|
*
|
|
24
24
|
* Most useful when `picker` is `inline`.
|
|
25
25
|
* @default `true`
|
|
26
26
|
* */
|
|
27
|
-
userExpandable?: boolean
|
|
27
|
+
userExpandable?: boolean;
|
|
28
28
|
} & {
|
|
29
29
|
/**
|
|
30
30
|
* Blade configuration exposing Tweakpane's internal
|
|
@@ -36,7 +36,7 @@ declare class __sveltets_Render<T extends BladeOptions, U extends BladeRef> {
|
|
|
36
36
|
* Prevent interactivity and gray out the control.
|
|
37
37
|
* @default `false`
|
|
38
38
|
*/
|
|
39
|
-
disabled?: boolean
|
|
39
|
+
disabled?: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* Custom color scheme.
|
|
42
42
|
* @default `undefined` \
|
|
@@ -68,7 +68,7 @@ declare class __sveltets_Render<T extends BladeOptions, U extends BladeRef> {
|
|
|
68
68
|
*
|
|
69
69
|
* @default `undefined`
|
|
70
70
|
*/
|
|
71
|
-
plugin?: import('
|
|
71
|
+
plugin?: import('../utils').Plugin | undefined;
|
|
72
72
|
};
|
|
73
73
|
events(): {} & {
|
|
74
74
|
[evt: string]: CustomEvent<any>;
|
|
@@ -26,7 +26,7 @@ declare class __sveltets_Render<
|
|
|
26
26
|
* Prevent interactivity and gray out the control.
|
|
27
27
|
* @default `false`
|
|
28
28
|
*/
|
|
29
|
-
disabled?: boolean
|
|
29
|
+
disabled?: boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Text displayed next to control.
|
|
32
32
|
* @default `undefined`
|
|
@@ -78,7 +78,7 @@ declare class __sveltets_Render<
|
|
|
78
78
|
*
|
|
79
79
|
* @default `undefined`
|
|
80
80
|
*/
|
|
81
|
-
plugin?: import('
|
|
81
|
+
plugin?: import('..').Plugin | undefined;
|
|
82
82
|
},
|
|
83
83
|
'object' | 'key'
|
|
84
84
|
>;
|
|
@@ -14,23 +14,23 @@ declare class __sveltets_Render<
|
|
|
14
14
|
* DOM class name of the button used to expand and collapse the input's picker.
|
|
15
15
|
* @default `undefined`
|
|
16
16
|
* */
|
|
17
|
-
buttonClass?: string
|
|
17
|
+
buttonClass?: string;
|
|
18
18
|
/**
|
|
19
19
|
* Expand or collapse the input's picker.
|
|
20
20
|
* @default `false`
|
|
21
21
|
* @bindable
|
|
22
22
|
* */
|
|
23
|
-
expanded?: boolean
|
|
23
|
+
expanded?: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* The style of value "picker" to use in the input.
|
|
26
26
|
* @default `'popup'`
|
|
27
27
|
*/
|
|
28
|
-
picker?: 'inline' | 'popup'
|
|
28
|
+
picker?: 'inline' | 'popup';
|
|
29
29
|
/**
|
|
30
30
|
* Allow users to interactively expand / contract the picker.
|
|
31
31
|
* @default `true`
|
|
32
32
|
* */
|
|
33
|
-
userExpandable?: boolean
|
|
33
|
+
userExpandable?: boolean;
|
|
34
34
|
} & {
|
|
35
35
|
/**
|
|
36
36
|
* The value to control.
|
|
@@ -50,7 +50,7 @@ declare class __sveltets_Render<
|
|
|
50
50
|
* Prevent interactivity and gray out the control.
|
|
51
51
|
* @default `false`
|
|
52
52
|
*/
|
|
53
|
-
disabled?: boolean
|
|
53
|
+
disabled?: boolean;
|
|
54
54
|
/**
|
|
55
55
|
* Text displayed next to control.
|
|
56
56
|
* @default `undefined`
|
|
@@ -102,7 +102,7 @@ declare class __sveltets_Render<
|
|
|
102
102
|
*
|
|
103
103
|
* @default `undefined`
|
|
104
104
|
*/
|
|
105
|
-
plugin?: import('
|
|
105
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
106
106
|
},
|
|
107
107
|
'object' | 'key'
|
|
108
108
|
>;
|
|
@@ -13,14 +13,14 @@ declare class __sveltets_Render<
|
|
|
13
13
|
* @default `1` \
|
|
14
14
|
* Or `64` if value is `number` and `graph` is `true`.
|
|
15
15
|
* */
|
|
16
|
-
bufferSize?: number
|
|
16
|
+
bufferSize?: number;
|
|
17
17
|
/**
|
|
18
18
|
* Time between value samples in milliseconds.
|
|
19
19
|
*
|
|
20
20
|
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
21
21
|
* @default `0`
|
|
22
22
|
* */
|
|
23
|
-
interval?: number
|
|
23
|
+
interval?: number;
|
|
24
24
|
/**
|
|
25
25
|
* Number of visible rows of state history.
|
|
26
26
|
*
|
|
@@ -29,7 +29,7 @@ declare class __sveltets_Render<
|
|
|
29
29
|
* @default `1` \
|
|
30
30
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
31
31
|
* */
|
|
32
|
-
rows?: number
|
|
32
|
+
rows?: number;
|
|
33
33
|
} & {
|
|
34
34
|
/**
|
|
35
35
|
* The value to control.
|
|
@@ -49,7 +49,7 @@ declare class __sveltets_Render<
|
|
|
49
49
|
* Prevent interactivity and gray out the control.
|
|
50
50
|
* @default `false`
|
|
51
51
|
*/
|
|
52
|
-
disabled?: boolean
|
|
52
|
+
disabled?: boolean;
|
|
53
53
|
/**
|
|
54
54
|
* Text displayed next to control.
|
|
55
55
|
* @default `undefined`
|
|
@@ -101,7 +101,7 @@ declare class __sveltets_Render<
|
|
|
101
101
|
*
|
|
102
102
|
* @default `undefined`
|
|
103
103
|
*/
|
|
104
|
-
plugin?: import('
|
|
104
|
+
plugin?: import('..').Plugin | undefined;
|
|
105
105
|
},
|
|
106
106
|
'object' | 'key'
|
|
107
107
|
>;
|
|
@@ -14,12 +14,12 @@ declare const __propDef: {
|
|
|
14
14
|
*
|
|
15
15
|
* Hides the collapse button from the title bar when `false`.
|
|
16
16
|
* @default `true`
|
|
17
|
-
* */ userExpandable?: boolean
|
|
17
|
+
* */ userExpandable?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* Expand or collapse the pane into its title bar.
|
|
20
20
|
* @default `true`
|
|
21
21
|
* @bindable
|
|
22
|
-
* */ expanded?: boolean
|
|
22
|
+
* */ expanded?: boolean;
|
|
23
23
|
/**
|
|
24
24
|
* Custom color scheme.
|
|
25
25
|
*
|
|
@@ -50,8 +50,8 @@ declare const __propDef: {
|
|
|
50
50
|
*
|
|
51
51
|
* Negative values are ignored.
|
|
52
52
|
* @default `1`
|
|
53
|
-
*/ scale?: number
|
|
54
|
-
/** Internal use only. */ userCreatedPane?: boolean
|
|
53
|
+
*/ scale?: number;
|
|
54
|
+
/** Internal use only. */ userCreatedPane?: boolean;
|
|
55
55
|
/**
|
|
56
56
|
* The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
|
|
57
57
|
*
|
|
@@ -76,6 +76,8 @@ declare const __propDef: {
|
|
|
76
76
|
*/
|
|
77
77
|
default: {};
|
|
78
78
|
};
|
|
79
|
+
exports?: {} | undefined;
|
|
80
|
+
bindings?: string | undefined;
|
|
79
81
|
};
|
|
80
82
|
export type GenericPaneProps = typeof __propDef.props;
|
|
81
83
|
export type GenericPaneEvents = typeof __propDef.events;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
export let pointerScale = void 0;
|
|
9
9
|
export let keyScale = void 0;
|
|
10
10
|
export let format = void 0;
|
|
11
|
+
export let ref = void 0;
|
|
11
12
|
let formatProxy = format;
|
|
12
13
|
$: formatProxy !== format && (formatProxy = format);
|
|
13
14
|
let optionsInternal;
|
|
@@ -22,4 +23,4 @@
|
|
|
22
23
|
};
|
|
23
24
|
</script>
|
|
24
25
|
|
|
25
|
-
<GenericInput bind:value on:change options={optionsInternal} {...$$restProps} />
|
|
26
|
+
<GenericInput bind:value bind:ref on:change options={optionsInternal} {...$$restProps} />
|
|
@@ -10,14 +10,14 @@ declare class __sveltets_Render<T extends number | IntervalSliderValue> {
|
|
|
10
10
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
11
11
|
* @default `undefined`
|
|
12
12
|
* */
|
|
13
|
-
min?: number
|
|
13
|
+
min?: number;
|
|
14
14
|
/**
|
|
15
15
|
* Maximum value.
|
|
16
16
|
*
|
|
17
17
|
* Specifying both a `min` and a `max` prop turns the control into a slider.
|
|
18
18
|
* @default `undefined`
|
|
19
19
|
* */
|
|
20
|
-
max?: number
|
|
20
|
+
max?: number;
|
|
21
21
|
/**
|
|
22
22
|
* A function to customize the point value's string representation (e.g. rounding, etc.).
|
|
23
23
|
* @default `undefined` \
|
|
@@ -29,20 +29,26 @@ declare class __sveltets_Render<T extends number | IntervalSliderValue> {
|
|
|
29
29
|
* @default `1` \
|
|
30
30
|
* Or `stepValue` if defined.
|
|
31
31
|
* */
|
|
32
|
-
keyScale?: number
|
|
32
|
+
keyScale?: number;
|
|
33
33
|
/**
|
|
34
34
|
* The unit scale for pointer-based input for all dimensions.
|
|
35
35
|
* @default `undefined` \
|
|
36
36
|
* [Dynamic based on magnitude of
|
|
37
37
|
* `value`](https://github.com/cocopon/tweakpane/blob/66dfbea04bfe9b7f031673c955ceda1f92356e75/packages/core/src/common/number/util.ts#L54).
|
|
38
38
|
* */
|
|
39
|
-
pointerScale?: number
|
|
39
|
+
pointerScale?: number;
|
|
40
40
|
/**
|
|
41
41
|
* The minimum step interval.
|
|
42
42
|
* @default `undefined` \
|
|
43
43
|
* No step constraint.
|
|
44
44
|
* */
|
|
45
|
-
step?: number
|
|
45
|
+
step?: number;
|
|
46
|
+
/**
|
|
47
|
+
* When `true`, expand the width of the control at the expense of the numeric input
|
|
48
|
+
* field.
|
|
49
|
+
* @default `false`
|
|
50
|
+
* */
|
|
51
|
+
wide?: boolean;
|
|
46
52
|
} & {
|
|
47
53
|
/**
|
|
48
54
|
* The value to control.
|
|
@@ -62,7 +68,7 @@ declare class __sveltets_Render<T extends number | IntervalSliderValue> {
|
|
|
62
68
|
* Prevent interactivity and gray out the control.
|
|
63
69
|
* @default `false`
|
|
64
70
|
*/
|
|
65
|
-
disabled?: boolean
|
|
71
|
+
disabled?: boolean;
|
|
66
72
|
/**
|
|
67
73
|
* Text displayed next to control.
|
|
68
74
|
* @default `undefined`
|
|
@@ -114,7 +120,7 @@ declare class __sveltets_Render<T extends number | IntervalSliderValue> {
|
|
|
114
120
|
*
|
|
115
121
|
* @default `undefined`
|
|
116
122
|
*/
|
|
117
|
-
plugin?: import('
|
|
123
|
+
plugin?: import('..').Plugin | undefined;
|
|
118
124
|
},
|
|
119
125
|
'object' | 'key'
|
|
120
126
|
>;
|
|
@@ -14,14 +14,14 @@ declare const __propDef: {
|
|
|
14
14
|
* @default `1` \
|
|
15
15
|
* Or `64` if value is `number` and `graph` is `true`.
|
|
16
16
|
*/
|
|
17
|
-
bufferSize?: number
|
|
17
|
+
bufferSize?: number;
|
|
18
18
|
/**
|
|
19
19
|
* Time between value samples in milliseconds.
|
|
20
20
|
*
|
|
21
21
|
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
22
22
|
* @default `0`
|
|
23
23
|
*/
|
|
24
|
-
interval?: number
|
|
24
|
+
interval?: number;
|
|
25
25
|
/**
|
|
26
26
|
* Number of visible rows of state history.
|
|
27
27
|
*
|
|
@@ -30,7 +30,7 @@ declare const __propDef: {
|
|
|
30
30
|
* @default `1` \
|
|
31
31
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
32
32
|
*/
|
|
33
|
-
rows?: number
|
|
33
|
+
rows?: number;
|
|
34
34
|
} & {
|
|
35
35
|
/**
|
|
36
36
|
* A `boolean` value to monitor.
|
|
@@ -49,7 +49,7 @@ declare const __propDef: {
|
|
|
49
49
|
* Prevent interactivity and gray out the control.
|
|
50
50
|
* @default `false`
|
|
51
51
|
*/
|
|
52
|
-
disabled?: boolean
|
|
52
|
+
disabled?: boolean;
|
|
53
53
|
/**
|
|
54
54
|
* Text displayed next to control.
|
|
55
55
|
* @default `undefined`
|
|
@@ -101,7 +101,7 @@ declare const __propDef: {
|
|
|
101
101
|
*
|
|
102
102
|
* @default `undefined`
|
|
103
103
|
*/
|
|
104
|
-
plugin?: import('
|
|
104
|
+
plugin?: import('../utils').Plugin | undefined;
|
|
105
105
|
},
|
|
106
106
|
'object' | 'key'
|
|
107
107
|
>,
|
|
@@ -111,6 +111,8 @@ declare const __propDef: {
|
|
|
111
111
|
[evt: string]: CustomEvent<any>;
|
|
112
112
|
};
|
|
113
113
|
slots: {};
|
|
114
|
+
exports?: {} | undefined;
|
|
115
|
+
bindings?: string | undefined;
|
|
114
116
|
};
|
|
115
117
|
export type InternalMonitorBooleanProps = typeof __propDef.props;
|
|
116
118
|
export type InternalMonitorBooleanEvents = typeof __propDef.events;
|
|
@@ -11,23 +11,23 @@ declare const __propDef: {
|
|
|
11
11
|
* Minimum bound when `graph` is true.
|
|
12
12
|
* @default `0`
|
|
13
13
|
*/
|
|
14
|
-
min?: number
|
|
14
|
+
min?: number;
|
|
15
15
|
/**
|
|
16
16
|
* Maximum bound when `graph` is true.
|
|
17
17
|
* @default `100`
|
|
18
18
|
* */
|
|
19
|
-
max?: number
|
|
19
|
+
max?: number;
|
|
20
20
|
/**
|
|
21
21
|
* A function to customize the number's string representation (e.g. rounding, etc.).
|
|
22
22
|
* @default `undefined` \
|
|
23
23
|
* Normal `.toString()` formatting.
|
|
24
24
|
* */
|
|
25
|
-
format?: (
|
|
25
|
+
format?: (value: number) => string;
|
|
26
26
|
/**
|
|
27
27
|
* Display a graph of the value's changes over time.
|
|
28
28
|
* @default `false`
|
|
29
29
|
* */
|
|
30
|
-
graph?: boolean
|
|
30
|
+
graph?: boolean;
|
|
31
31
|
} & Omit<
|
|
32
32
|
{
|
|
33
33
|
/**
|
|
@@ -35,14 +35,14 @@ declare const __propDef: {
|
|
|
35
35
|
* @default `1` \
|
|
36
36
|
* Or `64` if value is `number` and `graph` is `true`.
|
|
37
37
|
*/
|
|
38
|
-
bufferSize?: number
|
|
38
|
+
bufferSize?: number;
|
|
39
39
|
/**
|
|
40
40
|
* Time between value samples in milliseconds.
|
|
41
41
|
*
|
|
42
42
|
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
43
43
|
* @default `0`
|
|
44
44
|
*/
|
|
45
|
-
interval?: number
|
|
45
|
+
interval?: number;
|
|
46
46
|
/**
|
|
47
47
|
* Number of visible rows of state history.
|
|
48
48
|
*
|
|
@@ -51,7 +51,7 @@ declare const __propDef: {
|
|
|
51
51
|
* @default `1` \
|
|
52
52
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
53
53
|
*/
|
|
54
|
-
rows?: number
|
|
54
|
+
rows?: number;
|
|
55
55
|
} & {
|
|
56
56
|
/**
|
|
57
57
|
* A `number` value to monitor.
|
|
@@ -70,7 +70,7 @@ declare const __propDef: {
|
|
|
70
70
|
* Prevent interactivity and gray out the control.
|
|
71
71
|
* @default `false`
|
|
72
72
|
*/
|
|
73
|
-
disabled?: boolean
|
|
73
|
+
disabled?: boolean;
|
|
74
74
|
/**
|
|
75
75
|
* Text displayed next to control.
|
|
76
76
|
* @default `undefined`
|
|
@@ -122,7 +122,7 @@ declare const __propDef: {
|
|
|
122
122
|
*
|
|
123
123
|
* @default `undefined`
|
|
124
124
|
*/
|
|
125
|
-
plugin?: import('
|
|
125
|
+
plugin?: import('../utils.js').Plugin | undefined;
|
|
126
126
|
},
|
|
127
127
|
'object' | 'key'
|
|
128
128
|
>,
|
|
@@ -132,6 +132,8 @@ declare const __propDef: {
|
|
|
132
132
|
[evt: string]: CustomEvent<any>;
|
|
133
133
|
};
|
|
134
134
|
slots: {};
|
|
135
|
+
exports?: {} | undefined;
|
|
136
|
+
bindings?: string | undefined;
|
|
135
137
|
};
|
|
136
138
|
export type InternalMonitorNumberProps = typeof __propDef.props;
|
|
137
139
|
export type InternalMonitorNumberEvents = typeof __propDef.events;
|
|
@@ -11,7 +11,7 @@ declare const __propDef: {
|
|
|
11
11
|
* Display multiline strings.
|
|
12
12
|
* @default `false`
|
|
13
13
|
* */
|
|
14
|
-
multiline?: boolean
|
|
14
|
+
multiline?: boolean;
|
|
15
15
|
} & Omit<
|
|
16
16
|
{
|
|
17
17
|
/**
|
|
@@ -19,14 +19,14 @@ declare const __propDef: {
|
|
|
19
19
|
* @default `1` \
|
|
20
20
|
* Or `64` if value is `number` and `graph` is `true`.
|
|
21
21
|
*/
|
|
22
|
-
bufferSize?: number
|
|
22
|
+
bufferSize?: number;
|
|
23
23
|
/**
|
|
24
24
|
* Time between value samples in milliseconds.
|
|
25
25
|
*
|
|
26
26
|
* Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
|
|
27
27
|
* @default `0`
|
|
28
28
|
*/
|
|
29
|
-
interval?: number
|
|
29
|
+
interval?: number;
|
|
30
30
|
/**
|
|
31
31
|
* Number of visible rows of state history.
|
|
32
32
|
*
|
|
@@ -35,7 +35,7 @@ declare const __propDef: {
|
|
|
35
35
|
* @default `1` \
|
|
36
36
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
37
37
|
*/
|
|
38
|
-
rows?: number
|
|
38
|
+
rows?: number;
|
|
39
39
|
} & {
|
|
40
40
|
/**
|
|
41
41
|
* A `string` value to monitor.
|
|
@@ -54,7 +54,7 @@ declare const __propDef: {
|
|
|
54
54
|
* Prevent interactivity and gray out the control.
|
|
55
55
|
* @default `false`
|
|
56
56
|
*/
|
|
57
|
-
disabled?: boolean
|
|
57
|
+
disabled?: boolean;
|
|
58
58
|
/**
|
|
59
59
|
* Text displayed next to control.
|
|
60
60
|
* @default `undefined`
|
|
@@ -106,7 +106,7 @@ declare const __propDef: {
|
|
|
106
106
|
*
|
|
107
107
|
* @default `undefined`
|
|
108
108
|
*/
|
|
109
|
-
plugin?: import('
|
|
109
|
+
plugin?: import('../utils').Plugin | undefined;
|
|
110
110
|
},
|
|
111
111
|
'object' | 'key'
|
|
112
112
|
>,
|
|
@@ -116,6 +116,8 @@ declare const __propDef: {
|
|
|
116
116
|
[evt: string]: CustomEvent<any>;
|
|
117
117
|
};
|
|
118
118
|
slots: {};
|
|
119
|
+
exports?: {} | undefined;
|
|
120
|
+
bindings?: string | undefined;
|
|
119
121
|
};
|
|
120
122
|
export type InternalMonitorStringProps = typeof __propDef.props;
|
|
121
123
|
export type InternalMonitorStringEvents = typeof __propDef.events;
|
|
@@ -142,7 +144,7 @@ export type InternalMonitorStringSlots = typeof __propDef.slots;
|
|
|
142
144
|
* <script lang="ts">
|
|
143
145
|
* import { InternalMonitorString } from 'svelte-tweakpane-ui';
|
|
144
146
|
*
|
|
145
|
-
* let stringToMonitor = '
|
|
147
|
+
* let stringToMonitor = 'so\nit\ngoes';
|
|
146
148
|
*
|
|
147
149
|
* setInterval(() => {
|
|
148
150
|
* stringToMonitor = stringToMonitor
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import GenericPane from './GenericPane.svelte';
|
|
10
10
|
import { clamp, getSwatchButton, pickerIsOpen, removeKeys } from '../utils.js';
|
|
11
11
|
import { onDestroy, onMount } from 'svelte';
|
|
12
|
-
import { persisted } from 'svelte-
|
|
12
|
+
import { persisted } from 'svelte-persisted-store';
|
|
13
13
|
const titlebarWindowShadeSingleClick = true;
|
|
14
14
|
const titlebarWindowShadeDoubleClick = false;
|
|
15
15
|
const pointerCancelOnWindowBlur = true;
|