@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.
Files changed (80) hide show
  1. package/components.needle.json +1 -1
  2. package/dist/{materialx-B85WjP7E.min.js → materialx-B5gKeM65.min.js} +1 -1
  3. package/dist/{materialx-B47Bz-xs.umd.cjs → materialx-CFRcCYWy.umd.cjs} +1 -1
  4. package/dist/{materialx-jkHmVPez.js → materialx-DqGmteNO.js} +1 -1
  5. package/dist/{needle-engine.bundle-CWiO9cA8.umd.cjs → needle-engine.bundle--5M1FCR0.umd.cjs} +154 -142
  6. package/dist/{needle-engine.bundle-CFo3xWPu.js → needle-engine.bundle-B6JqW8fC.js} +6020 -5970
  7. package/dist/{needle-engine.bundle-DxJaiP7e.min.js → needle-engine.bundle-D5eqAuZu.min.js} +158 -146
  8. package/dist/needle-engine.d.ts +22 -11
  9. package/dist/needle-engine.js +211 -211
  10. package/dist/needle-engine.min.js +1 -1
  11. package/dist/needle-engine.umd.cjs +1 -1
  12. package/dist/{vendor-BQ2Vuntm.min.js → vendor-2--bD1c9.min.js} +19 -19
  13. package/dist/{vendor-BslSKZPo.js → vendor-BNtcIZkv.js} +1141 -1138
  14. package/dist/{vendor-1UvpPPSB.umd.cjs → vendor-vbe9sv1t.umd.cjs} +20 -20
  15. package/lib/engine/api.d.ts +1 -1
  16. package/lib/engine/api.js +1 -1
  17. package/lib/engine/api.js.map +1 -1
  18. package/lib/engine/engine_init.js +2 -2
  19. package/lib/engine/engine_license.d.ts +7 -7
  20. package/lib/engine/engine_license.js +72 -72
  21. package/lib/engine/engine_license.js.map +1 -1
  22. package/lib/engine/engine_networking_blob.js +3 -3
  23. package/lib/engine/engine_networking_blob.js.map +1 -1
  24. package/lib/engine/engine_utils_qrcode.js +2 -2
  25. package/lib/engine/engine_utils_qrcode.js.map +1 -1
  26. package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js +2 -2
  27. package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js.map +1 -1
  28. package/lib/engine/webcomponents/needle menu/needle-menu.d.ts +2 -2
  29. package/lib/engine/webcomponents/needle menu/needle-menu.js +9 -9
  30. package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
  31. package/lib/engine/webcomponents/needle-engine.js +2 -2
  32. package/lib/engine/webcomponents/needle-engine.js.map +1 -1
  33. package/lib/engine/webcomponents/needle-engine.loading.js +2 -2
  34. package/lib/engine/webcomponents/needle-engine.loading.js.map +1 -1
  35. package/lib/engine/xr/TempXRContext.js +2 -2
  36. package/lib/engine/xr/TempXRContext.js.map +1 -1
  37. package/lib/engine-components/Component.js +12 -0
  38. package/lib/engine-components/Component.js.map +1 -1
  39. package/lib/engine-components/ContactShadows.d.ts +7 -2
  40. package/lib/engine-components/ContactShadows.js +65 -45
  41. package/lib/engine-components/ContactShadows.js.map +1 -1
  42. package/lib/engine-components/GroundProjection.d.ts +6 -0
  43. package/lib/engine-components/GroundProjection.js +69 -7
  44. package/lib/engine-components/GroundProjection.js.map +1 -1
  45. package/lib/engine-components/NeedleMenu.d.ts +1 -1
  46. package/lib/engine-components/NeedleMenu.js +5 -2
  47. package/lib/engine-components/NeedleMenu.js.map +1 -1
  48. package/lib/engine-components/Skybox.js +9 -0
  49. package/lib/engine-components/Skybox.js.map +1 -1
  50. package/lib/engine-components/export/usdz/USDZExporter.js +4 -4
  51. package/lib/engine-components/export/usdz/USDZExporter.js.map +1 -1
  52. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +9 -5
  53. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js.map +1 -1
  54. package/lib/engine-components/particlesystem/ParticleSystem.js +4 -0
  55. package/lib/engine-components/particlesystem/ParticleSystem.js.map +1 -1
  56. package/lib/engine-components/webxr/WebXRImageTracking.js +3 -0
  57. package/lib/engine-components/webxr/WebXRImageTracking.js.map +1 -1
  58. package/package.json +2 -2
  59. package/plugins/common/license.js +4 -4
  60. package/plugins/vite/build-pipeline.js +33 -2
  61. package/plugins/vite/license.js +4 -4
  62. package/src/engine/api.ts +1 -1
  63. package/src/engine/engine_init.ts +2 -2
  64. package/src/engine/engine_license.ts +69 -69
  65. package/src/engine/engine_networking_blob.ts +3 -3
  66. package/src/engine/engine_utils_qrcode.ts +2 -2
  67. package/src/engine/webcomponents/needle menu/needle-menu-spatial.ts +2 -2
  68. package/src/engine/webcomponents/needle menu/needle-menu.ts +10 -10
  69. package/src/engine/webcomponents/needle-engine.loading.ts +6 -6
  70. package/src/engine/webcomponents/needle-engine.ts +2 -2
  71. package/src/engine/xr/TempXRContext.ts +2 -2
  72. package/src/engine-components/Component.ts +11 -0
  73. package/src/engine-components/ContactShadows.ts +75 -49
  74. package/src/engine-components/GroundProjection.ts +71 -7
  75. package/src/engine-components/NeedleMenu.ts +6 -3
  76. package/src/engine-components/Skybox.ts +8 -0
  77. package/src/engine-components/export/usdz/USDZExporter.ts +4 -4
  78. package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +12 -5
  79. package/src/engine-components/particlesystem/ParticleSystem.ts +4 -0
  80. package/src/engine-components/webxr/WebXRImageTracking.ts +1 -0
@@ -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: $KhjWEFh */
121
+ /* Excluded from this release type: _$gQv */
122
122
 
123
- export declare const $physicsKey: unique symbol;
124
-
125
- /* Excluded from this release type: _$WfJljBK */
123
+ /* Excluded from this release type: $kwMQgrdg */
126
124
 
127
- /* Excluded from this release type: __Aale */
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: start */
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 PRO license)
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 is a PRO feature and requires a needle engine license. Hiding the menu will not work in production without a license.
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 needle engine license */
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;