@viji-dev/core 0.3.35 → 0.3.37
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/artist-dts-p5.js +1 -1
- package/dist/artist-dts.js +1 -1
- package/dist/artist-global-p5.d.ts +3 -1
- package/dist/artist-global.d.ts +3 -1
- package/dist/artist-jsdoc.d.ts +1 -1
- package/dist/assets/{viji.worker-CCTzoq8l.js → viji.worker-DR0jmwBv.js} +51 -8
- package/dist/assets/viji.worker-DR0jmwBv.js.map +1 -0
- package/dist/docs-api.js +36 -36
- package/dist/{essentia-wasm.web-CZSKCa1a.js → essentia-wasm.web-Ck3Tig5D.js} +2 -2
- package/dist/{essentia-wasm.web-CZSKCa1a.js.map → essentia-wasm.web-Ck3Tig5D.js.map} +1 -1
- package/dist/{index-B6hW1Tit.js → index-BmeV_yOg.js} +14 -6
- package/dist/index-BmeV_yOg.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/shader-uniforms.js +1 -1
- package/package.json +1 -1
- package/dist/assets/cv-tasks.worker.js +0 -954
- package/dist/assets/viji.worker-CCTzoq8l.js.map +0 -1
- package/dist/assets/vision_bundle.js +0 -2
- package/dist/index-B6hW1Tit.js.map +0 -1
|
@@ -590,7 +590,7 @@ class IFrameManager {
|
|
|
590
590
|
}
|
|
591
591
|
function WorkerWrapper(options) {
|
|
592
592
|
return new Worker(
|
|
593
|
-
"" + new URL("assets/viji.worker-
|
|
593
|
+
"" + new URL("assets/viji.worker-DR0jmwBv.js", import.meta.url).href,
|
|
594
594
|
{
|
|
595
595
|
type: "module",
|
|
596
596
|
name: options?.name
|
|
@@ -598,12 +598,13 @@ function WorkerWrapper(options) {
|
|
|
598
598
|
);
|
|
599
599
|
}
|
|
600
600
|
class WorkerManager {
|
|
601
|
-
constructor(sceneCode, offscreenCanvas, isHeadless = false, initialSC, initialRH) {
|
|
601
|
+
constructor(sceneCode, offscreenCanvas, isHeadless = false, initialSC, initialRH, cvWasmUrls2) {
|
|
602
602
|
this.sceneCode = sceneCode;
|
|
603
603
|
this.offscreenCanvas = offscreenCanvas;
|
|
604
604
|
this.isHeadless = isHeadless;
|
|
605
605
|
this.initialSC = initialSC;
|
|
606
606
|
this.initialRH = initialRH;
|
|
607
|
+
this.cvWasmUrls = cvWasmUrls2;
|
|
607
608
|
}
|
|
608
609
|
worker = null;
|
|
609
610
|
messageId = 0;
|
|
@@ -773,7 +774,8 @@ class WorkerManager {
|
|
|
773
774
|
canvas: this.offscreenCanvas,
|
|
774
775
|
isHeadless: this.isHeadless,
|
|
775
776
|
sc: this.initialSC,
|
|
776
|
-
rh: this.initialRH
|
|
777
|
+
rh: this.initialRH,
|
|
778
|
+
cvWasmUrls: this.cvWasmUrls
|
|
777
779
|
}
|
|
778
780
|
};
|
|
779
781
|
return new Promise((resolve, reject) => {
|
|
@@ -1750,7 +1752,7 @@ class EssentiaOnsetDetection {
|
|
|
1750
1752
|
this.initPromise = (async () => {
|
|
1751
1753
|
try {
|
|
1752
1754
|
const essentiaModule = await import("./essentia.js-core.es-DnrJE0uR.js");
|
|
1753
|
-
const wasmModule = await import("./essentia-wasm.web-
|
|
1755
|
+
const wasmModule = await import("./essentia-wasm.web-Ck3Tig5D.js").then((n) => n.e);
|
|
1754
1756
|
const EssentiaClass = essentiaModule.Essentia || essentiaModule.default?.Essentia || essentiaModule.default;
|
|
1755
1757
|
let WASMModule = wasmModule.default || wasmModule.EssentiaWASM || wasmModule.default?.EssentiaWASM;
|
|
1756
1758
|
if (!WASMModule) {
|
|
@@ -14589,6 +14591,11 @@ class SceneAnalyzer {
|
|
|
14589
14591
|
return "2d";
|
|
14590
14592
|
}
|
|
14591
14593
|
}
|
|
14594
|
+
const simdLoaderJs = new URL("assets/wasm/vision_wasm_internal.js", import.meta.url).href;
|
|
14595
|
+
const simdBinary = new URL("assets/wasm/vision_wasm_internal.wasm", import.meta.url).href;
|
|
14596
|
+
const nosimdLoaderJs = new URL("assets/wasm/vision_wasm_nosimd_internal.js", import.meta.url).href;
|
|
14597
|
+
const nosimdBinary = new URL("assets/wasm/vision_wasm_nosimd_internal.wasm", import.meta.url).href;
|
|
14598
|
+
const cvWasmUrls = { simdLoaderJs, simdBinary, nosimdLoaderJs, nosimdBinary };
|
|
14592
14599
|
class VijiCore {
|
|
14593
14600
|
iframeManager = null;
|
|
14594
14601
|
workerManager = null;
|
|
@@ -14867,7 +14874,8 @@ class VijiCore {
|
|
|
14867
14874
|
offscreenCanvas,
|
|
14868
14875
|
this.isHeadless,
|
|
14869
14876
|
this.config._sc,
|
|
14870
|
-
this.config._rh
|
|
14877
|
+
this.config._rh,
|
|
14878
|
+
cvWasmUrls
|
|
14871
14879
|
);
|
|
14872
14880
|
this.setupCommunication();
|
|
14873
14881
|
await this.workerManager.createWorker();
|
|
@@ -16439,4 +16447,4 @@ export {
|
|
|
16439
16447
|
VijiCoreError as b,
|
|
16440
16448
|
getDefaultExportFromCjs as g
|
|
16441
16449
|
};
|
|
16442
|
-
//# sourceMappingURL=index-
|
|
16450
|
+
//# sourceMappingURL=index-BmeV_yOg.js.map
|