@viji-dev/core 0.11.6 → 0.11.7

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.6",
4
- "generatedAt": "2026-07-24T10:51:17.968Z",
3
+ "coreVersion": "0.11.7",
4
+ "generatedAt": "2026-07-24T15:25:39.379Z",
5
5
  "navigation": [
6
6
  {
7
7
  "id": "getting-started",
@@ -1,4 +1,4 @@
1
- import { g as kn } from "./index-BKvsDqj0.js";
1
+ import { g as kn } from "./index-zKfpXJhf.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-B5WvSGTX.js.map
3377
+ //# sourceMappingURL=essentia-wasm.web-QxZd-8n4.js.map
@@ -547,7 +547,7 @@ class lB {
547
547
  }
548
548
  }
549
549
  }
550
- const nB = "" + new URL("assets/viji.worker-Bu5UOGpW.js", import.meta.url).href;
550
+ const nB = "" + new URL("assets/viji.worker-BKg5vsqf.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;
@@ -1518,7 +1518,7 @@ class HB {
1518
1518
  if (!this.isInitialized)
1519
1519
  return this.initPromise ? this.initPromise : (this.initPromise = (async () => {
1520
1520
  try {
1521
- const A = await import("./essentia.js-core.es-CC_3Ap1i.js"), B = await import("./essentia-wasm.web-B5WvSGTX.js").then((g) => g.e), I = A.Essentia || A.default?.Essentia || A.default;
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
1522
  let Q = B.default || B.EssentiaWASM || B.default?.EssentiaWASM;
1523
1523
  if (!Q)
1524
1524
  throw new Error("WASM module not found - check essentia-wasm.web.js export");
@@ -9834,7 +9834,8 @@ class rA {
9834
9834
  format: B,
9835
9835
  type: B === "blob" ? A.type : void 0,
9836
9836
  quality: B === "blob" ? A.quality : void 0,
9837
- resolution: A.resolution
9837
+ resolution: A.resolution,
9838
+ frame: A.frame
9838
9839
  }, 1e4);
9839
9840
  return B === "bitmap" ? I.bitmap : I.blob;
9840
9841
  }
@@ -9862,11 +9863,17 @@ class rA {
9862
9863
  /**
9863
9864
  * Enable auto-capture. Captured frames are retrieved via getLatestFrame().
9864
9865
  * @param format.flipY — true for WebGL texture consumers, false for 2D canvas drawImage.
9866
+ * @param format.frame — frame role: `'plate'` (default) captures the clean
9867
+ * pre-overlay frame (thumbnails, VJ sources); `'display'` captures the
9868
+ * composited frame the viewer sees, including the branding overlay when the
9869
+ * session applies it. Headless cores degrade `'display'` to `'plate'`.
9870
+ * Omitting the field on a re-enable keeps the previously set role.
9865
9871
  */
9866
9872
  enableAutoCapture(A) {
9867
9873
  this.autoCaptureEnabled = !0, this.workerManager && this.workerManager.postMessage("enable-auto-capture", {
9868
9874
  enabled: !0,
9869
- flipY: A?.flipY
9875
+ flipY: A?.flipY,
9876
+ frame: A?.frame
9870
9877
  });
9871
9878
  const B = A ? ` with flipY=${A.flipY}` : "";
9872
9879
  this.debugLog(`[AutoCapture] ENABLED${B}`);
@@ -11624,7 +11631,7 @@ function HI(D) {
11624
11631
  expectedVersion: 1
11625
11632
  } : typeof A.senderTime != "number" ? { code: "invalid-field", details: "senderTime must be a number", field: "senderTime" } : null;
11626
11633
  }
11627
- const mI = "0.11.6";
11634
+ const mI = "0.11.7";
11628
11635
  export {
11629
11636
  eA as A,
11630
11637
  LI as C,
@@ -11635,4 +11642,4 @@ export {
11635
11642
  J as c,
11636
11643
  gI as g
11637
11644
  };
11638
- //# sourceMappingURL=index-BKvsDqj0.js.map
11645
+ //# sourceMappingURL=index-zKfpXJhf.js.map
package/dist/index.d.ts CHANGED
@@ -930,6 +930,16 @@ export declare interface CaptureFrameOptions {
930
930
  * canvas, the source is center-cropped before scaling.
931
931
  */
932
932
  resolution?: number | Resolution;
933
+ /**
934
+ * Frame role to capture. `'plate'` (default) captures the clean pre-overlay
935
+ * frame — thumbnails and VJ source frames, identical to previous behavior.
936
+ * `'display'` captures the composited frame the viewer sees, including the
937
+ * branding overlay when the session applies it. On headless cores no
938
+ * overlay is ever drawn, so `'display'` degrades to `'plate'`. Note:
939
+ * center-cropping via `resolution` can crop the edge-anchored overlay out
940
+ * of a `'display'` capture — display captures are intended at canvas aspect.
941
+ */
942
+ frame?: 'plate' | 'display';
933
943
  }
934
944
 
935
945
  /**
@@ -2861,7 +2871,7 @@ declare type TrackingState = 'TRACKING' | 'LOCKED' | 'BREAKDOWN' | 'LOST';
2861
2871
  /** Returned by `on*` listener registration calls; invoke to unsubscribe. */
2862
2872
  export declare type Unsubscribe = () => void;
2863
2873
 
2864
- export declare const VERSION = "0.11.6";
2874
+ export declare const VERSION = "0.11.7";
2865
2875
 
2866
2876
  /**
2867
2877
  * Real-time video API: drawable frame, dimensions, and the source-side
@@ -3291,9 +3301,15 @@ export declare class VijiCore {
3291
3301
  /**
3292
3302
  * Enable auto-capture. Captured frames are retrieved via getLatestFrame().
3293
3303
  * @param format.flipY — true for WebGL texture consumers, false for 2D canvas drawImage.
3304
+ * @param format.frame — frame role: `'plate'` (default) captures the clean
3305
+ * pre-overlay frame (thumbnails, VJ sources); `'display'` captures the
3306
+ * composited frame the viewer sees, including the branding overlay when the
3307
+ * session applies it. Headless cores degrade `'display'` to `'plate'`.
3308
+ * Omitting the field on a re-enable keeps the previously set role.
3294
3309
  */
3295
3310
  enableAutoCapture(format?: {
3296
3311
  flipY: boolean;
3312
+ frame?: 'plate' | 'display';
3297
3313
  }): void;
3298
3314
  /**
3299
3315
  * Disable auto-capture and release any pending frame buffer.
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-BKvsDqj0.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-zKfpXJhf.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.6",
3
+ "version": "0.11.7",
4
4
  "description": "Universal execution engine for Viji Creative scenes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",