svelte-tweakpane-ui 1.2.2 → 1.2.4
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 +30 -30
- 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/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/GenericPane.svelte +1 -1
- 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.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 +233 -233
- 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 +15 -15
- package/readme.md +2 -2
|
@@ -2,81 +2,18 @@ import { SvelteComponent } from 'svelte';
|
|
|
2
2
|
import type { StringMonitorParams } from '@tweakpane/core';
|
|
3
3
|
export type InternalMonitorStringOptions = StringMonitorParams;
|
|
4
4
|
declare const __propDef: {
|
|
5
|
-
props:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* @default `false`
|
|
18
|
-
*/
|
|
19
|
-
disabled?: boolean | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Text displayed next to control.
|
|
22
|
-
* @default `undefined`
|
|
23
|
-
*/
|
|
24
|
-
label?: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Tweakpane's internal options object.
|
|
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?: StringMonitorParams | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Custom color scheme.
|
|
40
|
-
*
|
|
41
|
-
* @default `undefined` \
|
|
42
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
43
|
-
* set with `setGlobalDefaultTheme()`.
|
|
44
|
-
*/
|
|
45
|
-
theme?: import('..').Theme | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Reference to internal Tweakpane
|
|
48
|
-
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
49
|
-
* this control.
|
|
50
|
-
*
|
|
51
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
52
|
-
* components wrapping `<Binding>`'s functionality.
|
|
53
|
-
*
|
|
54
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
55
|
-
*
|
|
56
|
-
* @bindable
|
|
57
|
-
* @readonly
|
|
58
|
-
*/
|
|
59
|
-
ref?: import('./GenericMonitor.svelte').GenericMonitorRef | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
62
|
-
* the `<Binding>`'s containing `<Pane>`.
|
|
63
|
-
*
|
|
64
|
-
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
65
|
-
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
66
|
-
*
|
|
67
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
68
|
-
*
|
|
69
|
-
* @default `undefined`
|
|
70
|
-
*/
|
|
71
|
-
plugin?: import('@tweakpane/core').TpPluginBundle | undefined;
|
|
72
|
-
},
|
|
73
|
-
'object' | 'key'
|
|
74
|
-
> & {
|
|
75
|
-
/**
|
|
76
|
-
* A `string` value to monitor.
|
|
77
|
-
*/
|
|
78
|
-
value: string;
|
|
79
|
-
} & {
|
|
5
|
+
props: {
|
|
6
|
+
/**
|
|
7
|
+
* A `string` value to monitor.
|
|
8
|
+
* */
|
|
9
|
+
value: string;
|
|
10
|
+
/**
|
|
11
|
+
* Display multiline strings.
|
|
12
|
+
* @default `false`
|
|
13
|
+
* */
|
|
14
|
+
multiline?: boolean | undefined;
|
|
15
|
+
} & Omit<
|
|
16
|
+
{
|
|
80
17
|
/**
|
|
81
18
|
* Number of past states to retain.
|
|
82
19
|
* @default `1` \
|
|
@@ -99,19 +36,82 @@ declare const __propDef: {
|
|
|
99
36
|
* Or `3` if value is `string` and `multiline` is `true`.
|
|
100
37
|
*/
|
|
101
38
|
rows?: number | undefined;
|
|
102
|
-
}
|
|
39
|
+
} & {
|
|
40
|
+
/**
|
|
41
|
+
* A `string` value to monitor.
|
|
42
|
+
*/
|
|
43
|
+
value: string;
|
|
44
|
+
} & Omit<
|
|
45
|
+
{
|
|
46
|
+
/**
|
|
47
|
+
* The binding's target object with values to manipulate.
|
|
48
|
+
* @bindable
|
|
49
|
+
*/
|
|
50
|
+
object: import('@tweakpane/core').Bindable & Record<string, string>;
|
|
51
|
+
/** The key for the value in the target `object` that the control should manipulate. */
|
|
52
|
+
key: string;
|
|
53
|
+
/**
|
|
54
|
+
* Prevent interactivity and gray out the control.
|
|
55
|
+
* @default `false`
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Text displayed next to control.
|
|
60
|
+
* @default `undefined`
|
|
61
|
+
*/
|
|
62
|
+
label?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Tweakpane's internal options object.
|
|
65
|
+
*
|
|
66
|
+
* See [`BindingParams`](https://tweakpane.github.io/docs/api/types/BindingParams.html).
|
|
67
|
+
*
|
|
68
|
+
* Valid types are contingent on the type of the value `key` points to in `object`.
|
|
69
|
+
*
|
|
70
|
+
* This is intended internal use, when implementing convenience components wrapping Binding's
|
|
71
|
+
* functionality. Options of interest are instead exposed as top-level props in _Svelte
|
|
72
|
+
* Tweakpane UI_.
|
|
73
|
+
* @default `undefined`
|
|
74
|
+
*/
|
|
75
|
+
options?: StringMonitorParams | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Custom color scheme.
|
|
78
|
+
*
|
|
79
|
+
* @default `undefined` \
|
|
80
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
81
|
+
* set with `setGlobalDefaultTheme()`.
|
|
82
|
+
*/
|
|
83
|
+
theme?: import('..').Theme | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Reference to internal Tweakpane
|
|
86
|
+
* [`BindingApi`](https://tweakpane.github.io/docs/api/classes/_internal_.BindingApi.html) for
|
|
87
|
+
* this control.
|
|
88
|
+
*
|
|
89
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
90
|
+
* components wrapping `<Binding>`'s functionality.
|
|
91
|
+
*
|
|
92
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
93
|
+
*
|
|
94
|
+
* @bindable
|
|
95
|
+
* @readonly
|
|
96
|
+
*/
|
|
97
|
+
ref?: import('./GenericMonitor.svelte').GenericMonitorRef | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
100
|
+
* the `<Binding>`'s containing `<Pane>`.
|
|
101
|
+
*
|
|
102
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
103
|
+
* components wrapping `<Binding>`'s functionality in combination with a Tweakpane plugin.
|
|
104
|
+
*
|
|
105
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
106
|
+
*
|
|
107
|
+
* @default `undefined`
|
|
108
|
+
*/
|
|
109
|
+
plugin?: import('@tweakpane/core').TpPluginBundle | undefined;
|
|
110
|
+
},
|
|
111
|
+
'object' | 'key'
|
|
112
|
+
>,
|
|
103
113
|
'ref' | 'options' | 'plugin' | 'interval'
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* A `string` value to monitor.
|
|
107
|
-
* */
|
|
108
|
-
value: string;
|
|
109
|
-
/**
|
|
110
|
-
* Display multiline strings.
|
|
111
|
-
* @default `false`
|
|
112
|
-
* */
|
|
113
|
-
multiline?: boolean | undefined;
|
|
114
|
-
};
|
|
114
|
+
>;
|
|
115
115
|
events: {
|
|
116
116
|
[evt: string]: CustomEvent<any>;
|
|
117
117
|
};
|
|
@@ -1,80 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
2
|
declare const __propDef: {
|
|
3
|
-
props:
|
|
4
|
-
{
|
|
5
|
-
/**
|
|
6
|
-
* Text in the pane's title bar.
|
|
7
|
-
* @default `Tweakpane` \
|
|
8
|
-
* Unless `position="inline"`, in which case the default is `undefined` and no title bar is
|
|
9
|
-
* shown.
|
|
10
|
-
*/
|
|
11
|
-
title?: string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Allow users to interactively expand / contract the pane by clicking its title bar.
|
|
14
|
-
*
|
|
15
|
-
* Hides the collapse button from the title bar when `false`.
|
|
16
|
-
* @default `true`
|
|
17
|
-
*/
|
|
18
|
-
userExpandable?: boolean | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Expand or collapse the pane into its title bar.
|
|
21
|
-
* @default `true`
|
|
22
|
-
* @bindable
|
|
23
|
-
*/
|
|
24
|
-
expanded?: boolean | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Custom color scheme.
|
|
27
|
-
*
|
|
28
|
-
* Applies to all child components, but note that setting a different `theme` on a child
|
|
29
|
-
* component's prop will **not** override the parent pane's theme.
|
|
30
|
-
*
|
|
31
|
-
* Note that `<Pane position="inline' ...>` squares off rounded corners by default to better
|
|
32
|
-
* integrate with surrounding content.
|
|
33
|
-
*
|
|
34
|
-
* Simply pass a custom or default theme like `ThemeUtils.presets.standard` if you want rounded
|
|
35
|
-
* corners on an `inline` pane.
|
|
36
|
-
*
|
|
37
|
-
* See also the `setGlobalDefaultTheme()` for a way to set a custom default theme for all panes
|
|
38
|
-
* on the page.
|
|
39
|
-
* @default `undefined` \
|
|
40
|
-
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
41
|
-
* set with `setGlobalDefaultTheme()`.
|
|
42
|
-
*/
|
|
43
|
-
theme?: import('..').Theme | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Scales the pane's elements by a factor of `scale` to make it easier to see.
|
|
46
|
-
*
|
|
47
|
-
* Holds the width of the pane constant, so the pane will grow taller as it is scaled and will
|
|
48
|
-
* continue to respect position- and size-related props. If you need more breathing room, set
|
|
49
|
-
* the `width` property on the pane.
|
|
50
|
-
*
|
|
51
|
-
* Note that the scaling prop is only available on `<Pane>`, not on stand-alone (implicitly
|
|
52
|
-
* wrapped) inline elements.
|
|
53
|
-
*
|
|
54
|
-
* Negative values are ignored.
|
|
55
|
-
* @default `1`
|
|
56
|
-
*/
|
|
57
|
-
scale?: number | undefined;
|
|
58
|
-
/** Internal use only. */
|
|
59
|
-
userCreatedPane?: boolean | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
|
|
62
|
-
*
|
|
63
|
-
* This property is exposed for advanced use cases only.
|
|
64
|
-
*
|
|
65
|
-
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
66
|
-
*
|
|
67
|
-
* Note that the `Pane` type for this property comes from the core Tweakpane library.
|
|
68
|
-
* Creating an alias is suggested to avoid confusion with the _Svelte Tweakpane UI_ `Pane`
|
|
69
|
-
* component: e.g. `import { type Pane as TpPane } from 'tweakpane'`
|
|
70
|
-
*
|
|
71
|
-
* @bindable
|
|
72
|
-
* @readonly
|
|
73
|
-
*/
|
|
74
|
-
tpPane?: import('tweakpane').Pane | undefined;
|
|
75
|
-
},
|
|
76
|
-
'userCreatedPane'
|
|
77
|
-
> & {
|
|
3
|
+
props: {
|
|
78
4
|
/**
|
|
79
5
|
* Horizontal position of the pane relative to the left edge of the window, in pixels.
|
|
80
6
|
*
|
|
@@ -159,7 +85,81 @@ declare const __propDef: {
|
|
|
159
85
|
* @bindable
|
|
160
86
|
* */
|
|
161
87
|
width?: number | undefined;
|
|
162
|
-
}
|
|
88
|
+
} & Omit<
|
|
89
|
+
{
|
|
90
|
+
/**
|
|
91
|
+
* Text in the pane's title bar.
|
|
92
|
+
* @default `Tweakpane` \
|
|
93
|
+
* Unless `position="inline"`, in which case the default is `undefined` and no title bar is
|
|
94
|
+
* shown.
|
|
95
|
+
*/
|
|
96
|
+
title?: string | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Allow users to interactively expand / contract the pane by clicking its title bar.
|
|
99
|
+
*
|
|
100
|
+
* Hides the collapse button from the title bar when `false`.
|
|
101
|
+
* @default `true`
|
|
102
|
+
*/
|
|
103
|
+
userExpandable?: boolean | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Expand or collapse the pane into its title bar.
|
|
106
|
+
* @default `true`
|
|
107
|
+
* @bindable
|
|
108
|
+
*/
|
|
109
|
+
expanded?: boolean | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Custom color scheme.
|
|
112
|
+
*
|
|
113
|
+
* Applies to all child components, but note that setting a different `theme` on a child
|
|
114
|
+
* component's prop will **not** override the parent pane's theme.
|
|
115
|
+
*
|
|
116
|
+
* Note that `<Pane position="inline' ...>` squares off rounded corners by default to better
|
|
117
|
+
* integrate with surrounding content.
|
|
118
|
+
*
|
|
119
|
+
* Simply pass a custom or default theme like `ThemeUtils.presets.standard` if you want rounded
|
|
120
|
+
* corners on an `inline` pane.
|
|
121
|
+
*
|
|
122
|
+
* See also the `setGlobalDefaultTheme()` for a way to set a custom default theme for all panes
|
|
123
|
+
* on the page.
|
|
124
|
+
* @default `undefined` \
|
|
125
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
126
|
+
* set with `setGlobalDefaultTheme()`.
|
|
127
|
+
*/
|
|
128
|
+
theme?: import('..').Theme | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Scales the pane's elements by a factor of `scale` to make it easier to see.
|
|
131
|
+
*
|
|
132
|
+
* Holds the width of the pane constant, so the pane will grow taller as it is scaled and will
|
|
133
|
+
* continue to respect position- and size-related props. If you need more breathing room, set
|
|
134
|
+
* the `width` property on the pane.
|
|
135
|
+
*
|
|
136
|
+
* Note that the scaling prop is only available on `<Pane>`, not on stand-alone (implicitly
|
|
137
|
+
* wrapped) inline elements.
|
|
138
|
+
*
|
|
139
|
+
* Negative values are ignored.
|
|
140
|
+
* @default `1`
|
|
141
|
+
*/
|
|
142
|
+
scale?: number | undefined;
|
|
143
|
+
/** Internal use only. */
|
|
144
|
+
userCreatedPane?: boolean | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
|
|
147
|
+
*
|
|
148
|
+
* This property is exposed for advanced use cases only.
|
|
149
|
+
*
|
|
150
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
151
|
+
*
|
|
152
|
+
* Note that the `Pane` type for this property comes from the core Tweakpane library.
|
|
153
|
+
* Creating an alias is suggested to avoid confusion with the _Svelte Tweakpane UI_ `Pane`
|
|
154
|
+
* component: e.g. `import { type Pane as TpPane } from 'tweakpane'`
|
|
155
|
+
*
|
|
156
|
+
* @bindable
|
|
157
|
+
* @readonly
|
|
158
|
+
*/
|
|
159
|
+
tpPane?: import('tweakpane').Pane | undefined;
|
|
160
|
+
},
|
|
161
|
+
'userCreatedPane'
|
|
162
|
+
>;
|
|
163
163
|
events: {
|
|
164
164
|
[evt: string]: CustomEvent<any>;
|
|
165
165
|
};
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
2
|
declare const __propDef: {
|
|
3
|
-
props:
|
|
3
|
+
props: {
|
|
4
|
+
/**
|
|
5
|
+
* Horizontal position of the pane relative to the left edge of the window, in pixels.
|
|
6
|
+
*
|
|
7
|
+
* Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
|
|
8
|
+
* positioned on the page. (So-named because of its similarity to CSS `position` property.)
|
|
9
|
+
* @default `undefined` \
|
|
10
|
+
* 8 pixels from the right edge of the window.
|
|
11
|
+
* */
|
|
12
|
+
x?: number | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Vertical position of the pane relative to the top of the window, in pixels.
|
|
15
|
+
*
|
|
16
|
+
* Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
|
|
17
|
+
* positioned on the page. (So-named because of its similarity to CSS `position` property.)
|
|
18
|
+
* @default `undefined` \
|
|
19
|
+
* 8 pixels from the top edge of the window.
|
|
20
|
+
* */
|
|
21
|
+
y?: number | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Width of the pane, in pixels.
|
|
24
|
+
* @default `256`
|
|
25
|
+
* */
|
|
26
|
+
width?: number | undefined;
|
|
27
|
+
} & Omit<
|
|
4
28
|
{
|
|
5
29
|
/**
|
|
6
30
|
* Text in the pane's title bar.
|
|
@@ -74,31 +98,7 @@ declare const __propDef: {
|
|
|
74
98
|
tpPane?: import('tweakpane').Pane | undefined;
|
|
75
99
|
},
|
|
76
100
|
'userCreatedPane'
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Horizontal position of the pane relative to the left edge of the window, in pixels.
|
|
80
|
-
*
|
|
81
|
-
* Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
|
|
82
|
-
* positioned on the page. (So-named because of its similarity to CSS `position` property.)
|
|
83
|
-
* @default `undefined` \
|
|
84
|
-
* 8 pixels from the right edge of the window.
|
|
85
|
-
* */
|
|
86
|
-
x?: number | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* Vertical position of the pane relative to the top of the window, in pixels.
|
|
89
|
-
*
|
|
90
|
-
* Not to be confused with the `position` prop which defines _how_, not _where_, the pane is
|
|
91
|
-
* positioned on the page. (So-named because of its similarity to CSS `position` property.)
|
|
92
|
-
* @default `undefined` \
|
|
93
|
-
* 8 pixels from the top edge of the window.
|
|
94
|
-
* */
|
|
95
|
-
y?: number | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Width of the pane, in pixels.
|
|
98
|
-
* @default `256`
|
|
99
|
-
* */
|
|
100
|
-
width?: number | undefined;
|
|
101
|
-
};
|
|
101
|
+
>;
|
|
102
102
|
events: {
|
|
103
103
|
[evt: string]: CustomEvent<any>;
|
|
104
104
|
};
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
+
/**
|
|
5
|
+
* Width of the pane, in pixels.
|
|
6
|
+
*
|
|
7
|
+
* If undefined, the pane will fill the width of its container. (This behavior is unique to
|
|
8
|
+
* `position="inline"`.)
|
|
9
|
+
*
|
|
10
|
+
* This value is particularly important in combination with `scale`, since a scaled inline
|
|
11
|
+
* pane will grow indefinitely wider if an intrinsic width is not specified and a containing
|
|
12
|
+
* element is not provided.
|
|
13
|
+
* @default `undefined`
|
|
14
|
+
* */
|
|
15
|
+
width?: number | undefined;
|
|
16
|
+
} & {
|
|
4
17
|
/**
|
|
5
18
|
* Text in the pane's title bar.
|
|
6
19
|
* @default `Tweakpane` \
|
|
@@ -71,19 +84,6 @@ declare const __propDef: {
|
|
|
71
84
|
* @readonly
|
|
72
85
|
*/
|
|
73
86
|
tpPane?: import('tweakpane').Pane | undefined;
|
|
74
|
-
} & {
|
|
75
|
-
/**
|
|
76
|
-
* Width of the pane, in pixels.
|
|
77
|
-
*
|
|
78
|
-
* If undefined, the pane will fill the width of its container. (This behavior is unique to
|
|
79
|
-
* `position="inline"`.)
|
|
80
|
-
*
|
|
81
|
-
* This value is particularly important in combination with `scale`, since a scaled inline
|
|
82
|
-
* pane will grow indefinitely wider if an intrinsic width is not specified and a containing
|
|
83
|
-
* element is not provided.
|
|
84
|
-
* @default `undefined`
|
|
85
|
-
* */
|
|
86
|
-
width?: number | undefined;
|
|
87
87
|
};
|
|
88
88
|
events: {
|
|
89
89
|
[evt: string]: CustomEvent<any>;
|
|
@@ -20,96 +20,96 @@ declare const __propDef: {
|
|
|
20
20
|
* @default `undefined`
|
|
21
21
|
*/
|
|
22
22
|
end?: (() => void) | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
/**
|
|
25
|
+
* Lower bound of the FPS graph.
|
|
26
|
+
* @default `0`
|
|
27
|
+
* */
|
|
28
|
+
min?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Upper bound of the FPS graph.
|
|
31
|
+
* @default `90`
|
|
32
|
+
* */
|
|
33
|
+
max?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Function to start a single frame measurement sample.
|
|
36
|
+
*
|
|
37
|
+
* If undefined, a `requestAnimationFrame` is used to indicate the overall performance of
|
|
38
|
+
* the page.
|
|
39
|
+
* @default `undefined`
|
|
40
|
+
* */
|
|
41
|
+
begin?: (() => void) | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Function to end a single frame measurement sample.
|
|
44
|
+
*
|
|
45
|
+
* If undefined, a `requestAnimationFrame` is used to indicate the overall performance of
|
|
46
|
+
* the page.
|
|
47
|
+
* @default `undefined`
|
|
48
|
+
* */
|
|
49
|
+
end?: (() => void) | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Time in milliseconds between updates to the graph.
|
|
52
|
+
* @default `1000`
|
|
53
|
+
* */
|
|
54
|
+
interval?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Text displayed next to the FPS graph.
|
|
57
|
+
* @default `undefined`
|
|
58
|
+
* */
|
|
59
|
+
label?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Height of the FPS graph, in rows.
|
|
62
|
+
* @default `2`
|
|
63
|
+
* */
|
|
64
|
+
rows?: number | undefined;
|
|
23
65
|
} & Omit<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
* Lower bound of the FPS graph.
|
|
73
|
-
* @default `0`
|
|
74
|
-
* */
|
|
75
|
-
min?: number | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* Upper bound of the FPS graph.
|
|
78
|
-
* @default `90`
|
|
79
|
-
* */
|
|
80
|
-
max?: number | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Function to start a single frame measurement sample.
|
|
83
|
-
*
|
|
84
|
-
* If undefined, a `requestAnimationFrame` is used to indicate the overall performance of
|
|
85
|
-
* the page.
|
|
86
|
-
* @default `undefined`
|
|
87
|
-
* */
|
|
88
|
-
begin?: (() => void) | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* Function to end a single frame measurement sample.
|
|
91
|
-
*
|
|
92
|
-
* If undefined, a `requestAnimationFrame` is used to indicate the overall performance of
|
|
93
|
-
* the page.
|
|
94
|
-
* @default `undefined`
|
|
95
|
-
* */
|
|
96
|
-
end?: (() => void) | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* Time in milliseconds between updates to the graph.
|
|
99
|
-
* @default `1000`
|
|
100
|
-
* */
|
|
101
|
-
interval?: number | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* Text displayed next to the FPS graph.
|
|
104
|
-
* @default `undefined`
|
|
105
|
-
* */
|
|
106
|
-
label?: string | undefined;
|
|
107
|
-
/**
|
|
108
|
-
* Height of the FPS graph, in rows.
|
|
109
|
-
* @default `2`
|
|
110
|
-
* */
|
|
111
|
-
rows?: number | undefined;
|
|
112
|
-
};
|
|
66
|
+
{
|
|
67
|
+
/**
|
|
68
|
+
* Blade configuration exposing Tweakpane's internal
|
|
69
|
+
* [`BladeParams`](https://tweakpane.github.io/docs/api/interfaces/BaseBladeParams.html).
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
options: FpsGraphOptions;
|
|
73
|
+
/**
|
|
74
|
+
* Prevent interactivity and gray out the control.
|
|
75
|
+
* @default `false`
|
|
76
|
+
*/
|
|
77
|
+
disabled?: boolean | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Custom color scheme.
|
|
80
|
+
* @default `undefined` \
|
|
81
|
+
* Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
|
|
82
|
+
* set with `setGlobalDefaultTheme()`.
|
|
83
|
+
*/
|
|
84
|
+
theme?: import('..').Theme | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Reference to internal Tweakpane
|
|
87
|
+
* [`BladeApi`](https://tweakpane.github.io/docs/api/classes/BladeApi.html) for this blade.
|
|
88
|
+
*
|
|
89
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
90
|
+
* components wrapping `<Blade>`'s functionality.
|
|
91
|
+
*
|
|
92
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
93
|
+
*
|
|
94
|
+
* @bindable
|
|
95
|
+
* @readonly
|
|
96
|
+
*/
|
|
97
|
+
ref?: FpsGraphRef | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
|
|
100
|
+
* the `<Blade>`'s containing `<Pane>`.
|
|
101
|
+
*
|
|
102
|
+
* This property is exposed for advanced use cases only, such as when implementing convenience
|
|
103
|
+
* components wrapping `<Blade>`'s functionality in combination with a Tweakpane plugin.
|
|
104
|
+
*
|
|
105
|
+
* Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
|
|
106
|
+
*
|
|
107
|
+
* @default `undefined`
|
|
108
|
+
*/
|
|
109
|
+
plugin?: import('tweakpane').TpPluginBundle | undefined;
|
|
110
|
+
},
|
|
111
|
+
'ref' | 'options' | 'plugin'
|
|
112
|
+
>;
|
|
113
113
|
slots: {};
|
|
114
114
|
events: {
|
|
115
115
|
/**
|
|
@@ -198,7 +198,7 @@ export type FpsGraphSlots = typeof __propDef.slots;
|
|
|
198
198
|
* (x / gridSize) * phase +
|
|
199
199
|
* (y / gridSize) * phase}deg)"
|
|
200
200
|
* style:width="{100 / gridSize}%"
|
|
201
|
-
*
|
|
201
|
+
* ></div>
|
|
202
202
|
* {/each}
|
|
203
203
|
* {/each}
|
|
204
204
|
* </div>
|