@needle-tools/engine 3.41.2-beta → 3.41.2-beta.2
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 +3 -0
- package/dist/needle-engine.js +245 -230
- package/dist/needle-engine.light.js +248 -233
- package/dist/needle-engine.light.min.js +12 -12
- package/dist/needle-engine.light.umd.cjs +13 -13
- package/dist/needle-engine.min.js +12 -12
- package/dist/needle-engine.umd.cjs +13 -13
- package/lib/engine/engine_scenetools.js +2 -13
- package/lib/engine/engine_scenetools.js.map +1 -1
- package/lib/engine/engine_utils_format.d.ts +10 -2
- package/lib/engine/engine_utils_format.js +42 -1
- package/lib/engine/engine_utils_format.js.map +1 -1
- package/package.json +2 -2
- package/src/engine/engine_scenetools.ts +2 -16
- package/src/engine/engine_utils_format.ts +44 -2
|
@@ -21918,10 +21918,10 @@ class gi {
|
|
|
21918
21918
|
/** All currently registered Needle Engine contexts. Do not modify */
|
|
21919
21919
|
d(gi, "Registered", []), d(gi, "_callbacks", {});
|
|
21920
21920
|
const qJ = () => (s) => s;
|
|
21921
|
-
function
|
|
21921
|
+
function _xe(s) {
|
|
21922
21922
|
return qJ()(s);
|
|
21923
21923
|
}
|
|
21924
|
-
function
|
|
21924
|
+
function xxe() {
|
|
21925
21925
|
return !!ne("debug");
|
|
21926
21926
|
}
|
|
21927
21927
|
class hc {
|
|
@@ -21978,7 +21978,7 @@ function ne(s) {
|
|
|
21978
21978
|
return !1;
|
|
21979
21979
|
}
|
|
21980
21980
|
qd = ne("help");
|
|
21981
|
-
function
|
|
21981
|
+
function wxe(s, e) {
|
|
21982
21982
|
const t = FS();
|
|
21983
21983
|
t.has(s) ? t.set(s, e) : t.append(s, e), document.location.search = t.toString();
|
|
21984
21984
|
}
|
|
@@ -21995,12 +21995,12 @@ function XJ(s, e, t) {
|
|
|
21995
21995
|
function $4(s, e, t) {
|
|
21996
21996
|
window.history.replaceState(t, s, "?" + e.toString());
|
|
21997
21997
|
}
|
|
21998
|
-
function
|
|
21998
|
+
function Cxe(s) {
|
|
21999
21999
|
for (var e = "", t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", i = t.length, n = 0; n < s; n++)
|
|
22000
22000
|
e += t.charAt(Math.floor(Math.random() * i));
|
|
22001
22001
|
return e;
|
|
22002
22002
|
}
|
|
22003
|
-
function
|
|
22003
|
+
function Sxe(s, e) {
|
|
22004
22004
|
return Math.floor(Math.random() * (e - s + 1)) + s;
|
|
22005
22005
|
}
|
|
22006
22006
|
const vL = ["smol", "tiny", "giant", "interesting", "smart", "bright", "dull", "extreme", "beautiful", "pretty", "dark", "epic", "salty", "silly", "funny", "lame", "lazy", "loud", "lucky", "mad", "mean", "mighty", "mysterious", "nasty", "odd", "old", "powerful", "quiet", "rapid", "scary", "shiny", "shy", "silly", "smooth", "sour", "spicy", "stupid", "sweet", "tasty", "terrible", "ugly", "unusual", "vast", "wet", "wild", "witty", "wrong", "zany", "zealous", "zippy", "zombie", "zorro"], bL = ["cat", "dog", "mouse", "pig", "cow", "horse", "sheep", "chicken", "duck", "goat", "panda", "tiger", "lion", "elephant", "monkey", "bird", "fish", "snake", "frog", "turtle", "hamster", "penguin", "kangaroo", "whale", "dolphin", "crocodile", "snail", "ant", "bee", "beetle", "butterfly", "dragon", "eagle", "fish", "giraffe", "lizard", "panda", "penguin", "rabbit", "snake", "spider", "tiger", "zebra"];
|
|
@@ -22072,7 +22072,7 @@ function JJ(s, e) {
|
|
|
22072
22072
|
});
|
|
22073
22073
|
}
|
|
22074
22074
|
const v_ = ne("debugresolveurl"), KJ = "rel:";
|
|
22075
|
-
function
|
|
22075
|
+
function Exe(s, e) {
|
|
22076
22076
|
return Jf(s, e);
|
|
22077
22077
|
}
|
|
22078
22078
|
function Jf(s, e) {
|
|
@@ -22226,14 +22226,14 @@ async function _L() {
|
|
|
22226
22226
|
}
|
|
22227
22227
|
}
|
|
22228
22228
|
const tK = /ip=(?<ip>.+?)\n/s;
|
|
22229
|
-
async function
|
|
22229
|
+
async function Ixe() {
|
|
22230
22230
|
const e = await (await fetch("https://www.cloudflare.com/cdn-cgi/trace")).text(), t = tK.exec(e);
|
|
22231
22231
|
return t ? t[1] : null;
|
|
22232
22232
|
}
|
|
22233
|
-
async function
|
|
22233
|
+
async function Mxe() {
|
|
22234
22234
|
return (await (await fetch("https://api.db-ip.com/v2/free/self")).json()).ipAddress;
|
|
22235
22235
|
}
|
|
22236
|
-
async function
|
|
22236
|
+
async function Txe() {
|
|
22237
22237
|
return await (await fetch("https://api.db-ip.com/v2/free/self").catch(() => null)).json();
|
|
22238
22238
|
}
|
|
22239
22239
|
const Ru = /* @__PURE__ */ new WeakMap();
|
|
@@ -22341,7 +22341,7 @@ const nG = console.error, sG = function(...s) {
|
|
|
22341
22341
|
function cK(s) {
|
|
22342
22342
|
W0 = !s, s ? console.error = sG : console.error = nG;
|
|
22343
22343
|
}
|
|
22344
|
-
function
|
|
22344
|
+
function Bxe(s) {
|
|
22345
22345
|
return cK(s);
|
|
22346
22346
|
}
|
|
22347
22347
|
function lK() {
|
|
@@ -22405,7 +22405,7 @@ function uK(s, e, t) {
|
|
|
22405
22405
|
};
|
|
22406
22406
|
Zy.set(n, o), setTimeout(o, 1e4);
|
|
22407
22407
|
}
|
|
22408
|
-
function
|
|
22408
|
+
function Rxe() {
|
|
22409
22409
|
iG && console.log("Clearing messages");
|
|
22410
22410
|
for (const s of Zy.values())
|
|
22411
22411
|
s == null || s.call(s);
|
|
@@ -28862,12 +28862,12 @@ function jee(s) {
|
|
|
28862
28862
|
function OL(s, e) {
|
|
28863
28863
|
s[_B] = e;
|
|
28864
28864
|
}
|
|
28865
|
-
function
|
|
28865
|
+
function Dxe(s, e, t) {
|
|
28866
28866
|
const i = s.length(), n = e.length(), r = it.lerp(i, n, t);
|
|
28867
28867
|
return s.lerp(e, t).normalize().multiplyScalar(r);
|
|
28868
28868
|
}
|
|
28869
28869
|
const s1 = new Se(), Wee = new Se().setFromAxisAngle(new C(0, 1, 0), Math.PI);
|
|
28870
|
-
function
|
|
28870
|
+
function kxe(s, e) {
|
|
28871
28871
|
s.lookAt(e), s.quaternion.multiply(Wee);
|
|
28872
28872
|
}
|
|
28873
28873
|
function HS(s, e, t = !0, i = !1) {
|
|
@@ -28944,7 +28944,7 @@ function Z0(s, e) {
|
|
|
28944
28944
|
s.parent.getWorldScale(t), s.scale.copy(e), s.scale.divide(t);
|
|
28945
28945
|
}
|
|
28946
28946
|
const Kee = new C(), FL = new Se();
|
|
28947
|
-
function
|
|
28947
|
+
function Oxe(s) {
|
|
28948
28948
|
return Ui(s, FL), Kee.set(0, 0, 1).applyQuaternion(FL);
|
|
28949
28949
|
}
|
|
28950
28950
|
const Zee = new hc(() => new C(), 100), UL = new Se();
|
|
@@ -28979,7 +28979,7 @@ function xB(s, e = !0) {
|
|
|
28979
28979
|
console.log(i + t.name + " <" + t.type + ">");
|
|
28980
28980
|
}));
|
|
28981
28981
|
}
|
|
28982
|
-
function
|
|
28982
|
+
function Lxe(s) {
|
|
28983
28983
|
let e = (s == null ? void 0 : s.name) || "";
|
|
28984
28984
|
if (!s)
|
|
28985
28985
|
return e;
|
|
@@ -29068,7 +29068,7 @@ d(Qc, "planeGeometry", new rs(2, 2, 1, 1)), d(Qc, "renderer"), d(Qc, "perspectiv
|
|
|
29068
29068
|
function tte(s) {
|
|
29069
29069
|
return Qc.copyTexture(s);
|
|
29070
29070
|
}
|
|
29071
|
-
function
|
|
29071
|
+
function Fxe(s, e = !1) {
|
|
29072
29072
|
return Qc.textureToCanvas(s, e);
|
|
29073
29073
|
}
|
|
29074
29074
|
function ite(s) {
|
|
@@ -29432,7 +29432,7 @@ let wB;
|
|
|
29432
29432
|
function ht() {
|
|
29433
29433
|
return hte ? !1 : wB !== void 0 ? wB : yo();
|
|
29434
29434
|
}
|
|
29435
|
-
function
|
|
29435
|
+
function Uxe(s) {
|
|
29436
29436
|
wB = s;
|
|
29437
29437
|
}
|
|
29438
29438
|
let Go = null, Lo = null, Zc = null, o1 = !1, zL = null;
|
|
@@ -29609,13 +29609,13 @@ function vte() {
|
|
|
29609
29609
|
return s || null;
|
|
29610
29610
|
}
|
|
29611
29611
|
const lH = ne("debugdefines");
|
|
29612
|
-
zm('if(!globalThis[""3.41.2-beta""]) globalThis[""3.41.2-beta""] = "0.0.0";');
|
|
29612
|
+
zm('if(!globalThis[""3.41.2-beta.2""]) globalThis[""3.41.2-beta.2""] = "0.0.0";');
|
|
29613
29613
|
zm('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
|
|
29614
|
-
zm('if(!globalThis[""
|
|
29615
|
-
zm('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.41.2-beta";');
|
|
29614
|
+
zm('if(!globalThis[""Thu Jun 27 2024 15:15:07 GMT+0200 (Central European Summer Time)""]) globalThis[""Thu Jun 27 2024 15:15:07 GMT+0200 (Central European Summer Time)""] = "unknown";');
|
|
29615
|
+
zm('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.41.2-beta.2";');
|
|
29616
29616
|
zm('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
29617
|
-
zm('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
29618
|
-
const nc = "3.41.2-beta", RD = "undefined", hH = "
|
|
29617
|
+
zm('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Jun 27 2024 15:15:07 GMT+0200 (Central European Summer Time)";');
|
|
29618
|
+
const nc = "3.41.2-beta.2", RD = "undefined", hH = "Thu Jun 27 2024 15:15:07 GMT+0200 (Central European Summer Time)";
|
|
29619
29619
|
lH && console.log(`Engine version: ${nc} (generator: ${RD})
|
|
29620
29620
|
Project built at ${hH}`);
|
|
29621
29621
|
const Qu = "needle_isActiveInHierarchy", bg = "builtin_components", pw = "needle_editor_guid";
|
|
@@ -29797,7 +29797,7 @@ async function Ote() {
|
|
|
29797
29797
|
}
|
|
29798
29798
|
}
|
|
29799
29799
|
const Xd = ne("debugloading"), OA = ne("debugloadingrendering"), VL = ne("debuglicense");
|
|
29800
|
-
class
|
|
29800
|
+
class Nxe {
|
|
29801
29801
|
constructor() {
|
|
29802
29802
|
d(this, "className");
|
|
29803
29803
|
d(this, "additionalClasses");
|
|
@@ -38971,7 +38971,10 @@ const Ts = class {
|
|
|
38971
38971
|
}
|
|
38972
38972
|
let a = !1;
|
|
38973
38973
|
for (const c of this.parser.associations.keys())
|
|
38974
|
-
|
|
38974
|
+
if (c.isTexture === !0) {
|
|
38975
|
+
const l = this.parser.associations.get(c);
|
|
38976
|
+
(l == null ? void 0 : l.textures) === n && (a = !0, Ts.registerTexture(this.url, c, (r = o.lods) == null ? void 0 : r.length, n, o));
|
|
38977
|
+
}
|
|
38975
38978
|
a || this.parser.getDependency("texture", n).then((c) => {
|
|
38976
38979
|
var l;
|
|
38977
38980
|
c && Ts.registerTexture(this.url, c, (l = o.lods) == null ? void 0 : l.length, n, o);
|
|
@@ -38985,7 +38988,7 @@ const Ts = class {
|
|
|
38985
38988
|
for (const o of this.parser.associations.keys())
|
|
38986
38989
|
if (o.isMesh) {
|
|
38987
38990
|
const a = this.parser.associations.get(o);
|
|
38988
|
-
a.meshes === n && Ts.registerMesh(this.url, r.guid, o, r.lods.length, a.primitives, r);
|
|
38991
|
+
(a == null ? void 0 : a.meshes) === n && Ts.registerMesh(this.url, r.guid, o, r.lods.length, a.primitives, r);
|
|
38989
38992
|
}
|
|
38990
38993
|
}
|
|
38991
38994
|
}
|
|
@@ -44660,7 +44663,7 @@ class Eoe {
|
|
|
44660
44663
|
return this._types[e];
|
|
44661
44664
|
}
|
|
44662
44665
|
}
|
|
44663
|
-
const Ioe = Symbol("BuiltInType"), K = new Eoe(),
|
|
44666
|
+
const Ioe = Symbol("BuiltInType"), K = new Eoe(), Bwe = function(s) {
|
|
44664
44667
|
K.get(s.name) || K.add(s.name, s);
|
|
44665
44668
|
};
|
|
44666
44669
|
typeof globalThis !== void 0 && !("OffscreenCanvas" in globalThis) && (globalThis.OffscreenCanvas = class {
|
|
@@ -46509,7 +46512,7 @@ function ZD(s, e, t, i) {
|
|
|
46509
46512
|
}
|
|
46510
46513
|
}));
|
|
46511
46514
|
}
|
|
46512
|
-
function
|
|
46515
|
+
function Dwe(s, e, t) {
|
|
46513
46516
|
const i = $D(s, e);
|
|
46514
46517
|
if (i)
|
|
46515
46518
|
for (let n = i.length - 1; n >= 0; n--) {
|
|
@@ -46629,7 +46632,7 @@ function L8() {
|
|
|
46629
46632
|
}
|
|
46630
46633
|
let Zf = !0;
|
|
46631
46634
|
tE === 0 && (Zf = !1);
|
|
46632
|
-
function
|
|
46635
|
+
function kwe(s) {
|
|
46633
46636
|
Zf = s;
|
|
46634
46637
|
}
|
|
46635
46638
|
function nae() {
|
|
@@ -46640,7 +46643,7 @@ function U8(s, e) {
|
|
|
46640
46643
|
s && (s[F8] = e, vf && console.warn("Set disposable", e, s));
|
|
46641
46644
|
}
|
|
46642
46645
|
const N8 = Symbol("disposed");
|
|
46643
|
-
function
|
|
46646
|
+
function Owe(s) {
|
|
46644
46647
|
return s[N8] === !0;
|
|
46645
46648
|
}
|
|
46646
46649
|
function Ki(s) {
|
|
@@ -46699,7 +46702,7 @@ function Q8(s, e, t = null, i) {
|
|
|
46699
46702
|
i.has(r) || (t == null ? void 0 : t.call(null, r)) !== !1 && (i.add(r), e && Q8(r, !0, t, i));
|
|
46700
46703
|
return i;
|
|
46701
46704
|
}
|
|
46702
|
-
function
|
|
46705
|
+
function Lwe(s) {
|
|
46703
46706
|
return s[Ry];
|
|
46704
46707
|
}
|
|
46705
46708
|
const vf = ne("debugresourceusers") || ne("debugmemory"), rv = Symbol("needle-resource-users"), Ry = Symbol("needle-resource-users-count");
|
|
@@ -56505,7 +56508,7 @@ const Mm = [];
|
|
|
56505
56508
|
function a2(s) {
|
|
56506
56509
|
Mm.indexOf(s) === -1 && Mm.push(s);
|
|
56507
56510
|
}
|
|
56508
|
-
function
|
|
56511
|
+
function Nwe(s) {
|
|
56509
56512
|
const e = Mm.indexOf(s);
|
|
56510
56513
|
e !== -1 && Mm.splice(e, 1);
|
|
56511
56514
|
}
|
|
@@ -56513,7 +56516,7 @@ const Tm = [];
|
|
|
56513
56516
|
function AV(s) {
|
|
56514
56517
|
Tm.indexOf(s) === -1 && Tm.push(s);
|
|
56515
56518
|
}
|
|
56516
|
-
function
|
|
56519
|
+
function Qwe(s) {
|
|
56517
56520
|
const e = Tm.indexOf(s);
|
|
56518
56521
|
e !== -1 && Tm.splice(e, 1);
|
|
56519
56522
|
}
|
|
@@ -57052,7 +57055,7 @@ class cx extends KeyboardEvent {
|
|
|
57052
57055
|
super.stopImmediatePropagation(), (t = this.source) == null || t.stopImmediatePropagation();
|
|
57053
57056
|
}
|
|
57054
57057
|
}
|
|
57055
|
-
class
|
|
57058
|
+
class Vwe {
|
|
57056
57059
|
constructor(e) {
|
|
57057
57060
|
d(this, "key");
|
|
57058
57061
|
d(this, "keyType");
|
|
@@ -63821,10 +63824,10 @@ const Xhe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
63821
63824
|
util: xi
|
|
63822
63825
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
63823
63826
|
let g2;
|
|
63824
|
-
function
|
|
63827
|
+
function jwe() {
|
|
63825
63828
|
return g2;
|
|
63826
63829
|
}
|
|
63827
|
-
function
|
|
63830
|
+
function Wwe(s) {
|
|
63828
63831
|
g2 = s;
|
|
63829
63832
|
}
|
|
63830
63833
|
function Yhe(s, e) {
|
|
@@ -63923,7 +63926,7 @@ const UN = "https://urls.needle.tools/default-networking-backend/index";
|
|
|
63923
63926
|
let hu = "wss://needle-tiny-starter.glitch.me/socket";
|
|
63924
63927
|
const co = !!ne("debugnet"), gx = !!(co || ne("debugowner")), NN = ne("debugnetbin");
|
|
63925
63928
|
var $he = /* @__PURE__ */ ((s) => (s.ConnectionInfo = "connection-start-info", s))($he || {}), Zt = /* @__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))(Zt || {});
|
|
63926
|
-
class
|
|
63929
|
+
class qwe {
|
|
63927
63930
|
constructor() {
|
|
63928
63931
|
d(this, "room");
|
|
63929
63932
|
// room name
|
|
@@ -63933,13 +63936,13 @@ class Xwe {
|
|
|
63933
63936
|
}
|
|
63934
63937
|
// connection ids
|
|
63935
63938
|
}
|
|
63936
|
-
class
|
|
63939
|
+
class Xwe {
|
|
63937
63940
|
constructor() {
|
|
63938
63941
|
d(this, "room");
|
|
63939
63942
|
}
|
|
63940
63943
|
// room name
|
|
63941
63944
|
}
|
|
63942
|
-
class
|
|
63945
|
+
class Ywe {
|
|
63943
63946
|
constructor() {
|
|
63944
63947
|
d(this, "userId");
|
|
63945
63948
|
}
|
|
@@ -64218,7 +64221,7 @@ class tue {
|
|
|
64218
64221
|
}
|
|
64219
64222
|
console.log(`⊡ Connecting to networking backend on
|
|
64220
64223
|
` + hu);
|
|
64221
|
-
const r = await Promise.resolve().then(() =>
|
|
64224
|
+
const r = await Promise.resolve().then(() => Vbe), o = ((c = r.default) == null ? void 0 : c.WebsocketBuilder) ?? r.WebsocketBuilder, a = new o(hu).onOpen(() => {
|
|
64222
64225
|
this._connectingToWebsocketPromise = null, this._ws = a, this.connected = !0, console.log(`⊞ Connected to networking backend
|
|
64223
64226
|
` + hu), n(!0), this.onSendQueued(Ja.OnConnection);
|
|
64224
64227
|
}).onClose((l) => {
|
|
@@ -65596,7 +65599,7 @@ function* hue(s, e = null) {
|
|
|
65596
65599
|
for (; t.time - i < s; )
|
|
65597
65600
|
yield;
|
|
65598
65601
|
}
|
|
65599
|
-
function*
|
|
65602
|
+
function* Jwe(s) {
|
|
65600
65603
|
for (let e = 0; e < s; e++)
|
|
65601
65604
|
yield;
|
|
65602
65605
|
}
|
|
@@ -68334,8 +68337,8 @@ class lE extends HTMLElement {
|
|
|
68334
68337
|
}
|
|
68335
68338
|
}
|
|
68336
68339
|
customElements.get(Gg) || customElements.define(Gg, lE);
|
|
68337
|
-
const hs = ne("debugcontext"), Oue = ne("stats"), Lue = ne("debugactive"), Fue = ne("debugframerate"), Uue = ne("debugcoroutine"),
|
|
68338
|
-
class
|
|
68340
|
+
const hs = ne("debugcontext"), Oue = ne("stats"), Lue = ne("debugactive"), Fue = ne("debugframerate"), Uue = ne("debugcoroutine"), Zwe = {};
|
|
68341
|
+
class $we {
|
|
68339
68342
|
constructor() {
|
|
68340
68343
|
d(this, "name");
|
|
68341
68344
|
/** for debugging only */
|
|
@@ -69228,7 +69231,7 @@ function zue(s) {
|
|
|
69228
69231
|
t && pc(t);
|
|
69229
69232
|
});
|
|
69230
69233
|
}
|
|
69231
|
-
class
|
|
69234
|
+
class eCe {
|
|
69232
69235
|
constructor(e, t, i) {
|
|
69233
69236
|
d(this, "filename");
|
|
69234
69237
|
d(this, "hash");
|
|
@@ -70858,7 +70861,7 @@ class mde extends dl {
|
|
|
70858
70861
|
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 };
|
|
70859
70862
|
}
|
|
70860
70863
|
}
|
|
70861
|
-
const
|
|
70864
|
+
const iCe = new mde();
|
|
70862
70865
|
class Ade extends dl {
|
|
70863
70866
|
constructor() {
|
|
70864
70867
|
super(ye, "ObjectSerializer");
|
|
@@ -71023,7 +71026,7 @@ Could not find method ${h.method} on object ${f.name}`, f, typeof f[h.method]);
|
|
|
71023
71026
|
};
|
|
71024
71027
|
}
|
|
71025
71028
|
}
|
|
71026
|
-
const
|
|
71029
|
+
const nCe = new _de();
|
|
71027
71030
|
class xde extends dl {
|
|
71028
71031
|
constructor() {
|
|
71029
71032
|
super([xf, Jt]);
|
|
@@ -71508,13 +71511,13 @@ S2([
|
|
|
71508
71511
|
S2([
|
|
71509
71512
|
x(ye)
|
|
71510
71513
|
], Jm.prototype, "sources", 2);
|
|
71511
|
-
function
|
|
71514
|
+
function rCe(s, e) {
|
|
71512
71515
|
return nd(s, Oi.ContextCreated, e), () => sd(s, Oi.ContextCreated);
|
|
71513
71516
|
}
|
|
71514
|
-
function
|
|
71517
|
+
function oCe(s, e) {
|
|
71515
71518
|
return nd(s, Oi.ContextClearing, e), () => sd(s, Oi.ContextClearing);
|
|
71516
71519
|
}
|
|
71517
|
-
function
|
|
71520
|
+
function aCe(s, e) {
|
|
71518
71521
|
return nd(s, Oi.ContextDestroying, e), () => sd(s, Oi.ContextDestroying);
|
|
71519
71522
|
}
|
|
71520
71523
|
function Ide(s, e) {
|
|
@@ -71523,10 +71526,10 @@ function Ide(s, e) {
|
|
|
71523
71526
|
function Mde(s, e) {
|
|
71524
71527
|
return nd(s, sn.Update, e), () => sd(s, sn.Update);
|
|
71525
71528
|
}
|
|
71526
|
-
function
|
|
71529
|
+
function cCe(s, e) {
|
|
71527
71530
|
return nd(s, sn.OnBeforeRender, e), () => sd(s, sn.OnBeforeRender);
|
|
71528
71531
|
}
|
|
71529
|
-
function
|
|
71532
|
+
function lCe(s, e) {
|
|
71530
71533
|
return nd(s, sn.OnAfterRender, e), () => sd(s, sn.OnAfterRender);
|
|
71531
71534
|
}
|
|
71532
71535
|
class wf {
|
|
@@ -71689,7 +71692,7 @@ function Tde(s, e, t, i, n) {
|
|
|
71689
71692
|
};
|
|
71690
71693
|
}
|
|
71691
71694
|
}
|
|
71692
|
-
const
|
|
71695
|
+
const hCe = function(s) {
|
|
71693
71696
|
return function(e, t, i) {
|
|
71694
71697
|
let n = "";
|
|
71695
71698
|
typeof t == "string" ? n = t : n = t.name;
|
|
@@ -75106,7 +75109,7 @@ gi.registerCallback(Oi.ContextCreated, (s) => {
|
|
|
75106
75109
|
createAnimationComponent: (n, r) => mh(n, Zr)
|
|
75107
75110
|
});
|
|
75108
75111
|
});
|
|
75109
|
-
class
|
|
75112
|
+
class uCe {
|
|
75110
75113
|
constructor() {
|
|
75111
75114
|
d(this, "_context");
|
|
75112
75115
|
}
|
|
@@ -82631,13 +82634,13 @@ class cge {
|
|
|
82631
82634
|
typeof window < "u" && window.addEventListener("unhandledrejection", (s) => {
|
|
82632
82635
|
});
|
|
82633
82636
|
const Ll = Bs, Rx = "$___Export_Components", lge = "NEEDLE_components";
|
|
82634
|
-
var
|
|
82637
|
+
var Xbe;
|
|
82635
82638
|
class hge {
|
|
82636
82639
|
constructor() {
|
|
82637
|
-
d(this,
|
|
82640
|
+
d(this, Xbe);
|
|
82638
82641
|
}
|
|
82639
82642
|
}
|
|
82640
|
-
|
|
82643
|
+
Xbe = bg;
|
|
82641
82644
|
class uge {
|
|
82642
82645
|
constructor(e, t, i) {
|
|
82643
82646
|
d(this, "node");
|
|
@@ -83240,13 +83243,13 @@ function h9(s) {
|
|
|
83240
83243
|
}
|
|
83241
83244
|
const Age = ne("debugextensions");
|
|
83242
83245
|
let DC;
|
|
83243
|
-
const yge = Promise.resolve().then(() =>
|
|
83246
|
+
const yge = Promise.resolve().then(() => qbe).then(async (s) => (DC = s.GLTFAnimationPointerExtension, DC)).catch((s) => {
|
|
83244
83247
|
console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three for full KHR_animation support", s);
|
|
83245
83248
|
}), Wf = new Array();
|
|
83246
|
-
function
|
|
83249
|
+
function pCe(s) {
|
|
83247
83250
|
Wf.includes(s) || Wf.push(s);
|
|
83248
83251
|
}
|
|
83249
|
-
function
|
|
83252
|
+
function gCe(s) {
|
|
83250
83253
|
const e = Wf.indexOf(s);
|
|
83251
83254
|
e >= 0 && Wf.splice(e, 1);
|
|
83252
83255
|
}
|
|
@@ -98364,7 +98367,7 @@ class yv extends Be {
|
|
|
98364
98367
|
}
|
|
98365
98368
|
}
|
|
98366
98369
|
async function gk(s) {
|
|
98367
|
-
const { NeedleEngineHTMLElement: e } = await Promise.resolve().then(() =>
|
|
98370
|
+
const { NeedleEngineHTMLElement: e } = await Promise.resolve().then(() => hbe);
|
|
98368
98371
|
e.observedAttributes.includes(s) || e.observedAttributes.push(s);
|
|
98369
98372
|
}
|
|
98370
98373
|
var B0e = Object.defineProperty, R0e = Object.getOwnPropertyDescriptor, _b = (s, e, t, i) => {
|
|
@@ -102797,16 +102800,39 @@ function tbe(s, e) {
|
|
|
102797
102800
|
e.object = n, e.target = t, aR(t, i, e), _0 && console.debug("add " + i.name, i, t);
|
|
102798
102801
|
}
|
|
102799
102802
|
const n6 = ne("debugfileformat");
|
|
102800
|
-
async function ibe(s) {
|
|
102801
|
-
|
|
102803
|
+
async function ibe(s, e = !0) {
|
|
102804
|
+
var i;
|
|
102805
|
+
if (e) {
|
|
102806
|
+
let n = s;
|
|
102807
|
+
const r = new URL(n, globalThis.location.origin);
|
|
102808
|
+
let o = null;
|
|
102809
|
+
const a = r.searchParams.get("filetype");
|
|
102810
|
+
switch (a && (o = a.toUpperCase()), o != null && o.length || (o = (i = r.pathname.split(".").pop()) == null ? void 0 : i.toUpperCase()), o) {
|
|
102811
|
+
case "GLTF":
|
|
102812
|
+
return "gltf";
|
|
102813
|
+
case "VRM":
|
|
102814
|
+
return "vrm";
|
|
102815
|
+
case "GLB":
|
|
102816
|
+
return "glb";
|
|
102817
|
+
case "FBX":
|
|
102818
|
+
return "fbx";
|
|
102819
|
+
case "USD":
|
|
102820
|
+
return "usd";
|
|
102821
|
+
case "USDA":
|
|
102822
|
+
return "usda";
|
|
102823
|
+
case "USDZ":
|
|
102824
|
+
return "usdz";
|
|
102825
|
+
}
|
|
102826
|
+
}
|
|
102827
|
+
const t = await fetch(s, {
|
|
102802
102828
|
method: "GET",
|
|
102803
102829
|
headers: {
|
|
102804
102830
|
range: "bytes=0-32"
|
|
102805
102831
|
}
|
|
102806
|
-
}).catch((
|
|
102807
|
-
if (
|
|
102808
|
-
const
|
|
102809
|
-
return n6 && console.log("Determined file type from header: " +
|
|
102832
|
+
}).catch((n) => null);
|
|
102833
|
+
if (t != null && t.ok) {
|
|
102834
|
+
const n = await t.arrayBuffer(), r = nbe(n);
|
|
102835
|
+
return n6 && console.log("Determined file type from header: " + r), r;
|
|
102810
102836
|
}
|
|
102811
102837
|
return "unknown";
|
|
102812
102838
|
}
|
|
@@ -102826,7 +102852,7 @@ class s6 {
|
|
|
102826
102852
|
return Zve(e, t);
|
|
102827
102853
|
}
|
|
102828
102854
|
parseSync(e, t, i, n) {
|
|
102829
|
-
return
|
|
102855
|
+
return rbe(e, t, i, n);
|
|
102830
102856
|
}
|
|
102831
102857
|
loadSync(e, t, i, n, r) {
|
|
102832
102858
|
return l6(e, t, i, n, r);
|
|
@@ -102845,10 +102871,10 @@ class lm {
|
|
|
102845
102871
|
}
|
|
102846
102872
|
}
|
|
102847
102873
|
const ju = {};
|
|
102848
|
-
function
|
|
102874
|
+
function vCe(s, e) {
|
|
102849
102875
|
ju[s] = ju[s] || [], ju[s].push(e);
|
|
102850
102876
|
}
|
|
102851
|
-
function
|
|
102877
|
+
function bCe(s, e) {
|
|
102852
102878
|
if (ju[s]) {
|
|
102853
102879
|
const t = ju[s].indexOf(e);
|
|
102854
102880
|
t >= 0 && ju[s].splice(t, 1);
|
|
@@ -102862,20 +102888,8 @@ function hm(s, e) {
|
|
|
102862
102888
|
async function a6(s, e, t, i, n) {
|
|
102863
102889
|
r6 && console.warn("glTF", e, t), e.includes("?") && (e = e.split("?")[0]), await al().createBuiltinComponents(s, e, t, i, n);
|
|
102864
102890
|
}
|
|
102865
|
-
async function rbe(s) {
|
|
102866
|
-
var t;
|
|
102867
|
-
switch (((t = s.split("?")[0].split(".").pop()) == null ? void 0 : t.toUpperCase()) || "") {
|
|
102868
|
-
case "GLTF":
|
|
102869
|
-
return "gltf";
|
|
102870
|
-
case "GLB":
|
|
102871
|
-
return "glb";
|
|
102872
|
-
case "FBX":
|
|
102873
|
-
return "fbx";
|
|
102874
|
-
}
|
|
102875
|
-
return await ibe(s) || "unknown";
|
|
102876
|
-
}
|
|
102877
102891
|
async function c6(s, e) {
|
|
102878
|
-
const t = await
|
|
102892
|
+
const t = await ibe(s) || "unknown";
|
|
102879
102893
|
switch (t) {
|
|
102880
102894
|
case "unknown":
|
|
102881
102895
|
return console.warn("Unknown file type:", s), new Ju();
|
|
@@ -102891,11 +102905,12 @@ async function c6(s, e) {
|
|
|
102891
102905
|
console.warn("Unknown file type:", t);
|
|
102892
102906
|
case "gltf":
|
|
102893
102907
|
case "glb":
|
|
102908
|
+
case "vrm":
|
|
102894
102909
|
const i = new Ju();
|
|
102895
102910
|
return await d9(i, e, s), i;
|
|
102896
102911
|
}
|
|
102897
102912
|
}
|
|
102898
|
-
async function
|
|
102913
|
+
async function rbe(s, e, t, i) {
|
|
102899
102914
|
typeof t != "string" && (console.warn("Parse gltf binary without path, this might lead to errors in resolving extensions. Please provide the source path of the gltf/glb file", t, typeof t), t = ""), r6 && console.log("Parse glTF", t);
|
|
102900
102915
|
const n = await c6(t, s);
|
|
102901
102916
|
if (!n)
|
|
@@ -102938,7 +102953,7 @@ async function obe(s, e, t, i) {
|
|
|
102938
102953
|
});
|
|
102939
102954
|
}
|
|
102940
102955
|
async function l6(s, e, t, i, n) {
|
|
102941
|
-
|
|
102956
|
+
obe(e);
|
|
102942
102957
|
const r = await c6(e, s);
|
|
102943
102958
|
if (!r)
|
|
102944
102959
|
return;
|
|
@@ -102970,7 +102985,7 @@ async function l6(s, e, t, i, n) {
|
|
|
102970
102985
|
async function h6(s, e, t) {
|
|
102971
102986
|
t || (t = e.mainCamera), t ? await e.renderer.compileAsync(s, t, e.scene) : uae(s, e);
|
|
102972
102987
|
}
|
|
102973
|
-
function
|
|
102988
|
+
function obe(s) {
|
|
102974
102989
|
if (new URL(s, window.location.href).href.startsWith("file://")) {
|
|
102975
102990
|
const t = `Hi - it looks like you are trying to load a local file which will not work. You need to use a webserver to serve your files.
|
|
102976
102991
|
Please refer to the documentation on <a href="https://fwd.needle.tools/needle-engine/docs/local-server">https://docs.needle.tools</a> or ask for help in our <a href="https://discord.needle.tools">discord community</a>`;
|
|
@@ -102997,7 +103012,7 @@ function d6(s, e) {
|
|
|
102997
103012
|
}
|
|
102998
103013
|
}
|
|
102999
103014
|
Z4(s6);
|
|
103000
|
-
const ln = ne("debugwebcomponent"), DQ = "needle-engine", f6 = "vr", p6 = "desktop",
|
|
103015
|
+
const ln = ne("debugwebcomponent"), DQ = "needle-engine", f6 = "vr", p6 = "desktop", abe = [pH, f6, p6], py = "ar-session-active", gy = "desktop-session-active", cbe = [
|
|
103001
103016
|
"hash",
|
|
103002
103017
|
"src",
|
|
103003
103018
|
"camera-controls",
|
|
@@ -103103,7 +103118,7 @@ class g6 extends HTMLElement {
|
|
|
103103
103118
|
`, this.shadowRoot && this.shadowRoot.appendChild(t.content.cloneNode(!0)), this._context = new kt({ domElement: this }), this.addEventListener("error", this.onError);
|
|
103104
103119
|
}
|
|
103105
103120
|
static get observedAttributes() {
|
|
103106
|
-
return
|
|
103121
|
+
return cbe;
|
|
103107
103122
|
}
|
|
103108
103123
|
get loadingProgress01() {
|
|
103109
103124
|
return this._loadingProgress01;
|
|
@@ -103259,7 +103274,7 @@ Needle Engine: Begin loading ` + i + `
|
|
|
103259
103274
|
if (u.signal.aborted)
|
|
103260
103275
|
return;
|
|
103261
103276
|
const A = m.index;
|
|
103262
|
-
!h[A] && m.name && (h[A] =
|
|
103277
|
+
!h[A] && m.name && (h[A] = lbe(m.name)), m.name = h[A], o && ((b = this._loadingView) == null || b.onLoadingUpdate(m)), c.name = m.name, c.progress = m.progress, this._loadingProgress01 = fH(m), c.totalProgress01 = this._loadingProgress01, this.dispatchEvent(l);
|
|
103263
103278
|
},
|
|
103264
103279
|
onLoadingFinished: (m, A, b) => {
|
|
103265
103280
|
u.signal.aborted || b && a.push({
|
|
@@ -103410,7 +103425,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
103410
103425
|
if (t.classList.contains(i))
|
|
103411
103426
|
t.style.visibility = "visible", t.style.display === "none" && (t.style.display = "block");
|
|
103412
103427
|
else
|
|
103413
|
-
for (const c of
|
|
103428
|
+
for (const c of abe)
|
|
103414
103429
|
t.classList.contains(c) && (t.style.visibility = "hidden", t.style.display = "none");
|
|
103415
103430
|
}
|
|
103416
103431
|
foreachHtmlElement(t) {
|
|
@@ -103429,7 +103444,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
103429
103444
|
}
|
|
103430
103445
|
}
|
|
103431
103446
|
typeof window < "u" && !window.customElements.get(DQ) && window.customElements.define(DQ, g6);
|
|
103432
|
-
function
|
|
103447
|
+
function lbe(s) {
|
|
103433
103448
|
if (s.startsWith("blob:"))
|
|
103434
103449
|
return "blob";
|
|
103435
103450
|
const e = s.split("/");
|
|
@@ -103452,11 +103467,11 @@ function hbe(s) {
|
|
|
103452
103467
|
}
|
|
103453
103468
|
return ln && console.log("displayName", t), t;
|
|
103454
103469
|
}
|
|
103455
|
-
const
|
|
103470
|
+
const hbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
103456
103471
|
__proto__: null,
|
|
103457
103472
|
NeedleEngineHTMLElement: g6
|
|
103458
103473
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
103459
|
-
function
|
|
103474
|
+
function ube() {
|
|
103460
103475
|
gh.registerWaitForAllowAudio(() => {
|
|
103461
103476
|
const s = kS.getContext();
|
|
103462
103477
|
s.addEventListener("statechange", () => {
|
|
@@ -103471,21 +103486,21 @@ function dbe() {
|
|
|
103471
103486
|
});
|
|
103472
103487
|
});
|
|
103473
103488
|
}
|
|
103474
|
-
setTimeout(
|
|
103489
|
+
setTimeout(ube, 1e3);
|
|
103475
103490
|
const zw = ne("debughotreload");
|
|
103476
103491
|
let bv = !1;
|
|
103477
103492
|
const x0 = /* @__PURE__ */ new Map();
|
|
103478
|
-
function
|
|
103493
|
+
function _Ce() {
|
|
103479
103494
|
return bv;
|
|
103480
103495
|
}
|
|
103481
|
-
function
|
|
103496
|
+
function xCe(s) {
|
|
103482
103497
|
var i;
|
|
103483
103498
|
if (bv)
|
|
103484
103499
|
return;
|
|
103485
103500
|
const t = s.constructor.name;
|
|
103486
103501
|
x0.has(t) ? (i = x0.get(t)) == null || i.push(s) : x0.set(t, [s]);
|
|
103487
103502
|
}
|
|
103488
|
-
function
|
|
103503
|
+
function wCe(s) {
|
|
103489
103504
|
if (bv)
|
|
103490
103505
|
return;
|
|
103491
103506
|
const t = s.constructor.name, i = x0.get(t);
|
|
@@ -103495,7 +103510,7 @@ function CCe(s) {
|
|
|
103495
103510
|
n !== -1 && i.splice(n, 1);
|
|
103496
103511
|
}
|
|
103497
103512
|
let kQ = !1;
|
|
103498
|
-
function
|
|
103513
|
+
function dbe() {
|
|
103499
103514
|
if (zw || kQ)
|
|
103500
103515
|
return;
|
|
103501
103516
|
kQ = !0;
|
|
@@ -103511,8 +103526,8 @@ function fbe() {
|
|
|
103511
103526
|
s.apply(console, e);
|
|
103512
103527
|
};
|
|
103513
103528
|
}
|
|
103514
|
-
function
|
|
103515
|
-
zw && console.log("[HMR] Apply changes", s, Object.keys(s)),
|
|
103529
|
+
function CCe(s) {
|
|
103530
|
+
zw && console.log("[HMR] Apply changes", s, Object.keys(s)), dbe();
|
|
103516
103531
|
for (const e of Object.keys(s))
|
|
103517
103532
|
try {
|
|
103518
103533
|
bv = !0;
|
|
@@ -103573,17 +103588,17 @@ let qx = null;
|
|
|
103573
103588
|
function OQ() {
|
|
103574
103589
|
return qx !== null && qx.byteLength !== 0 || (qx = new Int32Array(Ue.memory.buffer)), qx;
|
|
103575
103590
|
}
|
|
103576
|
-
const
|
|
103591
|
+
const fbe = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }) : { decode: () => {
|
|
103577
103592
|
throw Error("TextDecoder not available");
|
|
103578
103593
|
} };
|
|
103579
|
-
typeof TextDecoder < "u" &&
|
|
103594
|
+
typeof TextDecoder < "u" && fbe.decode();
|
|
103580
103595
|
function At(s, e) {
|
|
103581
103596
|
if (!(s instanceof e))
|
|
103582
103597
|
throw new Error(`expected instance of ${e.name}`);
|
|
103583
103598
|
return s.ptr;
|
|
103584
103599
|
}
|
|
103585
103600
|
let Xx = null;
|
|
103586
|
-
function
|
|
103601
|
+
function pbe() {
|
|
103587
103602
|
return Xx !== null && Xx.byteLength !== 0 || (Xx = new Float32Array(Ue.memory.buffer)), Xx;
|
|
103588
103603
|
}
|
|
103589
103604
|
let w0 = 128;
|
|
@@ -103593,20 +103608,20 @@ function LQ(s) {
|
|
|
103593
103608
|
return _v[--w0] = s, w0;
|
|
103594
103609
|
}
|
|
103595
103610
|
let Yx = null;
|
|
103596
|
-
function
|
|
103611
|
+
function gbe() {
|
|
103597
103612
|
return Yx !== null && Yx.byteLength !== 0 || (Yx = new Uint32Array(Ue.memory.buffer)), Yx;
|
|
103598
103613
|
}
|
|
103599
103614
|
let ko = 0;
|
|
103600
103615
|
function Ud(s, e) {
|
|
103601
103616
|
const t = e(4 * s.length, 4) >>> 0;
|
|
103602
|
-
return
|
|
103617
|
+
return pbe().set(s, t / 4), ko = s.length, t;
|
|
103603
103618
|
}
|
|
103604
103619
|
function Jx(s, e) {
|
|
103605
103620
|
const t = e(4 * s.length, 4) >>> 0;
|
|
103606
|
-
return
|
|
103621
|
+
return gbe().set(s, t / 4), ko = s.length, t;
|
|
103607
103622
|
}
|
|
103608
103623
|
const zs = Object.freeze({ Ball: 0, 0: "Ball", Cuboid: 1, 1: "Cuboid", Capsule: 2, 2: "Capsule", Segment: 3, 3: "Segment", Polyline: 4, 4: "Polyline", Triangle: 5, 5: "Triangle", TriMesh: 6, 6: "TriMesh", HeightField: 7, 7: "HeightField", Compound: 8, 8: "Compound", ConvexPolyhedron: 9, 9: "ConvexPolyhedron", Cylinder: 10, 10: "Cylinder", Cone: 11, 11: "Cone", RoundCuboid: 12, 12: "RoundCuboid", RoundTriangle: 13, 13: "RoundTriangle", RoundCylinder: 14, 14: "RoundCylinder", RoundCone: 15, 15: "RoundCone", RoundConvexPolyhedron: 16, 16: "RoundConvexPolyhedron", HalfSpace: 17, 17: "HalfSpace" });
|
|
103609
|
-
class
|
|
103624
|
+
class mbe {
|
|
103610
103625
|
__destroy_into_raw() {
|
|
103611
103626
|
const e = this.__wbg_ptr;
|
|
103612
103627
|
return this.__wbg_ptr = 0, e;
|
|
@@ -104041,14 +104056,14 @@ class lt {
|
|
|
104041
104056
|
return lt.__wrap(e);
|
|
104042
104057
|
}
|
|
104043
104058
|
}
|
|
104044
|
-
class
|
|
104059
|
+
class Abe {
|
|
104045
104060
|
constructor(e, t, i) {
|
|
104046
104061
|
this.x = e, this.y = t, this.z = i;
|
|
104047
104062
|
}
|
|
104048
104063
|
}
|
|
104049
104064
|
class Te {
|
|
104050
104065
|
static new(e, t, i) {
|
|
104051
|
-
return new
|
|
104066
|
+
return new Abe(e, t, i);
|
|
104052
104067
|
}
|
|
104053
104068
|
static intoRaw(e) {
|
|
104054
104069
|
return new lt(e.x, e.y, e.z);
|
|
@@ -104088,7 +104103,7 @@ class qi {
|
|
|
104088
104103
|
e.x = t.x, e.y = t.y, e.z = t.z, e.w = t.w;
|
|
104089
104104
|
}
|
|
104090
104105
|
}
|
|
104091
|
-
class
|
|
104106
|
+
class ybe {
|
|
104092
104107
|
constructor(e) {
|
|
104093
104108
|
this.elements = e;
|
|
104094
104109
|
}
|
|
@@ -104122,7 +104137,7 @@ class vbe {
|
|
|
104122
104137
|
}
|
|
104123
104138
|
class UQ {
|
|
104124
104139
|
static fromRaw(e) {
|
|
104125
|
-
const t = new
|
|
104140
|
+
const t = new ybe(e.elements());
|
|
104126
104141
|
return e.free(), t;
|
|
104127
104142
|
}
|
|
104128
104143
|
}
|
|
@@ -104442,7 +104457,7 @@ class cI {
|
|
|
104442
104457
|
return e.free(), t;
|
|
104443
104458
|
}
|
|
104444
104459
|
}
|
|
104445
|
-
class
|
|
104460
|
+
class vbe {
|
|
104446
104461
|
constructor(e, t) {
|
|
104447
104462
|
this.origin = e, this.dir = t;
|
|
104448
104463
|
}
|
|
@@ -104505,7 +104520,7 @@ class ks {
|
|
|
104505
104520
|
case zs.RoundTriangle:
|
|
104506
104521
|
return o = e.coVertices(t), r = e.coRoundRadius(t), new _6(Te.new(o[0], o[1], o[2]), Te.new(o[3], o[4], o[5]), Te.new(o[6], o[7], o[8]), r);
|
|
104507
104522
|
case zs.HalfSpace:
|
|
104508
|
-
return h = Te.fromRaw(e.coHalfspaceNormal(t)), new
|
|
104523
|
+
return h = Te.fromRaw(e.coHalfspaceNormal(t)), new bbe(h);
|
|
104509
104524
|
case zs.TriMesh:
|
|
104510
104525
|
return o = e.coVertices(t), a = e.coIndices(t), new w6(o, a);
|
|
104511
104526
|
case zs.HeightField:
|
|
@@ -104571,7 +104586,7 @@ class Ek extends ks {
|
|
|
104571
104586
|
return qt.ball(this.radius);
|
|
104572
104587
|
}
|
|
104573
104588
|
}
|
|
104574
|
-
class
|
|
104589
|
+
class bbe extends ks {
|
|
104575
104590
|
constructor(e) {
|
|
104576
104591
|
super(), this.type = Xn.HalfSpace, this.normal = e;
|
|
104577
104592
|
}
|
|
@@ -104710,7 +104725,7 @@ class M6 extends ks {
|
|
|
104710
104725
|
(function(s) {
|
|
104711
104726
|
s[s.NONE = 0] = "NONE", s[s.COLLISION_EVENTS = 1] = "COLLISION_EVENTS", s[s.CONTACT_FORCE_EVENTS = 2] = "CONTACT_FORCE_EVENTS";
|
|
104712
104727
|
})(zC || (zC = {}));
|
|
104713
|
-
class
|
|
104728
|
+
class _be {
|
|
104714
104729
|
free() {
|
|
104715
104730
|
this.raw && this.raw.free(), this.raw = void 0;
|
|
104716
104731
|
}
|
|
@@ -104733,9 +104748,9 @@ class xbe {
|
|
|
104733
104748
|
return this.raw.max_force_magnitude();
|
|
104734
104749
|
}
|
|
104735
104750
|
}
|
|
104736
|
-
class
|
|
104751
|
+
class xbe {
|
|
104737
104752
|
constructor(e, t) {
|
|
104738
|
-
this.raw = t || new
|
|
104753
|
+
this.raw = t || new mbe(e);
|
|
104739
104754
|
}
|
|
104740
104755
|
free() {
|
|
104741
104756
|
this.raw && this.raw.free(), this.raw = void 0;
|
|
@@ -104744,7 +104759,7 @@ class wbe {
|
|
|
104744
104759
|
this.raw.drainCollisionEvents(e);
|
|
104745
104760
|
}
|
|
104746
104761
|
drainContactForceEvents(e) {
|
|
104747
|
-
let t = new
|
|
104762
|
+
let t = new _be();
|
|
104748
104763
|
this.raw.drainContactForceEvents((i) => {
|
|
104749
104764
|
t.raw = i, e(t), t.free();
|
|
104750
104765
|
});
|
|
@@ -105112,11 +105127,11 @@ class dn {
|
|
|
105112
105127
|
return this.contactForceEventThreshold = e, this;
|
|
105113
105128
|
}
|
|
105114
105129
|
}
|
|
105115
|
-
for (var
|
|
105130
|
+
for (var SCe = { byteLength: function(s) {
|
|
105116
105131
|
var e = jQ(s), t = e[0], i = e[1];
|
|
105117
105132
|
return 3 * (t + i) / 4 - i;
|
|
105118
105133
|
}, toByteArray: function(s) {
|
|
105119
|
-
var e, t, i = jQ(s), n = i[0], r = i[1], o = new
|
|
105134
|
+
var e, t, i = jQ(s), n = i[0], r = i[1], o = new wbe(function(l, h, u) {
|
|
105120
105135
|
return 3 * (h + u) / 4 - u;
|
|
105121
105136
|
}(0, n, r)), a = 0, c = r > 0 ? n - 4 : n;
|
|
105122
105137
|
for (t = 0; t < c; t += 4)
|
|
@@ -105124,9 +105139,9 @@ for (var ECe = { byteLength: function(s) {
|
|
|
105124
105139
|
return r === 2 && (e = da[s.charCodeAt(t)] << 2 | da[s.charCodeAt(t + 1)] >> 4, o[a++] = 255 & e), r === 1 && (e = da[s.charCodeAt(t)] << 10 | da[s.charCodeAt(t + 1)] << 4 | da[s.charCodeAt(t + 2)] >> 2, o[a++] = e >> 8 & 255, o[a++] = 255 & e), o;
|
|
105125
105140
|
}, fromByteArray: function(s) {
|
|
105126
105141
|
for (var e, t = s.length, i = t % 3, n = [], r = 16383, o = 0, a = t - i; o < a; o += r)
|
|
105127
|
-
n.push(
|
|
105142
|
+
n.push(Sbe(s, o, o + r > a ? a : o + r));
|
|
105128
105143
|
return i === 1 ? (e = s[t - 1], n.push(jc[e >> 2] + jc[e << 4 & 63] + "==")) : i === 2 && (e = (s[t - 2] << 8) + s[t - 1], n.push(jc[e >> 10] + jc[e >> 4 & 63] + jc[e << 2 & 63] + "=")), n.join("");
|
|
105129
|
-
} }, jc = [], da = [],
|
|
105144
|
+
} }, jc = [], da = [], wbe = typeof Uint8Array < "u" ? Uint8Array : Array, gT = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", fg = 0, Cbe = gT.length; fg < Cbe; ++fg)
|
|
105130
105145
|
jc[fg] = gT[fg], da[gT.charCodeAt(fg)] = fg;
|
|
105131
105146
|
function jQ(s) {
|
|
105132
105147
|
var e = s.length;
|
|
@@ -105135,14 +105150,14 @@ function jQ(s) {
|
|
|
105135
105150
|
var t = s.indexOf("=");
|
|
105136
105151
|
return t === -1 && (t = e), [t, t === e ? 0 : 4 - t % 4];
|
|
105137
105152
|
}
|
|
105138
|
-
function
|
|
105153
|
+
function Sbe(s, e, t) {
|
|
105139
105154
|
for (var i, n, r = [], o = e; o < t; o += 3)
|
|
105140
105155
|
i = (s[o] << 16 & 16711680) + (s[o + 1] << 8 & 65280) + (255 & s[o + 2]), r.push(jc[(n = i) >> 18 & 63] + jc[n >> 12 & 63] + jc[n >> 6 & 63] + jc[63 & n]);
|
|
105141
105156
|
return r.join("");
|
|
105142
105157
|
}
|
|
105143
105158
|
da["-".charCodeAt(0)] = 62, da["_".charCodeAt(0)] = 63;
|
|
105144
|
-
const
|
|
105145
|
-
class
|
|
105159
|
+
const ECe = Symbol("object"), mT = new hc(() => new C(), 20);
|
|
105160
|
+
class Ebe {
|
|
105146
105161
|
/** @internal */
|
|
105147
105162
|
constructor(e, t, i, n, r, o) {
|
|
105148
105163
|
d(this, "_point");
|
|
@@ -105168,7 +105183,7 @@ class Ibe {
|
|
|
105168
105183
|
return mT.get().set(this._tangentVelocity.x, this._tangentVelocity.y, this._tangentVelocity.z);
|
|
105169
105184
|
}
|
|
105170
105185
|
}
|
|
105171
|
-
class
|
|
105186
|
+
class Ibe {
|
|
105172
105187
|
/** @internal */
|
|
105173
105188
|
constructor(e, t, i) {
|
|
105174
105189
|
/** The contact points of this collision. Contains information about positions, normals, distance, friction, impulse... */
|
|
@@ -105193,14 +105208,14 @@ class Mbe {
|
|
|
105193
105208
|
return (e = this.collider) == null ? void 0 : e.attachedRigidbody;
|
|
105194
105209
|
}
|
|
105195
105210
|
}
|
|
105196
|
-
class
|
|
105211
|
+
class Mbe {
|
|
105197
105212
|
constructor(e, t) {
|
|
105198
105213
|
d(this, "object");
|
|
105199
105214
|
d(this, "collider");
|
|
105200
105215
|
this.object = e, this.collider = t;
|
|
105201
105216
|
}
|
|
105202
105217
|
}
|
|
105203
|
-
const js = ne("debugphysics"), AT = ne("debugcolliderplacement"), yT = ne("debugcollisions"),
|
|
105218
|
+
const js = ne("debugphysics"), AT = ne("debugcolliderplacement"), yT = ne("debugcollisions"), Tbe = ne("showcolliders"), vT = ne("debugraycasts"), lo = Symbol("needle component"), Gr = Symbol("physics body"), WQ = Symbol("rigidbody");
|
|
105204
105219
|
let Nd;
|
|
105205
105220
|
globalThis.false = globalThis.false !== void 0 ? globalThis.false : !0;
|
|
105206
105221
|
js && console.log("Use Rapier", !1, globalThis.false);
|
|
@@ -105211,7 +105226,7 @@ const T0 = class {
|
|
|
105211
105226
|
d(this, "context");
|
|
105212
105227
|
d(this, "_initializePromise");
|
|
105213
105228
|
d(this, "_isInitialized", !1);
|
|
105214
|
-
d(this, "rapierRay", new
|
|
105229
|
+
d(this, "rapierRay", new vbe({ x: 0, y: 0, z: 0 }, { x: 0, y: 0, z: 1 }));
|
|
105215
105230
|
d(this, "raycastVectorsBuffer", new hc(() => new C(), 10));
|
|
105216
105231
|
d(this, "rapierSphere", null);
|
|
105217
105232
|
d(this, "rapierColliderArray", []);
|
|
@@ -105420,7 +105435,7 @@ const T0 = class {
|
|
|
105420
105435
|
this.rapierIdentityRotation,
|
|
105421
105436
|
this.rapierSphere,
|
|
105422
105437
|
(i) => {
|
|
105423
|
-
const n = i[lo], r = new
|
|
105438
|
+
const n = i[lo], r = new Mbe(n.gameObject, n);
|
|
105424
105439
|
return this.rapierColliderArray.push(r), !0;
|
|
105425
105440
|
},
|
|
105426
105441
|
// TODO: it seems as QueryFilterFlags.EXCLUDE_SENSORS also excludes DYNAMIC Rigidbodies (only if they're set to kinematic)
|
|
@@ -105698,7 +105713,7 @@ Error:`, a), null;
|
|
|
105698
105713
|
}
|
|
105699
105714
|
step(e) {
|
|
105700
105715
|
if (this.world && this.enabled) {
|
|
105701
|
-
if (this._isUpdatingPhysicsWorld = !0, this.eventQueue || (this.eventQueue = new
|
|
105716
|
+
if (this._isUpdatingPhysicsWorld = !0, this.eventQueue || (this.eventQueue = new xbe(!1)), e === void 0 || e <= 0) {
|
|
105702
105717
|
this._isUpdatingPhysicsWorld = !1;
|
|
105703
105718
|
return;
|
|
105704
105719
|
} else
|
|
@@ -105712,11 +105727,11 @@ Error:`, a), null;
|
|
|
105712
105727
|
}
|
|
105713
105728
|
}
|
|
105714
105729
|
postStep() {
|
|
105715
|
-
this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new
|
|
105730
|
+
this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new Bbe(this.world, this.eventQueue)), this.collisionHandler && (this.collisionHandler.handleCollisionEvents(), this.collisionHandler.update()), this.updateDebugRendering(this.world));
|
|
105716
105731
|
}
|
|
105717
105732
|
updateDebugRendering(e) {
|
|
105718
105733
|
var t, i, n, r;
|
|
105719
|
-
if (js || AT ||
|
|
105734
|
+
if (js || AT || Tbe || this.debugRenderColliders === !0) {
|
|
105720
105735
|
if (!this.lines) {
|
|
105721
105736
|
const a = new nn({
|
|
105722
105737
|
color: 7855479,
|
|
@@ -105828,7 +105843,7 @@ Error:`, a), null;
|
|
|
105828
105843
|
};
|
|
105829
105844
|
let pg = T0;
|
|
105830
105845
|
d(pg, "_didLoadPhysicsEngine", !1), d(pg, "_matricesBuffer", []), d(pg, "centerConnectionPos", { x: 0, y: 0, z: 0 }), d(pg, "centerConnectionRot", { x: 0, y: 0, z: 0, w: 1 });
|
|
105831
|
-
class
|
|
105846
|
+
class Bbe {
|
|
105832
105847
|
constructor(e, t) {
|
|
105833
105848
|
d(this, "world");
|
|
105834
105849
|
d(this, "eventQueue");
|
|
@@ -105869,11 +105884,11 @@ class Rbe {
|
|
|
105869
105884
|
for (let g = 0; g < a.numSolverContacts(); g++) {
|
|
105870
105885
|
const y = a.solverContactPoint(g), m = a.contactImpulse(g);
|
|
105871
105886
|
if (y) {
|
|
105872
|
-
const A = a.contactDist(g), b = a.solverContactFriction(g), v = a.solverContactTangentVelocity(g), _ = new
|
|
105887
|
+
const A = a.contactDist(g), b = a.solverContactFriction(g), v = a.solverContactTangentVelocity(g), _ = new Ebe(y, A, p, m, b, v);
|
|
105873
105888
|
f.push(_), yT && bt.DrawDirection(y, p, 16711680, 3, !0);
|
|
105874
105889
|
}
|
|
105875
105890
|
}
|
|
105876
|
-
r = new
|
|
105891
|
+
r = new Ibe(o, i, f);
|
|
105877
105892
|
}
|
|
105878
105893
|
if (h) {
|
|
105879
105894
|
const f = { collider: e, component: l, collision: r };
|
|
@@ -105951,7 +105966,7 @@ class Rbe {
|
|
|
105951
105966
|
}
|
|
105952
105967
|
}
|
|
105953
105968
|
}
|
|
105954
|
-
class
|
|
105969
|
+
class ICe {
|
|
105955
105970
|
/**
|
|
105956
105971
|
* Use this method to quickly setup a scene to compare multiple models.
|
|
105957
105972
|
* @example
|
|
@@ -106004,10 +106019,10 @@ class MCe {
|
|
|
106004
106019
|
};
|
|
106005
106020
|
}
|
|
106006
106021
|
}
|
|
106007
|
-
function
|
|
106008
|
-
return
|
|
106022
|
+
function MCe(s, e, t, i = "image/webp", n) {
|
|
106023
|
+
return Rbe({ context: s, width: e, height: t, mimeType: i, camera: n });
|
|
106009
106024
|
}
|
|
106010
|
-
function
|
|
106025
|
+
function Rbe(s = {
|
|
106011
106026
|
mimeType: "image/png",
|
|
106012
106027
|
transparent: !1
|
|
106013
106028
|
}) {
|
|
@@ -106030,14 +106045,14 @@ function Pbe(s = {
|
|
|
106030
106045
|
const u = s.render_events !== !1, f = new Array();
|
|
106031
106046
|
u && (Wv(e.scene, qn, f), f.forEach((g) => g == null ? void 0 : g.onBeforeRender())), e.renderNow(), u && f.forEach((g) => g.onAfterRender());
|
|
106032
106047
|
const p = h.toDataURL(r);
|
|
106033
|
-
return s.download_filename &&
|
|
106048
|
+
return s.download_filename && Pbe(p, s.download_filename), p;
|
|
106034
106049
|
} finally {
|
|
106035
106050
|
e.renderer.setSize(o, a, !1), e.updateSize(), e.renderer.setClearColor(l);
|
|
106036
106051
|
}
|
|
106037
106052
|
return null;
|
|
106038
106053
|
}
|
|
106039
106054
|
let my = null;
|
|
106040
|
-
function
|
|
106055
|
+
function Pbe(s, e) {
|
|
106041
106056
|
if (s) {
|
|
106042
106057
|
if (!s.startsWith("data:image")) {
|
|
106043
106058
|
console.error("Can not save image: Data url is not an image", s);
|
|
@@ -106050,7 +106065,7 @@ let aP = 0;
|
|
|
106050
106065
|
function qQ(s) {
|
|
106051
106066
|
s ? aP++ : aP--;
|
|
106052
106067
|
}
|
|
106053
|
-
function
|
|
106068
|
+
function TCe() {
|
|
106054
106069
|
return aP > 0;
|
|
106055
106070
|
}
|
|
106056
106071
|
class T6 {
|
|
@@ -106061,33 +106076,33 @@ class T6 {
|
|
|
106061
106076
|
writeNode(e) {
|
|
106062
106077
|
}
|
|
106063
106078
|
}
|
|
106064
|
-
class
|
|
106079
|
+
class Dbe extends T6 {
|
|
106065
106080
|
beforeWriteNode(e, t) {
|
|
106066
106081
|
bt.isGizmo(e) && (t.keep = !1);
|
|
106067
106082
|
}
|
|
106068
106083
|
}
|
|
106069
|
-
class
|
|
106084
|
+
class kbe extends T6 {
|
|
106070
106085
|
beforeWriteTexture(e, t) {
|
|
106071
106086
|
e.isRenderTargetTexture && (t.newTexture = A2(new Bi(1, 1, 1, 0)));
|
|
106072
106087
|
}
|
|
106073
106088
|
}
|
|
106074
|
-
const
|
|
106089
|
+
const Obe = {
|
|
106075
106090
|
binary: !0,
|
|
106076
106091
|
animations: !0
|
|
106077
106092
|
};
|
|
106078
|
-
async function
|
|
106093
|
+
async function BCe(s) {
|
|
106079
106094
|
if (!s.context)
|
|
106080
106095
|
throw new Error("No context provided to exportAsGLTF");
|
|
106081
106096
|
s.scene || (s.scene = s.context.scene);
|
|
106082
106097
|
const e = {
|
|
106083
|
-
...
|
|
106098
|
+
...Obe,
|
|
106084
106099
|
...s
|
|
106085
106100
|
}, { context: t } = e, i = new GE();
|
|
106086
|
-
i.register((a) => new R9(a)), i.register((a) => new
|
|
106101
|
+
i.register((a) => new R9(a)), i.register((a) => new Dbe(a)), i.register((a) => new kbe(a)), f9(i, e.context);
|
|
106087
106102
|
const n = {
|
|
106088
106103
|
binary: e.binary,
|
|
106089
|
-
animations:
|
|
106090
|
-
}, r = new
|
|
106104
|
+
animations: Fbe(t, e.scene, [])
|
|
106105
|
+
}, r = new Lbe();
|
|
106091
106106
|
console.log("Exporting GLTF", n), r.onBeforeExport(e), qQ(!0);
|
|
106092
106107
|
const o = await i.parseAsync(e.scene, n).catch((a) => (console.error(a), null));
|
|
106093
106108
|
if (qQ(!1), r.onAfterExport(e), !o)
|
|
@@ -106104,7 +106119,7 @@ async function RCe(s) {
|
|
|
106104
106119
|
return o;
|
|
106105
106120
|
}
|
|
106106
106121
|
const XQ = Symbol("needle:weight");
|
|
106107
|
-
class
|
|
106122
|
+
class Lbe {
|
|
106108
106123
|
constructor() {
|
|
106109
106124
|
d(this, "_undo", []);
|
|
106110
106125
|
}
|
|
@@ -106125,7 +106140,7 @@ class Fbe {
|
|
|
106125
106140
|
this._undo.forEach((t) => t()), this._undo.length = 0;
|
|
106126
106141
|
}
|
|
106127
106142
|
}
|
|
106128
|
-
function
|
|
106143
|
+
function Fbe(s, e, t) {
|
|
106129
106144
|
s.animations.mixers.forEach((n) => {
|
|
106130
106145
|
const r = av.tryGetActionsFromMixer(n);
|
|
106131
106146
|
if (r)
|
|
@@ -106231,7 +106246,7 @@ for (const s of Object.getOwnPropertyNames(re))
|
|
|
106231
106246
|
break;
|
|
106232
106247
|
}
|
|
106233
106248
|
globalThis.THREE ? console.warn("Threejs is already imported") : globalThis.THREE = jJ;
|
|
106234
|
-
class
|
|
106249
|
+
class Ube {
|
|
106235
106250
|
/**
|
|
106236
106251
|
* Creates a new ConstantBackoff.
|
|
106237
106252
|
* @param backoff the backoff-time to return
|
|
@@ -106254,7 +106269,7 @@ class Nbe {
|
|
|
106254
106269
|
this._retries = 0;
|
|
106255
106270
|
}
|
|
106256
106271
|
}
|
|
106257
|
-
class
|
|
106272
|
+
class Nbe {
|
|
106258
106273
|
/**
|
|
106259
106274
|
* Creates a new ExponentialBackoff.
|
|
106260
106275
|
* @param base the base of the exponentiation
|
|
@@ -106280,7 +106295,7 @@ class Qbe {
|
|
|
106280
106295
|
this._retries = 0, this.i = 0;
|
|
106281
106296
|
}
|
|
106282
106297
|
}
|
|
106283
|
-
class
|
|
106298
|
+
class Qbe {
|
|
106284
106299
|
/**
|
|
106285
106300
|
* Creates a new LinearBackoff.
|
|
106286
106301
|
* @param initial the initial backoff-time in milliseconds
|
|
@@ -106311,7 +106326,7 @@ class zbe {
|
|
|
106311
106326
|
this._retries = 0, this.i = 0;
|
|
106312
106327
|
}
|
|
106313
106328
|
}
|
|
106314
|
-
class
|
|
106329
|
+
class zbe {
|
|
106315
106330
|
constructor() {
|
|
106316
106331
|
this.elements = [];
|
|
106317
106332
|
}
|
|
@@ -106337,7 +106352,7 @@ class Gbe {
|
|
|
106337
106352
|
return this.elements.shift();
|
|
106338
106353
|
}
|
|
106339
106354
|
}
|
|
106340
|
-
class
|
|
106355
|
+
class Gbe {
|
|
106341
106356
|
constructor(e) {
|
|
106342
106357
|
if (!Number.isInteger(e) || e <= 0)
|
|
106343
106358
|
throw new Error("Capacity must be a positive integer");
|
|
@@ -106648,7 +106663,7 @@ class P6 {
|
|
|
106648
106663
|
globalThis.clearTimeout(this.retryTimeout);
|
|
106649
106664
|
}
|
|
106650
106665
|
}
|
|
106651
|
-
class
|
|
106666
|
+
class Hbe {
|
|
106652
106667
|
/**
|
|
106653
106668
|
* Creates a new WebsocketBuilder.
|
|
106654
106669
|
*
|
|
@@ -106843,15 +106858,15 @@ class Vbe {
|
|
|
106843
106858
|
} }), this;
|
|
106844
106859
|
}
|
|
106845
106860
|
}
|
|
106846
|
-
const
|
|
106861
|
+
const Vbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
106847
106862
|
__proto__: null,
|
|
106848
|
-
ArrayQueue:
|
|
106849
|
-
ConstantBackoff:
|
|
106850
|
-
ExponentialBackoff:
|
|
106851
|
-
LinearBackoff:
|
|
106852
|
-
RingQueue:
|
|
106863
|
+
ArrayQueue: zbe,
|
|
106864
|
+
ConstantBackoff: Ube,
|
|
106865
|
+
ExponentialBackoff: Nbe,
|
|
106866
|
+
LinearBackoff: Qbe,
|
|
106867
|
+
RingQueue: Gbe,
|
|
106853
106868
|
Websocket: P6,
|
|
106854
|
-
WebsocketBuilder:
|
|
106869
|
+
WebsocketBuilder: Hbe,
|
|
106855
106870
|
get WebsocketEvent() {
|
|
106856
106871
|
return Fi;
|
|
106857
106872
|
}
|
|
@@ -106860,7 +106875,7 @@ const jbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
106860
106875
|
material: "material",
|
|
106861
106876
|
camera: "camera",
|
|
106862
106877
|
light: "light"
|
|
106863
|
-
}, Qd = "KHR_animation_pointer",
|
|
106878
|
+
}, Qd = "KHR_animation_pointer", jbe = {
|
|
106864
106879
|
// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
|
|
106865
106880
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
106866
106881
|
CUBICSPLINE: void 0,
|
|
@@ -106868,7 +106883,7 @@ const jbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
106868
106883
|
STEP: Xu
|
|
106869
106884
|
}, YQ = Yt.findNode;
|
|
106870
106885
|
let JQ = !1;
|
|
106871
|
-
class
|
|
106886
|
+
class Wbe {
|
|
106872
106887
|
constructor(e) {
|
|
106873
106888
|
this.parser = e, this.name = Qd, this.animationPointerResolver = null;
|
|
106874
106889
|
}
|
|
@@ -107123,7 +107138,7 @@ class qbe {
|
|
|
107123
107138
|
a.endsWith(".quaternion") ? g = Ma : g = TS;
|
|
107124
107139
|
break;
|
|
107125
107140
|
}
|
|
107126
|
-
const y = n.interpolation !== void 0 ?
|
|
107141
|
+
const y = n.interpolation !== void 0 ? jbe[n.interpolation] : rl;
|
|
107127
107142
|
let m = p._getArrayFromAccessor(i);
|
|
107128
107143
|
a.endsWith(".fov") && (m = m.map((b) => b / Math.PI * 180));
|
|
107129
107144
|
const A = new g(
|
|
@@ -107186,12 +107201,12 @@ class qbe {
|
|
|
107186
107201
|
});
|
|
107187
107202
|
}
|
|
107188
107203
|
}
|
|
107189
|
-
const
|
|
107204
|
+
const qbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
107190
107205
|
__proto__: null,
|
|
107191
|
-
GLTFAnimationPointerExtension:
|
|
107206
|
+
GLTFAnimationPointerExtension: Wbe
|
|
107192
107207
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
107193
107208
|
export {
|
|
107194
|
-
|
|
107209
|
+
ECe as $physicsKey,
|
|
107195
107210
|
mi as ActionBuilder,
|
|
107196
107211
|
D8 as ActionCollection,
|
|
107197
107212
|
Uo as ActionModel,
|
|
@@ -107256,7 +107271,7 @@ export {
|
|
|
107256
107271
|
Dm as ClearFlags,
|
|
107257
107272
|
Gl as ClipExtrapolation,
|
|
107258
107273
|
Da as Collider,
|
|
107259
|
-
|
|
107274
|
+
Ibe as Collision,
|
|
107260
107275
|
E2 as CollisionDetectionMode,
|
|
107261
107276
|
Ch as ColorAdjustments,
|
|
107262
107277
|
aA as ColorBySpeedModule,
|
|
@@ -107265,10 +107280,10 @@ export {
|
|
|
107265
107280
|
iE as ComponentEvents,
|
|
107266
107281
|
nE as ComponentLifecycleEvents,
|
|
107267
107282
|
$he as ConnectionEvents,
|
|
107268
|
-
|
|
107283
|
+
Ebe as ContactPoint,
|
|
107269
107284
|
Dh as ContactShadows,
|
|
107270
107285
|
kt as Context,
|
|
107271
|
-
|
|
107286
|
+
$we as ContextArgs,
|
|
107272
107287
|
Oi as ContextEvent,
|
|
107273
107288
|
gi as ContextRegistry,
|
|
107274
107289
|
R2 as ControlTrackHandler,
|
|
@@ -107319,7 +107334,7 @@ export {
|
|
|
107319
107334
|
i9 as HideOnStart,
|
|
107320
107335
|
zE as HingeJoint,
|
|
107321
107336
|
Z5 as HorizontalLayoutGroup,
|
|
107322
|
-
|
|
107337
|
+
eCe as HostData,
|
|
107323
107338
|
sb as Image,
|
|
107324
107339
|
l0 as ImageReference,
|
|
107325
107340
|
Wle as ImageReferenceSerializer,
|
|
@@ -107335,16 +107350,16 @@ export {
|
|
|
107335
107350
|
er as InstantiateIdProvider,
|
|
107336
107351
|
pl as InstantiateOptions,
|
|
107337
107352
|
S9 as Interactable,
|
|
107338
|
-
|
|
107339
|
-
|
|
107353
|
+
qwe as JoinedRoomResponse,
|
|
107354
|
+
Vwe as KeyEventArgs,
|
|
107340
107355
|
_c as Keyframe,
|
|
107341
107356
|
WE as LODGroup,
|
|
107342
107357
|
pA as LODModel,
|
|
107343
|
-
|
|
107358
|
+
Xwe as LeftRoomResponse,
|
|
107344
107359
|
$o as Light,
|
|
107345
107360
|
Tue as LightData,
|
|
107346
107361
|
vs as LimitVelocityOverLifetimeModule,
|
|
107347
|
-
|
|
107362
|
+
Nxe as LoadingElementOptions,
|
|
107348
107363
|
k9 as LogStats,
|
|
107349
107364
|
Ea as LogType,
|
|
107350
107365
|
gA as LookAt,
|
|
@@ -107464,12 +107479,12 @@ export {
|
|
|
107464
107479
|
mk as SpectatorCamera,
|
|
107465
107480
|
eb as SphereCollider,
|
|
107466
107481
|
Aue as SphereIntersection,
|
|
107467
|
-
|
|
107482
|
+
Mbe as SphereOverlapResult,
|
|
107468
107483
|
hd as Sprite,
|
|
107469
107484
|
db as SpriteData,
|
|
107470
107485
|
Cc as SpriteRenderer,
|
|
107471
107486
|
LE as SpriteSheet,
|
|
107472
|
-
|
|
107487
|
+
uCe as StateMachineBehaviour,
|
|
107473
107488
|
Nfe as StreamEndedEvent,
|
|
107474
107489
|
Qfe as StreamReceivedEvent,
|
|
107475
107490
|
NC as SubEmitterSystem,
|
|
@@ -107479,7 +107494,7 @@ export {
|
|
|
107479
107494
|
n9 as TapGestureTrigger,
|
|
107480
107495
|
W2 as TeleportTarget,
|
|
107481
107496
|
Z9 as TestRunner,
|
|
107482
|
-
|
|
107497
|
+
ICe as TestSceneUtils,
|
|
107483
107498
|
$9 as TestSimulateUserData,
|
|
107484
107499
|
no as Text,
|
|
107485
107500
|
X2 as TextBuilder,
|
|
@@ -107506,7 +107521,7 @@ export {
|
|
|
107506
107521
|
aN as Upload_Result,
|
|
107507
107522
|
wde as UriSerializer,
|
|
107508
107523
|
NE as UsageMarker,
|
|
107509
|
-
|
|
107524
|
+
Ywe as UserJoinedOrLeftRoomModel,
|
|
107510
107525
|
nc as VERSION,
|
|
107511
107526
|
P8 as VariantAction,
|
|
107512
107527
|
Ln as VelocityOverLifetimeModule,
|
|
@@ -107519,7 +107534,7 @@ export {
|
|
|
107519
107534
|
PE as Volume,
|
|
107520
107535
|
Nt as VolumeParameter,
|
|
107521
107536
|
_E as VolumeProfile,
|
|
107522
|
-
|
|
107537
|
+
Jwe as WaitForFrames,
|
|
107523
107538
|
uue as WaitForPromise,
|
|
107524
107539
|
hue as WaitForSeconds,
|
|
107525
107540
|
Nu as Watch,
|
|
@@ -107543,24 +107558,24 @@ export {
|
|
|
107543
107558
|
Qu as activeInHierarchyFieldName,
|
|
107544
107559
|
iK as addAttributeChangeCallback,
|
|
107545
107560
|
mh as addComponent,
|
|
107546
|
-
|
|
107561
|
+
pCe as addCustomExtensionPlugin,
|
|
107547
107562
|
kme as addFile,
|
|
107548
107563
|
Ome as addFileFromUrl,
|
|
107549
|
-
|
|
107564
|
+
vCe as addGltfLoadEventListener,
|
|
107550
107565
|
sm as addNewComponent,
|
|
107551
107566
|
ZD as addPatch,
|
|
107552
107567
|
x2 as apply,
|
|
107553
|
-
|
|
107568
|
+
CCe as applyHMRChanges,
|
|
107554
107569
|
zue as beginListenDestroy,
|
|
107555
107570
|
Lme as beginListenFileSpawn,
|
|
107556
107571
|
Hue as beginListenInstantiate,
|
|
107557
107572
|
bV as binaryIdentifierCasts,
|
|
107558
|
-
|
|
107573
|
+
Zwe as build_scene_functions,
|
|
107559
107574
|
bg as builtinComponentKeyName,
|
|
107560
107575
|
fH as calculateProgress01,
|
|
107561
|
-
|
|
107562
|
-
|
|
107563
|
-
|
|
107576
|
+
Rxe as clearBalloonMessages,
|
|
107577
|
+
Rxe as clearOverlayMessages,
|
|
107578
|
+
iCe as colorSerializer,
|
|
107564
107579
|
OM as componentSerializer,
|
|
107565
107580
|
tte as copyTexture,
|
|
107566
107581
|
c6 as createLoader,
|
|
@@ -107580,8 +107595,8 @@ export {
|
|
|
107580
107595
|
pw as editorGuidKeyName,
|
|
107581
107596
|
g3 as effectsOrder,
|
|
107582
107597
|
$0 as enableSpatialConsole,
|
|
107583
|
-
|
|
107584
|
-
|
|
107598
|
+
nCe as eventListSerializer,
|
|
107599
|
+
BCe as exportAsGLTF,
|
|
107585
107600
|
hE as findByGuid,
|
|
107586
107601
|
I5 as findObjectOfType,
|
|
107587
107602
|
ode as findObjectsOfType,
|
|
@@ -107589,7 +107604,7 @@ export {
|
|
|
107589
107604
|
ste as fitObjectIntoVolume,
|
|
107590
107605
|
Pm as foreachComponent,
|
|
107591
107606
|
b5 as foreachComponentEnumerator,
|
|
107592
|
-
|
|
107607
|
+
Oxe as forward,
|
|
107593
107608
|
rK as generateQRCode,
|
|
107594
107609
|
b2 as generateSeed,
|
|
107595
107610
|
Uf as getBoundingBox,
|
|
@@ -107603,17 +107618,17 @@ export {
|
|
|
107603
107618
|
Toe as getFormattedDate,
|
|
107604
107619
|
No as getIconElement,
|
|
107605
107620
|
qN as getIconTexture,
|
|
107606
|
-
|
|
107607
|
-
|
|
107608
|
-
|
|
107621
|
+
Mxe as getIp,
|
|
107622
|
+
Txe as getIpAndLocation,
|
|
107623
|
+
Ixe as getIpCloudflare,
|
|
107609
107624
|
al as getLoader,
|
|
107610
107625
|
uE as getOrAddComponent,
|
|
107611
107626
|
ne as getParam,
|
|
107612
|
-
|
|
107613
|
-
|
|
107614
|
-
|
|
107627
|
+
Lxe as getParentHierarchyPath,
|
|
107628
|
+
Exe as getPath,
|
|
107629
|
+
jwe as getPeerOptions,
|
|
107615
107630
|
Yhe as getPeerjsInstance,
|
|
107616
|
-
|
|
107631
|
+
Lwe as getResourceUserCount,
|
|
107617
107632
|
Og as getTempQuaternion,
|
|
107618
107633
|
zn as getTempVector,
|
|
107619
107634
|
FS as getUrlParams,
|
|
@@ -107638,14 +107653,14 @@ export {
|
|
|
107638
107653
|
Vv as isActiveSelf,
|
|
107639
107654
|
$J as isAndroidDevice,
|
|
107640
107655
|
ete as isAnimationAction,
|
|
107641
|
-
|
|
107656
|
+
xxe as isDebugMode,
|
|
107642
107657
|
ym as isDesktop,
|
|
107643
107658
|
Rm as isDestroyed,
|
|
107644
107659
|
ht as isDevEnvironment,
|
|
107645
|
-
|
|
107646
|
-
|
|
107660
|
+
Owe as isDisposed,
|
|
107661
|
+
TCe as isExporting,
|
|
107647
107662
|
WJ as isHostedOnGlitch,
|
|
107648
|
-
|
|
107663
|
+
_Ce as isHotReloading,
|
|
107649
107664
|
Rue as isIconElement,
|
|
107650
107665
|
yo as isLocalNetwork,
|
|
107651
107666
|
Ra as isMobileDevice,
|
|
@@ -107657,72 +107672,72 @@ export {
|
|
|
107657
107672
|
vm as isiOS,
|
|
107658
107673
|
l6 as loadSync,
|
|
107659
107674
|
xB as logHierarchy,
|
|
107660
|
-
|
|
107675
|
+
kxe as lookAtInverse,
|
|
107661
107676
|
HS as lookAtObject,
|
|
107662
|
-
|
|
107677
|
+
Cxe as makeId,
|
|
107663
107678
|
eG as makeIdFromRandomWords,
|
|
107664
107679
|
cl as makeNameSafeForUSD,
|
|
107665
107680
|
Yue as markAsInstancedRendered,
|
|
107666
107681
|
_L as microphonePermissionsGranted,
|
|
107667
|
-
|
|
107682
|
+
_xe as nameof,
|
|
107668
107683
|
qJ as nameofFactory,
|
|
107669
107684
|
yde as objectSerializer,
|
|
107670
|
-
|
|
107671
|
-
|
|
107672
|
-
|
|
107673
|
-
|
|
107674
|
-
|
|
107675
|
-
|
|
107676
|
-
|
|
107685
|
+
Qwe as offXRSessionEnd,
|
|
107686
|
+
Nwe as offXRSessionStart,
|
|
107687
|
+
lCe as onAfterRender,
|
|
107688
|
+
cCe as onBeforeRender,
|
|
107689
|
+
oCe as onClear,
|
|
107690
|
+
aCe as onDestroy,
|
|
107691
|
+
rCe as onInitialized,
|
|
107677
107692
|
Ide as onStart,
|
|
107678
107693
|
Mde as onUpdate,
|
|
107679
107694
|
AV as onXRSessionEnd,
|
|
107680
107695
|
a2 as onXRSessionStart,
|
|
107681
|
-
|
|
107696
|
+
rbe as parseSync,
|
|
107682
107697
|
rte as placeOnSurface,
|
|
107683
107698
|
ote as postprocessFBXMaterials,
|
|
107684
|
-
|
|
107699
|
+
hCe as prefix,
|
|
107685
107700
|
XJ as pushState,
|
|
107686
|
-
|
|
107701
|
+
Sxe as randomNumber,
|
|
107687
107702
|
_V as registerBinaryType,
|
|
107688
107703
|
y2 as registerComponent,
|
|
107689
107704
|
u9 as registerComponentExtension,
|
|
107690
107705
|
xc as registerCustomEffectType,
|
|
107691
107706
|
f9 as registerExportExtensions,
|
|
107692
107707
|
d9 as registerExtensions,
|
|
107693
|
-
|
|
107708
|
+
xCe as registerHotReloadType,
|
|
107694
107709
|
Z4 as registerLoader,
|
|
107695
107710
|
jue as registerPrefabProvider,
|
|
107696
|
-
|
|
107711
|
+
Bwe as registerType,
|
|
107697
107712
|
KJ as relativePathPrefix,
|
|
107698
107713
|
nK as removeAttributeChangeCallback,
|
|
107699
107714
|
C5 as removeComponent,
|
|
107700
|
-
|
|
107701
|
-
|
|
107702
|
-
|
|
107715
|
+
gCe as removeCustomImportExtensionType,
|
|
107716
|
+
bCe as removeGltfLoadEventListener,
|
|
107717
|
+
Dwe as removePatch,
|
|
107703
107718
|
Jf as resolveUrl,
|
|
107704
107719
|
YJ as sanitizeString,
|
|
107705
|
-
|
|
107706
|
-
|
|
107707
|
-
|
|
107720
|
+
Pbe as saveImage,
|
|
107721
|
+
MCe as screenshot,
|
|
107722
|
+
Rbe as screenshot2,
|
|
107708
107723
|
Que as sendDestroyed,
|
|
107709
107724
|
x as serializable,
|
|
107710
107725
|
Tle as serializeObject,
|
|
107711
107726
|
Nv as serializeable,
|
|
107712
107727
|
Bw as setActive,
|
|
107713
107728
|
cK as setAllowBalloonMessages,
|
|
107714
|
-
|
|
107729
|
+
Bxe as setAllowOverlayMessages,
|
|
107715
107730
|
OL as setAutoFitEnabled,
|
|
107716
107731
|
kL as setCameraController,
|
|
107717
107732
|
Jue as setDestroyed,
|
|
107718
|
-
|
|
107733
|
+
Uxe as setDevEnvironment,
|
|
107719
107734
|
U8 as setDisposable,
|
|
107720
107735
|
KN as setDontDestroy,
|
|
107721
107736
|
yL as setOrAddParamsToUrl,
|
|
107722
|
-
|
|
107737
|
+
wxe as setParam,
|
|
107723
107738
|
gB as setParamWithoutReload,
|
|
107724
|
-
|
|
107725
|
-
|
|
107739
|
+
Wwe as setPeerOptions,
|
|
107740
|
+
kwe as setResourceTrackingEnabled,
|
|
107726
107741
|
$4 as setState,
|
|
107727
107742
|
tH as setWorldEuler,
|
|
107728
107743
|
$s as setWorldPosition,
|
|
@@ -107736,17 +107751,17 @@ export {
|
|
|
107736
107751
|
_n as showBalloonMessage,
|
|
107737
107752
|
Gi as showBalloonWarning,
|
|
107738
107753
|
oH as showDebugConsole,
|
|
107739
|
-
|
|
107754
|
+
Dxe as slerp,
|
|
107740
107755
|
v2 as syncDestroy,
|
|
107741
107756
|
F5 as syncField,
|
|
107742
107757
|
m5 as syncInstantiate,
|
|
107743
|
-
|
|
107758
|
+
Fxe as textureToCanvas,
|
|
107744
107759
|
dhe as tryCastBinary,
|
|
107745
107760
|
nbe as tryDetermineFileTypeFromBinary,
|
|
107746
107761
|
ibe as tryDetermineFileTypeFromURL,
|
|
107747
107762
|
j0 as tryFindObject,
|
|
107748
107763
|
fhe as tryGetGuid,
|
|
107749
|
-
|
|
107764
|
+
wCe as unregisterHotReloadType,
|
|
107750
107765
|
tG as unwatchWrite,
|
|
107751
107766
|
zle as upload_file,
|
|
107752
107767
|
jee as useForAutoFit,
|