@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/artist-dts-p5.js +1 -1
- package/dist/artist-dts.js +1 -1
- package/dist/artist-global-p5.d.ts +1 -1
- package/dist/artist-global.d.ts +1 -1
- package/dist/assets/{viji.worker-BKg5vsqf.js → viji.worker-B1ltcEP7.js} +818 -781
- package/dist/docs-api.js +2 -2
- package/dist/{essentia-wasm.web-QxZd-8n4.js → essentia-wasm.web-B48G7Mzk.js} +2 -2
- package/dist/{index-zKfpXJhf.js → index-fdus0y3o.js} +5 -4
- package/dist/index.d.ts +16 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/docs-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as kn } from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
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.
|
|
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