svelte-tweakpane-ui 1.2.3 → 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.
Files changed (46) hide show
  1. package/dist/control/Button.svelte +1 -1
  2. package/dist/control/ButtonGrid.svelte.d.ts +30 -30
  3. package/dist/control/Checkbox.svelte.d.ts +8 -8
  4. package/dist/control/Color.svelte.d.ts +96 -96
  5. package/dist/control/CubicBezier.svelte.d.ts +41 -41
  6. package/dist/control/Image.svelte.d.ts +30 -30
  7. package/dist/control/IntervalSlider.svelte.d.ts +105 -95
  8. package/dist/control/List.svelte.d.ts +20 -20
  9. package/dist/control/Point.svelte +1 -1
  10. package/dist/control/Point.svelte.d.ts +115 -114
  11. package/dist/control/RadioGrid.svelte +1 -1
  12. package/dist/control/RadioGrid.svelte.d.ts +59 -59
  13. package/dist/control/Ring.svelte.d.ts +102 -107
  14. package/dist/control/RotationEuler.svelte +1 -1
  15. package/dist/control/RotationEuler.svelte.d.ts +106 -106
  16. package/dist/control/RotationQuaternion.svelte +1 -1
  17. package/dist/control/RotationQuaternion.svelte.d.ts +104 -104
  18. package/dist/control/Slider.svelte.d.ts +84 -84
  19. package/dist/control/Text.svelte.d.ts +24 -24
  20. package/dist/control/Textarea.svelte +1 -1
  21. package/dist/control/Textarea.svelte.d.ts +33 -33
  22. package/dist/control/Wheel.svelte.d.ts +97 -97
  23. package/dist/core/Binding.svelte +1 -1
  24. package/dist/core/Blade.svelte +1 -1
  25. package/dist/core/Pane.svelte.d.ts +295 -275
  26. package/dist/extra/AutoValue.svelte.d.ts +8 -8
  27. package/dist/extra/Element.svelte.d.ts +23 -23
  28. package/dist/internal/ClsPad.svelte +1 -1
  29. package/dist/internal/GenericBinding.svelte.d.ts +8 -8
  30. package/dist/internal/GenericBladeFolding.svelte.d.ts +24 -24
  31. package/dist/internal/GenericInput.svelte.d.ts +8 -8
  32. package/dist/internal/GenericInputFolding.svelte.d.ts +78 -78
  33. package/dist/internal/GenericMonitor.svelte.d.ts +76 -76
  34. package/dist/internal/GenericSlider.svelte.d.ts +76 -76
  35. package/dist/internal/InternalMonitorBoolean.svelte.d.ts +82 -82
  36. package/dist/internal/InternalMonitorNumber.svelte.d.ts +101 -101
  37. package/dist/internal/InternalMonitorString.svelte.d.ts +87 -87
  38. package/dist/internal/InternalPaneDraggable.svelte.d.ts +76 -76
  39. package/dist/internal/InternalPaneFixed.svelte.d.ts +26 -26
  40. package/dist/internal/InternalPaneInline.svelte.d.ts +13 -13
  41. package/dist/monitor/FpsGraph.svelte.d.ts +90 -90
  42. package/dist/monitor/Monitor.svelte.d.ts +233 -233
  43. package/dist/monitor/Profiler.svelte.d.ts +131 -131
  44. package/dist/monitor/WaveformMonitor.svelte.d.ts +104 -107
  45. package/dist/theme.d.ts +1 -1
  46. package/package.json +15 -16
@@ -1,80 +1,6 @@
1
1
  import { SvelteComponent } from 'svelte';
2
2
  declare const __propDef: {
3
- props: Omit<
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: Omit<
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
- * Blade configuration exposing Tweakpane's internal
27
- * [`BladeParams`](https://tweakpane.github.io/docs/api/interfaces/BaseBladeParams.html).
28
- *
29
- */
30
- options: FpsGraphOptions;
31
- /**
32
- * Prevent interactivity and gray out the control.
33
- * @default `false`
34
- */
35
- disabled?: boolean | undefined;
36
- /**
37
- * Custom color scheme.
38
- * @default `undefined` \
39
- * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
40
- * set with `setGlobalDefaultTheme()`.
41
- */
42
- theme?: import('..').Theme | undefined;
43
- /**
44
- * Reference to internal Tweakpane
45
- * [`BladeApi`](https://tweakpane.github.io/docs/api/classes/BladeApi.html) for this blade.
46
- *
47
- * This property is exposed for advanced use cases only, such as when implementing convenience
48
- * components wrapping `<Blade>`'s functionality.
49
- *
50
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
51
- *
52
- * @bindable
53
- * @readonly
54
- */
55
- ref?: FpsGraphRef | undefined;
56
- /**
57
- * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
58
- * the `<Blade>`'s containing `<Pane>`.
59
- *
60
- * This property is exposed for advanced use cases only, such as when implementing convenience
61
- * components wrapping `<Blade>`'s functionality in combination with a Tweakpane plugin.
62
- *
63
- * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
64
- *
65
- * @default `undefined`
66
- */
67
- plugin?: import('tweakpane').TpPluginBundle | undefined;
68
- },
69
- 'ref' | 'options' | 'plugin'
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>