@viji-dev/core 0.3.36 → 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.
@@ -590,7 +590,7 @@ class IFrameManager {
590
590
  }
591
591
  function WorkerWrapper(options) {
592
592
  return new Worker(
593
- "" + new URL("assets/viji.worker-W2GOyEnR.js", import.meta.url).href,
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-1nYWd1Cf.js").then((n) => n.e);
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-D3clBOe3.js.map
16450
+ //# sourceMappingURL=index-BmeV_yOg.js.map