svelte-tweakpane-ui 1.2.4 → 1.2.6
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/ButtonGrid.svelte +1 -1
- package/dist/control/ButtonGrid.svelte.d.ts +4 -2
- package/dist/control/CubicBezier.svelte +2 -2
- package/dist/control/CubicBezier.svelte.d.ts +3 -7
- package/dist/control/Image.svelte +1 -1
- package/dist/control/Image.svelte.d.ts +12 -10
- package/dist/control/IntervalSlider.svelte +1 -1
- package/dist/control/IntervalSlider.svelte.d.ts +3 -11
- package/dist/control/RadioGrid.svelte +1 -1
- package/dist/control/RadioGrid.svelte.d.ts +2 -0
- package/dist/control/Ring.svelte +1 -1
- package/dist/control/Ring.svelte.d.ts +3 -1
- package/dist/control/RotationEuler.svelte +1 -1
- package/dist/control/RotationEuler.svelte.d.ts +7 -6
- package/dist/control/RotationQuaternion.svelte +1 -1
- package/dist/control/RotationQuaternion.svelte.d.ts +5 -4
- package/dist/control/Textarea.svelte +1 -1
- package/dist/control/Textarea.svelte.d.ts +3 -1
- package/dist/control/Wheel.svelte +1 -1
- package/dist/control/Wheel.svelte.d.ts +2 -0
- package/dist/core/Folder.svelte.d.ts +4 -1
- package/dist/internal/InternalPaneDraggable.svelte +79 -42
- package/dist/monitor/FpsGraph.svelte +1 -1
- package/dist/monitor/FpsGraph.svelte.d.ts +4 -2
- package/dist/monitor/Monitor.svelte.d.ts +539 -418
- package/dist/monitor/Profiler.svelte +1 -1
- package/dist/monitor/Profiler.svelte.d.ts +8 -6
- package/dist/monitor/WaveformMonitor.svelte +1 -1
- package/dist/monitor/WaveformMonitor.svelte.d.ts +3 -1
- package/package.json +25 -25
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
-
import * as pluginModule from '@
|
|
4
|
+
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-profiler';
|
|
5
5
|
import Blade from '../core/Blade.svelte';
|
|
6
6
|
import ClsPad from '../internal/ClsPad.svelte';
|
|
7
7
|
import { fillWith } from '../utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
|
-
import type { ProfilerBladeMeasureHandler } from '@
|
|
2
|
+
import type { ProfilerBladeMeasureHandler } from '@kitschpatrol/tweakpane-plugin-profiler';
|
|
3
3
|
import type { Simplify } from '../utils';
|
|
4
4
|
export type ProfilerCalcMode = 'frame' | 'mean' | 'median';
|
|
5
5
|
export type ProfilerMeasure = (name: string, functionToMeasure: () => void) => void;
|
|
@@ -9,8 +9,8 @@ export type ProfilerMeasureAsync = (
|
|
|
9
9
|
) => Promise<void>;
|
|
10
10
|
export type ProfilerMeasureHandler = Simplify<ProfilerBladeMeasureHandler>;
|
|
11
11
|
export type ProfilerChangeEvent = CustomEvent<number>;
|
|
12
|
-
import type { ProfilerBladeApi as ProfilerRef } from '@
|
|
13
|
-
import type { ProfilerBladePluginParams as ProfilerOptions } from '@
|
|
12
|
+
import type { ProfilerBladeApi as ProfilerRef } from '@kitschpatrol/tweakpane-plugin-profiler/dist/types/ProfilerBladeApi.js';
|
|
13
|
+
import type { ProfilerBladePluginParams as ProfilerOptions } from '@kitschpatrol/tweakpane-plugin-profiler/dist/types/ProfilerBladePluginParams.js';
|
|
14
14
|
declare const __propDef: {
|
|
15
15
|
props: {
|
|
16
16
|
/**
|
|
@@ -107,7 +107,7 @@ declare const __propDef: {
|
|
|
107
107
|
*
|
|
108
108
|
* The default is fine for most cases when you want to measure a temporal duration.
|
|
109
109
|
* @default [`new
|
|
110
|
-
* ProfilerBladeDefaultMeasureHandler()`](https://github.com/
|
|
110
|
+
* ProfilerBladeDefaultMeasureHandler()`](https://github.com/kitschpatrol/tweakpane-plugin-profiler/blob/dev/src/ProfilerBladeDefaultMeasureHandler.ts)
|
|
111
111
|
*/
|
|
112
112
|
measureHandler?:
|
|
113
113
|
| {
|
|
@@ -189,14 +189,16 @@ export type ProfilerSlots = typeof __propDef.slots;
|
|
|
189
189
|
* Configured to measure a function's execution duration by default, but can be customized to measure
|
|
190
190
|
* anything.
|
|
191
191
|
*
|
|
192
|
-
* Integrates [
|
|
193
|
-
* [tweakpane-plugin-profiler](https://github.com/
|
|
192
|
+
* Integrates [kitschpatrol's](https://kitschpatrol.com)
|
|
193
|
+
* [tweakpane-plugin-profiler](https://github.com/kitschpatrol/tweakpane-plugin-profiler).
|
|
194
194
|
*
|
|
195
195
|
* See `<FpsGraph>` for a simpler alternative optimized for framerate visualization.
|
|
196
196
|
*
|
|
197
197
|
* Usage outside of a `<Pane>` component will implicitly wrap the profiler in `<Pane
|
|
198
198
|
* position="inline">`.
|
|
199
199
|
*
|
|
200
|
+
* Note that _Svelte Tweakpane UI_ embeds a functionally identical [fork](https://github.com/kitschpatrol/tweakpane-plugin-profiler) of the plugin with build optimizations.
|
|
201
|
+
*
|
|
200
202
|
* @example
|
|
201
203
|
* ```svelte
|
|
202
204
|
* <script lang="ts">
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script context="module"></script>
|
|
2
2
|
|
|
3
3
|
<script>
|
|
4
|
+
import * as pluginModule from '@kitschpatrol/tweakpane-plugin-waveform';
|
|
4
5
|
import ClsPad from '../internal/ClsPad.svelte';
|
|
5
6
|
import GenericMonitor from '../internal/GenericMonitor.svelte';
|
|
6
7
|
import { fillWith } from '../utils';
|
|
7
8
|
import { BROWSER } from 'esm-env';
|
|
8
|
-
import * as pluginModule from 'tweakpane-plugin-waveform';
|
|
9
9
|
export let value;
|
|
10
10
|
export let max = void 0;
|
|
11
11
|
export let min = void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from 'svelte';
|
|
2
2
|
export type WaveformMonitorValue = Uint8Array | Uint16Array | Uint32Array | number[];
|
|
3
|
-
import type { WaveformStyles as WaveformMonitorLineStyle } from 'tweakpane-plugin-waveform/dist/types/view/waveform.js';
|
|
3
|
+
import type { WaveformStyles as WaveformMonitorLineStyle } from '@kitschpatrol/tweakpane-plugin-waveform/dist/types/view/waveform.js';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
6
|
/**
|
|
@@ -149,6 +149,8 @@ export type WaveformMonitorSlots = typeof __propDef.slots;
|
|
|
149
149
|
* Usage outside of a `<Pane>` component will implicitly wrap the waveform monitor in `<Pane
|
|
150
150
|
* position="inline">`.
|
|
151
151
|
*
|
|
152
|
+
* Note that _Svelte Tweakpane UI_ embeds a functionally identical [fork](https://github.com/kitschpatrol/tweakpane-plugin-waveform) of the plugin with build optimizations.
|
|
153
|
+
*
|
|
152
154
|
* @example
|
|
153
155
|
* ```svelte
|
|
154
156
|
* <script lang="ts">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-tweakpane-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Svelte component library wrapping UI elements from Tweakpane, plus some additional functionality for convenience and flexibility.",
|
|
6
6
|
"repository": {
|
|
@@ -184,58 +184,58 @@
|
|
|
184
184
|
"svelte": "^4.0.0"
|
|
185
185
|
},
|
|
186
186
|
"dependencies": {
|
|
187
|
-
"@
|
|
188
|
-
"@
|
|
189
|
-
"@kitschpatrol/tweakpane-image
|
|
190
|
-
"@
|
|
187
|
+
"@kitschpatrol/tweakpane-plugin-camerakit": "^0.3.0",
|
|
188
|
+
"@kitschpatrol/tweakpane-plugin-essentials": "^0.2.1",
|
|
189
|
+
"@kitschpatrol/tweakpane-plugin-image": "^2.0.0",
|
|
190
|
+
"@kitschpatrol/tweakpane-plugin-profiler": "^0.4.1",
|
|
191
|
+
"@kitschpatrol/tweakpane-plugin-rotation": "^0.2.0",
|
|
192
|
+
"@kitschpatrol/tweakpane-plugin-textarea": "^2.0.0",
|
|
193
|
+
"@kitschpatrol/tweakpane-plugin-waveform": "^1.0.3",
|
|
191
194
|
"@tweakpane/core": "2.0.3",
|
|
192
|
-
"@tweakpane/plugin-camerakit": "0.3.0",
|
|
193
|
-
"@tweakpane/plugin-essentials": "0.2.1",
|
|
194
195
|
"esm-env": "1.0.0",
|
|
195
196
|
"fast-copy": "3.0.1",
|
|
196
197
|
"fast-equals": "5.0.1",
|
|
197
198
|
"nanoid": "5.0.6",
|
|
198
199
|
"svelte-local-storage-store": "0.6.4",
|
|
199
|
-
"tweakpane": "4.0.3"
|
|
200
|
-
"tweakpane-plugin-waveform": "1.0.0"
|
|
200
|
+
"tweakpane": "4.0.3"
|
|
201
201
|
},
|
|
202
202
|
"devDependencies": {
|
|
203
203
|
"@kitschpatrol/shared-config": "^4.6.3",
|
|
204
204
|
"@phenomnomnominal/tsquery": "^6.1.3",
|
|
205
|
-
"@playwright/test": "^1.
|
|
205
|
+
"@playwright/test": "^1.44.0",
|
|
206
206
|
"@stkb/rewrap": "^0.1.0",
|
|
207
207
|
"@sveltejs/adapter-static": "^3.0.1",
|
|
208
|
-
"@sveltejs/kit": "^2.5.
|
|
208
|
+
"@sveltejs/kit": "^2.5.8",
|
|
209
209
|
"@sveltejs/package": "^2.3.1",
|
|
210
210
|
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
|
211
211
|
"@types/eslint": "^8.56.10",
|
|
212
212
|
"@types/fs-extra": "^11.0.4",
|
|
213
|
-
"@types/node": "^20.12.
|
|
214
|
-
"bumpp": "^9.4.
|
|
213
|
+
"@types/node": "^20.12.11",
|
|
214
|
+
"bumpp": "^9.4.1",
|
|
215
215
|
"eslint": "^8.57.0",
|
|
216
216
|
"fs-extra": "^11.2.0",
|
|
217
|
-
"glob": "^10.3.
|
|
217
|
+
"glob": "^10.3.15",
|
|
218
218
|
"npm-run-all": "^4.1.5",
|
|
219
|
-
"postcss-html": "^1.
|
|
219
|
+
"postcss-html": "^1.7.0",
|
|
220
220
|
"publint": "^0.2.7",
|
|
221
221
|
"read-package-up": "^11.0.0",
|
|
222
|
-
"svelte": "^4.2.
|
|
223
|
-
"svelte-check": "^3.
|
|
224
|
-
"svelte-language-server": "^0.16.
|
|
225
|
-
"svelte2tsx": "^0.7.
|
|
226
|
-
"ts-morph": "^
|
|
222
|
+
"svelte": "^4.2.17",
|
|
223
|
+
"svelte-check": "^3.7.1",
|
|
224
|
+
"svelte-language-server": "^0.16.9",
|
|
225
|
+
"svelte2tsx": "^0.7.8",
|
|
226
|
+
"ts-morph": "^22.0.0",
|
|
227
227
|
"tslib": "^2.6.2",
|
|
228
|
-
"tsx": "^4.
|
|
229
|
-
"typescript": "
|
|
230
|
-
"vite": "^5.2.
|
|
231
|
-
"yaml": "^2.4.
|
|
228
|
+
"tsx": "^4.10.2",
|
|
229
|
+
"typescript": "^5.4.5",
|
|
230
|
+
"vite": "^5.2.11",
|
|
231
|
+
"yaml": "^2.4.2"
|
|
232
232
|
},
|
|
233
233
|
"scripts": {
|
|
234
234
|
"build": "run-s --print-label build:*",
|
|
235
235
|
"build:01-sync": "pnpm run check",
|
|
236
236
|
"build:02-exports": "tsx ./scripts/generate-exports.ts",
|
|
237
237
|
"build:03-add-source-links": "tsx ./scripts/add-source-links.ts",
|
|
238
|
-
"build:04-format": "pnpm run format",
|
|
238
|
+
"build:04-format": "pnpm run format && prettier-config --fix ./readme.md",
|
|
239
239
|
"build:05-package": "svelte-package && publint",
|
|
240
240
|
"build:06-heal-dts-comments": "tsx ./scripts/heal-dts-comments.ts",
|
|
241
241
|
"build:07-strip-component-documentation": "tsx ./scripts/strip-component-documentation.ts",
|