svelte-tweakpane-ui 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/control/Button.svelte.d.ts +2 -2
  2. package/dist/control/ButtonGrid.svelte +1 -1
  3. package/dist/control/ButtonGrid.svelte.d.ts +5 -5
  4. package/dist/control/Checkbox.svelte.d.ts +2 -2
  5. package/dist/control/Color.svelte +1 -1
  6. package/dist/control/Color.svelte.d.ts +13 -13
  7. package/dist/control/CubicBezier.svelte +2 -2
  8. package/dist/control/CubicBezier.svelte.d.ts +7 -7
  9. package/dist/control/Image.svelte +1 -1
  10. package/dist/control/Image.svelte.d.ts +4 -4
  11. package/dist/control/IntervalSlider.svelte +1 -1
  12. package/dist/control/IntervalSlider.svelte.d.ts +9 -9
  13. package/dist/control/List.svelte.d.ts +3 -3
  14. package/dist/control/Point.svelte.d.ts +26 -26
  15. package/dist/control/RadioGrid.svelte +1 -1
  16. package/dist/control/RadioGrid.svelte.d.ts +7 -7
  17. package/dist/control/Ring.svelte +1 -1
  18. package/dist/control/Ring.svelte.d.ts +11 -11
  19. package/dist/control/RotationEuler.svelte +1 -1
  20. package/dist/control/RotationEuler.svelte.d.ts +13 -40
  21. package/dist/control/RotationQuaternion.svelte +1 -1
  22. package/dist/control/RotationQuaternion.svelte.d.ts +11 -47
  23. package/dist/control/Slider.svelte.d.ts +8 -8
  24. package/dist/control/Text.svelte.d.ts +3 -3
  25. package/dist/control/Textarea.svelte +1 -1
  26. package/dist/control/Textarea.svelte.d.ts +5 -5
  27. package/dist/control/Wheel.svelte +1 -1
  28. package/dist/control/Wheel.svelte.d.ts +9 -9
  29. package/dist/core/Binding.svelte.d.ts +4 -3
  30. package/dist/core/Blade.svelte.d.ts +3 -2
  31. package/dist/core/Folder.svelte.d.ts +4 -4
  32. package/dist/core/Pane.svelte.d.ts +27 -27
  33. package/dist/core/Separator.svelte.d.ts +2 -2
  34. package/dist/core/TabGroup.svelte.d.ts +2 -2
  35. package/dist/core/TabPage.svelte.d.ts +3 -3
  36. package/dist/extra/AutoObject.svelte +4 -4
  37. package/dist/extra/AutoObject.svelte.d.ts +1 -1
  38. package/dist/extra/AutoValue.svelte.d.ts +2 -2
  39. package/dist/extra/Element.svelte.d.ts +4 -4
  40. package/dist/index.d.ts +26 -26
  41. package/dist/internal/ClsPad.svelte.d.ts +3 -71
  42. package/dist/internal/GenericBinding.svelte.d.ts +2 -2
  43. package/dist/internal/GenericBladeFolding.svelte.d.ts +6 -6
  44. package/dist/internal/GenericInput.svelte.d.ts +2 -2
  45. package/dist/internal/GenericInputFolding.svelte.d.ts +6 -6
  46. package/dist/internal/GenericMonitor.svelte.d.ts +5 -5
  47. package/dist/internal/GenericPane.svelte.d.ts +4 -4
  48. package/dist/internal/GenericSlider.svelte.d.ts +8 -8
  49. package/dist/internal/InternalMonitorBoolean.svelte.d.ts +5 -5
  50. package/dist/internal/InternalMonitorNumber.svelte.d.ts +9 -9
  51. package/dist/internal/InternalMonitorString.svelte.d.ts +7 -7
  52. package/dist/internal/InternalPaneDraggable.svelte +1 -1
  53. package/dist/internal/InternalPaneDraggable.svelte.d.ts +14 -14
  54. package/dist/internal/InternalPaneFixed.svelte.d.ts +7 -7
  55. package/dist/internal/InternalPaneInline.svelte.d.ts +5 -5
  56. package/dist/monitor/FpsGraph.svelte +1 -1
  57. package/dist/monitor/FpsGraph.svelte.d.ts +57 -57
  58. package/dist/monitor/Monitor.svelte.d.ts +31 -31
  59. package/dist/monitor/Profiler.svelte +1 -1
  60. package/dist/monitor/Profiler.svelte.d.ts +61 -65
  61. package/dist/monitor/WaveformMonitor.svelte +1 -1
  62. package/dist/monitor/WaveformMonitor.svelte.d.ts +12 -12
  63. package/dist/theme.d.ts +2 -2
  64. package/dist/theme.js +1 -1
  65. package/package.json +43 -37
  66. package/readme.md +7 -0
@@ -11,7 +11,7 @@ declare const __propDef: {
11
11
  * the page.
12
12
  * @default `undefined`
13
13
  */
14
- begin?: (() => void) | undefined;
14
+ begin?: () => void;
15
15
  /**
16
16
  * Function to end a single frame measurement sample.
17
17
  *
@@ -19,18 +19,18 @@ declare const __propDef: {
19
19
  * the page.
20
20
  * @default `undefined`
21
21
  */
22
- end?: (() => void) | undefined;
23
- } & {
22
+ end?: () => void;
23
+ } & ({
24
24
  /**
25
25
  * Lower bound of the FPS graph.
26
26
  * @default `0`
27
27
  * */
28
- min?: number | undefined;
28
+ min?: number;
29
29
  /**
30
30
  * Upper bound of the FPS graph.
31
31
  * @default `90`
32
32
  * */
33
- max?: number | undefined;
33
+ max?: number;
34
34
  /**
35
35
  * Function to start a single frame measurement sample.
36
36
  *
@@ -38,7 +38,7 @@ declare const __propDef: {
38
38
  * the page.
39
39
  * @default `undefined`
40
40
  * */
41
- begin?: (() => void) | undefined;
41
+ begin?: () => void;
42
42
  /**
43
43
  * Function to end a single frame measurement sample.
44
44
  *
@@ -46,70 +46,70 @@ declare const __propDef: {
46
46
  * the page.
47
47
  * @default `undefined`
48
48
  * */
49
- end?: (() => void) | undefined;
49
+ end?: () => void;
50
50
  /**
51
51
  * Time in milliseconds between updates to the graph.
52
52
  * @default `1000`
53
53
  * */
54
- interval?: number | undefined;
54
+ interval?: number;
55
55
  /**
56
56
  * Text displayed next to the FPS graph.
57
57
  * @default `undefined`
58
58
  * */
59
- label?: string | undefined;
59
+ label?: string;
60
60
  /**
61
61
  * Height of the FPS graph, in rows.
62
62
  * @default `2`
63
63
  * */
64
- rows?: number | undefined;
64
+ rows?: number;
65
65
  } & Omit<
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
- >;
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;
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('../utils.js').Plugin | undefined;
110
+ },
111
+ 'ref' | 'options' | 'plugin'
112
+ >);
113
113
  slots: {};
114
114
  events: {
115
115
  /**
@@ -8,14 +8,14 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
8
8
  * @default `1` \
9
9
  * Or `64` if value is `number` and `graph` is `true`.
10
10
  */
11
- bufferSize?: number | undefined;
11
+ bufferSize?: number;
12
12
  /**
13
13
  * Time between value samples in milliseconds.
14
14
  *
15
15
  * Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
16
16
  * @default `0`
17
17
  */
18
- interval?: number | undefined;
18
+ interval?: number;
19
19
  /**
20
20
  * Number of visible rows of state history.
21
21
  *
@@ -24,7 +24,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
24
24
  * @default `1` \
25
25
  * Or `3` if value is `string` and `multiline` is `true`.
26
26
  */
27
- rows?: number | undefined;
27
+ rows?: number;
28
28
  } & {
29
29
  /**
30
30
  * A value to monitor.
@@ -44,7 +44,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
44
44
  * Prevent interactivity and gray out the control.
45
45
  * @default `false`
46
46
  */
47
- disabled?: boolean | undefined;
47
+ disabled?: boolean;
48
48
  /**
49
49
  * Text displayed next to control.
50
50
  * @default `undefined`
@@ -108,7 +108,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
108
108
  *
109
109
  * @default `undefined`
110
110
  */
111
- plugin?: import('tweakpane').TpPluginBundle | undefined;
111
+ plugin?: import('..').Plugin | undefined;
112
112
  },
113
113
  'object' | 'key'
114
114
  >,
@@ -127,7 +127,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
127
127
  * Display multiline strings.
128
128
  * @default `false`
129
129
  */
130
- multiline?: boolean | undefined;
130
+ multiline?: boolean;
131
131
  } & Omit<
132
132
  {
133
133
  /**
@@ -135,14 +135,14 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
135
135
  * @default `1` \
136
136
  * Or `64` if value is `number` and `graph` is `true`.
137
137
  */
138
- bufferSize?: number | undefined;
138
+ bufferSize?: number;
139
139
  /**
140
140
  * Time between value samples in milliseconds.
141
141
  *
142
142
  * Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
143
143
  * @default `0`
144
144
  */
145
- interval?: number | undefined;
145
+ interval?: number;
146
146
  /**
147
147
  * Number of visible rows of state history.
148
148
  *
@@ -151,7 +151,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
151
151
  * @default `1` \
152
152
  * Or `3` if value is `string` and `multiline` is `true`.
153
153
  */
154
- rows?: number | undefined;
154
+ rows?: number;
155
155
  } & {
156
156
  /**
157
157
  * A value to monitor.
@@ -171,7 +171,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
171
171
  * Prevent interactivity and gray out the control.
172
172
  * @default `false`
173
173
  */
174
- disabled?: boolean | undefined;
174
+ disabled?: boolean;
175
175
  /**
176
176
  * Text displayed next to control.
177
177
  * @default `undefined`
@@ -225,7 +225,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
225
225
  *
226
226
  * @default `undefined`
227
227
  */
228
- plugin?: import('tweakpane').TpPluginBundle | undefined;
228
+ plugin?: import('..').Plugin | undefined;
229
229
  },
230
230
  'object' | 'key'
231
231
  >,
@@ -245,14 +245,14 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
245
245
  * @default `1` \
246
246
  * Or `64` if value is `number` and `graph` is `true`.
247
247
  */
248
- bufferSize?: number | undefined;
248
+ bufferSize?: number;
249
249
  /**
250
250
  * Time between value samples in milliseconds.
251
251
  *
252
252
  * Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
253
253
  * @default `0`
254
254
  */
255
- interval?: number | undefined;
255
+ interval?: number;
256
256
  /**
257
257
  * Number of visible rows of state history.
258
258
  *
@@ -261,7 +261,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
261
261
  * @default `1` \
262
262
  * Or `3` if value is `string` and `multiline` is `true`.
263
263
  */
264
- rows?: number | undefined;
264
+ rows?: number;
265
265
  } & {
266
266
  /**
267
267
  * A value to monitor.
@@ -281,7 +281,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
281
281
  * Prevent interactivity and gray out the control.
282
282
  * @default `false`
283
283
  */
284
- disabled?: boolean | undefined;
284
+ disabled?: boolean;
285
285
  /**
286
286
  * Text displayed next to control.
287
287
  * @default `undefined`
@@ -335,7 +335,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
335
335
  *
336
336
  * @default `undefined`
337
337
  */
338
- plugin?: import('tweakpane').TpPluginBundle | undefined;
338
+ plugin?: import('..').Plugin | undefined;
339
339
  },
340
340
  'object' | 'key'
341
341
  >,
@@ -352,23 +352,23 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
352
352
  * Minimum bound when `graph` is true.
353
353
  * @default `0`
354
354
  */
355
- min?: number | undefined;
355
+ min?: number;
356
356
  /**
357
357
  * Maximum bound when `graph` is true.
358
358
  * @default `100`
359
359
  */
360
- max?: number | undefined;
360
+ max?: number;
361
361
  /**
362
362
  * A function to customize the number's string representation (e.g. rounding, etc.).
363
363
  * @default `undefined` \
364
364
  * Normal `.toString()` formatting.
365
365
  */
366
- format?: ((value: number) => string) | undefined;
366
+ format?: (value: number) => string;
367
367
  /**
368
368
  * Display a graph of the value's changes over time.
369
369
  * @default `false`
370
370
  */
371
- graph?: boolean | undefined;
371
+ graph?: boolean;
372
372
  } & Omit<
373
373
  {
374
374
  /**
@@ -376,14 +376,14 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
376
376
  * @default `1` \
377
377
  * Or `64` if value is `number` and `graph` is `true`.
378
378
  */
379
- bufferSize?: number | undefined;
379
+ bufferSize?: number;
380
380
  /**
381
381
  * Time between value samples in milliseconds.
382
382
  *
383
383
  * Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
384
384
  * @default `0`
385
385
  */
386
- interval?: number | undefined;
386
+ interval?: number;
387
387
  /**
388
388
  * Number of visible rows of state history.
389
389
  *
@@ -392,7 +392,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
392
392
  * @default `1` \
393
393
  * Or `3` if value is `string` and `multiline` is `true`.
394
394
  */
395
- rows?: number | undefined;
395
+ rows?: number;
396
396
  } & {
397
397
  /**
398
398
  * A value to monitor.
@@ -412,7 +412,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
412
412
  * Prevent interactivity and gray out the control.
413
413
  * @default `false`
414
414
  */
415
- disabled?: boolean | undefined;
415
+ disabled?: boolean;
416
416
  /**
417
417
  * Text displayed next to control.
418
418
  * @default `undefined`
@@ -466,7 +466,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
466
466
  *
467
467
  * @default `undefined`
468
468
  */
469
- plugin?: import('tweakpane').TpPluginBundle | undefined;
469
+ plugin?: import('..').Plugin | undefined;
470
470
  },
471
471
  'object' | 'key'
472
472
  >,
@@ -477,7 +477,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
477
477
  * A value to monitor.
478
478
  * @bindable
479
479
  * */
480
- value: string | number | boolean;
480
+ value: boolean | number | string;
481
481
  }
482
482
  : never
483
483
  : never)
@@ -488,14 +488,14 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
488
488
  * @default `1` \
489
489
  * Or `64` if value is `number` and `graph` is `true`.
490
490
  */
491
- bufferSize?: number | undefined;
491
+ bufferSize?: number;
492
492
  /**
493
493
  * Time between value samples in milliseconds.
494
494
  *
495
495
  * Useful when `graph` is true. Defaults to reactive value updates only (`interval={0}`).
496
496
  * @default `0`
497
497
  */
498
- interval?: number | undefined;
498
+ interval?: number;
499
499
  /**
500
500
  * Number of visible rows of state history.
501
501
  *
@@ -504,7 +504,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
504
504
  * @default `1` \
505
505
  * Or `3` if value is `string` and `multiline` is `true`.
506
506
  */
507
- rows?: number | undefined;
507
+ rows?: number;
508
508
  } & {
509
509
  /**
510
510
  * A value to monitor.
@@ -525,7 +525,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
525
525
  * Prevent interactivity and gray out the control.
526
526
  * @default `false`
527
527
  */
528
- disabled?: boolean | undefined;
528
+ disabled?: boolean;
529
529
  /**
530
530
  * Text displayed next to control.
531
531
  * @default `undefined`
@@ -581,7 +581,7 @@ declare class __sveltets_Render<W extends number | string | boolean | unknown> {
581
581
  *
582
582
  * @default `undefined`
583
583
  */
584
- plugin?: import('tweakpane').TpPluginBundle | undefined;
584
+ plugin?: import('..').Plugin | undefined;
585
585
  },
586
586
  'object' | 'key'
587
587
  >,
@@ -1,10 +1,10 @@
1
1
  <script context="module"></script>
2
2
 
3
3
  <script>
4
- import * as pluginModule from '@kitschpatrol/tweakpane-plugin-profiler';
5
4
  import Blade from '../core/Blade.svelte';
6
5
  import ClsPad from '../internal/ClsPad.svelte';
7
6
  import { fillWith } from '../utils';
7
+ import * as pluginModule from '@kitschpatrol/tweakpane-plugin-profiler';
8
8
  import { BROWSER } from 'esm-env';
9
9
  import { createEventDispatcher, onDestroy } from 'svelte';
10
10
  function _measure(name, functionToMeasure) {
@@ -1,6 +1,6 @@
1
1
  import { SvelteComponent } from 'svelte';
2
- import type { ProfilerBladeMeasureHandler } from '@kitschpatrol/tweakpane-plugin-profiler';
3
2
  import type { Simplify } from '../utils';
3
+ import type { ProfilerBladeMeasureHandler } from '@kitschpatrol/tweakpane-plugin-profiler';
4
4
  export type ProfilerCalcMode = 'frame' | 'mean' | 'median';
5
5
  export type ProfilerMeasure = (name: string, functionToMeasure: () => void) => void;
6
6
  export type ProfilerMeasureAsync = (
@@ -36,13 +36,13 @@ declare const __propDef: {
36
36
  * @default `undefined`
37
37
  */
38
38
  measureAsync?: ProfilerMeasureAsync | undefined;
39
- } & {
39
+ } & ({
40
40
  /**
41
41
  * Number of duration samples from which to calculate the delta value when `calcMode` is
42
42
  * `'mean'` or `'median'`.
43
43
  * @default `30`
44
44
  */
45
- bufferSize?: number | undefined;
45
+ bufferSize?: number;
46
46
  /**
47
47
  * How to calculate the delta value.
48
48
  *
@@ -50,7 +50,7 @@ declare const __propDef: {
50
50
  * calculated from the samples in the buffer.
51
51
  * @default `'mean'`
52
52
  */
53
- calcMode?: ProfilerCalcMode | undefined;
53
+ calcMode?: ProfilerCalcMode;
54
54
  /**
55
55
  * Label suffix for the delta values shown in the control.
56
56
  *
@@ -58,12 +58,12 @@ declare const __propDef: {
58
58
  * measuring something other than time.
59
59
  * @default `'ms'`
60
60
  * */
61
- deltaUnit?: string | undefined;
61
+ deltaUnit?: string;
62
62
  /**
63
63
  * Precision of the delta values shown in the control.
64
64
  * @default `2`
65
65
  */
66
- fractionDigits?: number | undefined;
66
+ fractionDigits?: number;
67
67
  /**
68
68
  * Milliseconds between updates to the profiler visualization and delta label text.
69
69
  *
@@ -71,12 +71,12 @@ declare const __propDef: {
71
71
  * is determined by your calls to the bound `measure` function.
72
72
  * @default `500`
73
73
  */
74
- interval?: number | undefined;
74
+ interval?: number;
75
75
  /**
76
76
  * Text displayed next to the profiler visualization.
77
77
  * @default `undefined`
78
78
  * */
79
- label?: string | undefined;
79
+ label?: string;
80
80
  /**
81
81
  * Function handle that wraps another function to measure its execution duration.
82
82
  *
@@ -89,7 +89,7 @@ declare const __propDef: {
89
89
  * @readonly
90
90
  * @default `undefined`
91
91
  */
92
- measure?: ProfilerMeasure | undefined;
92
+ measure?: ProfilerMeasure;
93
93
  /**
94
94
  * Async variation of function handle that wraps another function to measure its execution
95
95
  * duration.
@@ -101,7 +101,7 @@ declare const __propDef: {
101
101
  * @readonly
102
102
  * @default `undefined`
103
103
  */
104
- measureAsync?: ProfilerMeasureAsync | undefined;
104
+ measureAsync?: ProfilerMeasureAsync;
105
105
  /**
106
106
  * Function wrapping the `measure` function.
107
107
  *
@@ -109,65 +109,61 @@ declare const __propDef: {
109
109
  * @default [`new
110
110
  * ProfilerBladeDefaultMeasureHandler()`](https://github.com/kitschpatrol/tweakpane-plugin-profiler/blob/dev/src/ProfilerBladeDefaultMeasureHandler.ts)
111
111
  */
112
- measureHandler?:
113
- | {
114
- measureStart: () => () => number | Promise<number>;
115
- }
116
- | undefined;
112
+ measureHandler?: ProfilerMeasureHandler;
117
113
  /**
118
114
  * Determines the horizontal scale and color mapping of the profiler visualization bars.
119
115
  * @default `16.67` \
120
116
  * 60fps.
121
117
  */
122
- targetDelta?: number | undefined;
118
+ targetDelta?: number;
123
119
  } & Omit<
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
- >;
120
+ {
121
+ /**
122
+ * Blade configuration exposing Tweakpane's internal
123
+ * [`BladeParams`](https://tweakpane.github.io/docs/api/interfaces/BaseBladeParams.html).
124
+ *
125
+ */
126
+ options: ProfilerOptions;
127
+ /**
128
+ * Prevent interactivity and gray out the control.
129
+ * @default `false`
130
+ */
131
+ disabled?: boolean;
132
+ /**
133
+ * Custom color scheme.
134
+ * @default `undefined` \
135
+ * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
136
+ * set with `setGlobalDefaultTheme()`.
137
+ */
138
+ theme?: import('..').Theme | undefined;
139
+ /**
140
+ * Reference to internal Tweakpane
141
+ * [`BladeApi`](https://tweakpane.github.io/docs/api/classes/BladeApi.html) for this blade.
142
+ *
143
+ * This property is exposed for advanced use cases only, such as when implementing convenience
144
+ * components wrapping `<Blade>`'s functionality.
145
+ *
146
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
147
+ *
148
+ * @bindable
149
+ * @readonly
150
+ */
151
+ ref?: ProfilerRef | undefined;
152
+ /**
153
+ * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
154
+ * the `<Blade>`'s containing `<Pane>`.
155
+ *
156
+ * This property is exposed for advanced use cases only, such as when implementing convenience
157
+ * components wrapping `<Blade>`'s functionality in combination with a Tweakpane plugin.
158
+ *
159
+ * Direct manipulation of Tweakpane's internals can break _Svelte Tweakpane UI_ abstractions.
160
+ *
161
+ * @default `undefined`
162
+ */
163
+ plugin?: import('../utils').Plugin | undefined;
164
+ },
165
+ 'ref' | 'options' | 'plugin'
166
+ >);
171
167
  slots: {};
172
168
  events: {
173
169
  /**
@@ -189,8 +185,8 @@ export type ProfilerSlots = typeof __propDef.slots;
189
185
  * Configured to measure a function's execution duration by default, but can be customized to measure
190
186
  * anything.
191
187
  *
192
- * Integrates [kitschpatrol's](https://kitschpatrol.com)
193
- * [tweakpane-plugin-profiler](https://github.com/kitschpatrol/tweakpane-plugin-profiler).
188
+ * Integrates [0b5vr's](https://0b5vr.com)
189
+ * [tweakpane-plugin-profiler](https://github.com/0b5vr/tweakpane-plugin-profiler).
194
190
  *
195
191
  * See `<FpsGraph>` for a simpler alternative optimized for framerate visualization.
196
192
  *
@@ -1,10 +1,10 @@
1
1
  <script context="module"></script>
2
2
 
3
3
  <script>
4
- import * as pluginModule from '@kitschpatrol/tweakpane-plugin-waveform';
5
4
  import ClsPad from '../internal/ClsPad.svelte';
6
5
  import GenericMonitor from '../internal/GenericMonitor.svelte';
7
6
  import { fillWith } from '../utils';
7
+ import * as pluginModule from '@kitschpatrol/tweakpane-plugin-waveform';
8
8
  import { BROWSER } from 'esm-env';
9
9
  export let value;
10
10
  export let max = void 0;