@viji-dev/core 0.11.7 → 0.11.8

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/docs-api.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export const docsApi = {
2
2
  "version": "1.1.0",
3
- "coreVersion": "0.11.7",
4
- "generatedAt": "2026-07-24T15:25:39.379Z",
3
+ "coreVersion": "0.11.8",
4
+ "generatedAt": "2026-08-06T16:39:30.974Z",
5
5
  "navigation": [
6
6
  {
7
7
  "id": "getting-started",
@@ -1,4 +1,4 @@
1
- import { g as kn } from "./index-zKfpXJhf.js";
1
+ import { g as kn } from "./index-fdus0y3o.js";
2
2
  function jn(Oe, ot) {
3
3
  for (var ve = 0; ve < ot.length; ve++) {
4
4
  const Z = ot[ve];
@@ -3374,4 +3374,4 @@ const xn = /* @__PURE__ */ kn(yi), Ln = /* @__PURE__ */ jn({
3374
3374
  export {
3375
3375
  Ln as e
3376
3376
  };
3377
- //# sourceMappingURL=essentia-wasm.web-QxZd-8n4.js.map
3377
+ //# sourceMappingURL=essentia-wasm.web-B48G7Mzk.js.map
@@ -547,7 +547,7 @@ class lB {
547
547
  }
548
548
  }
549
549
  }
550
- const nB = "" + new URL("assets/viji.worker-BKg5vsqf.js", import.meta.url).href;
550
+ const nB = "" + new URL("assets/viji.worker-B1ltcEP7.js", import.meta.url).href;
551
551
  class dB {
552
552
  constructor(A, B, I) {
553
553
  this.iframeManager = A, this.sceneCode = B, this.init = I;
@@ -792,6 +792,7 @@ class dB {
792
792
  Q
793
793
  );
794
794
  }
795
+ else B.data?.bitmap instanceof ImageBitmap && B.data.bitmap.close();
795
796
  }, this.iframeManager.onWorkerMessage(this.onWorkerMessageBound);
796
797
  }
797
798
  }
@@ -1518,7 +1519,7 @@ class HB {
1518
1519
  if (!this.isInitialized)
1519
1520
  return this.initPromise ? this.initPromise : (this.initPromise = (async () => {
1520
1521
  try {
1521
- const A = await import("./essentia.js-core.es-CC_3Ap1i.js"), B = await import("./essentia-wasm.web-QxZd-8n4.js").then((g) => g.e), I = A.Essentia || A.default?.Essentia || A.default;
1522
+ const A = await import("./essentia.js-core.es-CC_3Ap1i.js"), B = await import("./essentia-wasm.web-B48G7Mzk.js").then((g) => g.e), I = A.Essentia || A.default?.Essentia || A.default;
1522
1523
  let Q = B.default || B.EssentiaWASM || B.default?.EssentiaWASM;
1523
1524
  if (!Q)
1524
1525
  throw new Error("WASM module not found - check essentia-wasm.web.js export");
@@ -11631,7 +11632,7 @@ function HI(D) {
11631
11632
  expectedVersion: 1
11632
11633
  } : typeof A.senderTime != "number" ? { code: "invalid-field", details: "senderTime must be a number", field: "senderTime" } : null;
11633
11634
  }
11634
- const mI = "0.11.7";
11635
+ const mI = "0.11.8";
11635
11636
  export {
11636
11637
  eA as A,
11637
11638
  LI as C,
@@ -11642,4 +11643,4 @@ export {
11642
11643
  J as c,
11643
11644
  gI as g
11644
11645
  };
11645
- //# sourceMappingURL=index-zKfpXJhf.js.map
11646
+ //# sourceMappingURL=index-fdus0y3o.js.map
package/dist/index.d.ts CHANGED
@@ -2871,7 +2871,7 @@ declare type TrackingState = 'TRACKING' | 'LOCKED' | 'BREAKDOWN' | 'LOST';
2871
2871
  /** Returned by `on*` listener registration calls; invoke to unsubscribe. */
2872
2872
  export declare type Unsubscribe = () => void;
2873
2873
 
2874
- export declare const VERSION = "0.11.7";
2874
+ export declare const VERSION = "0.11.8";
2875
2875
 
2876
2876
  /**
2877
2877
  * Real-time video API: drawable frame, dimensions, and the source-side
@@ -3279,6 +3279,21 @@ export declare class VijiCore {
3279
3279
  /**
3280
3280
  * Capture current scene frame
3281
3281
  * @param options.format 'blob' = encoded image, 'bitmap' = GPU-friendly ImageBitmap
3282
+ *
3283
+ * Readiness: the request queues in the worker and drains in the
3284
+ * post-render slot of the first tick where artist drawing code dispatched
3285
+ * cleanly against a canvas with a rendering context. Ticks where the scene
3286
+ * is still in async setup, a shader is compiling, p5 is initializing, or
3287
+ * the render threw are skipped — so `captureFrame` right after
3288
+ * `initialize()` waits for the scene's first real frame instead of
3289
+ * snapshotting a pre-first-paint canvas. The gate is per-tick, not
3290
+ * latched: on a live scene whose render is transiently throwing, the
3291
+ * capture holds until the next clean tick. This is an engine-readiness
3292
+ * gate, not a content guarantee — pixel output is never inspected, so a
3293
+ * scene whose render runs but draws nothing (or draws black) captures
3294
+ * exactly that. A scene that never reaches a clean painted tick (broken
3295
+ * code, render throwing persistently) rejects with `MESSAGE_TIMEOUT`
3296
+ * after 10s.
3282
3297
  */
3283
3298
  captureFrame(options: {
3284
3299
  format: 'bitmap';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, C as i, I as r, V as o, a as C, c as E, b as A } from "./index-zKfpXJhf.js";
1
+ import { A as e, C as i, I as r, V as o, a as C, c as E, b as A } from "./index-fdus0y3o.js";
2
2
  export {
3
3
  e as AudioSystem,
4
4
  i as CV_FEATURE_KEYS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viji-dev/core",
3
- "version": "0.11.7",
3
+ "version": "0.11.8",
4
4
  "description": "Universal execution engine for Viji Creative scenes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",