@needle-tools/engine 4.12.0 → 4.12.1-next.d0e7ab9
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 +0 -4
- package/dist/{needle-engine.bundle-CpPhY8AW.js → needle-engine.bundle-Bui1rwzi.js} +97 -99
- package/dist/{needle-engine.bundle-BhAUDZcQ.min.js → needle-engine.bundle-CDilC6Jp.min.js} +29 -29
- package/dist/{needle-engine.bundle-DQdhrcLq.umd.cjs → needle-engine.bundle-DMnUH2zX.umd.cjs} +4 -4
- package/dist/needle-engine.d.ts +15 -15
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine/webcomponents/needle-engine.ar-overlay.js +6 -5
- package/lib/engine/webcomponents/needle-engine.ar-overlay.js.map +1 -1
- package/package.json +2 -2
- package/src/engine/webcomponents/needle-engine.ar-overlay.ts +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -21,13 +21,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
21
21
|
- Improve: JSDoc documentation for Everywhere Actions and other components
|
|
22
22
|
- Fix: issue with callbacks on freshly destroyed components when leaving XR sessions
|
|
23
23
|
- Fix: Instancing issue with growing vertex/index buffers when not necessary
|
|
24
|
-
- Fix: Instancing and texture LODs
|
|
25
24
|
- Fix: Issue with `<needle-engine>` element being moved in the DOM
|
|
26
|
-
- Fix: SceneSwitcher was destroying local scene content
|
|
27
25
|
- Fix: Better type declarations in package.json
|
|
28
26
|
|
|
29
|
-
https://cloud.needle.tools/-/media/WI0Q0s961BjdXgUEQHxifQ.gif
|
|
30
|
-
|
|
31
27
|
## [4.11.5] - 2025-10-31
|
|
32
28
|
- Fix: Timeline cloning with `instantiate` ([forum 2733](<https://forum.needle.tools/t/2733>))
|
|
33
29
|
- Fix: Renderer `sharedMaterials` being null in awake
|
|
@@ -920,7 +920,7 @@ function JL(s, e, t) {
|
|
|
920
920
|
return s.lerp(e, t).normalize().multiplyScalar(o);
|
|
921
921
|
}
|
|
922
922
|
const Mf = new V(), R0 = new V().setFromAxisAngle(new y(0, 1, 0), Math.PI);
|
|
923
|
-
function
|
|
923
|
+
function eD(s, e) {
|
|
924
924
|
s.lookAt(e), s.quaternion.multiply(R0);
|
|
925
925
|
}
|
|
926
926
|
function gu(s, e, t = !0, i = !1) {
|
|
@@ -937,7 +937,7 @@ function gu(s, e, t = !0, i = !1) {
|
|
|
937
937
|
}
|
|
938
938
|
t && (n.y = o.y), s.lookAt(n), Number.isNaN(s.quaternion.x) && s.quaternion.copy(Mf);
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function tD(s, e, t, i = 1) {
|
|
941
941
|
if (t) {
|
|
942
942
|
const n = z(0, 0, 0), o = e.x / window.innerWidth * 2 - 1, r = -(e.y / window.innerHeight) * 2 + 1;
|
|
943
943
|
n.set(
|
|
@@ -1012,7 +1012,7 @@ function Pc(s, e) {
|
|
|
1012
1012
|
s.parent.getWorldScale(t), s.scale.copy(e), s.scale.divide(t);
|
|
1013
1013
|
}
|
|
1014
1014
|
const bC = new y(), Qy = new V();
|
|
1015
|
-
function
|
|
1015
|
+
function iD(s) {
|
|
1016
1016
|
return ve(s, Qy), bC.set(0, 0, 1).applyQuaternion(Qy);
|
|
1017
1017
|
}
|
|
1018
1018
|
const vC = new Yi(() => new y(), 100), Yy = new V();
|
|
@@ -1047,7 +1047,7 @@ function Vp(s, e = !0) {
|
|
|
1047
1047
|
console.log(i + t.name + " <" + t.type + ">");
|
|
1048
1048
|
}));
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function nD(s) {
|
|
1051
1051
|
let e = s?.name || "";
|
|
1052
1052
|
if (!s) return e;
|
|
1053
1053
|
let t = s.parent;
|
|
@@ -1170,7 +1170,7 @@ class xr {
|
|
|
1170
1170
|
function PC(s) {
|
|
1171
1171
|
return xr.copyTexture(s);
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function sD(s, e = !1) {
|
|
1174
1174
|
return xr.textureToCanvas(s, e);
|
|
1175
1175
|
}
|
|
1176
1176
|
function OC(s) {
|
|
@@ -1544,7 +1544,7 @@ function L() {
|
|
|
1544
1544
|
let s = Qi();
|
|
1545
1545
|
return s || (s = window.location.hostname.endsWith(".local-credentialless.webcontainer.io")), Ef = s, s;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function oD(s) {
|
|
1548
1548
|
Hp = s;
|
|
1549
1549
|
}
|
|
1550
1550
|
let ri, qo = null, Un = null, Ol = !1, Jy = null;
|
|
@@ -1912,11 +1912,11 @@ Co('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
|
|
|
1912
1912
|
Co('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
|
|
1913
1913
|
Co('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
|
|
1914
1914
|
Co('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1915
|
-
Co('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.12.
|
|
1915
|
+
Co('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.12.1";');
|
|
1916
1916
|
Co('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1917
|
-
Co('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
1917
|
+
Co('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Tue Feb 03 2026 09:07:37 GMT+0000 (Coordinated Universal Time)";');
|
|
1918
1918
|
Co('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
1919
|
-
const Xi = "4.12.
|
|
1919
|
+
const Xi = "4.12.1", Oc = "undefined", Md = "Tue Feb 03 2026 09:07:37 GMT+0000 (Coordinated Universal Time)";
|
|
1920
1920
|
N0 && console.log(`Engine version: ${Xi} (generator: ${Oc})
|
|
1921
1921
|
Project built at ${Md}`);
|
|
1922
1922
|
const hr = NEEDLE_PUBLIC_KEY, mo = "needle_isActiveInHierarchy", oa = "builtin_components", id = "needle_editor_guid";
|
|
@@ -1979,7 +1979,7 @@ function sg(s, e, t, i) {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
}));
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function rD(s, e, t) {
|
|
1983
1983
|
const i = og(s, e);
|
|
1984
1984
|
if (i)
|
|
1985
1985
|
for (let n = i.length - 1; n >= 0; n--) {
|
|
@@ -2033,7 +2033,7 @@ const ja = [];
|
|
|
2033
2033
|
function rg(s) {
|
|
2034
2034
|
ja.indexOf(s) === -1 && ja.push(s);
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function aD(s) {
|
|
2037
2037
|
const e = ja.indexOf(s);
|
|
2038
2038
|
e !== -1 && ja.splice(e, 1);
|
|
2039
2039
|
}
|
|
@@ -2041,7 +2041,7 @@ const Ba = [];
|
|
|
2041
2041
|
function G0(s) {
|
|
2042
2042
|
Ba.indexOf(s) === -1 && Ba.push(s);
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2044
|
+
function lD(s) {
|
|
2045
2045
|
const e = Ba.indexOf(s);
|
|
2046
2046
|
e !== -1 && Ba.splice(e, 1);
|
|
2047
2047
|
}
|
|
@@ -2160,7 +2160,7 @@ class wh extends KeyboardEvent {
|
|
|
2160
2160
|
super.stopImmediatePropagation(), this.source?.stopImmediatePropagation();
|
|
2161
2161
|
}
|
|
2162
2162
|
}
|
|
2163
|
-
class
|
|
2163
|
+
class cD {
|
|
2164
2164
|
key;
|
|
2165
2165
|
keyType;
|
|
2166
2166
|
source;
|
|
@@ -3642,10 +3642,10 @@ function bP(s) {
|
|
|
3642
3642
|
return typeof s.guid == "function" ? s.guid() : null;
|
|
3643
3643
|
}
|
|
3644
3644
|
let lg;
|
|
3645
|
-
function
|
|
3645
|
+
function hD() {
|
|
3646
3646
|
return lg;
|
|
3647
3647
|
}
|
|
3648
|
-
function
|
|
3648
|
+
function dD(s) {
|
|
3649
3649
|
lg = s;
|
|
3650
3650
|
}
|
|
3651
3651
|
function vP(s, e) {
|
|
@@ -3739,7 +3739,7 @@ const d_ = "https://urls.needle.tools/default-networking-backend/index";
|
|
|
3739
3739
|
let ji = "wss://networking.needle.tools/socket";
|
|
3740
3740
|
const gi = !!x("debugnet"), Ch = !!(gi || x("debugowner")), Ph = x("debugnetbin");
|
|
3741
3741
|
var CP = /* @__PURE__ */ ((s) => (s.ConnectionInfo = "connection-start-info", s))(CP || {}), ie = /* @__PURE__ */ ((s) => (s.Join = "join-room", s.Leave = "leave-room", s.JoinedRoom = "joined-room", s.LeftRoom = "left-room", s.UserJoinedRoom = "user-joined-room", s.UserLeftRoom = "user-left-room", s.RoomStateSent = "room-state-sent", s))(ie || {});
|
|
3742
|
-
class
|
|
3742
|
+
class uD {
|
|
3743
3743
|
room;
|
|
3744
3744
|
// room name
|
|
3745
3745
|
viewId;
|
|
@@ -3747,11 +3747,11 @@ class u2 {
|
|
|
3747
3747
|
inRoom;
|
|
3748
3748
|
// connection ids
|
|
3749
3749
|
}
|
|
3750
|
-
class
|
|
3750
|
+
class fD {
|
|
3751
3751
|
room;
|
|
3752
3752
|
// room name
|
|
3753
3753
|
}
|
|
3754
|
-
class
|
|
3754
|
+
class pD {
|
|
3755
3755
|
userId;
|
|
3756
3756
|
}
|
|
3757
3757
|
var PP = /* @__PURE__ */ ((s) => (s.RequestHasOwner = "request-has-owner", s.ResponseHasOwner = "response-has-owner", s.RequestIsOwner = "request-is-owner", s.ResponseIsOwner = "response-is-owner", s.RequestOwnership = "request-ownership", s.GainedOwnership = "gained-ownership", s.RemoveOwnership = "remove-ownership", s.LostOwnership = "lost-ownership", s.GainedOwnershipBroadcast = "gained-ownership-broadcast", s.LostOwnershipBroadcast = "lost-ownership-broadcast", s))(PP || {});
|
|
@@ -6404,7 +6404,7 @@ function ev() {
|
|
|
6404
6404
|
}
|
|
6405
6405
|
let jr = !0;
|
|
6406
6406
|
bu === 0 && (jr = !1);
|
|
6407
|
-
function
|
|
6407
|
+
function mD(s) {
|
|
6408
6408
|
jr = s;
|
|
6409
6409
|
}
|
|
6410
6410
|
function HP() {
|
|
@@ -6415,7 +6415,7 @@ function GP(s, e) {
|
|
|
6415
6415
|
s && (s[tv] = e, mr && console.warn("Set disposable", e, s));
|
|
6416
6416
|
}
|
|
6417
6417
|
const iv = /* @__PURE__ */ Symbol("disposed");
|
|
6418
|
-
function
|
|
6418
|
+
function gD(s) {
|
|
6419
6419
|
return s[iv] === !0;
|
|
6420
6420
|
}
|
|
6421
6421
|
function Te(s) {
|
|
@@ -6461,7 +6461,7 @@ function Te(s) {
|
|
|
6461
6461
|
function Xr(s) {
|
|
6462
6462
|
s && ((mr || ev() || bu) && console.warn("🧨 FREE", s), s instanceof ImageBitmap || "dispose" in s && typeof s.dispose == "function" && s.dispose());
|
|
6463
6463
|
}
|
|
6464
|
-
function
|
|
6464
|
+
function yD(s) {
|
|
6465
6465
|
}
|
|
6466
6466
|
const qP = /* @__PURE__ */ new Set();
|
|
6467
6467
|
function nv(s, e, t = null, i) {
|
|
@@ -6472,7 +6472,7 @@ function nv(s, e, t = null, i) {
|
|
|
6472
6472
|
i.has(o) || t?.call(null, o) !== !1 && (i.add(o), e && nv(o, !0, t, i));
|
|
6473
6473
|
return i;
|
|
6474
6474
|
}
|
|
6475
|
-
function
|
|
6475
|
+
function _D(s) {
|
|
6476
6476
|
return s[Vl];
|
|
6477
6477
|
}
|
|
6478
6478
|
const mr = x("debugresourceusers") || x("debugmemory"), Ec = /* @__PURE__ */ Symbol("needle-resource-users"), Vl = /* @__PURE__ */ Symbol("needle-resource-users-count");
|
|
@@ -6843,7 +6843,7 @@ function nO(s) {
|
|
|
6843
6843
|
t && Ki(t);
|
|
6844
6844
|
});
|
|
6845
6845
|
}
|
|
6846
|
-
class
|
|
6846
|
+
class bD {
|
|
6847
6847
|
/** File to download */
|
|
6848
6848
|
filename;
|
|
6849
6849
|
/** Checksum to verify its the correct file */
|
|
@@ -8727,7 +8727,7 @@ function* Ov(s, e = null) {
|
|
|
8727
8727
|
for (; t.time - i < s; )
|
|
8728
8728
|
yield;
|
|
8729
8729
|
}
|
|
8730
|
-
function*
|
|
8730
|
+
function* vD(s) {
|
|
8731
8731
|
for (let e = 0; e < s; e++)
|
|
8732
8732
|
yield;
|
|
8733
8733
|
}
|
|
@@ -10947,8 +10947,8 @@ class Cu extends HTMLElement {
|
|
|
10947
10947
|
}
|
|
10948
10948
|
}
|
|
10949
10949
|
customElements.get(or) || customElements.define(or, Cu);
|
|
10950
|
-
const Ye = x("debugcontext"), Mk = x("stats"), Rk = x("debugactive"), Ek = x("debugframerate"), Tk = x("debugcoroutine"),
|
|
10951
|
-
class
|
|
10950
|
+
const Ye = x("debugcontext"), Mk = x("stats"), Rk = x("debugactive"), Ek = x("debugframerate"), Tk = x("debugcoroutine"), xD = {};
|
|
10951
|
+
class SD {
|
|
10952
10952
|
name;
|
|
10953
10953
|
/** for debugging only */
|
|
10954
10954
|
alias;
|
|
@@ -12031,10 +12031,10 @@ Target Framerate: ` + this.targetFrameRate);
|
|
|
12031
12031
|
function Tv(s, e) {
|
|
12032
12032
|
return Ds(s, ue.ContextCreated, e), () => Po(s, ue.ContextCreated);
|
|
12033
12033
|
}
|
|
12034
|
-
function
|
|
12034
|
+
function CD(s, e) {
|
|
12035
12035
|
return Ds(s, ue.ContextClearing, e), () => Po(s, ue.ContextClearing);
|
|
12036
12036
|
}
|
|
12037
|
-
function
|
|
12037
|
+
function PD(s, e) {
|
|
12038
12038
|
return Ds(s, ue.ContextDestroying, e), () => Po(s, ue.ContextDestroying);
|
|
12039
12039
|
}
|
|
12040
12040
|
function wg(s, e) {
|
|
@@ -12043,10 +12043,10 @@ function wg(s, e) {
|
|
|
12043
12043
|
function Ak(s, e) {
|
|
12044
12044
|
return Ds(s, Se.Update, e), () => Po(s, Se.Update);
|
|
12045
12045
|
}
|
|
12046
|
-
function
|
|
12046
|
+
function OD(s, e) {
|
|
12047
12047
|
return Ds(s, Se.OnBeforeRender, e), () => Po(s, Se.OnBeforeRender);
|
|
12048
12048
|
}
|
|
12049
|
-
function
|
|
12049
|
+
function kD(s, e) {
|
|
12050
12050
|
return Ds(s, Se.OnAfterRender, e), () => Po(s, Se.OnAfterRender);
|
|
12051
12051
|
}
|
|
12052
12052
|
const Rt = x("debuglicense"), Av = [];
|
|
@@ -12451,7 +12451,7 @@ function H_(s) {
|
|
|
12451
12451
|
const _o = x("debughotreload");
|
|
12452
12452
|
let Ac = !1;
|
|
12453
12453
|
const dc = /* @__PURE__ */ new Map();
|
|
12454
|
-
function
|
|
12454
|
+
function MD() {
|
|
12455
12455
|
return Ac;
|
|
12456
12456
|
}
|
|
12457
12457
|
function G_() {
|
|
@@ -12493,7 +12493,7 @@ function $k() {
|
|
|
12493
12493
|
s.apply(console, e);
|
|
12494
12494
|
};
|
|
12495
12495
|
}
|
|
12496
|
-
function
|
|
12496
|
+
function RD(s) {
|
|
12497
12497
|
_o && console.log("[HMR] Apply changes", s, Object.keys(s)), $k();
|
|
12498
12498
|
for (const e of Object.keys(s))
|
|
12499
12499
|
try {
|
|
@@ -13247,7 +13247,7 @@ class E {
|
|
|
13247
13247
|
return !1;
|
|
13248
13248
|
}
|
|
13249
13249
|
}
|
|
13250
|
-
const
|
|
13250
|
+
const ED = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13251
13251
|
__proto__: null,
|
|
13252
13252
|
Behaviour: E,
|
|
13253
13253
|
Component: E,
|
|
@@ -13608,7 +13608,7 @@ function Xk(s) {
|
|
|
13608
13608
|
const e = s[hd];
|
|
13609
13609
|
return e !== void 0 && e.size > 0;
|
|
13610
13610
|
}
|
|
13611
|
-
class
|
|
13611
|
+
class AD {
|
|
13612
13612
|
_context;
|
|
13613
13613
|
get context() {
|
|
13614
13614
|
return this._context ?? N.Current;
|
|
@@ -15141,7 +15141,7 @@ function rM(s, e, t, i, n) {
|
|
|
15141
15141
|
};
|
|
15142
15142
|
}
|
|
15143
15143
|
}
|
|
15144
|
-
const
|
|
15144
|
+
const LD = function(s) {
|
|
15145
15145
|
return function(e, t, i) {
|
|
15146
15146
|
let n = "";
|
|
15147
15147
|
typeof t == "string" ? n = t : n = t.name;
|
|
@@ -15928,7 +15928,7 @@ class dM extends sn {
|
|
|
15928
15928
|
return e.a !== void 0 ? { r: e.r, g: e.g, b: e.b, a: e.a } : { r: e.r, g: e.g, b: e.b };
|
|
15929
15929
|
}
|
|
15930
15930
|
}
|
|
15931
|
-
const
|
|
15931
|
+
const DD = new dM();
|
|
15932
15932
|
class uM extends sn {
|
|
15933
15933
|
constructor() {
|
|
15934
15934
|
super([lt], "EulerSerializer");
|
|
@@ -15945,7 +15945,7 @@ class uM extends sn {
|
|
|
15945
15945
|
return { x: e.x, y: e.y, z: e.z, order: e.order };
|
|
15946
15946
|
}
|
|
15947
15947
|
}
|
|
15948
|
-
const
|
|
15948
|
+
const jD = new uM();
|
|
15949
15949
|
class fM extends sn {
|
|
15950
15950
|
constructor() {
|
|
15951
15951
|
super(M, "ObjectSerializer");
|
|
@@ -16123,7 +16123,7 @@ Could not find method ${r.method} on object ${l.name}`, l, typeof l[r.method]);
|
|
|
16123
16123
|
// };
|
|
16124
16124
|
// }
|
|
16125
16125
|
}
|
|
16126
|
-
const
|
|
16126
|
+
const BD = new gM(), Nd = /* @__PURE__ */ new WeakMap(), yM = Fe.prototype.clone;
|
|
16127
16127
|
Fe.prototype.clone = function() {
|
|
16128
16128
|
const s = yM.call(this);
|
|
16129
16129
|
return Nd.has(s) || Nd.set(s, this), s;
|
|
@@ -18118,7 +18118,7 @@ var Rg = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.DontExport = 1] =
|
|
|
18118
18118
|
function BM(s) {
|
|
18119
18119
|
return s && s.isComponent;
|
|
18120
18120
|
}
|
|
18121
|
-
const
|
|
18121
|
+
const FD = /* @__PURE__ */ Symbol("object"), Kf = new Yi(() => new y(), 20);
|
|
18122
18122
|
class FM {
|
|
18123
18123
|
_point;
|
|
18124
18124
|
_normal;
|
|
@@ -20369,7 +20369,7 @@ class ew {
|
|
|
20369
20369
|
}
|
|
20370
20370
|
}
|
|
20371
20371
|
var dR = /* @__PURE__ */ ((s) => (s.File_Spawned = "file-spawned", s))(dR || {});
|
|
20372
|
-
class
|
|
20372
|
+
class UD {
|
|
20373
20373
|
guid;
|
|
20374
20374
|
file_name;
|
|
20375
20375
|
file_hash;
|
|
@@ -21404,10 +21404,10 @@ let Gd;
|
|
|
21404
21404
|
const RR = import("./vendor-DMZcbVO1.js").then((s) => s.index$2).then(async (s) => (Gd = s.GLTFAnimationPointerExtension, Gd)).catch((s) => {
|
|
21405
21405
|
console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three-animationpointer for full KHR_animation support", s);
|
|
21406
21406
|
}), Pr = new Array();
|
|
21407
|
-
function
|
|
21407
|
+
function zD(s) {
|
|
21408
21408
|
Pr.includes(s) || Pr.push(s);
|
|
21409
21409
|
}
|
|
21410
|
-
function
|
|
21410
|
+
function ND(s) {
|
|
21411
21411
|
const e = Pr.indexOf(s);
|
|
21412
21412
|
e >= 0 && Pr.splice(e, 1);
|
|
21413
21413
|
}
|
|
@@ -40378,7 +40378,7 @@ function NI(s, e) {
|
|
|
40378
40378
|
const r = new ce();
|
|
40379
40379
|
i.map = e, s.render(o, r);
|
|
40380
40380
|
}
|
|
40381
|
-
function
|
|
40381
|
+
function qD(s, e, t, i = "image/webp", n) {
|
|
40382
40382
|
return Ex({ context: s, width: e, height: t, mimeType: i, camera: n });
|
|
40383
40383
|
}
|
|
40384
40384
|
function Ex(s) {
|
|
@@ -41630,7 +41630,7 @@ Use import { NeedleEngineModelLoader } from "@needle-tools/engine" namespace to
|
|
|
41630
41630
|
}
|
|
41631
41631
|
}
|
|
41632
41632
|
}
|
|
41633
|
-
function
|
|
41633
|
+
function XD(s, e) {
|
|
41634
41634
|
return Lx(e?.context || N.Current, s, s, e?.seed || null, e?.onprogress);
|
|
41635
41635
|
}
|
|
41636
41636
|
async function oL(s, e, t, i) {
|
|
@@ -41776,7 +41776,7 @@ class hL {
|
|
|
41776
41776
|
this.onRequestedEndAR();
|
|
41777
41777
|
};
|
|
41778
41778
|
onBegin(e, t, i) {
|
|
41779
|
-
if (this.currentSession = i, this.arContainer = t, j.isMozillaXR()) {
|
|
41779
|
+
if (this.currentSession = i, this.arContainer = t, j.isMozillaXR() || j.isNeedleAppClip()) {
|
|
41780
41780
|
const n = e.domElement.children;
|
|
41781
41781
|
for (let o = 0; o < n?.length; o++) {
|
|
41782
41782
|
const r = n[o];
|
|
@@ -41816,10 +41816,8 @@ class hL {
|
|
|
41816
41816
|
this.currentSession && (this.currentSession.end(), this.currentSession = null);
|
|
41817
41817
|
}
|
|
41818
41818
|
ensureQuitARButton(e) {
|
|
41819
|
-
if (j.isNeedleAppClip())
|
|
41820
|
-
return;
|
|
41821
41819
|
const t = document.createElement("slot");
|
|
41822
|
-
t.setAttribute("name", "quit-ar"), this.appendElement(t, e), this._createdAROnlyElements.push(t), t.style.pointerEvents = "auto";
|
|
41820
|
+
t.setAttribute("name", "quit-ar"), this.appendElement(t, e), this._createdAROnlyElements.push(t), t.style.pointerEvents = "auto", j.isNeedleAppClip() && (t.style.display = "none");
|
|
41823
41821
|
const i = document.querySelector(`.${cL}`);
|
|
41824
41822
|
if (i) {
|
|
41825
41823
|
i.addEventListener("click", this.requestEndAR), Fl && i.addEventListener("click", () => console.log("Clicked quit-ar button"));
|
|
@@ -41857,7 +41855,7 @@ class hL {
|
|
|
41857
41855
|
}
|
|
41858
41856
|
const lr = x("debugloading"), Ul = x("debugloadingrendering");
|
|
41859
41857
|
x("debuglicense");
|
|
41860
|
-
class
|
|
41858
|
+
class QD {
|
|
41861
41859
|
className;
|
|
41862
41860
|
additionalClasses;
|
|
41863
41861
|
}
|
|
@@ -43422,7 +43420,7 @@ class _L {
|
|
|
43422
43420
|
}
|
|
43423
43421
|
}
|
|
43424
43422
|
}
|
|
43425
|
-
class
|
|
43423
|
+
class YD {
|
|
43426
43424
|
/**
|
|
43427
43425
|
* Use this method to quickly setup a scene to compare multiple models.
|
|
43428
43426
|
* @example
|
|
@@ -43478,14 +43476,14 @@ let zm = 0;
|
|
|
43478
43476
|
function qb(s) {
|
|
43479
43477
|
s ? zm++ : zm--;
|
|
43480
43478
|
}
|
|
43481
|
-
function
|
|
43479
|
+
function KD() {
|
|
43482
43480
|
return zm > 0;
|
|
43483
43481
|
}
|
|
43484
43482
|
const bL = {
|
|
43485
43483
|
binary: !0,
|
|
43486
43484
|
animations: !0
|
|
43487
43485
|
};
|
|
43488
|
-
async function
|
|
43486
|
+
async function ZD(s) {
|
|
43489
43487
|
if (!s.context)
|
|
43490
43488
|
throw new Error("No context provided to exportAsGLTF");
|
|
43491
43489
|
s.scene || (s.scene = s.context.scene);
|
|
@@ -43782,7 +43780,7 @@ class CL {
|
|
|
43782
43780
|
}
|
|
43783
43781
|
class PL {
|
|
43784
43782
|
}
|
|
43785
|
-
const
|
|
43783
|
+
const JD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43786
43784
|
__proto__: null,
|
|
43787
43785
|
ActionBuilder: ge,
|
|
43788
43786
|
ActionCollection: _E,
|
|
@@ -44139,7 +44137,7 @@ const kL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
44139
44137
|
GenerateMeshBVHWorker: OL
|
|
44140
44138
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
44141
44139
|
export {
|
|
44142
|
-
|
|
44140
|
+
FD as $physicsKey,
|
|
44143
44141
|
ge as ActionBuilder,
|
|
44144
44142
|
_E as ActionCollection,
|
|
44145
44143
|
yi as ActionModel,
|
|
@@ -44211,15 +44209,15 @@ export {
|
|
|
44211
44209
|
Wr as ColorAdjustments,
|
|
44212
44210
|
oh as ColorBySpeedModule,
|
|
44213
44211
|
oy as ColorOverLifetimeModule,
|
|
44214
|
-
|
|
44212
|
+
ED as Component,
|
|
44215
44213
|
E as Component$1,
|
|
44216
44214
|
dg as ComponentLifecycleEvents,
|
|
44217
|
-
|
|
44215
|
+
JD as Components,
|
|
44218
44216
|
CP as ConnectionEvents,
|
|
44219
44217
|
FM as ContactPoint,
|
|
44220
44218
|
Iu as ContactShadows,
|
|
44221
44219
|
N as Context,
|
|
44222
|
-
|
|
44220
|
+
SD as ContextArgs,
|
|
44223
44221
|
ue as ContextEvent,
|
|
44224
44222
|
pe as ContextRegistry,
|
|
44225
44223
|
by as ControlTrackHandler,
|
|
@@ -44249,7 +44247,7 @@ export {
|
|
|
44249
44247
|
DR as FieldWithDefault,
|
|
44250
44248
|
Pa as FileReference,
|
|
44251
44249
|
QO as FileReferenceSerializer,
|
|
44252
|
-
|
|
44250
|
+
UD as FileSpawnModel,
|
|
44253
44251
|
dR as File_Event,
|
|
44254
44252
|
qw as FixedJoint,
|
|
44255
44253
|
eh as Fog,
|
|
@@ -44271,7 +44269,7 @@ export {
|
|
|
44271
44269
|
fn as HideOnStart,
|
|
44272
44270
|
qu as HingeJoint,
|
|
44273
44271
|
$w as HorizontalLayoutGroup,
|
|
44274
|
-
|
|
44272
|
+
bD as HostData,
|
|
44275
44273
|
Ls as HoverAnimation,
|
|
44276
44274
|
ph as Image,
|
|
44277
44275
|
Ca as ImageReference,
|
|
@@ -44289,16 +44287,16 @@ export {
|
|
|
44289
44287
|
es as InstantiateOptions,
|
|
44290
44288
|
Kv as Interactable,
|
|
44291
44289
|
iu as InternalScreenshotUtils,
|
|
44292
|
-
|
|
44293
|
-
|
|
44290
|
+
uD as JoinedRoomResponse,
|
|
44291
|
+
cD as KeyEventArgs,
|
|
44294
44292
|
Si as Keyframe,
|
|
44295
44293
|
Xu as LODGroup,
|
|
44296
44294
|
nh as LODModel,
|
|
44297
|
-
|
|
44295
|
+
fD as LeftRoomResponse,
|
|
44298
44296
|
Ai as Light,
|
|
44299
44297
|
dk as LightData,
|
|
44300
44298
|
vt as LimitVelocityOverLifetimeModule,
|
|
44301
|
-
|
|
44299
|
+
QD as LoadingElementOptions,
|
|
44302
44300
|
Yv as LogStats,
|
|
44303
44301
|
Gi as LogType,
|
|
44304
44302
|
Ox as LookAt,
|
|
@@ -44434,7 +44432,7 @@ export {
|
|
|
44434
44432
|
mc as SpriteData,
|
|
44435
44433
|
Ei as SpriteRenderer,
|
|
44436
44434
|
Lc as SpriteSheet,
|
|
44437
|
-
|
|
44435
|
+
AD as StateMachineBehaviour,
|
|
44438
44436
|
Nv as StreamEndedEvent,
|
|
44439
44437
|
NM as StreamReceivedEvent,
|
|
44440
44438
|
Tm as SubEmitterSystem,
|
|
@@ -44444,7 +44442,7 @@ export {
|
|
|
44444
44442
|
Rw as TapGestureTrigger,
|
|
44445
44443
|
Xg as TeleportTarget,
|
|
44446
44444
|
_x as TestRunner,
|
|
44447
|
-
|
|
44445
|
+
YD as TestSceneUtils,
|
|
44448
44446
|
bx as TestSimulateUserData,
|
|
44449
44447
|
ti as Text,
|
|
44450
44448
|
zw as TextBuilder,
|
|
@@ -44472,7 +44470,7 @@ export {
|
|
|
44472
44470
|
Gw as USDZUIExtension,
|
|
44473
44471
|
bM as UriSerializer,
|
|
44474
44472
|
Lu as UsageMarker,
|
|
44475
|
-
|
|
44473
|
+
pD as UserJoinedOrLeftRoomModel,
|
|
44476
44474
|
Xi as VERSION,
|
|
44477
44475
|
Ow as VariantAction,
|
|
44478
44476
|
qe as VelocityOverLifetimeModule,
|
|
@@ -44486,7 +44484,7 @@ export {
|
|
|
44486
44484
|
lh as Volume,
|
|
44487
44485
|
$ as VolumeParameter,
|
|
44488
44486
|
ly as VolumeProfile,
|
|
44489
|
-
|
|
44487
|
+
vD as WaitForFrames,
|
|
44490
44488
|
KO as WaitForPromise,
|
|
44491
44489
|
Ov as WaitForSeconds,
|
|
44492
44490
|
po as Watch,
|
|
@@ -44506,24 +44504,24 @@ export {
|
|
|
44506
44504
|
ai as XRState,
|
|
44507
44505
|
ws as XRStateFlag,
|
|
44508
44506
|
PL as __Ignore,
|
|
44509
|
-
|
|
44507
|
+
yD as __internalNotifyObjectDestroyed,
|
|
44510
44508
|
mo as activeInHierarchyFieldName,
|
|
44511
44509
|
w0 as addAttributeChangeCallback,
|
|
44512
44510
|
Vn as addComponent,
|
|
44513
|
-
|
|
44511
|
+
zD as addCustomExtensionPlugin,
|
|
44514
44512
|
Sa as addNewComponent,
|
|
44515
44513
|
sg as addPatch,
|
|
44516
44514
|
gg as apply,
|
|
44517
|
-
|
|
44515
|
+
RD as applyHMRChanges,
|
|
44518
44516
|
MO as applyPrototypeExtensions,
|
|
44519
44517
|
nO as beginListenDestroy,
|
|
44520
44518
|
rO as beginListenInstantiate,
|
|
44521
44519
|
Q0 as binaryIdentifierCasts,
|
|
44522
|
-
|
|
44520
|
+
xD as build_scene_functions,
|
|
44523
44521
|
oa as builtinComponentKeyName,
|
|
44524
44522
|
Bx as calculateProgress01,
|
|
44525
44523
|
ZL as clearMessages,
|
|
44526
|
-
|
|
44524
|
+
DD as colorSerializer,
|
|
44527
44525
|
pO as compareAssociation,
|
|
44528
44526
|
Xf as componentSerializer,
|
|
44529
44527
|
PC as copyTexture,
|
|
@@ -44542,9 +44540,9 @@ export {
|
|
|
44542
44540
|
Cs as disposeStream,
|
|
44543
44541
|
id as editorGuidKeyName,
|
|
44544
44542
|
oc as enableSpatialConsole,
|
|
44545
|
-
|
|
44546
|
-
|
|
44547
|
-
|
|
44543
|
+
jD as euler,
|
|
44544
|
+
BD as eventListSerializer,
|
|
44545
|
+
ZD as exportAsGLTF,
|
|
44548
44546
|
xv as findByGuid,
|
|
44549
44547
|
$c as findObjectOfType,
|
|
44550
44548
|
DO as findObjectsOfType,
|
|
@@ -44553,7 +44551,7 @@ export {
|
|
|
44553
44551
|
RC as fitObjectIntoVolume,
|
|
44554
44552
|
$a as foreachComponent,
|
|
44555
44553
|
_g as foreachComponentEnumerator,
|
|
44556
|
-
|
|
44554
|
+
iD as forward,
|
|
44557
44555
|
xk as generateQRCode,
|
|
44558
44556
|
oO as generateSeed,
|
|
44559
44557
|
hi as getBoundingBox,
|
|
@@ -44570,11 +44568,11 @@ export {
|
|
|
44570
44568
|
Qn as getLoader,
|
|
44571
44569
|
wu as getOrAddComponent,
|
|
44572
44570
|
x as getParam,
|
|
44573
|
-
|
|
44571
|
+
nD as getParentHierarchyPath,
|
|
44574
44572
|
UL as getPath,
|
|
44575
|
-
|
|
44573
|
+
hD as getPeerOptions,
|
|
44576
44574
|
vP as getPeerjsInstance,
|
|
44577
|
-
|
|
44575
|
+
_D as getResourceUserCount,
|
|
44578
44576
|
mC as getTempColor,
|
|
44579
44577
|
_i as getTempQuaternion,
|
|
44580
44578
|
z as getTempVector,
|
|
@@ -44605,12 +44603,12 @@ export {
|
|
|
44605
44603
|
zL as isDesktop,
|
|
44606
44604
|
Na as isDestroyed,
|
|
44607
44605
|
L as isDevEnvironment,
|
|
44608
|
-
|
|
44609
|
-
|
|
44606
|
+
gD as isDisposed,
|
|
44607
|
+
KD as isExporting,
|
|
44610
44608
|
jM as isGLTFModel,
|
|
44611
44609
|
z1 as isHostedOnGlitch,
|
|
44612
44610
|
G_ as isHotReloadEnabled,
|
|
44613
|
-
|
|
44611
|
+
MD as isHotReloading,
|
|
44614
44612
|
$L as isIPad,
|
|
44615
44613
|
Ck as isIconElement,
|
|
44616
44614
|
Qi as isLocalNetwork,
|
|
@@ -44623,13 +44621,13 @@ export {
|
|
|
44623
44621
|
yg as isUsingInstancing,
|
|
44624
44622
|
qL as isiOS,
|
|
44625
44623
|
WL as isiPad,
|
|
44626
|
-
|
|
44624
|
+
XD as loadAsset,
|
|
44627
44625
|
zA as loadPMREM,
|
|
44628
44626
|
Lx as loadSync,
|
|
44629
44627
|
Vp as logHierarchy,
|
|
44630
|
-
|
|
44628
|
+
eD as lookAtInverse,
|
|
44631
44629
|
gu as lookAtObject,
|
|
44632
|
-
|
|
44630
|
+
tD as lookAtScreenPoint,
|
|
44633
44631
|
BL as makeId,
|
|
44634
44632
|
W1 as makeIdFromRandomWords,
|
|
44635
44633
|
en as makeNameSafe,
|
|
@@ -44638,12 +44636,12 @@ export {
|
|
|
44638
44636
|
LL as nameof,
|
|
44639
44637
|
N1 as nameofFactory,
|
|
44640
44638
|
pM as objectSerializer,
|
|
44641
|
-
|
|
44642
|
-
|
|
44643
|
-
|
|
44644
|
-
|
|
44645
|
-
|
|
44646
|
-
|
|
44639
|
+
lD as offXRSessionEnd,
|
|
44640
|
+
aD as offXRSessionStart,
|
|
44641
|
+
kD as onAfterRender,
|
|
44642
|
+
OD as onBeforeRender,
|
|
44643
|
+
CD as onClear,
|
|
44644
|
+
PD as onDestroy,
|
|
44647
44645
|
Tv as onInitialized,
|
|
44648
44646
|
wg as onStart,
|
|
44649
44647
|
Ak as onUpdate,
|
|
@@ -44652,7 +44650,7 @@ export {
|
|
|
44652
44650
|
oL as parseSync,
|
|
44653
44651
|
EC as placeOnSurface,
|
|
44654
44652
|
L0 as postprocessFBXMaterials,
|
|
44655
|
-
|
|
44653
|
+
LD as prefix,
|
|
44656
44654
|
$1 as pushState,
|
|
44657
44655
|
FL as randomNumber,
|
|
44658
44656
|
Y0 as registerBinaryType,
|
|
@@ -44669,12 +44667,12 @@ export {
|
|
|
44669
44667
|
H1 as relativePathPrefix,
|
|
44670
44668
|
x0 as removeAttributeChangeCallback,
|
|
44671
44669
|
bv as removeComponent,
|
|
44672
|
-
|
|
44673
|
-
|
|
44670
|
+
ND as removeCustomImportExtensionType,
|
|
44671
|
+
rD as removePatch,
|
|
44674
44672
|
Ir as resolveUrl,
|
|
44675
44673
|
V1 as sanitizeString,
|
|
44676
44674
|
WI as saveImage,
|
|
44677
|
-
|
|
44675
|
+
qD as screenshot,
|
|
44678
44676
|
Ex as screenshot2,
|
|
44679
44677
|
cv as sendDestroyed,
|
|
44680
44678
|
u as serializable,
|
|
@@ -44686,14 +44684,14 @@ export {
|
|
|
44686
44684
|
Wp as setAutoFitEnabled,
|
|
44687
44685
|
qy as setCameraController,
|
|
44688
44686
|
NO as setDestroyed,
|
|
44689
|
-
|
|
44687
|
+
oD as setDevEnvironment,
|
|
44690
44688
|
GP as setDisposable,
|
|
44691
44689
|
kl as setDontDestroy,
|
|
44692
44690
|
Ny as setOrAddParamsToUrl,
|
|
44693
44691
|
jL as setParam,
|
|
44694
44692
|
Cd as setParamWithoutReload,
|
|
44695
|
-
|
|
44696
|
-
|
|
44693
|
+
dD as setPeerOptions,
|
|
44694
|
+
mD as setResourceTrackingEnabled,
|
|
44697
44695
|
b0 as setState,
|
|
44698
44696
|
I0 as setVisibleInCustomShadowRendering,
|
|
44699
44697
|
A0 as setWorldEuler,
|
|
@@ -44712,7 +44710,7 @@ export {
|
|
|
44712
44710
|
vu as syncDestroy,
|
|
44713
44711
|
Tw as syncField,
|
|
44714
44712
|
hv as syncInstantiate,
|
|
44715
|
-
|
|
44713
|
+
sD as textureToCanvas,
|
|
44716
44714
|
G1 as toSourceId,
|
|
44717
44715
|
_P as tryCastBinary,
|
|
44718
44716
|
pR as tryDetermineMimetypeFromBinary,
|