@needle-tools/engine 3.27.1-beta → 3.27.2-beta
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 +5 -0
- package/dist/needle-engine.js +3 -3
- package/dist/needle-engine.light.js +3 -3
- package/dist/needle-engine.light.min.js +3 -3
- package/dist/needle-engine.light.umd.cjs +3 -3
- package/dist/needle-engine.min.js +3 -3
- package/dist/needle-engine.umd.cjs +3 -3
- package/lib/engine/engine_addressables.js +1 -1
- package/lib/engine/engine_addressables.js.map +1 -1
- package/lib/engine/engine_element.js +1 -1
- package/lib/engine-components/OrbitControls.js +1 -1
- package/lib/engine-components/OrbitControls.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/engine_addressables.ts +1 -1
- package/src/engine/engine_element.ts +2 -2
- package/src/engine-components/OrbitControls.ts +1 -1
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.27.2-beta] - 2023-12-08
|
|
8
|
+
- Fix: don't set font on `<needle-engine>` host styles to prevent leaking into child elements
|
|
9
|
+
- Fix: `AssetReference.loadAsync` being called multiple times should always return the `asset` result
|
|
10
|
+
- Change: register OrbitControls events on the canvas and not the needle engine element to allow child HTML objects to capture input
|
|
11
|
+
|
|
7
12
|
## [3.27.1-beta] - 2023-12-06
|
|
8
13
|
- Add `addCustomExtensionPlugin` API to register custom glTF importer and exporter extensions
|
|
9
14
|
- Fix: issue where instanced and animated object was rendered for one frame with a wrong matrix
|
package/dist/needle-engine.js
CHANGED
|
@@ -39309,7 +39309,7 @@ const A0 = Symbol("assetReference"), wQ = class {
|
|
|
39309
39309
|
if (vC && console.log("loadAssetAsync", this.uri), !this.mustLoad)
|
|
39310
39310
|
return this.asset;
|
|
39311
39311
|
if (A && this._progressListeners.push(A), this._loading !== void 0)
|
|
39312
|
-
return this._loading;
|
|
39312
|
+
return this._loading.then((g) => this.asset);
|
|
39313
39313
|
const e = xe.Current;
|
|
39314
39314
|
this._rawBinary ? (this._loading = An().parseSync(e, this._rawBinary, this.uri, null), this.raiseProgressEvent(new ProgressEvent("progress", { loaded: this._rawBinary.byteLength, total: this._rawBinary.byteLength }))) : (vC && console.log("Load async", this.uri), this._loading = An().loadSync(e, this._hashedUri, this.uri, null, (g) => {
|
|
39315
39315
|
this.raiseProgressEvent(g);
|
|
@@ -62322,7 +62322,7 @@ class Xt extends NA {
|
|
|
62322
62322
|
return;
|
|
62323
62323
|
}
|
|
62324
62324
|
t && (this._cameraObject = t);
|
|
62325
|
-
const g = this.targetElement ?? this.context.domElement, I = t == null ? void 0 : t.quaternion.clone();
|
|
62325
|
+
const g = this.targetElement ?? this.context.renderer.domElement, I = t == null ? void 0 : t.quaternion.clone();
|
|
62326
62326
|
this._controls = new DtA(t, g), t == null || t.quaternion.copy(I), v0 === void 0 && (v0 = { ...this._controls.keys });
|
|
62327
62327
|
}
|
|
62328
62328
|
this._controls && (_u && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, Ra() && (this.doubleClickToFocus = !0)), this._controls.addEventListener("start", this.onControlsChangeStarted), (t == null ? void 0 : t.type) === "PerspectiveCamera" ? _u || (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom) : _u || (this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom), this._startedListeningToKeyEvents || (this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(window.document.body))), this._syncedTransform = IA.getComponent(this.gameObject, _r) ?? void 0;
|
|
@@ -86005,8 +86005,8 @@ class F2 extends HTMLElement {
|
|
|
86005
86005
|
display: block;
|
|
86006
86006
|
width: max(600px, 100%);
|
|
86007
86007
|
height: max(300px, 100%);
|
|
86008
|
-
font-family: 'Roboto', sans-serif;
|
|
86009
86008
|
}
|
|
86009
|
+
|
|
86010
86010
|
@media (max-width: 600px) {
|
|
86011
86011
|
:host {
|
|
86012
86012
|
width: 100%;
|
|
@@ -39309,7 +39309,7 @@ const kw = Symbol("assetReference"), ef = class {
|
|
|
39309
39309
|
if (yl && console.log("loadAssetAsync", this.uri), !this.mustLoad)
|
|
39310
39310
|
return this.asset;
|
|
39311
39311
|
if (e && this._progressListeners.push(e), this._loading !== void 0)
|
|
39312
|
-
return this._loading;
|
|
39312
|
+
return this._loading.then((s) => this.asset);
|
|
39313
39313
|
const t = Ut.Current;
|
|
39314
39314
|
this._rawBinary ? (this._loading = Ha().parseSync(t, this._rawBinary, this.uri, null), this.raiseProgressEvent(new ProgressEvent("progress", { loaded: this._rawBinary.byteLength, total: this._rawBinary.byteLength }))) : (yl && console.log("Load async", this.uri), this._loading = Ha().loadSync(t, this._hashedUri, this.uri, null, (s) => {
|
|
39315
39315
|
this.raiseProgressEvent(s);
|
|
@@ -62322,7 +62322,7 @@ class ji extends Ie {
|
|
|
62322
62322
|
return;
|
|
62323
62323
|
}
|
|
62324
62324
|
i && (this._cameraObject = i);
|
|
62325
|
-
const s = this.targetElement ?? this.context.domElement, r = i == null ? void 0 : i.quaternion.clone();
|
|
62325
|
+
const s = this.targetElement ?? this.context.renderer.domElement, r = i == null ? void 0 : i.quaternion.clone();
|
|
62326
62326
|
this._controls = new $ee(i, s), i == null || i.quaternion.copy(r), vS === void 0 && (vS = { ...this._controls.keys });
|
|
62327
62327
|
}
|
|
62328
62328
|
this._controls && (ay && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, ah() && (this.doubleClickToFocus = !0)), this._controls.addEventListener("start", this.onControlsChangeStarted), (i == null ? void 0 : i.type) === "PerspectiveCamera" ? ay || (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom) : ay || (this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom), this._startedListeningToKeyEvents || (this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(window.document.body))), this._syncedTransform = ne.getComponent(this.gameObject, bu) ?? void 0;
|
|
@@ -86005,8 +86005,8 @@ class iG extends HTMLElement {
|
|
|
86005
86005
|
display: block;
|
|
86006
86006
|
width: max(600px, 100%);
|
|
86007
86007
|
height: max(300px, 100%);
|
|
86008
|
-
font-family: 'Roboto', sans-serif;
|
|
86009
86008
|
}
|
|
86009
|
+
|
|
86010
86010
|
@media (max-width: 600px) {
|
|
86011
86011
|
:host {
|
|
86012
86012
|
width: 100%;
|