@viji-dev/core 0.17.0 → 0.19.0
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 +15637 -15632
- package/dist/artist-global.d.ts +3498 -3493
- package/dist/artist-jsdoc.d.ts +1 -1
- package/dist/assets/viji.worker-ePBVxIyj.js +616 -0
- package/dist/docs-api.js +10101 -10086
- package/dist/{essentia-wasm.web-6LFlxl9Z.js → essentia-wasm.web-B-rhQj_G.js} +3376 -3376
- package/dist/{index-BxSadexI.js → index-PgPvRJ2p.js} +12212 -12168
- package/dist/index.d.ts +27 -8
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/dist/assets/viji.worker-Fw1ZBqRQ.js +0 -616
package/dist/index.d.ts
CHANGED
|
@@ -1117,7 +1117,12 @@ declare interface ImageConfig {
|
|
|
1117
1117
|
* the image works directly with `image()`, `texture()`, etc.
|
|
1118
1118
|
*/
|
|
1119
1119
|
declare interface ImageParameter {
|
|
1120
|
-
/**
|
|
1120
|
+
/**
|
|
1121
|
+
* Uploaded image as an `ImageBitmap`, or `null` until the user provides one.
|
|
1122
|
+
* Read it where you use it (inside `render()`): when the host replaces or
|
|
1123
|
+
* clears the image, the previous bitmap is closed, so a reference kept from
|
|
1124
|
+
* an earlier frame becomes unusable.
|
|
1125
|
+
*/
|
|
1121
1126
|
value: ImageBitmap | null;
|
|
1122
1127
|
/** P5-compatible image wrapper. Only available in the P5 renderer; added at runtime by the P5 adapter. */
|
|
1123
1128
|
readonly p5?: any;
|
|
@@ -2453,7 +2458,7 @@ declare interface TouchPoint {
|
|
|
2453
2458
|
/** Returned by `on*` listener registration calls; invoke to unsubscribe. */
|
|
2454
2459
|
export declare type Unsubscribe = () => void;
|
|
2455
2460
|
|
|
2456
|
-
export declare const VERSION = "0.
|
|
2461
|
+
export declare const VERSION = "0.19.0";
|
|
2457
2462
|
|
|
2458
2463
|
/**
|
|
2459
2464
|
* Real-time video API: drawable frame, dimensions, and the source-side
|
|
@@ -2867,6 +2872,13 @@ export declare class VijiCore {
|
|
|
2867
2872
|
*/
|
|
2868
2873
|
private debugLog;
|
|
2869
2874
|
private config;
|
|
2875
|
+
/**
|
|
2876
|
+
* `config.initialParameters` after `sanitizeInitialParameters` (set in
|
|
2877
|
+
* `initialize()`, cleared in `destroy()`). Overlaid onto `parameterValues`
|
|
2878
|
+
* when the worker reports its definitions, so the host table matches what
|
|
2879
|
+
* the worker seeded before frame 1. `null` when no seed was supplied.
|
|
2880
|
+
*/
|
|
2881
|
+
private initialSeed;
|
|
2870
2882
|
private isHeadless;
|
|
2871
2883
|
private static readonly DIRECT_FRAME_BASE;
|
|
2872
2884
|
private engineGroup;
|
|
@@ -3203,10 +3215,6 @@ export declare class VijiCore {
|
|
|
3203
3215
|
* Check if parameters have been initialized
|
|
3204
3216
|
*/
|
|
3205
3217
|
get parametersReady(): boolean;
|
|
3206
|
-
/**
|
|
3207
|
-
* Send all current parameter values to worker (used for initial sync)
|
|
3208
|
-
*/
|
|
3209
|
-
private syncAllParametersToWorker;
|
|
3210
3218
|
/**
|
|
3211
3219
|
* Add listener for when the scene's parameters are defined. Fires exactly once
|
|
3212
3220
|
* per scene load, after the scene registers its parameters — including scenes
|
|
@@ -4045,8 +4053,19 @@ export declare interface VijiCoreConfig {
|
|
|
4045
4053
|
* default) and before the first render, so the scene paints frame 1 with these
|
|
4046
4054
|
* values instead of popping from defaults a round-trip later. Names the scene
|
|
4047
4055
|
* does not define are silently ignored; values are validated against each
|
|
4048
|
-
* parameter's definition exactly like {@link VijiCore.setParameter}.
|
|
4049
|
-
*
|
|
4056
|
+
* parameter's definition exactly like {@link VijiCore.setParameter}. The host
|
|
4057
|
+
* table mirrors the seed once the scene reports its parameters, so
|
|
4058
|
+
* {@link VijiCore.getParameterValues} inside `onParametersDefined` returns the
|
|
4059
|
+
* seeded values. Seeds are the initial state, not a change: no
|
|
4060
|
+
* `onParameterChange` notification is emitted for them.
|
|
4061
|
+
*
|
|
4062
|
+
* Image parameters accept an `ImageBitmap` (or `null`). The bitmap is
|
|
4063
|
+
* structured-cloned to the scene and the object you pass becomes core's host
|
|
4064
|
+
* copy (returned by `getParameter` / `getParameterValues`, handed to
|
|
4065
|
+
* listeners): do not close it while the core lives. A bitmap that is already
|
|
4066
|
+
* closed is dropped from the seed with a console warning. URL strings are
|
|
4067
|
+
* not resolved and `File` / `Blob` values are not seedable; use
|
|
4068
|
+
* {@link VijiCore.setParameter} after `onParametersDefined` for those.
|
|
4050
4069
|
*/
|
|
4051
4070
|
initialParameters?: Record<string, ParameterValue>;
|
|
4052
4071
|
/** Frame rate mode - render every frame (`'full'`), every 2nd (`'half'`), every 4th (`'quarter'`), or every 8th (`'eighth'`). */
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as E, I as o, V as s, a as C, b as I } from "./index-
|
|
2
|
-
export {
|
|
3
|
-
E as CV_FEATURE_KEYS,
|
|
4
|
-
o as INPUT_CAPABILITY_KEYS,
|
|
5
|
-
s as VERSION,
|
|
6
|
-
C as VijiCore,
|
|
7
|
-
I as VijiCoreError
|
|
8
|
-
};
|
|
1
|
+
import { C as E, I as o, V as s, a as C, b as I } from "./index-PgPvRJ2p.js";
|
|
2
|
+
export {
|
|
3
|
+
E as CV_FEATURE_KEYS,
|
|
4
|
+
o as INPUT_CAPABILITY_KEYS,
|
|
5
|
+
s as VERSION,
|
|
6
|
+
C as VijiCore,
|
|
7
|
+
I as VijiCoreError
|
|
8
|
+
};
|