@octoseq/visualiser 0.1.0-main.959ab48 → 0.1.0-main.96ff69c
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/package.json +1 -1
- package/pkg/visualiser.d.ts +16 -5
- package/pkg/visualiser.js +35 -13
- package/pkg/visualiser_bg.wasm +0 -0
- package/pkg/visualiser_bg.wasm.d.ts +7 -5
package/package.json
CHANGED
package/pkg/visualiser.d.ts
CHANGED
|
@@ -242,6 +242,10 @@ export class WasmVisualiser {
|
|
|
242
242
|
* Returns a JSON array of strings.
|
|
243
243
|
*/
|
|
244
244
|
get_stem_signal_keys(): string;
|
|
245
|
+
/**
|
|
246
|
+
* Check if performance profiling is currently enabled.
|
|
247
|
+
*/
|
|
248
|
+
is_profiling_enabled(): boolean;
|
|
245
249
|
/**
|
|
246
250
|
* Clear the frequency band structure.
|
|
247
251
|
*/
|
|
@@ -251,6 +255,11 @@ export class WasmVisualiser {
|
|
|
251
255
|
* Returns current position, rotation, target, fov, near, far, mode, and signal flags.
|
|
252
256
|
*/
|
|
253
257
|
get_camera_state_json(): string;
|
|
258
|
+
/**
|
|
259
|
+
* Enable or disable performance profiling.
|
|
260
|
+
* When enabled, console timing and collection size logging will be active.
|
|
261
|
+
*/
|
|
262
|
+
set_profiling_enabled(enabled: boolean): void;
|
|
254
263
|
/**
|
|
255
264
|
* Unregister a mesh asset.
|
|
256
265
|
* Returns true if the asset was unregistered, false if it didn't exist.
|
|
@@ -383,6 +392,7 @@ export interface InitOutput {
|
|
|
383
392
|
readonly wasmvisualiser_has_frequency_bands: (a: number) => number;
|
|
384
393
|
readonly wasmvisualiser_has_script: (a: number) => number;
|
|
385
394
|
readonly wasmvisualiser_has_signal: (a: number, b: number, c: number) => number;
|
|
395
|
+
readonly wasmvisualiser_is_profiling_enabled: (a: number) => number;
|
|
386
396
|
readonly wasmvisualiser_isolate_entity: (a: number, b: bigint) => void;
|
|
387
397
|
readonly wasmvisualiser_list_mesh_assets: (a: number) => [number, number];
|
|
388
398
|
readonly wasmvisualiser_load_script: (a: number, b: number, c: number) => number;
|
|
@@ -407,17 +417,18 @@ export interface InitOutput {
|
|
|
407
417
|
readonly wasmvisualiser_set_debug_options: (a: number, b: number, c: number) => void;
|
|
408
418
|
readonly wasmvisualiser_set_frequency_bands: (a: number, b: number, c: number) => number;
|
|
409
419
|
readonly wasmvisualiser_set_musical_time: (a: number, b: number, c: number) => number;
|
|
420
|
+
readonly wasmvisualiser_set_profiling_enabled: (a: number, b: number) => void;
|
|
410
421
|
readonly wasmvisualiser_set_sigmoid_k: (a: number, b: number) => void;
|
|
411
422
|
readonly wasmvisualiser_set_time: (a: number, b: number) => void;
|
|
412
423
|
readonly wasmvisualiser_take_script_diagnostics_json: (a: number) => [number, number];
|
|
413
424
|
readonly wasmvisualiser_unregister_mesh_asset: (a: number, b: number, c: number) => number;
|
|
414
425
|
readonly wasmvisualiser_push_rotation_data: (a: number, b: number, c: number, d: number) => void;
|
|
415
426
|
readonly init_panic_hook: () => void;
|
|
416
|
-
readonly
|
|
417
|
-
readonly
|
|
418
|
-
readonly
|
|
419
|
-
readonly
|
|
420
|
-
readonly
|
|
427
|
+
readonly wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731: (a: number, b: number, c: any) => void;
|
|
428
|
+
readonly wasm_bindgen__closure__destroy__hff2bb8e37b7072b2: (a: number, b: number) => void;
|
|
429
|
+
readonly wasm_bindgen__convert__closures_____invoke__h09705603bb35b975: (a: number, b: number, c: any) => void;
|
|
430
|
+
readonly wasm_bindgen__closure__destroy__h6518d8d5fffe1051: (a: number, b: number) => void;
|
|
431
|
+
readonly wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851: (a: number, b: number, c: any, d: any) => void;
|
|
421
432
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
422
433
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
423
434
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/visualiser.js
CHANGED
|
@@ -241,16 +241,16 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
241
241
|
|
|
242
242
|
let WASM_VECTOR_LEN = 0;
|
|
243
243
|
|
|
244
|
-
function
|
|
245
|
-
wasm.
|
|
244
|
+
function wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731(arg0, arg1, arg2) {
|
|
245
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731(arg0, arg1, arg2);
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
function
|
|
249
|
-
wasm.
|
|
248
|
+
function wasm_bindgen__convert__closures_____invoke__h09705603bb35b975(arg0, arg1, arg2) {
|
|
249
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h09705603bb35b975(arg0, arg1, arg2);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
function
|
|
253
|
-
wasm.
|
|
252
|
+
function wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851(arg0, arg1, arg2, arg3) {
|
|
253
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851(arg0, arg1, arg2, arg3);
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
const __wbindgen_enum_GpuCompilationMessageType = ["error", "warning", "info"];
|
|
@@ -827,6 +827,14 @@ export class WasmVisualiser {
|
|
|
827
827
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
|
+
/**
|
|
831
|
+
* Check if performance profiling is currently enabled.
|
|
832
|
+
* @returns {boolean}
|
|
833
|
+
*/
|
|
834
|
+
is_profiling_enabled() {
|
|
835
|
+
const ret = wasm.wasmvisualiser_is_profiling_enabled(this.__wbg_ptr);
|
|
836
|
+
return ret !== 0;
|
|
837
|
+
}
|
|
830
838
|
/**
|
|
831
839
|
* Clear the frequency band structure.
|
|
832
840
|
*/
|
|
@@ -850,6 +858,14 @@ export class WasmVisualiser {
|
|
|
850
858
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
851
859
|
}
|
|
852
860
|
}
|
|
861
|
+
/**
|
|
862
|
+
* Enable or disable performance profiling.
|
|
863
|
+
* When enabled, console timing and collection size logging will be active.
|
|
864
|
+
* @param {boolean} enabled
|
|
865
|
+
*/
|
|
866
|
+
set_profiling_enabled(enabled) {
|
|
867
|
+
wasm.wasmvisualiser_set_profiling_enabled(this.__wbg_ptr, enabled);
|
|
868
|
+
}
|
|
853
869
|
/**
|
|
854
870
|
* Unregister a mesh asset.
|
|
855
871
|
* Returns true if the asset was unregistered, false if it didn't exist.
|
|
@@ -1711,7 +1727,7 @@ function __wbg_get_imports() {
|
|
|
1711
1727
|
const a = state0.a;
|
|
1712
1728
|
state0.a = 0;
|
|
1713
1729
|
try {
|
|
1714
|
-
return
|
|
1730
|
+
return wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851(a, state0.b, arg0, arg1);
|
|
1715
1731
|
} finally {
|
|
1716
1732
|
state0.a = a;
|
|
1717
1733
|
}
|
|
@@ -1917,6 +1933,12 @@ function __wbg_get_imports() {
|
|
|
1917
1933
|
const ret = arg0.then(arg1);
|
|
1918
1934
|
return ret;
|
|
1919
1935
|
};
|
|
1936
|
+
imports.wbg.__wbg_timeEnd_46ed224117e5f2d2 = function(arg0, arg1) {
|
|
1937
|
+
console.timeEnd(getStringFromWasm0(arg0, arg1));
|
|
1938
|
+
};
|
|
1939
|
+
imports.wbg.__wbg_time_c49415b636fbbf3f = function(arg0, arg1) {
|
|
1940
|
+
console.time(getStringFromWasm0(arg0, arg1));
|
|
1941
|
+
};
|
|
1920
1942
|
imports.wbg.__wbg_type_c0d5d83032e9858a = function(arg0) {
|
|
1921
1943
|
const ret = arg0.type;
|
|
1922
1944
|
return (__wbindgen_enum_GpuCompilationMessageType.indexOf(ret) + 1 || 4) - 1;
|
|
@@ -1954,14 +1976,14 @@ function __wbg_get_imports() {
|
|
|
1954
1976
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1955
1977
|
return ret;
|
|
1956
1978
|
};
|
|
1957
|
-
imports.wbg.__wbindgen_cast_73f7c1aa413df4f1 = function(arg0, arg1) {
|
|
1958
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3322, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 3323, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1959
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__heb49a8f426ac2d2e, wasm_bindgen__convert__closures_____invoke__h9d1c5a23ecfcd5c8);
|
|
1960
|
-
return ret;
|
|
1961
|
-
};
|
|
1962
1979
|
imports.wbg.__wbindgen_cast_ad7098fabcb3be64 = function(arg0, arg1) {
|
|
1963
1980
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 3454, function: Function { arguments: [Externref], shim_idx: 3455, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1964
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1981
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hff2bb8e37b7072b2, wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731);
|
|
1982
|
+
return ret;
|
|
1983
|
+
};
|
|
1984
|
+
imports.wbg.__wbindgen_cast_b71f11108f0008f4 = function(arg0, arg1) {
|
|
1985
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3445, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 3446, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1986
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h6518d8d5fffe1051, wasm_bindgen__convert__closures_____invoke__h09705603bb35b975);
|
|
1965
1987
|
return ret;
|
|
1966
1988
|
};
|
|
1967
1989
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
package/pkg/visualiser_bg.wasm
CHANGED
|
Binary file
|
|
@@ -32,6 +32,7 @@ export const wasmvisualiser_get_stem_signal_keys: (a: number) => [number, number
|
|
|
32
32
|
export const wasmvisualiser_has_frequency_bands: (a: number) => number;
|
|
33
33
|
export const wasmvisualiser_has_script: (a: number) => number;
|
|
34
34
|
export const wasmvisualiser_has_signal: (a: number, b: number, c: number) => number;
|
|
35
|
+
export const wasmvisualiser_is_profiling_enabled: (a: number) => number;
|
|
35
36
|
export const wasmvisualiser_isolate_entity: (a: number, b: bigint) => void;
|
|
36
37
|
export const wasmvisualiser_list_mesh_assets: (a: number) => [number, number];
|
|
37
38
|
export const wasmvisualiser_load_script: (a: number, b: number, c: number) => number;
|
|
@@ -56,17 +57,18 @@ export const wasmvisualiser_set_available_stems: (a: number, b: number, c: numbe
|
|
|
56
57
|
export const wasmvisualiser_set_debug_options: (a: number, b: number, c: number) => void;
|
|
57
58
|
export const wasmvisualiser_set_frequency_bands: (a: number, b: number, c: number) => number;
|
|
58
59
|
export const wasmvisualiser_set_musical_time: (a: number, b: number, c: number) => number;
|
|
60
|
+
export const wasmvisualiser_set_profiling_enabled: (a: number, b: number) => void;
|
|
59
61
|
export const wasmvisualiser_set_sigmoid_k: (a: number, b: number) => void;
|
|
60
62
|
export const wasmvisualiser_set_time: (a: number, b: number) => void;
|
|
61
63
|
export const wasmvisualiser_take_script_diagnostics_json: (a: number) => [number, number];
|
|
62
64
|
export const wasmvisualiser_unregister_mesh_asset: (a: number, b: number, c: number) => number;
|
|
63
65
|
export const wasmvisualiser_push_rotation_data: (a: number, b: number, c: number, d: number) => void;
|
|
64
66
|
export const init_panic_hook: () => void;
|
|
65
|
-
export const
|
|
66
|
-
export const
|
|
67
|
-
export const
|
|
68
|
-
export const
|
|
69
|
-
export const
|
|
67
|
+
export const wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731: (a: number, b: number, c: any) => void;
|
|
68
|
+
export const wasm_bindgen__closure__destroy__hff2bb8e37b7072b2: (a: number, b: number) => void;
|
|
69
|
+
export const wasm_bindgen__convert__closures_____invoke__h09705603bb35b975: (a: number, b: number, c: any) => void;
|
|
70
|
+
export const wasm_bindgen__closure__destroy__h6518d8d5fffe1051: (a: number, b: number) => void;
|
|
71
|
+
export const wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851: (a: number, b: number, c: any, d: any) => void;
|
|
70
72
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
71
73
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
72
74
|
export const __wbindgen_exn_store: (a: number) => void;
|