@needle-tools/engine 5.1.0-beta.1 → 5.1.0-beta.3
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/components.needle.json +1 -1
- package/dist/{materialx-B85WjP7E.min.js → materialx-B5gKeM65.min.js} +1 -1
- package/dist/{materialx-B47Bz-xs.umd.cjs → materialx-CFRcCYWy.umd.cjs} +1 -1
- package/dist/{materialx-jkHmVPez.js → materialx-DqGmteNO.js} +1 -1
- package/dist/{needle-engine.bundle-CWiO9cA8.umd.cjs → needle-engine.bundle--5M1FCR0.umd.cjs} +154 -142
- package/dist/{needle-engine.bundle-CFo3xWPu.js → needle-engine.bundle-B6JqW8fC.js} +6020 -5970
- package/dist/{needle-engine.bundle-DxJaiP7e.min.js → needle-engine.bundle-D5eqAuZu.min.js} +158 -146
- package/dist/needle-engine.d.ts +22 -11
- package/dist/needle-engine.js +211 -211
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/dist/{vendor-BQ2Vuntm.min.js → vendor-2--bD1c9.min.js} +19 -19
- package/dist/{vendor-BslSKZPo.js → vendor-BNtcIZkv.js} +1141 -1138
- package/dist/{vendor-1UvpPPSB.umd.cjs → vendor-vbe9sv1t.umd.cjs} +20 -20
- package/lib/engine/api.d.ts +1 -1
- package/lib/engine/api.js +1 -1
- package/lib/engine/api.js.map +1 -1
- package/lib/engine/engine_init.js +2 -2
- package/lib/engine/engine_license.d.ts +7 -7
- package/lib/engine/engine_license.js +72 -72
- package/lib/engine/engine_license.js.map +1 -1
- package/lib/engine/engine_networking_blob.js +3 -3
- package/lib/engine/engine_networking_blob.js.map +1 -1
- package/lib/engine/engine_utils_qrcode.js +2 -2
- package/lib/engine/engine_utils_qrcode.js.map +1 -1
- package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js +2 -2
- package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js.map +1 -1
- package/lib/engine/webcomponents/needle menu/needle-menu.d.ts +2 -2
- package/lib/engine/webcomponents/needle menu/needle-menu.js +9 -9
- package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.js +2 -2
- package/lib/engine/webcomponents/needle-engine.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.loading.js +2 -2
- package/lib/engine/webcomponents/needle-engine.loading.js.map +1 -1
- package/lib/engine/xr/TempXRContext.js +2 -2
- package/lib/engine/xr/TempXRContext.js.map +1 -1
- package/lib/engine-components/Component.js +12 -0
- package/lib/engine-components/Component.js.map +1 -1
- package/lib/engine-components/ContactShadows.d.ts +7 -2
- package/lib/engine-components/ContactShadows.js +65 -45
- package/lib/engine-components/ContactShadows.js.map +1 -1
- package/lib/engine-components/GroundProjection.d.ts +6 -0
- package/lib/engine-components/GroundProjection.js +69 -7
- package/lib/engine-components/GroundProjection.js.map +1 -1
- package/lib/engine-components/NeedleMenu.d.ts +1 -1
- package/lib/engine-components/NeedleMenu.js +5 -2
- package/lib/engine-components/NeedleMenu.js.map +1 -1
- package/lib/engine-components/Skybox.js +9 -0
- package/lib/engine-components/Skybox.js.map +1 -1
- package/lib/engine-components/export/usdz/USDZExporter.js +4 -4
- package/lib/engine-components/export/usdz/USDZExporter.js.map +1 -1
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +9 -5
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js.map +1 -1
- package/lib/engine-components/particlesystem/ParticleSystem.js +4 -0
- package/lib/engine-components/particlesystem/ParticleSystem.js.map +1 -1
- package/lib/engine-components/webxr/WebXRImageTracking.js +3 -0
- package/lib/engine-components/webxr/WebXRImageTracking.js.map +1 -1
- package/package.json +2 -2
- package/plugins/common/license.js +4 -4
- package/plugins/vite/build-pipeline.js +33 -2
- package/plugins/vite/license.js +4 -4
- package/src/engine/api.ts +1 -1
- package/src/engine/engine_init.ts +2 -2
- package/src/engine/engine_license.ts +69 -69
- package/src/engine/engine_networking_blob.ts +3 -3
- package/src/engine/engine_utils_qrcode.ts +2 -2
- package/src/engine/webcomponents/needle menu/needle-menu-spatial.ts +2 -2
- package/src/engine/webcomponents/needle menu/needle-menu.ts +10 -10
- package/src/engine/webcomponents/needle-engine.loading.ts +6 -6
- package/src/engine/webcomponents/needle-engine.ts +2 -2
- package/src/engine/xr/TempXRContext.ts +2 -2
- package/src/engine-components/Component.ts +11 -0
- package/src/engine-components/ContactShadows.ts +75 -49
- package/src/engine-components/GroundProjection.ts +71 -7
- package/src/engine-components/NeedleMenu.ts +6 -3
- package/src/engine-components/Skybox.ts +8 -0
- package/src/engine-components/export/usdz/USDZExporter.ts +4 -4
- package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +12 -5
- package/src/engine-components/particlesystem/ParticleSystem.ts +4 -0
- package/src/engine-components/webxr/WebXRImageTracking.ts +1 -0
package/dist/needle-engine.d.ts
CHANGED
|
@@ -118,13 +118,11 @@ import { XRHandSpace } from 'three';
|
|
|
118
118
|
|
|
119
119
|
export declare const $componentName: unique symbol;
|
|
120
120
|
|
|
121
|
-
/* Excluded from this release type: $
|
|
121
|
+
/* Excluded from this release type: _$gQv */
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/* Excluded from this release type: _$WfJljBK */
|
|
123
|
+
/* Excluded from this release type: $kwMQgrdg */
|
|
126
124
|
|
|
127
|
-
|
|
125
|
+
export declare const $physicsKey: unique symbol;
|
|
128
126
|
|
|
129
127
|
export declare class __Ignore {
|
|
130
128
|
}
|
|
@@ -4576,8 +4574,8 @@ export declare class ContactShadows extends Component {
|
|
|
4576
4574
|
* in which case ContactShadows scale would affect the projection
|
|
4577
4575
|
**/
|
|
4578
4576
|
private readonly shadowsRoot;
|
|
4579
|
-
private shadowCamera?;
|
|
4580
4577
|
private readonly shadowGroup;
|
|
4578
|
+
private shadowCamera?;
|
|
4581
4579
|
private renderTarget?;
|
|
4582
4580
|
private renderTargetBlur?;
|
|
4583
4581
|
private plane?;
|
|
@@ -4592,11 +4590,16 @@ export declare class ContactShadows extends Component {
|
|
|
4592
4590
|
* Call to fit the shadows to the scene.
|
|
4593
4591
|
*/
|
|
4594
4592
|
fitShadows(params?: FitParameters): void;
|
|
4593
|
+
/**
|
|
4594
|
+
* Call to update the shadows immediately. Only needed if `manualUpdate` is enabled, usually the shadows will update automatically when the scene changes or when the component is enabled.
|
|
4595
|
+
*/
|
|
4596
|
+
renderShadowsNow(): void;
|
|
4595
4597
|
/* Excluded from this release type: awake */
|
|
4596
|
-
/* Excluded from this release type:
|
|
4597
|
-
onEnable(): void;
|
|
4598
|
+
/* Excluded from this release type: onEnable */
|
|
4598
4599
|
/* Excluded from this release type: onDestroy */
|
|
4599
4600
|
/* Excluded from this release type: onBeforeRender */
|
|
4601
|
+
private _ensureSetup;
|
|
4602
|
+
private _renderShadows;
|
|
4600
4603
|
private blurShadow;
|
|
4601
4604
|
private applyMinSize;
|
|
4602
4605
|
}
|
|
@@ -8263,6 +8266,12 @@ export declare class GroundProjectedEnv extends Component {
|
|
|
8263
8266
|
private _lastHeight?;
|
|
8264
8267
|
private _projection?;
|
|
8265
8268
|
private _watcher?;
|
|
8269
|
+
/** The scene's real backgroundBlurriness, stored while we temporarily override it for the render. */
|
|
8270
|
+
private _savedBackgroundBlur;
|
|
8271
|
+
/** pre_render_callback: force the skybox blur just before the render (after all component onBeforeRender). */
|
|
8272
|
+
private readonly _forceBackgroundBlur;
|
|
8273
|
+
/** post_render_callback: restore the scene's real blur right after the render. */
|
|
8274
|
+
private readonly _restoreBackgroundBlur;
|
|
8266
8275
|
/* Excluded from this release type: awake */
|
|
8267
8276
|
/* Excluded from this release type: onEnable */
|
|
8268
8277
|
/* Excluded from this release type: onDisable */
|
|
@@ -10581,6 +10590,8 @@ declare type KF_2<V> = AnimationKeyframe<V>[] | Tween<V>;
|
|
|
10581
10590
|
/** Keyframe array or tween shorthand */
|
|
10582
10591
|
declare type KF_3<V> = AnimationKeyframe<V>[] | Tween<V>;
|
|
10583
10592
|
|
|
10593
|
+
/* Excluded from this release type: kWmTNFr */
|
|
10594
|
+
|
|
10584
10595
|
declare type LabelHandle = {
|
|
10585
10596
|
setText(str: string): any;
|
|
10586
10597
|
};
|
|
@@ -12365,7 +12376,7 @@ export declare class NeedleMenu extends Component {
|
|
|
12365
12376
|
*/
|
|
12366
12377
|
position: "top" | "bottom";
|
|
12367
12378
|
/**
|
|
12368
|
-
* Controls the visibility of the Needle logo in the menu (requires
|
|
12379
|
+
* Controls the visibility of the Needle logo in the menu (requires a commercial license)
|
|
12369
12380
|
*/
|
|
12370
12381
|
showNeedleLogo: boolean;
|
|
12371
12382
|
/**
|
|
@@ -12464,10 +12475,10 @@ declare class NeedleMenu_2 {
|
|
|
12464
12475
|
setPosition(position: "top" | "bottom"): void;
|
|
12465
12476
|
/**
|
|
12466
12477
|
* Call to show or hide the menu.
|
|
12467
|
-
* NOTE: Hiding the menu
|
|
12478
|
+
* NOTE: Hiding the menu requires a commercial license. Hiding the menu will not work in production without a license.
|
|
12468
12479
|
*/
|
|
12469
12480
|
setVisible(visible: boolean): void;
|
|
12470
|
-
/** When set to false, the Needle Engine logo will be hidden. Hiding the logo requires a
|
|
12481
|
+
/** When set to false, the Needle Engine logo will be hidden. Hiding the logo requires a commercial license */
|
|
12471
12482
|
showNeedleLogo(visible: boolean): void;
|
|
12472
12483
|
/** @returns true if the logo is visible */
|
|
12473
12484
|
get logoIsVisible(): boolean;
|