@viji-dev/core 0.16.1 → 0.17.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 +148 -7
- package/dist/artist-global.d.ts +148 -7
- package/dist/artist-jsdoc.d.ts +44 -3
- package/dist/assets/viji.worker-Fw1ZBqRQ.js +616 -0
- package/dist/docs-api.js +226 -32
- package/dist/{essentia-wasm.web-CFCpr-c2.js → essentia-wasm.web-6LFlxl9Z.js} +1 -1
- package/dist/{index-BElGM0ub.js → index-BxSadexI.js} +1099 -951
- package/dist/index.d.ts +173 -17
- package/dist/index.js +1 -1
- package/dist/param-inference.js +2 -1
- package/dist/{scene-analysis-CEQRlNUL.js → scene-analysis-2Ov0HS52.js} +1 -1
- package/dist/scene-analysis.js +1 -1
- package/package.json +1 -1
- package/dist/assets/viji.worker-Dm3yyu15.js +0 -612
package/dist/index.d.ts
CHANGED
|
@@ -332,16 +332,28 @@ declare interface ColorConfig {
|
|
|
332
332
|
group?: string;
|
|
333
333
|
/** Visibility category. The control hides when its capability is unavailable. Default: `'general'`. */
|
|
334
334
|
category?: ParameterCategory;
|
|
335
|
+
/**
|
|
336
|
+
* Enable a transparency channel. When `true` the canonical value is always an
|
|
337
|
+
* 8-digit `#rrggbbaa` (opaque inputs are padded `ff`), the picker shows an alpha
|
|
338
|
+
* slider, and the shader uniform is a `vec4`. When `false` (default) the value is
|
|
339
|
+
* `#rrggbb` and any alpha-bearing input is rejected. Default: `false`.
|
|
340
|
+
*/
|
|
341
|
+
alpha?: boolean;
|
|
335
342
|
}
|
|
336
343
|
|
|
337
344
|
/**
|
|
338
345
|
* Accepted input forms for color parameters. Internally normalized to canonical
|
|
339
|
-
* lowercase
|
|
346
|
+
* lowercase hex: `#rrggbb` for an opaque parameter, `#rrggbbaa` for a parameter
|
|
347
|
+
* declared with `alpha: true`. See `viji.color()` for full documentation.
|
|
340
348
|
*
|
|
341
349
|
* - `string`: hex (`#rrggbb`, `#rgb`), CSS `rgb(r, g, b)`, CSS `hsl(h, s%, l%)`,
|
|
342
350
|
* GLSL-style `vec3(r, g, b)` (0..1), or P5-style `hsb(h, s, b)` (0..360 / 0..100 / 0..100)
|
|
343
351
|
* - `{ r, g, b }`: RGB object with components in 0..255
|
|
344
352
|
* - `{ h, s, b }`: HSB object with `h` in 0..360, `s` and `b` in 0..100
|
|
353
|
+
*
|
|
354
|
+
* Alpha-bearing forms (`#rrggbbaa`, `#rgba`, `rgba()`, `hsla()`, `vec4()`, and the
|
|
355
|
+
* objects with an `a` field in 0..1) are accepted ONLY by a parameter declared with
|
|
356
|
+
* `alpha: true`; an opaque parameter rejects them even when the alpha is `1`.
|
|
345
357
|
*/
|
|
346
358
|
declare type ColorInput = string | {
|
|
347
359
|
/** Red component in 0..255. */
|
|
@@ -350,6 +362,8 @@ declare type ColorInput = string | {
|
|
|
350
362
|
g: number;
|
|
351
363
|
/** Blue component in 0..255. */
|
|
352
364
|
b: number;
|
|
365
|
+
/** Alpha in 0..1. Only valid on a parameter declared with `alpha: true`. */
|
|
366
|
+
a?: number;
|
|
353
367
|
} | {
|
|
354
368
|
/** Hue in 0..360. */
|
|
355
369
|
h: number;
|
|
@@ -357,16 +371,22 @@ declare type ColorInput = string | {
|
|
|
357
371
|
s: number;
|
|
358
372
|
/** Brightness in 0..100. */
|
|
359
373
|
b: number;
|
|
374
|
+
/** Alpha in 0..1. Only valid on a parameter declared with `alpha: true`. */
|
|
375
|
+
a?: number;
|
|
360
376
|
};
|
|
361
377
|
|
|
362
378
|
/**
|
|
363
379
|
* Reactive object returned by `viji.color()`. `value` is always a canonical
|
|
364
|
-
* lowercase
|
|
365
|
-
*
|
|
380
|
+
* lowercase hex string whose width is fixed by the parameter's mode (`#rrggbb`,
|
|
381
|
+
* or `#rrggbbaa` when declared with `alpha: true`); `rgb`, `hsb` and `alpha` are
|
|
382
|
+
* derived accessors that are recomputed (and frozen) every time the user changes
|
|
383
|
+
* the color.
|
|
366
384
|
*/
|
|
367
385
|
declare interface ColorParameter {
|
|
368
|
-
/** Canonical hex color string `#rrggbb`
|
|
386
|
+
/** Canonical lowercase hex color string: `#rrggbb`, or `#rrggbbaa` when `alpha: true`. Updates in real-time. */
|
|
369
387
|
value: string;
|
|
388
|
+
/** Alpha in 0..1. Always present: `1` on an opaque parameter, the live alpha when `alpha: true`. */
|
|
389
|
+
alpha: number;
|
|
370
390
|
/** RGB components as integers in 0..255 (frozen, recomputed when value changes). */
|
|
371
391
|
rgb: {
|
|
372
392
|
/** Red component, integer in 0..255. */
|
|
@@ -908,6 +928,101 @@ export declare interface FrequencyBand {
|
|
|
908
928
|
max: number;
|
|
909
929
|
}
|
|
910
930
|
|
|
931
|
+
/**
|
|
932
|
+
* Configuration object passed to `viji.gradient()`. Defines the ramp editor's
|
|
933
|
+
* stop bounds, transparency mode, label and UI grouping/visibility.
|
|
934
|
+
*/
|
|
935
|
+
declare interface GradientConfig {
|
|
936
|
+
/**
|
|
937
|
+
* Advanced: explicit parameter identity. Normally you do NOT set this —
|
|
938
|
+
* the parameter's name is inferred from the variable or object key you
|
|
939
|
+
* assign it to (`const ramp = viji.gradient(...)` → `ramp`). Set `name`
|
|
940
|
+
* only for parameters not assigned to a variable or key (created in an
|
|
941
|
+
* array, loop, or factory). Must be a valid identifier and scene-globally
|
|
942
|
+
* unique. When set, it overrides the inferred name.
|
|
943
|
+
*/
|
|
944
|
+
name?: string;
|
|
945
|
+
/** Minimum number of stops the editor allows. Integer in `2..32`. Default: `2`. */
|
|
946
|
+
minStops?: number;
|
|
947
|
+
/** Maximum number of stops the editor allows. Integer in `2..32`; sizes the shader uniform arrays. Default: `8`. */
|
|
948
|
+
maxStops?: number;
|
|
949
|
+
/** Display name shown next to the ramp in the parameter UI. Optional — defaults to the parameter's name. */
|
|
950
|
+
label?: string;
|
|
951
|
+
/** Optional tooltip / help text shown next to the control. */
|
|
952
|
+
description?: string;
|
|
953
|
+
/** Group name for organizing related parameters under a shared heading. Default: `'general'`. */
|
|
954
|
+
group?: string;
|
|
955
|
+
/** Visibility category. The control hides when its capability is unavailable. Default: `'general'`. */
|
|
956
|
+
category?: ParameterCategory;
|
|
957
|
+
/**
|
|
958
|
+
* Enable per-stop transparency. When `true` every stop color is `#rrggbbaa`
|
|
959
|
+
* (opaque inputs padded `ff`) and the shader sampler returns a `vec4`. When
|
|
960
|
+
* `false` (default) stops are `#rrggbb` and alpha-bearing stop colors are rejected.
|
|
961
|
+
*/
|
|
962
|
+
alpha?: boolean;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Stop list accepted by `viji.gradient()` and `setParameter()`. Any order;
|
|
967
|
+
* normalized to a sorted, canonical {@link GradientValue}.
|
|
968
|
+
*/
|
|
969
|
+
export declare type GradientInput = ReadonlyArray<GradientStopInput>;
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Reactive object returned by `viji.gradient()`. `value` is the live, frozen,
|
|
973
|
+
* sorted stop list; `at(t)` samples the ramp with CSS `linear-gradient`
|
|
974
|
+
* semantics (premultiplied sRGB between stops, hard edges on duplicate
|
|
975
|
+
* positions) and returns a canonical hex string in the same width as the stops.
|
|
976
|
+
*/
|
|
977
|
+
declare interface GradientParameter {
|
|
978
|
+
/** Current stops, frozen and sorted ascending by position. Updates in real-time. */
|
|
979
|
+
value: GradientValue;
|
|
980
|
+
/**
|
|
981
|
+
* Sample the ramp at `t` (clamped to `0..1`). Returns canonical hex in the
|
|
982
|
+
* gradient's width. The shader renderer exposes the same function as
|
|
983
|
+
* `<name>(float t)` in GLSL.
|
|
984
|
+
*/
|
|
985
|
+
at(t: number): string;
|
|
986
|
+
/** Display name shown next to the ramp in the parameter UI. */
|
|
987
|
+
label?: string;
|
|
988
|
+
/** Tooltip / help text for the control (empty string when not configured). */
|
|
989
|
+
description?: string;
|
|
990
|
+
/** Group name under which the control appears in the UI. */
|
|
991
|
+
group: string;
|
|
992
|
+
/** Visibility category that controls when the parameter is shown. */
|
|
993
|
+
category: ParameterCategory;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* One stop of a gradient value. `color` is canonical lowercase hex in the
|
|
998
|
+
* gradient's mode (`#rrggbb`, or `#rrggbbaa` when declared with `alpha: true`).
|
|
999
|
+
*/
|
|
1000
|
+
export declare interface GradientStop {
|
|
1001
|
+
/** Canonical hex color of this stop. */
|
|
1002
|
+
color: string;
|
|
1003
|
+
/** Position along the ramp in `0..1`. */
|
|
1004
|
+
position: number;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* One artist- or host-supplied gradient stop. `color` accepts every form a
|
|
1009
|
+
* color parameter accepts, normalized per the gradient's `alpha` mode.
|
|
1010
|
+
*/
|
|
1011
|
+
export declare interface GradientStopInput {
|
|
1012
|
+
/** Any accepted color form (hex, CSS functions, RGB / HSB objects). */
|
|
1013
|
+
color: ColorInput;
|
|
1014
|
+
/** Position along the ramp in `0..1`. */
|
|
1015
|
+
position: number;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Value of a gradient parameter: a frozen list of stops sorted ascending by
|
|
1020
|
+
* position. Duplicate positions are allowed and form a hard edge. The length is
|
|
1021
|
+
* within the parameter's `minStops..maxStops`. No wrapper: geometry (linear,
|
|
1022
|
+
* radial, angle) is the scene's concern.
|
|
1023
|
+
*/
|
|
1024
|
+
export declare type GradientValue = readonly GradientStop[];
|
|
1025
|
+
|
|
911
1026
|
/**
|
|
912
1027
|
* One detected hand produced by the video CV pipeline. Carries 21 landmarks,
|
|
913
1028
|
* a palm shortcut, and ML-classified gesture confidence scores. Up to two
|
|
@@ -1273,6 +1388,16 @@ export declare interface ParameterConfig {
|
|
|
1273
1388
|
step?: number;
|
|
1274
1389
|
options?: string[] | number[];
|
|
1275
1390
|
maxLength?: number;
|
|
1391
|
+
/**
|
|
1392
|
+
* For color and gradient types: the value carries a transparency channel
|
|
1393
|
+
* (`#rrggbbaa` canonical form). Always present on color / gradient
|
|
1394
|
+
* definitions so validators can branch on it. Default `false`.
|
|
1395
|
+
*/
|
|
1396
|
+
alpha?: boolean;
|
|
1397
|
+
/** For gradient type: minimum number of stops the control allows (integer, 2..32). */
|
|
1398
|
+
minStops?: number;
|
|
1399
|
+
/** For gradient type: maximum number of stops the control allows (integer, 2..32). Sizes the shader uniform arrays. */
|
|
1400
|
+
maxStops?: number;
|
|
1276
1401
|
label?: string;
|
|
1277
1402
|
description?: string;
|
|
1278
1403
|
hidden?: boolean;
|
|
@@ -1314,9 +1439,9 @@ export declare interface ParameterGroup {
|
|
|
1314
1439
|
* The kind of UI control a parameter renders as. Used for the per-type
|
|
1315
1440
|
* breakdown in {@link SceneData.parameterCounts}.
|
|
1316
1441
|
*/
|
|
1317
|
-
export declare type ParameterType = 'slider' | 'color' | 'toggle' | 'select' | 'text' | 'number' | 'image' | 'button' | 'coordinate';
|
|
1442
|
+
export declare type ParameterType = 'slider' | 'color' | 'toggle' | 'select' | 'text' | 'number' | 'image' | 'button' | 'coordinate' | 'gradient';
|
|
1318
1443
|
|
|
1319
|
-
export declare type ParameterValue = string | number | boolean | ImageBitmap | CoordinateValue | null;
|
|
1444
|
+
export declare type ParameterValue = string | number | boolean | ImageBitmap | CoordinateValue | GradientValue | null;
|
|
1320
1445
|
|
|
1321
1446
|
export declare interface PerformanceStats {
|
|
1322
1447
|
resolution: Resolution;
|
|
@@ -1634,7 +1759,10 @@ export declare interface SceneData {
|
|
|
1634
1759
|
* - `RENDER_ERROR`: synchronous throw inside the artist's `render()` function.
|
|
1635
1760
|
* - `UNCAUGHT_ERROR`: caught by the worker's `self.onerror` (async / RAF / setTimeout).
|
|
1636
1761
|
* - `UNHANDLED_REJECTION`: caught by the worker's `unhandledrejection` handler.
|
|
1637
|
-
* - `SHADER_COMPILE_ERROR`: GLSL compile failure (
|
|
1762
|
+
* - `SHADER_COMPILE_ERROR`: GLSL compile / link failure, or (since 0.17.0) an invalid
|
|
1763
|
+
* `// @viji-*` directive (bad default, alpha default without `alpha:true`, gradient
|
|
1764
|
+
* stop or bounds errors, reserved-name collisions). `sourceLocation.line` is the
|
|
1765
|
+
* artist line of the failing GLSL or of the first offending directive.
|
|
1638
1766
|
* - `P5_INIT_ERROR`: failure during P5 mode initialization (e.g. missing `render`).
|
|
1639
1767
|
* - `SCENE_PARSE_ERROR`: the script scene could not be parsed by the load-time
|
|
1640
1768
|
* parameter name-inference pass (a genuine syntax error — the scene would not
|
|
@@ -2325,7 +2453,7 @@ declare interface TouchPoint {
|
|
|
2325
2453
|
/** Returned by `on*` listener registration calls; invoke to unsubscribe. */
|
|
2326
2454
|
export declare type Unsubscribe = () => void;
|
|
2327
2455
|
|
|
2328
|
-
export declare const VERSION = "0.
|
|
2456
|
+
export declare const VERSION = "0.17.0";
|
|
2329
2457
|
|
|
2330
2458
|
/**
|
|
2331
2459
|
* Real-time video API: drawable frame, dimensions, and the source-side
|
|
@@ -2569,12 +2697,17 @@ export declare interface VijiAPI {
|
|
|
2569
2697
|
slider: (defaultValue: number, config: SliderConfig) => SliderParameter;
|
|
2570
2698
|
/**
|
|
2571
2699
|
* Declares a color parameter. Accepts hex strings, CSS color functions, or RGB / HSB objects;
|
|
2572
|
-
* the value is always normalized to a canonical lowercase hex string and exposes derived
|
|
2700
|
+
* the value is always normalized to a canonical lowercase hex string and exposes derived
|
|
2701
|
+
* `.rgb` / `.hsb` / `.alpha` accessors. Pass `alpha: true` to enable transparency: the value
|
|
2702
|
+
* becomes `#rrggbbaa` and alpha-bearing inputs (`rgba()`, `#rrggbbaa`, ...) are accepted.
|
|
2703
|
+
* Without it, alpha-bearing inputs are rejected.
|
|
2573
2704
|
* Must be called at the top level of the scene, never inside `render()`.
|
|
2574
2705
|
*
|
|
2575
2706
|
* @example
|
|
2576
2707
|
* const tint = viji.color('#ff6600', { label: 'Tint' });
|
|
2577
|
-
* // tint.value -> '#ff6600', tint.rgb -> { r: 255, g: 102, b: 0 }, tint.hsb -> { h: 24, s: 100, b: 100 }
|
|
2708
|
+
* // tint.value -> '#ff6600', tint.rgb -> { r: 255, g: 102, b: 0 }, tint.hsb -> { h: 24, s: 100, b: 100 }, tint.alpha -> 1
|
|
2709
|
+
* const glow = viji.color('#ffffff80', { label: 'Glow', alpha: true });
|
|
2710
|
+
* // glow.value -> '#ffffff80', glow.alpha -> 0.5
|
|
2578
2711
|
*/
|
|
2579
2712
|
color: (defaultValue: ColorInput, config: ColorConfig) => ColorParameter;
|
|
2580
2713
|
/**
|
|
@@ -2640,6 +2773,27 @@ export declare interface VijiAPI {
|
|
|
2640
2773
|
* const cx = viji.width / 2 + origin.value.x * viji.width * 0.4;
|
|
2641
2774
|
*/
|
|
2642
2775
|
coordinate: (defaultValue: CoordinateValue, config: CoordinateConfig) => CoordinateParameter;
|
|
2776
|
+
/**
|
|
2777
|
+
* Declares a gradient parameter. The host renders a ramp editor; `value` is the live,
|
|
2778
|
+
* sorted stop list and `at(t)` samples the ramp (CSS `linear-gradient` semantics).
|
|
2779
|
+
* Stop colors accept every color form; pass `alpha: true` for per-stop transparency.
|
|
2780
|
+
* `default` is required (no evenly-spaced shorthand). Must be called at the top level
|
|
2781
|
+
* of the scene, never inside `render()`.
|
|
2782
|
+
*
|
|
2783
|
+
* @example
|
|
2784
|
+
* const ramp = viji.gradient(
|
|
2785
|
+
* [{ color: '#ff6b6b', position: 0 }, { color: '#4ecdc4', position: 1 }],
|
|
2786
|
+
* { label: 'Ramp' }
|
|
2787
|
+
* );
|
|
2788
|
+
* function render(viji) {
|
|
2789
|
+
* const fill = viji.ctx.createLinearGradient(0, 0, viji.width, 0);
|
|
2790
|
+
* for (const stop of ramp.value) fill.addColorStop(stop.position, stop.color);
|
|
2791
|
+
* viji.ctx.fillStyle = fill;
|
|
2792
|
+
* viji.ctx.fillRect(0, 0, viji.width, viji.height);
|
|
2793
|
+
* viji.ctx.fillStyle = ramp.at(0.5); // per-element color, same math as the fill
|
|
2794
|
+
* }
|
|
2795
|
+
*/
|
|
2796
|
+
gradient: (defaultValue: GradientInput, config: GradientConfig) => GradientParameter;
|
|
2643
2797
|
/**
|
|
2644
2798
|
* Selects the 2D canvas rendering context. Returns the same instance on
|
|
2645
2799
|
* subsequent calls and also stores it on `viji.ctx`. A canvas only supports
|
|
@@ -2910,18 +3064,20 @@ export declare class VijiCore {
|
|
|
2910
3064
|
private getParameterDefinition;
|
|
2911
3065
|
/**
|
|
2912
3066
|
* For color parameters, accept rich input forms (hex, RGB/HSB objects, CSS / GLSL strings)
|
|
2913
|
-
* and normalize them to canonical lowercase hex `#rrggbb
|
|
2914
|
-
*
|
|
2915
|
-
*
|
|
3067
|
+
* and normalize them to canonical lowercase hex (`#rrggbb`, or `#rrggbbaa` when the
|
|
3068
|
+
* definition declares `alpha`) before they go on the wire. For gradient parameters,
|
|
3069
|
+
* accept any stop list (stop colors in any color form, any order) and normalize it to
|
|
3070
|
+
* the sorted, frozen canonical stop array. This keeps the host<->worker contract simple
|
|
3071
|
+
* while letting external callers use whichever form is most convenient.
|
|
2916
3072
|
*
|
|
2917
|
-
*
|
|
3073
|
+
* Other values are returned unchanged.
|
|
2918
3074
|
*/
|
|
2919
|
-
private
|
|
3075
|
+
private normalizeParameterInput;
|
|
2920
3076
|
/**
|
|
2921
3077
|
* Set a single parameter value
|
|
2922
3078
|
* Handles all parameter types including images intelligently
|
|
2923
3079
|
*/
|
|
2924
|
-
setParameter(name: string, value: ParameterValue | ColorInput | File | Blob): Promise<void>;
|
|
3080
|
+
setParameter(name: string, value: ParameterValue | ColorInput | GradientInput | File | Blob): Promise<void>;
|
|
2925
3081
|
/**
|
|
2926
3082
|
* Internal method to handle image parameter loading and transfer
|
|
2927
3083
|
* Loads the image on the host side and creates TWO ImageBitmaps:
|
|
@@ -2935,7 +3091,7 @@ export declare class VijiCore {
|
|
|
2935
3091
|
* For color parameters, accepts the same rich input forms as `setParameter`
|
|
2936
3092
|
* (hex, RGB/HSB objects, CSS / GLSL strings); they are normalized to canonical hex.
|
|
2937
3093
|
*/
|
|
2938
|
-
setParameters(values: Record<string, ParameterValue | ColorInput>): Promise<void>;
|
|
3094
|
+
setParameters(values: Record<string, ParameterValue | ColorInput | GradientInput>): Promise<void>;
|
|
2939
3095
|
/**
|
|
2940
3096
|
* Get current parameter value
|
|
2941
3097
|
*/
|
package/dist/index.js
CHANGED
package/dist/param-inference.js
CHANGED
|
@@ -125,7 +125,7 @@ class a {
|
|
|
125
125
|
* signal — a scene must enable a feature to receive its data).
|
|
126
126
|
*/
|
|
127
127
|
static detectScriptCapabilities(e, t) {
|
|
128
|
-
/\bviji\.audio/.test(e) && (t.audio = !0), /\bviji\.video/.test(e) && (t.video = !0), /\bviji\.mouse/.test(e) && (t.mouse = !0), /\bviji\.keyboard/.test(e) && (t.keyboard = !0), /\bviji\.touches/.test(e) && (t.touch = !0), /\bviji\.pointer/.test(e) && (t.pointer = !0), /\bviji\.device\b/.test(e) && (t.sensors = !0), /\bviji\.devices/.test(e) && (t.devices = !0), /\bviji\.(slider|color|toggle|select|text|number|image|button|coordinate)\s*\(/.test(e) && (t.parameters = !0), /\benableFaceDetection\b/.test(e) && (t.cv.faceDetection = !0), /\benableFaceMesh\b/.test(e) && (t.cv.faceMesh = !0), /\benableEmotionDetection\b/.test(e) && (t.cv.emotion = !0), /\benableHandTracking\b/.test(e) && (t.cv.handTracking = !0), /\benablePoseDetection\b/.test(e) && (t.cv.poseDetection = !0), /\benableBodySegmentation\b/.test(e) && (t.cv.segmentation = !0);
|
|
128
|
+
/\bviji\.audio/.test(e) && (t.audio = !0), /\bviji\.video/.test(e) && (t.video = !0), /\bviji\.mouse/.test(e) && (t.mouse = !0), /\bviji\.keyboard/.test(e) && (t.keyboard = !0), /\bviji\.touches/.test(e) && (t.touch = !0), /\bviji\.pointer/.test(e) && (t.pointer = !0), /\bviji\.device\b/.test(e) && (t.sensors = !0), /\bviji\.devices/.test(e) && (t.devices = !0), /\bviji\.(slider|color|toggle|select|text|number|image|button|coordinate|gradient)\s*\(/.test(e) && (t.parameters = !0), /\benableFaceDetection\b/.test(e) && (t.cv.faceDetection = !0), /\benableFaceMesh\b/.test(e) && (t.cv.faceMesh = !0), /\benableEmotionDetection\b/.test(e) && (t.cv.emotion = !0), /\benableHandTracking\b/.test(e) && (t.cv.handTracking = !0), /\benablePoseDetection\b/.test(e) && (t.cv.poseDetection = !0), /\benableBodySegmentation\b/.test(e) && (t.cv.segmentation = !0);
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* Detects which specific interaction inputs a scene reads (positions and
|
package/dist/scene-analysis.js
CHANGED