svelte-tweakpane-ui 1.5.3 → 1.5.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 (103) hide show
  1. package/dist/control/Button.svelte +30 -30
  2. package/dist/control/Button.svelte.d.ts +18 -18
  3. package/dist/control/ButtonGrid.svelte +25 -25
  4. package/dist/control/ButtonGrid.svelte.d.ts +35 -35
  5. package/dist/control/Checkbox.svelte +2 -2
  6. package/dist/control/Checkbox.svelte.d.ts +23 -23
  7. package/dist/control/Color.svelte +34 -34
  8. package/dist/control/Color.svelte.d.ts +40 -40
  9. package/dist/control/CubicBezier.svelte +30 -30
  10. package/dist/control/CubicBezier.svelte.d.ts +47 -47
  11. package/dist/control/File.svelte +20 -20
  12. package/dist/control/File.svelte.d.ts +38 -38
  13. package/dist/control/Image.svelte +22 -22
  14. package/dist/control/Image.svelte.d.ts +31 -31
  15. package/dist/control/IntervalSlider.svelte +24 -24
  16. package/dist/control/IntervalSlider.svelte.d.ts +39 -39
  17. package/dist/control/List.svelte +35 -35
  18. package/dist/control/List.svelte.d.ts +31 -31
  19. package/dist/control/Point.svelte +31 -31
  20. package/dist/control/Point.svelte.d.ts +81 -81
  21. package/dist/control/RadioGrid.svelte +24 -24
  22. package/dist/control/RadioGrid.svelte.d.ts +40 -40
  23. package/dist/control/Ring.svelte +9 -9
  24. package/dist/control/Ring.svelte.d.ts +40 -40
  25. package/dist/control/RotationEuler.svelte +25 -25
  26. package/dist/control/RotationEuler.svelte.d.ts +53 -53
  27. package/dist/control/RotationQuaternion.svelte +24 -24
  28. package/dist/control/RotationQuaternion.svelte.d.ts +47 -47
  29. package/dist/control/Slider.svelte +9 -9
  30. package/dist/control/Slider.svelte.d.ts +32 -32
  31. package/dist/control/Stepper.svelte +16 -16
  32. package/dist/control/Stepper.svelte.d.ts +32 -32
  33. package/dist/control/Text.svelte +13 -13
  34. package/dist/control/Text.svelte.d.ts +26 -26
  35. package/dist/control/Textarea.svelte +34 -34
  36. package/dist/control/Textarea.svelte.d.ts +29 -29
  37. package/dist/control/Wheel.svelte +8 -8
  38. package/dist/control/Wheel.svelte.d.ts +32 -32
  39. package/dist/core/Binding.svelte +60 -60
  40. package/dist/core/Binding.svelte.d.ts +33 -33
  41. package/dist/core/Blade.svelte +30 -30
  42. package/dist/core/Blade.svelte.d.ts +21 -21
  43. package/dist/core/Folder.svelte +34 -34
  44. package/dist/core/Folder.svelte.d.ts +22 -22
  45. package/dist/core/Pane.svelte +17 -17
  46. package/dist/core/Pane.svelte.d.ts +56 -56
  47. package/dist/core/Separator.svelte +5 -5
  48. package/dist/core/Separator.svelte.d.ts +20 -20
  49. package/dist/core/TabGroup.svelte +29 -29
  50. package/dist/core/TabGroup.svelte.d.ts +18 -18
  51. package/dist/core/TabPage.svelte +36 -36
  52. package/dist/core/TabPage.svelte.d.ts +21 -21
  53. package/dist/extra/AutoObject.svelte +20 -20
  54. package/dist/extra/AutoObject.svelte.d.ts +22 -22
  55. package/dist/extra/AutoValue.svelte +3 -3
  56. package/dist/extra/AutoValue.svelte.d.ts +26 -26
  57. package/dist/extra/Element.svelte +10 -10
  58. package/dist/extra/Element.svelte.d.ts +26 -26
  59. package/dist/index.d.ts +48 -48
  60. package/dist/index.js +35 -35
  61. package/dist/internal/ClsPad.svelte +11 -11
  62. package/dist/internal/ClsPad.svelte.d.ts +17 -17
  63. package/dist/internal/GenericBinding.svelte +11 -11
  64. package/dist/internal/GenericBinding.svelte.d.ts +25 -25
  65. package/dist/internal/GenericBladeFolding.svelte +19 -19
  66. package/dist/internal/GenericBladeFolding.svelte.d.ts +20 -20
  67. package/dist/internal/GenericInput.svelte +7 -7
  68. package/dist/internal/GenericInput.svelte.d.ts +27 -27
  69. package/dist/internal/GenericInputFolding.svelte +21 -21
  70. package/dist/internal/GenericInputFolding.svelte.d.ts +32 -32
  71. package/dist/internal/GenericMonitor.svelte +10 -10
  72. package/dist/internal/GenericMonitor.svelte.d.ts +29 -29
  73. package/dist/internal/GenericPane.svelte +48 -48
  74. package/dist/internal/GenericPane.svelte.d.ts +22 -22
  75. package/dist/internal/GenericSlider.svelte +15 -15
  76. package/dist/internal/GenericSlider.svelte.d.ts +29 -29
  77. package/dist/internal/InternalMonitorBoolean.svelte +5 -5
  78. package/dist/internal/InternalMonitorBoolean.svelte.d.ts +31 -31
  79. package/dist/internal/InternalMonitorNumber.svelte +14 -14
  80. package/dist/internal/InternalMonitorNumber.svelte.d.ts +37 -37
  81. package/dist/internal/InternalMonitorString.svelte +9 -9
  82. package/dist/internal/InternalMonitorString.svelte.d.ts +32 -32
  83. package/dist/internal/InternalPaneDraggable.svelte +169 -173
  84. package/dist/internal/InternalPaneDraggable.svelte.d.ts +30 -30
  85. package/dist/internal/InternalPaneFixed.svelte +13 -13
  86. package/dist/internal/InternalPaneFixed.svelte.d.ts +23 -23
  87. package/dist/internal/InternalPaneInline.svelte +14 -14
  88. package/dist/internal/InternalPaneInline.svelte.d.ts +21 -21
  89. package/dist/monitor/FpsGraph.svelte +35 -35
  90. package/dist/monitor/FpsGraph.svelte.d.ts +50 -42
  91. package/dist/monitor/Monitor.svelte +4 -4
  92. package/dist/monitor/Monitor.svelte.d.ts +87 -88
  93. package/dist/monitor/Profiler.svelte +37 -37
  94. package/dist/monitor/Profiler.svelte.d.ts +78 -76
  95. package/dist/monitor/WaveformMonitor.svelte +12 -12
  96. package/dist/monitor/WaveformMonitor.svelte.d.ts +39 -39
  97. package/dist/theme.d.ts +61 -61
  98. package/dist/theme.js +49 -53
  99. package/dist/utils.d.ts +62 -66
  100. package/dist/utils.js +78 -78
  101. package/license.txt +1 -1
  102. package/package.json +100 -115
  103. package/readme.md +1 -1
@@ -1,22 +1,22 @@
1
1
  <script>
2
- import GenericPane from './GenericPane.svelte';
3
- import { removeKeys } from '../utils.js';
4
- export let expanded = void 0;
5
- export let x = void 0;
6
- export let y = void 0;
7
- export let width = void 0;
8
- export let title = 'Tweakpane';
9
- export let tpPane = void 0;
10
- let paneContainer;
11
- $: tpPane?.element.parentElement && (paneContainer = tpPane.element.parentElement);
2
+ import GenericPane from './GenericPane.svelte'
3
+ import { removeKeys } from '../utils.js'
4
+ export let expanded = void 0
5
+ export let x = void 0
6
+ export let y = void 0
7
+ export let width = void 0
8
+ export let title = 'Tweakpane'
9
+ export let tpPane = void 0
10
+ let paneContainer
11
+ $: tpPane?.element.parentElement && (paneContainer = tpPane.element.parentElement)
12
12
  $: paneContainer !== void 0 &&
13
13
  x !== void 0 &&
14
14
  (paneContainer.style.setProperty('right', 'unset'),
15
- paneContainer.style.setProperty('left', `${x}px`));
16
- $: paneContainer !== void 0 && y !== void 0 && paneContainer.style.setProperty('top', `${y}px`);
15
+ paneContainer.style.setProperty('left', `${x}px`))
16
+ $: paneContainer !== void 0 && y !== void 0 && paneContainer.style.setProperty('top', `${y}px`)
17
17
  $: paneContainer !== void 0 &&
18
18
  width !== void 0 &&
19
- paneContainer.style.setProperty('width', `${width}px`);
19
+ paneContainer.style.setProperty('width', `${width}px`)
20
20
  </script>
21
21
 
22
22
  <div style="display: none;">
@@ -1,4 +1,4 @@
1
- import { SvelteComponent } from 'svelte';
1
+ import { SvelteComponent } from 'svelte'
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  /**
@@ -9,7 +9,7 @@ declare const __propDef: {
9
9
  * @default `undefined` \
10
10
  * 8 pixels from the right edge of the window.
11
11
  * */
12
- x?: number;
12
+ x?: number
13
13
  /**
14
14
  * Vertical position of the pane relative to the top of the window, in pixels.
15
15
  *
@@ -18,12 +18,12 @@ declare const __propDef: {
18
18
  * @default `undefined` \
19
19
  * 8 pixels from the top edge of the window.
20
20
  * */
21
- y?: number;
21
+ y?: number
22
22
  /**
23
23
  * Width of the pane, in pixels.
24
24
  * @default `256`
25
25
  * */
26
- width?: number;
26
+ width?: number
27
27
  } & Omit<
28
28
  {
29
29
  /**
@@ -32,20 +32,20 @@ declare const __propDef: {
32
32
  * Unless `position="inline"`, in which case the default is `undefined` and no title bar is
33
33
  * shown.
34
34
  */
35
- title?: string | undefined;
35
+ title?: string | undefined
36
36
  /**
37
37
  * Allow users to interactively expand / contract the pane by clicking its title bar.
38
38
  *
39
39
  * Hides the collapse button from the title bar when `false`.
40
40
  * @default `true`
41
41
  */
42
- userExpandable?: boolean;
42
+ userExpandable?: boolean
43
43
  /**
44
44
  * Expand or collapse the pane into its title bar.
45
45
  * @default `true`
46
46
  * @bindable
47
47
  */
48
- expanded?: boolean;
48
+ expanded?: boolean
49
49
  /**
50
50
  * Custom color scheme.
51
51
  *
@@ -64,7 +64,7 @@ declare const __propDef: {
64
64
  * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
65
65
  * set with `setGlobalDefaultTheme()`.
66
66
  */
67
- theme?: import('..').Theme | undefined;
67
+ theme?: import('..').Theme | undefined
68
68
  /**
69
69
  * Scales the pane's elements by a factor of `scale` to make it easier to see.
70
70
  *
@@ -78,9 +78,9 @@ declare const __propDef: {
78
78
  * Negative values are ignored.
79
79
  * @default `1`
80
80
  */
81
- scale?: number;
81
+ scale?: number
82
82
  /** Internal use only. */
83
- userCreatedPane?: boolean;
83
+ userCreatedPane?: boolean
84
84
  /**
85
85
  * The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
86
86
  *
@@ -95,25 +95,25 @@ declare const __propDef: {
95
95
  * @bindable
96
96
  * @readonly
97
97
  */
98
- tpPane?: import('tweakpane').Pane | undefined;
98
+ tpPane?: import('tweakpane').Pane | undefined
99
99
  },
100
100
  'userCreatedPane'
101
- >;
101
+ >
102
102
  events: {
103
- [evt: string]: CustomEvent<any>;
104
- };
103
+ [evt: string]: CustomEvent<any>
104
+ }
105
105
  slots: {
106
106
  /**
107
107
  * Any Tweakpane component, except another `<Pane>`.
108
108
  */
109
- default: {};
110
- };
111
- exports?: {} | undefined;
112
- bindings?: string | undefined;
113
- };
114
- export type InternalPaneFixedProps = typeof __propDef.props;
115
- export type InternalPaneFixedEvents = typeof __propDef.events;
116
- export type InternalPaneFixedSlots = typeof __propDef.slots;
109
+ default: {}
110
+ }
111
+ exports?: {} | undefined
112
+ bindings?: string | undefined
113
+ }
114
+ export type InternalPaneFixedProps = typeof __propDef.props
115
+ export type InternalPaneFixedEvents = typeof __propDef.events
116
+ export type InternalPaneFixedSlots = typeof __propDef.slots
117
117
  /**
118
118
  * This component is for internal use only.
119
119
  *
@@ -127,4 +127,4 @@ export default class InternalPaneFixed extends SvelteComponent<
127
127
  InternalPaneFixedEvents,
128
128
  InternalPaneFixedSlots
129
129
  > {}
130
- export {};
130
+ export {}
@@ -1,25 +1,25 @@
1
1
  <script>
2
- import GenericPane from './GenericPane.svelte';
3
- import { removeKeys } from '../utils.js';
4
- import { onMount } from 'svelte';
5
- export let expanded = void 0;
6
- export let width = void 0;
7
- export let tpPane = void 0;
2
+ import GenericPane from './GenericPane.svelte'
3
+ import { removeKeys } from '../utils.js'
4
+ import { onMount } from 'svelte'
5
+ export let expanded = void 0
6
+ export let width = void 0
7
+ export let tpPane = void 0
8
8
  export let theme = {
9
9
  baseBorderRadius: '0px',
10
- baseShadowColor: 'hsla(0, 0%, 0%, 0)'
10
+ baseShadowColor: 'hsla(0, 0%, 0%, 0)',
11
11
  // BladeBorderRadius: '0px'
12
- };
13
- let containerElement;
12
+ }
13
+ let containerElement
14
14
  onMount(() => {
15
15
  if (tpPane) {
16
- const fixedContainer = tpPane.element.parentElement;
17
- containerElement.append(tpPane.element);
18
- fixedContainer?.remove();
16
+ const fixedContainer = tpPane.element.parentElement
17
+ containerElement.append(tpPane.element)
18
+ fixedContainer?.remove()
19
19
  } else {
20
- console.warn('tpPane is undefined');
20
+ console.warn('tpPane is undefined')
21
21
  }
22
- });
22
+ })
23
23
  </script>
24
24
 
25
25
  <div bind:this={containerElement} style:width={width === undefined ? null : `${width}px`}>
@@ -1,4 +1,4 @@
1
- import { SvelteComponent } from 'svelte';
1
+ import { SvelteComponent } from 'svelte'
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  /**
@@ -12,7 +12,7 @@ declare const __propDef: {
12
12
  * element is not provided.
13
13
  * @default `undefined`
14
14
  * */
15
- width?: number;
15
+ width?: number
16
16
  } & {
17
17
  /**
18
18
  * Text in the pane's title bar.
@@ -20,20 +20,20 @@ declare const __propDef: {
20
20
  * Unless `position="inline"`, in which case the default is `undefined` and no title bar is
21
21
  * shown.
22
22
  */
23
- title?: string | undefined;
23
+ title?: string | undefined
24
24
  /**
25
25
  * Allow users to interactively expand / contract the pane by clicking its title bar.
26
26
  *
27
27
  * Hides the collapse button from the title bar when `false`.
28
28
  * @default `true`
29
29
  */
30
- userExpandable?: boolean;
30
+ userExpandable?: boolean
31
31
  /**
32
32
  * Expand or collapse the pane into its title bar.
33
33
  * @default `true`
34
34
  * @bindable
35
35
  */
36
- expanded?: boolean;
36
+ expanded?: boolean
37
37
  /**
38
38
  * Custom color scheme.
39
39
  *
@@ -52,7 +52,7 @@ declare const __propDef: {
52
52
  * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
53
53
  * set with `setGlobalDefaultTheme()`.
54
54
  */
55
- theme?: import('..').Theme | undefined;
55
+ theme?: import('..').Theme | undefined
56
56
  /**
57
57
  * Scales the pane's elements by a factor of `scale` to make it easier to see.
58
58
  *
@@ -66,9 +66,9 @@ declare const __propDef: {
66
66
  * Negative values are ignored.
67
67
  * @default `1`
68
68
  */
69
- scale?: number;
69
+ scale?: number
70
70
  /** Internal use only. */
71
- userCreatedPane?: boolean;
71
+ userCreatedPane?: boolean
72
72
  /**
73
73
  * The internal Tweakpane [`Pane`](https://tweakpane.github.io/docs/api/classes/Pane.html) object.
74
74
  *
@@ -83,23 +83,23 @@ declare const __propDef: {
83
83
  * @bindable
84
84
  * @readonly
85
85
  */
86
- tpPane?: import('tweakpane').Pane | undefined;
87
- };
86
+ tpPane?: import('tweakpane').Pane | undefined
87
+ }
88
88
  events: {
89
- [evt: string]: CustomEvent<any>;
90
- };
89
+ [evt: string]: CustomEvent<any>
90
+ }
91
91
  slots: {
92
92
  /**
93
93
  * Any Tweakpane component, except another `<Pane>`.
94
94
  */
95
- default: {};
96
- };
97
- exports?: {} | undefined;
98
- bindings?: string | undefined;
99
- };
100
- export type InternalPaneInlineProps = typeof __propDef.props;
101
- export type InternalPaneInlineEvents = typeof __propDef.events;
102
- export type InternalPaneInlineSlots = typeof __propDef.slots;
95
+ default: {}
96
+ }
97
+ exports?: {} | undefined
98
+ bindings?: string | undefined
99
+ }
100
+ export type InternalPaneInlineProps = typeof __propDef.props
101
+ export type InternalPaneInlineEvents = typeof __propDef.events
102
+ export type InternalPaneInlineSlots = typeof __propDef.slots
103
103
  /**
104
104
  * This component is for internal use only.
105
105
  *
@@ -111,4 +111,4 @@ export default class InternalPaneInline extends SvelteComponent<
111
111
  InternalPaneInlineEvents,
112
112
  InternalPaneInlineSlots
113
113
  > {}
114
- export {};
114
+ export {}
@@ -1,64 +1,64 @@
1
1
  <script context="module"></script>
2
2
 
3
3
  <script>
4
- import Blade from '../core/Blade.svelte';
5
- import ClsPad from '../internal/ClsPad.svelte';
6
- import { fillWith } from '../utils';
7
- import * as pluginModule from '@kitschpatrol/tweakpane-plugin-essentials';
8
- import { BROWSER } from 'esm-env';
9
- import { createEventDispatcher, onDestroy, onMount } from 'svelte';
10
- export let rows = void 0;
11
- export let interval = void 0;
12
- export let max = void 0;
13
- export let min = void 0;
14
- export let label = void 0;
15
- let implicitMode = true;
4
+ import Blade from '../core/Blade.svelte'
5
+ import ClsPad from '../internal/ClsPad.svelte'
6
+ import { fillWith } from '../utils'
7
+ import * as pluginModule from '@kitschpatrol/tweakpane-plugin-essentials'
8
+ import { BROWSER } from 'esm-env'
9
+ import { createEventDispatcher, onDestroy, onMount } from 'svelte'
10
+ export let rows = void 0
11
+ export let interval = void 0
12
+ export let max = void 0
13
+ export let min = void 0
14
+ export let label = void 0
15
+ let implicitMode = true
16
16
  export function begin() {
17
- implicitMode = false;
18
- ref?.begin();
17
+ implicitMode = false
18
+ ref?.begin()
19
19
  }
20
20
  export function end() {
21
- implicitMode = false;
22
- ref?.end();
21
+ implicitMode = false
22
+ ref?.end()
23
23
  }
24
- let ref;
25
- let requestId;
26
- const dispatch = createEventDispatcher();
24
+ let ref
25
+ let requestId
26
+ const dispatch = createEventDispatcher()
27
27
  onMount(() => {
28
- startInternalLoop();
29
- });
28
+ startInternalLoop()
29
+ })
30
30
  onDestroy(() => {
31
- stopInternalLoop();
32
- });
31
+ stopInternalLoop()
32
+ })
33
33
  function startInternalLoop() {
34
- loop();
34
+ loop()
35
35
  }
36
36
  function loop() {
37
- ref?.end();
38
- ref?.begin();
39
- requestId = requestAnimationFrame(loop);
37
+ ref?.end()
38
+ ref?.begin()
39
+ requestId = requestAnimationFrame(loop)
40
40
  }
41
41
  function stopInternalLoop() {
42
- requestId && cancelAnimationFrame(requestId);
42
+ requestId && cancelAnimationFrame(requestId)
43
43
  }
44
44
  function addListeners() {
45
45
  ref.on('tick', () => {
46
46
  if (ref.fps !== null) {
47
- dispatch('change', ref.fps);
47
+ dispatch('change', ref.fps)
48
48
  }
49
- });
49
+ })
50
50
  }
51
- let options;
51
+ let options
52
52
  $: options = {
53
53
  min,
54
54
  max,
55
55
  interval,
56
56
  label,
57
57
  rows,
58
- view: 'fpsgraph'
59
- };
60
- $: ref !== void 0 && addListeners();
61
- $: !implicitMode && stopInternalLoop();
58
+ view: 'fpsgraph',
59
+ }
60
+ $: ref !== void 0 && addListeners()
61
+ $: !implicitMode && stopInternalLoop()
62
62
  </script>
63
63
 
64
64
  <Blade bind:ref {options} plugin={pluginModule} {...$$restProps} />
@@ -1,7 +1,7 @@
1
- import { SvelteComponent } from 'svelte';
2
- export type FpsGraphChangeEvent = CustomEvent<number>;
3
- import type { FpsGraphBladeApi as FpsGraphRef } from '@kitschpatrol/tweakpane-plugin-essentials';
4
- import type { FpsGraphBladeParams as FpsGraphOptions } from '@kitschpatrol/tweakpane-plugin-essentials/dist/types/fps-graph/plugin.js';
1
+ import { SvelteComponent } from 'svelte'
2
+ export type FpsGraphChangeEvent = CustomEvent<number>
3
+ import type { FpsGraphBladeApi as FpsGraphRef } from '@kitschpatrol/tweakpane-plugin-essentials'
4
+ import type { FpsGraphBladeParams as FpsGraphOptions } from '@kitschpatrol/tweakpane-plugin-essentials/dist/types/fps-graph/plugin.js'
5
5
  declare const __propDef: {
6
6
  props: {
7
7
  /**
@@ -11,7 +11,7 @@ declare const __propDef: {
11
11
  * the page.
12
12
  * @default `undefined`
13
13
  */
14
- begin?: () => void;
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;
22
+ end?: () => void
23
23
  } & ({
24
24
  /**
25
25
  * Lower bound of the FPS graph.
26
26
  * @default `0`
27
27
  * */
28
- min?: number;
28
+ min?: number
29
29
  /**
30
30
  * Upper bound of the FPS graph.
31
31
  * @default `90`
32
32
  * */
33
- max?: number;
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;
41
+ begin?: () => void
42
42
  /**
43
43
  * Function to end a single frame measurement sample.
44
44
  *
@@ -46,22 +46,22 @@ declare const __propDef: {
46
46
  * the page.
47
47
  * @default `undefined`
48
48
  * */
49
- end?: () => void;
49
+ end?: () => void
50
50
  /**
51
51
  * Time in milliseconds between updates to the graph.
52
52
  * @default `1000`
53
53
  * */
54
- interval?: number;
54
+ interval?: number
55
55
  /**
56
56
  * Text displayed next to the FPS graph.
57
57
  * @default `undefined`
58
58
  * */
59
- label?: string;
59
+ label?: string
60
60
  /**
61
61
  * Height of the FPS graph, in rows.
62
62
  * @default `2`
63
63
  * */
64
- rows?: number;
64
+ rows?: number
65
65
  } & Omit<
66
66
  {
67
67
  /**
@@ -69,19 +69,19 @@ declare const __propDef: {
69
69
  * [`BladeParams`](https://tweakpane.github.io/docs/api/interfaces/BaseBladeParams.html).
70
70
  *
71
71
  */
72
- options: FpsGraphOptions;
72
+ options: FpsGraphOptions
73
73
  /**
74
74
  * Prevent interactivity and gray out the control.
75
75
  * @default `false`
76
76
  */
77
- disabled?: boolean;
77
+ disabled?: boolean
78
78
  /**
79
79
  * Custom color scheme.
80
80
  * @default `undefined` \
81
81
  * Inherits default Tweakpane theme equivalent to `ThemeUtils.presets.standard`, or the theme
82
82
  * set with `setGlobalDefaultTheme()`.
83
83
  */
84
- theme?: import('..').Theme | undefined;
84
+ theme?: import('..').Theme | undefined
85
85
  /**
86
86
  * Reference to internal Tweakpane
87
87
  * [`BladeApi`](https://tweakpane.github.io/docs/api/classes/BladeApi.html) for this blade.
@@ -94,7 +94,7 @@ declare const __propDef: {
94
94
  * @bindable
95
95
  * @readonly
96
96
  */
97
- ref?: FpsGraphRef | undefined;
97
+ ref?: FpsGraphRef | undefined
98
98
  /**
99
99
  * Imported Tweakpane `TpPluginBundle` (aliased as `Plugin`) module to automatically register in
100
100
  * the `<Blade>`'s containing `<Pane>`.
@@ -106,11 +106,11 @@ declare const __propDef: {
106
106
  *
107
107
  * @default `undefined`
108
108
  */
109
- plugin?: import('../utils.js').Plugin | undefined;
109
+ plugin?: import('../utils.js').Plugin | undefined
110
110
  },
111
111
  'ref' | 'options' | 'plugin'
112
- >);
113
- slots: {};
112
+ >)
113
+ slots: {}
114
114
  events: {
115
115
  /**
116
116
  * Fires when the FPS value changes, passing the latest FPS measurement.
@@ -119,12 +119,12 @@ declare const __propDef: {
119
119
  * `event.detail` parameter.
120
120
  * @event
121
121
  * */
122
- change: FpsGraphChangeEvent;
123
- };
124
- };
125
- export type FpsGraphProps = typeof __propDef.props;
126
- export type FpsGraphEvents = typeof __propDef.events;
127
- export type FpsGraphSlots = typeof __propDef.slots;
122
+ change: FpsGraphChangeEvent
123
+ }
124
+ }
125
+ export type FpsGraphProps = typeof __propDef.props
126
+ export type FpsGraphEvents = typeof __propDef.events
127
+ export type FpsGraphSlots = typeof __propDef.slots
128
128
  /**
129
129
  * A control for monitoring and graphing frame rates over time.
130
130
  *
@@ -152,23 +152,31 @@ export type FpsGraphSlots = typeof __propDef.slots;
152
152
  * @example
153
153
  * ```svelte
154
154
  * <script lang="ts">
155
- * import { onMount } from 'svelte';
156
- * import { FpsGraph, Monitor, Slider } from 'svelte-tweakpane-ui';
155
+ * import { onMount } from 'svelte'
156
+ * import { FpsGraph, Monitor, Slider } from 'svelte-tweakpane-ui'
157
157
  *
158
- * let rotation = 0;
159
- * let rotationSpeed = 3;
160
- * let phase = 500;
161
- * let scale = 1.25;
162
- * let intensity = 4;
158
+ * let rotation = 0
159
+ * let rotationSpeed = 3
160
+ * let phase = 500
161
+ * let scale = 1.25
162
+ * let intensity = 4
163
163
  *
164
164
  * onMount(() => {
165
- * (function tick() {
166
- * rotation += rotationSpeed;
167
- * requestAnimationFrame(tick);
168
- * })();
169
- * });
165
+ * let animationFrameHandle: number
166
+ *
167
+ * function tick() {
168
+ * rotation += rotationSpeed
169
+ * animationFrameHandle = requestAnimationFrame(tick)
170
+ * }
171
+ *
172
+ * tick()
173
+ *
174
+ * return () => {
175
+ * cancelAnimationFrame(animationFrameHandle)
176
+ * }
177
+ * })
170
178
  *
171
- * $: gridSize = intensity ** 2;
179
+ * $: gridSize = intensity ** 2
172
180
  * </script>
173
181
  *
174
182
  * <FpsGraph interval={50} label="FPS" rows={5} />
@@ -232,7 +240,7 @@ export default class FpsGraph extends SvelteComponent<
232
240
  FpsGraphEvents,
233
241
  FpsGraphSlots
234
242
  > {
235
- get begin(): (() => void) & (() => void);
236
- get end(): (() => void) & (() => void);
243
+ get begin(): (() => void) & (() => void)
244
+ get end(): (() => void) & (() => void)
237
245
  }
238
- export {};
246
+ export {}
@@ -1,8 +1,8 @@
1
1
  <script generics="W extends number | string | boolean | unknown">
2
- import InternalMonitorBoolean from '../internal/InternalMonitorBoolean.svelte';
3
- import InternalMonitorNumber from '../internal/InternalMonitorNumber.svelte';
4
- import InternalMonitorString from '../internal/InternalMonitorString.svelte';
5
- export let value;
2
+ import InternalMonitorBoolean from '../internal/InternalMonitorBoolean.svelte'
3
+ import InternalMonitorNumber from '../internal/InternalMonitorNumber.svelte'
4
+ import InternalMonitorString from '../internal/InternalMonitorString.svelte'
5
+ export let value
6
6
  </script>
7
7
 
8
8
  {#if typeof value === 'number'}