@needle-tools/engine 3.45.1-beta.5 → 3.45.1-beta.7

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/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [3.45.1-beta.7] - 2024-07-16
8
+ - Add: vite plugin that ensures that the npm folder exists
9
+ - Fix: Issue where completely empty scene without explicit XR rig caused invalid placement/rendering in VR
10
+ - Change: Disable touch-action on `<needle-engine>` element
11
+
7
12
  ## [3.45.1-beta.5] - 2024-07-16
8
13
  - Update gltf-progressive to version 1.2.5
9
14
 
@@ -29626,13 +29626,13 @@ function AiA() {
29626
29626
  return g || null;
29627
29627
  }
29628
29628
  const e4 = gA("debugdefines");
29629
- mh('if(!globalThis[""3.45.1-beta.5""]) globalThis[""3.45.1-beta.5""] = "0.0.0";');
29629
+ mh('if(!globalThis[""3.45.1-beta.7""]) globalThis[""3.45.1-beta.7""] = "0.0.0";');
29630
29630
  mh('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
29631
- mh('if(!globalThis[""Tue Jul 16 2024 10:35:30 GMT+0200 (Central European Summer Time)""]) globalThis[""Tue Jul 16 2024 10:35:30 GMT+0200 (Central European Summer Time)""] = "unknown";');
29632
- mh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.45.1-beta.5";');
29631
+ mh('if(!globalThis[""Tue Jul 16 2024 16:20:04 GMT+0200 (Central European Summer Time)""]) globalThis[""Tue Jul 16 2024 16:20:04 GMT+0200 (Central European Summer Time)""] = "unknown";');
29632
+ mh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.45.1-beta.7";');
29633
29633
  mh('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
29634
- mh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Tue Jul 16 2024 10:35:30 GMT+0200 (Central European Summer Time)";');
29635
- const un = "3.45.1-beta.5", Xb = "undefined", t4 = "Tue Jul 16 2024 10:35:30 GMT+0200 (Central European Summer Time)";
29634
+ mh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Tue Jul 16 2024 16:20:04 GMT+0200 (Central European Summer Time)";');
29635
+ const un = "3.45.1-beta.7", Xb = "undefined", t4 = "Tue Jul 16 2024 16:20:04 GMT+0200 (Central European Summer Time)";
29636
29636
  e4 && console.log(`Engine version: ${un} (generator: ${Xb})
29637
29637
  Project built at ${t4}`);
29638
29638
  const oB = "needle_isActiveInHierarchy", Al = "builtin_components", gS = "needle_editor_guid";
@@ -64097,10 +64097,13 @@ const aa = class {
64097
64097
  if (this._didStart = !0, this.mode === "immersive-vr") {
64098
64098
  const c = qa(this.context.scene.children);
64099
64099
  if (c) {
64100
- const E = c.getSize(pt()), d = this._defaultRig.gameObject;
64101
- d.position.set(c.min.x + E.x * 0.5, c.min.y, c.max.z + E.z * 0.5 + 1.5);
64102
- const l = c.getCenter(pt());
64103
- l.y = d.position.y, d.lookAt(l);
64100
+ const E = c.getSize(pt());
64101
+ if (E.length() > 0) {
64102
+ const d = this._defaultRig.gameObject;
64103
+ d.position.set(c.min.x + E.x * 0.5, c.min.y, c.max.z + E.z * 0.5 + 1.5);
64104
+ const l = c.getCenter(pt());
64105
+ l.y = d.position.y, d.lookAt(l);
64106
+ }
64104
64107
  }
64105
64108
  }
64106
64109
  lCA({ session: this });
@@ -102953,6 +102956,7 @@ class zZ extends HTMLElement {
102953
102956
  display: block;
102954
102957
  width: max(600px, 100%);
102955
102958
  height: max(300px, 100%);
102959
+ touch-action: none;
102956
102960
  }
102957
102961
 
102958
102962
  @media (max-width: 600px) {