@needle-tools/engine 3.41.2-beta → 3.41.2-beta.1
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 +244 -230
- package/dist/needle-engine.light.js +247 -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 +38 -1
- package/lib/engine/engine_utils_format.js.map +1 -1
- package/package.json +2 -2
- package/src/engine/codegen/register_types.ts +2 -2
- package/src/engine/engine_scenetools.ts +2 -16
- package/src/engine/engine_utils_format.ts +39 -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.1""]) globalThis[""3.41.2-beta.1""] = "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 13:09:29 GMT+0200 (Central European Summer Time)""]) globalThis[""Thu Jun 27 2024 13:09:29 GMT+0200 (Central European Summer Time)""] = "unknown";');
|
|
29615
|
+
zm('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.41.2-beta.1";');
|
|
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 13:09:29 GMT+0200 (Central European Summer Time)";');
|
|
29618
|
+
const nc = "3.41.2-beta.1", RD = "undefined", hH = "Thu Jun 27 2024 13:09:29 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,38 @@ 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
|
+
const n = new URL(s);
|
|
102807
|
+
let r = null;
|
|
102808
|
+
const o = n.searchParams.get("filetype");
|
|
102809
|
+
switch (o && (r = o.toUpperCase()), r != null && r.length || (r = (i = n.pathname.split(".").pop()) == null ? void 0 : i.toUpperCase()), r) {
|
|
102810
|
+
case "GLTF":
|
|
102811
|
+
return "gltf";
|
|
102812
|
+
case "VRM":
|
|
102813
|
+
return "vrm";
|
|
102814
|
+
case "GLB":
|
|
102815
|
+
return "glb";
|
|
102816
|
+
case "FBX":
|
|
102817
|
+
return "fbx";
|
|
102818
|
+
case "USD":
|
|
102819
|
+
return "usd";
|
|
102820
|
+
case "USDA":
|
|
102821
|
+
return "usda";
|
|
102822
|
+
case "USDZ":
|
|
102823
|
+
return "usdz";
|
|
102824
|
+
}
|
|
102825
|
+
}
|
|
102826
|
+
const t = await fetch(s, {
|
|
102802
102827
|
method: "GET",
|
|
102803
102828
|
headers: {
|
|
102804
102829
|
range: "bytes=0-32"
|
|
102805
102830
|
}
|
|
102806
|
-
}).catch((
|
|
102807
|
-
if (
|
|
102808
|
-
const
|
|
102809
|
-
return n6 && console.log("Determined file type from header: " +
|
|
102831
|
+
}).catch((n) => null);
|
|
102832
|
+
if (t != null && t.ok) {
|
|
102833
|
+
const n = await t.arrayBuffer(), r = nbe(n);
|
|
102834
|
+
return n6 && console.log("Determined file type from header: " + r), r;
|
|
102810
102835
|
}
|
|
102811
102836
|
return "unknown";
|
|
102812
102837
|
}
|
|
@@ -102826,7 +102851,7 @@ class s6 {
|
|
|
102826
102851
|
return Zve(e, t);
|
|
102827
102852
|
}
|
|
102828
102853
|
parseSync(e, t, i, n) {
|
|
102829
|
-
return
|
|
102854
|
+
return rbe(e, t, i, n);
|
|
102830
102855
|
}
|
|
102831
102856
|
loadSync(e, t, i, n, r) {
|
|
102832
102857
|
return l6(e, t, i, n, r);
|
|
@@ -102845,10 +102870,10 @@ class lm {
|
|
|
102845
102870
|
}
|
|
102846
102871
|
}
|
|
102847
102872
|
const ju = {};
|
|
102848
|
-
function
|
|
102873
|
+
function vCe(s, e) {
|
|
102849
102874
|
ju[s] = ju[s] || [], ju[s].push(e);
|
|
102850
102875
|
}
|
|
102851
|
-
function
|
|
102876
|
+
function bCe(s, e) {
|
|
102852
102877
|
if (ju[s]) {
|
|
102853
102878
|
const t = ju[s].indexOf(e);
|
|
102854
102879
|
t >= 0 && ju[s].splice(t, 1);
|
|
@@ -102862,20 +102887,8 @@ function hm(s, e) {
|
|
|
102862
102887
|
async function a6(s, e, t, i, n) {
|
|
102863
102888
|
r6 && console.warn("glTF", e, t), e.includes("?") && (e = e.split("?")[0]), await al().createBuiltinComponents(s, e, t, i, n);
|
|
102864
102889
|
}
|
|
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
102890
|
async function c6(s, e) {
|
|
102878
|
-
const t = await
|
|
102891
|
+
const t = await ibe(s) || "unknown";
|
|
102879
102892
|
switch (t) {
|
|
102880
102893
|
case "unknown":
|
|
102881
102894
|
return console.warn("Unknown file type:", s), new Ju();
|
|
@@ -102891,11 +102904,12 @@ async function c6(s, e) {
|
|
|
102891
102904
|
console.warn("Unknown file type:", t);
|
|
102892
102905
|
case "gltf":
|
|
102893
102906
|
case "glb":
|
|
102907
|
+
case "vrm":
|
|
102894
102908
|
const i = new Ju();
|
|
102895
102909
|
return await d9(i, e, s), i;
|
|
102896
102910
|
}
|
|
102897
102911
|
}
|
|
102898
|
-
async function
|
|
102912
|
+
async function rbe(s, e, t, i) {
|
|
102899
102913
|
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
102914
|
const n = await c6(t, s);
|
|
102901
102915
|
if (!n)
|
|
@@ -102938,7 +102952,7 @@ async function obe(s, e, t, i) {
|
|
|
102938
102952
|
});
|
|
102939
102953
|
}
|
|
102940
102954
|
async function l6(s, e, t, i, n) {
|
|
102941
|
-
|
|
102955
|
+
obe(e);
|
|
102942
102956
|
const r = await c6(e, s);
|
|
102943
102957
|
if (!r)
|
|
102944
102958
|
return;
|
|
@@ -102970,7 +102984,7 @@ async function l6(s, e, t, i, n) {
|
|
|
102970
102984
|
async function h6(s, e, t) {
|
|
102971
102985
|
t || (t = e.mainCamera), t ? await e.renderer.compileAsync(s, t, e.scene) : uae(s, e);
|
|
102972
102986
|
}
|
|
102973
|
-
function
|
|
102987
|
+
function obe(s) {
|
|
102974
102988
|
if (new URL(s, window.location.href).href.startsWith("file://")) {
|
|
102975
102989
|
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
102990
|
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 +103011,7 @@ function d6(s, e) {
|
|
|
102997
103011
|
}
|
|
102998
103012
|
}
|
|
102999
103013
|
Z4(s6);
|
|
103000
|
-
const ln = ne("debugwebcomponent"), DQ = "needle-engine", f6 = "vr", p6 = "desktop",
|
|
103014
|
+
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
103015
|
"hash",
|
|
103002
103016
|
"src",
|
|
103003
103017
|
"camera-controls",
|
|
@@ -103103,7 +103117,7 @@ class g6 extends HTMLElement {
|
|
|
103103
103117
|
`, this.shadowRoot && this.shadowRoot.appendChild(t.content.cloneNode(!0)), this._context = new kt({ domElement: this }), this.addEventListener("error", this.onError);
|
|
103104
103118
|
}
|
|
103105
103119
|
static get observedAttributes() {
|
|
103106
|
-
return
|
|
103120
|
+
return cbe;
|
|
103107
103121
|
}
|
|
103108
103122
|
get loadingProgress01() {
|
|
103109
103123
|
return this._loadingProgress01;
|
|
@@ -103259,7 +103273,7 @@ Needle Engine: Begin loading ` + i + `
|
|
|
103259
103273
|
if (u.signal.aborted)
|
|
103260
103274
|
return;
|
|
103261
103275
|
const A = m.index;
|
|
103262
|
-
!h[A] && m.name && (h[A] =
|
|
103276
|
+
!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
103277
|
},
|
|
103264
103278
|
onLoadingFinished: (m, A, b) => {
|
|
103265
103279
|
u.signal.aborted || b && a.push({
|
|
@@ -103410,7 +103424,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
103410
103424
|
if (t.classList.contains(i))
|
|
103411
103425
|
t.style.visibility = "visible", t.style.display === "none" && (t.style.display = "block");
|
|
103412
103426
|
else
|
|
103413
|
-
for (const c of
|
|
103427
|
+
for (const c of abe)
|
|
103414
103428
|
t.classList.contains(c) && (t.style.visibility = "hidden", t.style.display = "none");
|
|
103415
103429
|
}
|
|
103416
103430
|
foreachHtmlElement(t) {
|
|
@@ -103429,7 +103443,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
103429
103443
|
}
|
|
103430
103444
|
}
|
|
103431
103445
|
typeof window < "u" && !window.customElements.get(DQ) && window.customElements.define(DQ, g6);
|
|
103432
|
-
function
|
|
103446
|
+
function lbe(s) {
|
|
103433
103447
|
if (s.startsWith("blob:"))
|
|
103434
103448
|
return "blob";
|
|
103435
103449
|
const e = s.split("/");
|
|
@@ -103452,11 +103466,11 @@ function hbe(s) {
|
|
|
103452
103466
|
}
|
|
103453
103467
|
return ln && console.log("displayName", t), t;
|
|
103454
103468
|
}
|
|
103455
|
-
const
|
|
103469
|
+
const hbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
103456
103470
|
__proto__: null,
|
|
103457
103471
|
NeedleEngineHTMLElement: g6
|
|
103458
103472
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
103459
|
-
function
|
|
103473
|
+
function ube() {
|
|
103460
103474
|
gh.registerWaitForAllowAudio(() => {
|
|
103461
103475
|
const s = kS.getContext();
|
|
103462
103476
|
s.addEventListener("statechange", () => {
|
|
@@ -103471,21 +103485,21 @@ function dbe() {
|
|
|
103471
103485
|
});
|
|
103472
103486
|
});
|
|
103473
103487
|
}
|
|
103474
|
-
setTimeout(
|
|
103488
|
+
setTimeout(ube, 1e3);
|
|
103475
103489
|
const zw = ne("debughotreload");
|
|
103476
103490
|
let bv = !1;
|
|
103477
103491
|
const x0 = /* @__PURE__ */ new Map();
|
|
103478
|
-
function
|
|
103492
|
+
function _Ce() {
|
|
103479
103493
|
return bv;
|
|
103480
103494
|
}
|
|
103481
|
-
function
|
|
103495
|
+
function xCe(s) {
|
|
103482
103496
|
var i;
|
|
103483
103497
|
if (bv)
|
|
103484
103498
|
return;
|
|
103485
103499
|
const t = s.constructor.name;
|
|
103486
103500
|
x0.has(t) ? (i = x0.get(t)) == null || i.push(s) : x0.set(t, [s]);
|
|
103487
103501
|
}
|
|
103488
|
-
function
|
|
103502
|
+
function wCe(s) {
|
|
103489
103503
|
if (bv)
|
|
103490
103504
|
return;
|
|
103491
103505
|
const t = s.constructor.name, i = x0.get(t);
|
|
@@ -103495,7 +103509,7 @@ function CCe(s) {
|
|
|
103495
103509
|
n !== -1 && i.splice(n, 1);
|
|
103496
103510
|
}
|
|
103497
103511
|
let kQ = !1;
|
|
103498
|
-
function
|
|
103512
|
+
function dbe() {
|
|
103499
103513
|
if (zw || kQ)
|
|
103500
103514
|
return;
|
|
103501
103515
|
kQ = !0;
|
|
@@ -103511,8 +103525,8 @@ function fbe() {
|
|
|
103511
103525
|
s.apply(console, e);
|
|
103512
103526
|
};
|
|
103513
103527
|
}
|
|
103514
|
-
function
|
|
103515
|
-
zw && console.log("[HMR] Apply changes", s, Object.keys(s)),
|
|
103528
|
+
function CCe(s) {
|
|
103529
|
+
zw && console.log("[HMR] Apply changes", s, Object.keys(s)), dbe();
|
|
103516
103530
|
for (const e of Object.keys(s))
|
|
103517
103531
|
try {
|
|
103518
103532
|
bv = !0;
|
|
@@ -103573,17 +103587,17 @@ let qx = null;
|
|
|
103573
103587
|
function OQ() {
|
|
103574
103588
|
return qx !== null && qx.byteLength !== 0 || (qx = new Int32Array(Ue.memory.buffer)), qx;
|
|
103575
103589
|
}
|
|
103576
|
-
const
|
|
103590
|
+
const fbe = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }) : { decode: () => {
|
|
103577
103591
|
throw Error("TextDecoder not available");
|
|
103578
103592
|
} };
|
|
103579
|
-
typeof TextDecoder < "u" &&
|
|
103593
|
+
typeof TextDecoder < "u" && fbe.decode();
|
|
103580
103594
|
function At(s, e) {
|
|
103581
103595
|
if (!(s instanceof e))
|
|
103582
103596
|
throw new Error(`expected instance of ${e.name}`);
|
|
103583
103597
|
return s.ptr;
|
|
103584
103598
|
}
|
|
103585
103599
|
let Xx = null;
|
|
103586
|
-
function
|
|
103600
|
+
function pbe() {
|
|
103587
103601
|
return Xx !== null && Xx.byteLength !== 0 || (Xx = new Float32Array(Ue.memory.buffer)), Xx;
|
|
103588
103602
|
}
|
|
103589
103603
|
let w0 = 128;
|
|
@@ -103593,20 +103607,20 @@ function LQ(s) {
|
|
|
103593
103607
|
return _v[--w0] = s, w0;
|
|
103594
103608
|
}
|
|
103595
103609
|
let Yx = null;
|
|
103596
|
-
function
|
|
103610
|
+
function gbe() {
|
|
103597
103611
|
return Yx !== null && Yx.byteLength !== 0 || (Yx = new Uint32Array(Ue.memory.buffer)), Yx;
|
|
103598
103612
|
}
|
|
103599
103613
|
let ko = 0;
|
|
103600
103614
|
function Ud(s, e) {
|
|
103601
103615
|
const t = e(4 * s.length, 4) >>> 0;
|
|
103602
|
-
return
|
|
103616
|
+
return pbe().set(s, t / 4), ko = s.length, t;
|
|
103603
103617
|
}
|
|
103604
103618
|
function Jx(s, e) {
|
|
103605
103619
|
const t = e(4 * s.length, 4) >>> 0;
|
|
103606
|
-
return
|
|
103620
|
+
return gbe().set(s, t / 4), ko = s.length, t;
|
|
103607
103621
|
}
|
|
103608
103622
|
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
|
|
103623
|
+
class mbe {
|
|
103610
103624
|
__destroy_into_raw() {
|
|
103611
103625
|
const e = this.__wbg_ptr;
|
|
103612
103626
|
return this.__wbg_ptr = 0, e;
|
|
@@ -104041,14 +104055,14 @@ class lt {
|
|
|
104041
104055
|
return lt.__wrap(e);
|
|
104042
104056
|
}
|
|
104043
104057
|
}
|
|
104044
|
-
class
|
|
104058
|
+
class Abe {
|
|
104045
104059
|
constructor(e, t, i) {
|
|
104046
104060
|
this.x = e, this.y = t, this.z = i;
|
|
104047
104061
|
}
|
|
104048
104062
|
}
|
|
104049
104063
|
class Te {
|
|
104050
104064
|
static new(e, t, i) {
|
|
104051
|
-
return new
|
|
104065
|
+
return new Abe(e, t, i);
|
|
104052
104066
|
}
|
|
104053
104067
|
static intoRaw(e) {
|
|
104054
104068
|
return new lt(e.x, e.y, e.z);
|
|
@@ -104088,7 +104102,7 @@ class qi {
|
|
|
104088
104102
|
e.x = t.x, e.y = t.y, e.z = t.z, e.w = t.w;
|
|
104089
104103
|
}
|
|
104090
104104
|
}
|
|
104091
|
-
class
|
|
104105
|
+
class ybe {
|
|
104092
104106
|
constructor(e) {
|
|
104093
104107
|
this.elements = e;
|
|
104094
104108
|
}
|
|
@@ -104122,7 +104136,7 @@ class vbe {
|
|
|
104122
104136
|
}
|
|
104123
104137
|
class UQ {
|
|
104124
104138
|
static fromRaw(e) {
|
|
104125
|
-
const t = new
|
|
104139
|
+
const t = new ybe(e.elements());
|
|
104126
104140
|
return e.free(), t;
|
|
104127
104141
|
}
|
|
104128
104142
|
}
|
|
@@ -104442,7 +104456,7 @@ class cI {
|
|
|
104442
104456
|
return e.free(), t;
|
|
104443
104457
|
}
|
|
104444
104458
|
}
|
|
104445
|
-
class
|
|
104459
|
+
class vbe {
|
|
104446
104460
|
constructor(e, t) {
|
|
104447
104461
|
this.origin = e, this.dir = t;
|
|
104448
104462
|
}
|
|
@@ -104505,7 +104519,7 @@ class ks {
|
|
|
104505
104519
|
case zs.RoundTriangle:
|
|
104506
104520
|
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
104521
|
case zs.HalfSpace:
|
|
104508
|
-
return h = Te.fromRaw(e.coHalfspaceNormal(t)), new
|
|
104522
|
+
return h = Te.fromRaw(e.coHalfspaceNormal(t)), new bbe(h);
|
|
104509
104523
|
case zs.TriMesh:
|
|
104510
104524
|
return o = e.coVertices(t), a = e.coIndices(t), new w6(o, a);
|
|
104511
104525
|
case zs.HeightField:
|
|
@@ -104571,7 +104585,7 @@ class Ek extends ks {
|
|
|
104571
104585
|
return qt.ball(this.radius);
|
|
104572
104586
|
}
|
|
104573
104587
|
}
|
|
104574
|
-
class
|
|
104588
|
+
class bbe extends ks {
|
|
104575
104589
|
constructor(e) {
|
|
104576
104590
|
super(), this.type = Xn.HalfSpace, this.normal = e;
|
|
104577
104591
|
}
|
|
@@ -104710,7 +104724,7 @@ class M6 extends ks {
|
|
|
104710
104724
|
(function(s) {
|
|
104711
104725
|
s[s.NONE = 0] = "NONE", s[s.COLLISION_EVENTS = 1] = "COLLISION_EVENTS", s[s.CONTACT_FORCE_EVENTS = 2] = "CONTACT_FORCE_EVENTS";
|
|
104712
104726
|
})(zC || (zC = {}));
|
|
104713
|
-
class
|
|
104727
|
+
class _be {
|
|
104714
104728
|
free() {
|
|
104715
104729
|
this.raw && this.raw.free(), this.raw = void 0;
|
|
104716
104730
|
}
|
|
@@ -104733,9 +104747,9 @@ class xbe {
|
|
|
104733
104747
|
return this.raw.max_force_magnitude();
|
|
104734
104748
|
}
|
|
104735
104749
|
}
|
|
104736
|
-
class
|
|
104750
|
+
class xbe {
|
|
104737
104751
|
constructor(e, t) {
|
|
104738
|
-
this.raw = t || new
|
|
104752
|
+
this.raw = t || new mbe(e);
|
|
104739
104753
|
}
|
|
104740
104754
|
free() {
|
|
104741
104755
|
this.raw && this.raw.free(), this.raw = void 0;
|
|
@@ -104744,7 +104758,7 @@ class wbe {
|
|
|
104744
104758
|
this.raw.drainCollisionEvents(e);
|
|
104745
104759
|
}
|
|
104746
104760
|
drainContactForceEvents(e) {
|
|
104747
|
-
let t = new
|
|
104761
|
+
let t = new _be();
|
|
104748
104762
|
this.raw.drainContactForceEvents((i) => {
|
|
104749
104763
|
t.raw = i, e(t), t.free();
|
|
104750
104764
|
});
|
|
@@ -105112,11 +105126,11 @@ class dn {
|
|
|
105112
105126
|
return this.contactForceEventThreshold = e, this;
|
|
105113
105127
|
}
|
|
105114
105128
|
}
|
|
105115
|
-
for (var
|
|
105129
|
+
for (var SCe = { byteLength: function(s) {
|
|
105116
105130
|
var e = jQ(s), t = e[0], i = e[1];
|
|
105117
105131
|
return 3 * (t + i) / 4 - i;
|
|
105118
105132
|
}, toByteArray: function(s) {
|
|
105119
|
-
var e, t, i = jQ(s), n = i[0], r = i[1], o = new
|
|
105133
|
+
var e, t, i = jQ(s), n = i[0], r = i[1], o = new wbe(function(l, h, u) {
|
|
105120
105134
|
return 3 * (h + u) / 4 - u;
|
|
105121
105135
|
}(0, n, r)), a = 0, c = r > 0 ? n - 4 : n;
|
|
105122
105136
|
for (t = 0; t < c; t += 4)
|
|
@@ -105124,9 +105138,9 @@ for (var ECe = { byteLength: function(s) {
|
|
|
105124
105138
|
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
105139
|
}, fromByteArray: function(s) {
|
|
105126
105140
|
for (var e, t = s.length, i = t % 3, n = [], r = 16383, o = 0, a = t - i; o < a; o += r)
|
|
105127
|
-
n.push(
|
|
105141
|
+
n.push(Sbe(s, o, o + r > a ? a : o + r));
|
|
105128
105142
|
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 = [],
|
|
105143
|
+
} }, jc = [], da = [], wbe = typeof Uint8Array < "u" ? Uint8Array : Array, gT = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", fg = 0, Cbe = gT.length; fg < Cbe; ++fg)
|
|
105130
105144
|
jc[fg] = gT[fg], da[gT.charCodeAt(fg)] = fg;
|
|
105131
105145
|
function jQ(s) {
|
|
105132
105146
|
var e = s.length;
|
|
@@ -105135,14 +105149,14 @@ function jQ(s) {
|
|
|
105135
105149
|
var t = s.indexOf("=");
|
|
105136
105150
|
return t === -1 && (t = e), [t, t === e ? 0 : 4 - t % 4];
|
|
105137
105151
|
}
|
|
105138
|
-
function
|
|
105152
|
+
function Sbe(s, e, t) {
|
|
105139
105153
|
for (var i, n, r = [], o = e; o < t; o += 3)
|
|
105140
105154
|
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
105155
|
return r.join("");
|
|
105142
105156
|
}
|
|
105143
105157
|
da["-".charCodeAt(0)] = 62, da["_".charCodeAt(0)] = 63;
|
|
105144
|
-
const
|
|
105145
|
-
class
|
|
105158
|
+
const ECe = Symbol("object"), mT = new hc(() => new C(), 20);
|
|
105159
|
+
class Ebe {
|
|
105146
105160
|
/** @internal */
|
|
105147
105161
|
constructor(e, t, i, n, r, o) {
|
|
105148
105162
|
d(this, "_point");
|
|
@@ -105168,7 +105182,7 @@ class Ibe {
|
|
|
105168
105182
|
return mT.get().set(this._tangentVelocity.x, this._tangentVelocity.y, this._tangentVelocity.z);
|
|
105169
105183
|
}
|
|
105170
105184
|
}
|
|
105171
|
-
class
|
|
105185
|
+
class Ibe {
|
|
105172
105186
|
/** @internal */
|
|
105173
105187
|
constructor(e, t, i) {
|
|
105174
105188
|
/** The contact points of this collision. Contains information about positions, normals, distance, friction, impulse... */
|
|
@@ -105193,14 +105207,14 @@ class Mbe {
|
|
|
105193
105207
|
return (e = this.collider) == null ? void 0 : e.attachedRigidbody;
|
|
105194
105208
|
}
|
|
105195
105209
|
}
|
|
105196
|
-
class
|
|
105210
|
+
class Mbe {
|
|
105197
105211
|
constructor(e, t) {
|
|
105198
105212
|
d(this, "object");
|
|
105199
105213
|
d(this, "collider");
|
|
105200
105214
|
this.object = e, this.collider = t;
|
|
105201
105215
|
}
|
|
105202
105216
|
}
|
|
105203
|
-
const js = ne("debugphysics"), AT = ne("debugcolliderplacement"), yT = ne("debugcollisions"),
|
|
105217
|
+
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
105218
|
let Nd;
|
|
105205
105219
|
globalThis.false = globalThis.false !== void 0 ? globalThis.false : !0;
|
|
105206
105220
|
js && console.log("Use Rapier", !1, globalThis.false);
|
|
@@ -105211,7 +105225,7 @@ const T0 = class {
|
|
|
105211
105225
|
d(this, "context");
|
|
105212
105226
|
d(this, "_initializePromise");
|
|
105213
105227
|
d(this, "_isInitialized", !1);
|
|
105214
|
-
d(this, "rapierRay", new
|
|
105228
|
+
d(this, "rapierRay", new vbe({ x: 0, y: 0, z: 0 }, { x: 0, y: 0, z: 1 }));
|
|
105215
105229
|
d(this, "raycastVectorsBuffer", new hc(() => new C(), 10));
|
|
105216
105230
|
d(this, "rapierSphere", null);
|
|
105217
105231
|
d(this, "rapierColliderArray", []);
|
|
@@ -105420,7 +105434,7 @@ const T0 = class {
|
|
|
105420
105434
|
this.rapierIdentityRotation,
|
|
105421
105435
|
this.rapierSphere,
|
|
105422
105436
|
(i) => {
|
|
105423
|
-
const n = i[lo], r = new
|
|
105437
|
+
const n = i[lo], r = new Mbe(n.gameObject, n);
|
|
105424
105438
|
return this.rapierColliderArray.push(r), !0;
|
|
105425
105439
|
},
|
|
105426
105440
|
// TODO: it seems as QueryFilterFlags.EXCLUDE_SENSORS also excludes DYNAMIC Rigidbodies (only if they're set to kinematic)
|
|
@@ -105698,7 +105712,7 @@ Error:`, a), null;
|
|
|
105698
105712
|
}
|
|
105699
105713
|
step(e) {
|
|
105700
105714
|
if (this.world && this.enabled) {
|
|
105701
|
-
if (this._isUpdatingPhysicsWorld = !0, this.eventQueue || (this.eventQueue = new
|
|
105715
|
+
if (this._isUpdatingPhysicsWorld = !0, this.eventQueue || (this.eventQueue = new xbe(!1)), e === void 0 || e <= 0) {
|
|
105702
105716
|
this._isUpdatingPhysicsWorld = !1;
|
|
105703
105717
|
return;
|
|
105704
105718
|
} else
|
|
@@ -105712,11 +105726,11 @@ Error:`, a), null;
|
|
|
105712
105726
|
}
|
|
105713
105727
|
}
|
|
105714
105728
|
postStep() {
|
|
105715
|
-
this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.syncObjects(), this._isUpdatingPhysicsWorld = !1, this.eventQueue && !this.collisionHandler && (this.collisionHandler = new
|
|
105729
|
+
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
105730
|
}
|
|
105717
105731
|
updateDebugRendering(e) {
|
|
105718
105732
|
var t, i, n, r;
|
|
105719
|
-
if (js || AT ||
|
|
105733
|
+
if (js || AT || Tbe || this.debugRenderColliders === !0) {
|
|
105720
105734
|
if (!this.lines) {
|
|
105721
105735
|
const a = new nn({
|
|
105722
105736
|
color: 7855479,
|
|
@@ -105828,7 +105842,7 @@ Error:`, a), null;
|
|
|
105828
105842
|
};
|
|
105829
105843
|
let pg = T0;
|
|
105830
105844
|
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
|
|
105845
|
+
class Bbe {
|
|
105832
105846
|
constructor(e, t) {
|
|
105833
105847
|
d(this, "world");
|
|
105834
105848
|
d(this, "eventQueue");
|
|
@@ -105869,11 +105883,11 @@ class Rbe {
|
|
|
105869
105883
|
for (let g = 0; g < a.numSolverContacts(); g++) {
|
|
105870
105884
|
const y = a.solverContactPoint(g), m = a.contactImpulse(g);
|
|
105871
105885
|
if (y) {
|
|
105872
|
-
const A = a.contactDist(g), b = a.solverContactFriction(g), v = a.solverContactTangentVelocity(g), _ = new
|
|
105886
|
+
const A = a.contactDist(g), b = a.solverContactFriction(g), v = a.solverContactTangentVelocity(g), _ = new Ebe(y, A, p, m, b, v);
|
|
105873
105887
|
f.push(_), yT && bt.DrawDirection(y, p, 16711680, 3, !0);
|
|
105874
105888
|
}
|
|
105875
105889
|
}
|
|
105876
|
-
r = new
|
|
105890
|
+
r = new Ibe(o, i, f);
|
|
105877
105891
|
}
|
|
105878
105892
|
if (h) {
|
|
105879
105893
|
const f = { collider: e, component: l, collision: r };
|
|
@@ -105951,7 +105965,7 @@ class Rbe {
|
|
|
105951
105965
|
}
|
|
105952
105966
|
}
|
|
105953
105967
|
}
|
|
105954
|
-
class
|
|
105968
|
+
class ICe {
|
|
105955
105969
|
/**
|
|
105956
105970
|
* Use this method to quickly setup a scene to compare multiple models.
|
|
105957
105971
|
* @example
|
|
@@ -106004,10 +106018,10 @@ class MCe {
|
|
|
106004
106018
|
};
|
|
106005
106019
|
}
|
|
106006
106020
|
}
|
|
106007
|
-
function
|
|
106008
|
-
return
|
|
106021
|
+
function MCe(s, e, t, i = "image/webp", n) {
|
|
106022
|
+
return Rbe({ context: s, width: e, height: t, mimeType: i, camera: n });
|
|
106009
106023
|
}
|
|
106010
|
-
function
|
|
106024
|
+
function Rbe(s = {
|
|
106011
106025
|
mimeType: "image/png",
|
|
106012
106026
|
transparent: !1
|
|
106013
106027
|
}) {
|
|
@@ -106030,14 +106044,14 @@ function Pbe(s = {
|
|
|
106030
106044
|
const u = s.render_events !== !1, f = new Array();
|
|
106031
106045
|
u && (Wv(e.scene, qn, f), f.forEach((g) => g == null ? void 0 : g.onBeforeRender())), e.renderNow(), u && f.forEach((g) => g.onAfterRender());
|
|
106032
106046
|
const p = h.toDataURL(r);
|
|
106033
|
-
return s.download_filename &&
|
|
106047
|
+
return s.download_filename && Pbe(p, s.download_filename), p;
|
|
106034
106048
|
} finally {
|
|
106035
106049
|
e.renderer.setSize(o, a, !1), e.updateSize(), e.renderer.setClearColor(l);
|
|
106036
106050
|
}
|
|
106037
106051
|
return null;
|
|
106038
106052
|
}
|
|
106039
106053
|
let my = null;
|
|
106040
|
-
function
|
|
106054
|
+
function Pbe(s, e) {
|
|
106041
106055
|
if (s) {
|
|
106042
106056
|
if (!s.startsWith("data:image")) {
|
|
106043
106057
|
console.error("Can not save image: Data url is not an image", s);
|
|
@@ -106050,7 +106064,7 @@ let aP = 0;
|
|
|
106050
106064
|
function qQ(s) {
|
|
106051
106065
|
s ? aP++ : aP--;
|
|
106052
106066
|
}
|
|
106053
|
-
function
|
|
106067
|
+
function TCe() {
|
|
106054
106068
|
return aP > 0;
|
|
106055
106069
|
}
|
|
106056
106070
|
class T6 {
|
|
@@ -106061,33 +106075,33 @@ class T6 {
|
|
|
106061
106075
|
writeNode(e) {
|
|
106062
106076
|
}
|
|
106063
106077
|
}
|
|
106064
|
-
class
|
|
106078
|
+
class Dbe extends T6 {
|
|
106065
106079
|
beforeWriteNode(e, t) {
|
|
106066
106080
|
bt.isGizmo(e) && (t.keep = !1);
|
|
106067
106081
|
}
|
|
106068
106082
|
}
|
|
106069
|
-
class
|
|
106083
|
+
class kbe extends T6 {
|
|
106070
106084
|
beforeWriteTexture(e, t) {
|
|
106071
106085
|
e.isRenderTargetTexture && (t.newTexture = A2(new Bi(1, 1, 1, 0)));
|
|
106072
106086
|
}
|
|
106073
106087
|
}
|
|
106074
|
-
const
|
|
106088
|
+
const Obe = {
|
|
106075
106089
|
binary: !0,
|
|
106076
106090
|
animations: !0
|
|
106077
106091
|
};
|
|
106078
|
-
async function
|
|
106092
|
+
async function BCe(s) {
|
|
106079
106093
|
if (!s.context)
|
|
106080
106094
|
throw new Error("No context provided to exportAsGLTF");
|
|
106081
106095
|
s.scene || (s.scene = s.context.scene);
|
|
106082
106096
|
const e = {
|
|
106083
|
-
...
|
|
106097
|
+
...Obe,
|
|
106084
106098
|
...s
|
|
106085
106099
|
}, { context: t } = e, i = new GE();
|
|
106086
|
-
i.register((a) => new R9(a)), i.register((a) => new
|
|
106100
|
+
i.register((a) => new R9(a)), i.register((a) => new Dbe(a)), i.register((a) => new kbe(a)), f9(i, e.context);
|
|
106087
106101
|
const n = {
|
|
106088
106102
|
binary: e.binary,
|
|
106089
|
-
animations:
|
|
106090
|
-
}, r = new
|
|
106103
|
+
animations: Fbe(t, e.scene, [])
|
|
106104
|
+
}, r = new Lbe();
|
|
106091
106105
|
console.log("Exporting GLTF", n), r.onBeforeExport(e), qQ(!0);
|
|
106092
106106
|
const o = await i.parseAsync(e.scene, n).catch((a) => (console.error(a), null));
|
|
106093
106107
|
if (qQ(!1), r.onAfterExport(e), !o)
|
|
@@ -106104,7 +106118,7 @@ async function RCe(s) {
|
|
|
106104
106118
|
return o;
|
|
106105
106119
|
}
|
|
106106
106120
|
const XQ = Symbol("needle:weight");
|
|
106107
|
-
class
|
|
106121
|
+
class Lbe {
|
|
106108
106122
|
constructor() {
|
|
106109
106123
|
d(this, "_undo", []);
|
|
106110
106124
|
}
|
|
@@ -106125,7 +106139,7 @@ class Fbe {
|
|
|
106125
106139
|
this._undo.forEach((t) => t()), this._undo.length = 0;
|
|
106126
106140
|
}
|
|
106127
106141
|
}
|
|
106128
|
-
function
|
|
106142
|
+
function Fbe(s, e, t) {
|
|
106129
106143
|
s.animations.mixers.forEach((n) => {
|
|
106130
106144
|
const r = av.tryGetActionsFromMixer(n);
|
|
106131
106145
|
if (r)
|
|
@@ -106231,7 +106245,7 @@ for (const s of Object.getOwnPropertyNames(re))
|
|
|
106231
106245
|
break;
|
|
106232
106246
|
}
|
|
106233
106247
|
globalThis.THREE ? console.warn("Threejs is already imported") : globalThis.THREE = jJ;
|
|
106234
|
-
class
|
|
106248
|
+
class Ube {
|
|
106235
106249
|
/**
|
|
106236
106250
|
* Creates a new ConstantBackoff.
|
|
106237
106251
|
* @param backoff the backoff-time to return
|
|
@@ -106254,7 +106268,7 @@ class Nbe {
|
|
|
106254
106268
|
this._retries = 0;
|
|
106255
106269
|
}
|
|
106256
106270
|
}
|
|
106257
|
-
class
|
|
106271
|
+
class Nbe {
|
|
106258
106272
|
/**
|
|
106259
106273
|
* Creates a new ExponentialBackoff.
|
|
106260
106274
|
* @param base the base of the exponentiation
|
|
@@ -106280,7 +106294,7 @@ class Qbe {
|
|
|
106280
106294
|
this._retries = 0, this.i = 0;
|
|
106281
106295
|
}
|
|
106282
106296
|
}
|
|
106283
|
-
class
|
|
106297
|
+
class Qbe {
|
|
106284
106298
|
/**
|
|
106285
106299
|
* Creates a new LinearBackoff.
|
|
106286
106300
|
* @param initial the initial backoff-time in milliseconds
|
|
@@ -106311,7 +106325,7 @@ class zbe {
|
|
|
106311
106325
|
this._retries = 0, this.i = 0;
|
|
106312
106326
|
}
|
|
106313
106327
|
}
|
|
106314
|
-
class
|
|
106328
|
+
class zbe {
|
|
106315
106329
|
constructor() {
|
|
106316
106330
|
this.elements = [];
|
|
106317
106331
|
}
|
|
@@ -106337,7 +106351,7 @@ class Gbe {
|
|
|
106337
106351
|
return this.elements.shift();
|
|
106338
106352
|
}
|
|
106339
106353
|
}
|
|
106340
|
-
class
|
|
106354
|
+
class Gbe {
|
|
106341
106355
|
constructor(e) {
|
|
106342
106356
|
if (!Number.isInteger(e) || e <= 0)
|
|
106343
106357
|
throw new Error("Capacity must be a positive integer");
|
|
@@ -106648,7 +106662,7 @@ class P6 {
|
|
|
106648
106662
|
globalThis.clearTimeout(this.retryTimeout);
|
|
106649
106663
|
}
|
|
106650
106664
|
}
|
|
106651
|
-
class
|
|
106665
|
+
class Hbe {
|
|
106652
106666
|
/**
|
|
106653
106667
|
* Creates a new WebsocketBuilder.
|
|
106654
106668
|
*
|
|
@@ -106843,15 +106857,15 @@ class Vbe {
|
|
|
106843
106857
|
} }), this;
|
|
106844
106858
|
}
|
|
106845
106859
|
}
|
|
106846
|
-
const
|
|
106860
|
+
const Vbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
106847
106861
|
__proto__: null,
|
|
106848
|
-
ArrayQueue:
|
|
106849
|
-
ConstantBackoff:
|
|
106850
|
-
ExponentialBackoff:
|
|
106851
|
-
LinearBackoff:
|
|
106852
|
-
RingQueue:
|
|
106862
|
+
ArrayQueue: zbe,
|
|
106863
|
+
ConstantBackoff: Ube,
|
|
106864
|
+
ExponentialBackoff: Nbe,
|
|
106865
|
+
LinearBackoff: Qbe,
|
|
106866
|
+
RingQueue: Gbe,
|
|
106853
106867
|
Websocket: P6,
|
|
106854
|
-
WebsocketBuilder:
|
|
106868
|
+
WebsocketBuilder: Hbe,
|
|
106855
106869
|
get WebsocketEvent() {
|
|
106856
106870
|
return Fi;
|
|
106857
106871
|
}
|
|
@@ -106860,7 +106874,7 @@ const jbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
106860
106874
|
material: "material",
|
|
106861
106875
|
camera: "camera",
|
|
106862
106876
|
light: "light"
|
|
106863
|
-
}, Qd = "KHR_animation_pointer",
|
|
106877
|
+
}, Qd = "KHR_animation_pointer", jbe = {
|
|
106864
106878
|
// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
|
|
106865
106879
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
106866
106880
|
CUBICSPLINE: void 0,
|
|
@@ -106868,7 +106882,7 @@ const jbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
106868
106882
|
STEP: Xu
|
|
106869
106883
|
}, YQ = Yt.findNode;
|
|
106870
106884
|
let JQ = !1;
|
|
106871
|
-
class
|
|
106885
|
+
class Wbe {
|
|
106872
106886
|
constructor(e) {
|
|
106873
106887
|
this.parser = e, this.name = Qd, this.animationPointerResolver = null;
|
|
106874
106888
|
}
|
|
@@ -107123,7 +107137,7 @@ class qbe {
|
|
|
107123
107137
|
a.endsWith(".quaternion") ? g = Ma : g = TS;
|
|
107124
107138
|
break;
|
|
107125
107139
|
}
|
|
107126
|
-
const y = n.interpolation !== void 0 ?
|
|
107140
|
+
const y = n.interpolation !== void 0 ? jbe[n.interpolation] : rl;
|
|
107127
107141
|
let m = p._getArrayFromAccessor(i);
|
|
107128
107142
|
a.endsWith(".fov") && (m = m.map((b) => b / Math.PI * 180));
|
|
107129
107143
|
const A = new g(
|
|
@@ -107186,12 +107200,12 @@ class qbe {
|
|
|
107186
107200
|
});
|
|
107187
107201
|
}
|
|
107188
107202
|
}
|
|
107189
|
-
const
|
|
107203
|
+
const qbe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
107190
107204
|
__proto__: null,
|
|
107191
|
-
GLTFAnimationPointerExtension:
|
|
107205
|
+
GLTFAnimationPointerExtension: Wbe
|
|
107192
107206
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
107193
107207
|
export {
|
|
107194
|
-
|
|
107208
|
+
ECe as $physicsKey,
|
|
107195
107209
|
mi as ActionBuilder,
|
|
107196
107210
|
D8 as ActionCollection,
|
|
107197
107211
|
Uo as ActionModel,
|
|
@@ -107256,7 +107270,7 @@ export {
|
|
|
107256
107270
|
Dm as ClearFlags,
|
|
107257
107271
|
Gl as ClipExtrapolation,
|
|
107258
107272
|
Da as Collider,
|
|
107259
|
-
|
|
107273
|
+
Ibe as Collision,
|
|
107260
107274
|
E2 as CollisionDetectionMode,
|
|
107261
107275
|
Ch as ColorAdjustments,
|
|
107262
107276
|
aA as ColorBySpeedModule,
|
|
@@ -107265,10 +107279,10 @@ export {
|
|
|
107265
107279
|
iE as ComponentEvents,
|
|
107266
107280
|
nE as ComponentLifecycleEvents,
|
|
107267
107281
|
$he as ConnectionEvents,
|
|
107268
|
-
|
|
107282
|
+
Ebe as ContactPoint,
|
|
107269
107283
|
Dh as ContactShadows,
|
|
107270
107284
|
kt as Context,
|
|
107271
|
-
|
|
107285
|
+
$we as ContextArgs,
|
|
107272
107286
|
Oi as ContextEvent,
|
|
107273
107287
|
gi as ContextRegistry,
|
|
107274
107288
|
R2 as ControlTrackHandler,
|
|
@@ -107319,7 +107333,7 @@ export {
|
|
|
107319
107333
|
i9 as HideOnStart,
|
|
107320
107334
|
zE as HingeJoint,
|
|
107321
107335
|
Z5 as HorizontalLayoutGroup,
|
|
107322
|
-
|
|
107336
|
+
eCe as HostData,
|
|
107323
107337
|
sb as Image,
|
|
107324
107338
|
l0 as ImageReference,
|
|
107325
107339
|
Wle as ImageReferenceSerializer,
|
|
@@ -107335,16 +107349,16 @@ export {
|
|
|
107335
107349
|
er as InstantiateIdProvider,
|
|
107336
107350
|
pl as InstantiateOptions,
|
|
107337
107351
|
S9 as Interactable,
|
|
107338
|
-
|
|
107339
|
-
|
|
107352
|
+
qwe as JoinedRoomResponse,
|
|
107353
|
+
Vwe as KeyEventArgs,
|
|
107340
107354
|
_c as Keyframe,
|
|
107341
107355
|
WE as LODGroup,
|
|
107342
107356
|
pA as LODModel,
|
|
107343
|
-
|
|
107357
|
+
Xwe as LeftRoomResponse,
|
|
107344
107358
|
$o as Light,
|
|
107345
107359
|
Tue as LightData,
|
|
107346
107360
|
vs as LimitVelocityOverLifetimeModule,
|
|
107347
|
-
|
|
107361
|
+
Nxe as LoadingElementOptions,
|
|
107348
107362
|
k9 as LogStats,
|
|
107349
107363
|
Ea as LogType,
|
|
107350
107364
|
gA as LookAt,
|
|
@@ -107464,12 +107478,12 @@ export {
|
|
|
107464
107478
|
mk as SpectatorCamera,
|
|
107465
107479
|
eb as SphereCollider,
|
|
107466
107480
|
Aue as SphereIntersection,
|
|
107467
|
-
|
|
107481
|
+
Mbe as SphereOverlapResult,
|
|
107468
107482
|
hd as Sprite,
|
|
107469
107483
|
db as SpriteData,
|
|
107470
107484
|
Cc as SpriteRenderer,
|
|
107471
107485
|
LE as SpriteSheet,
|
|
107472
|
-
|
|
107486
|
+
uCe as StateMachineBehaviour,
|
|
107473
107487
|
Nfe as StreamEndedEvent,
|
|
107474
107488
|
Qfe as StreamReceivedEvent,
|
|
107475
107489
|
NC as SubEmitterSystem,
|
|
@@ -107479,7 +107493,7 @@ export {
|
|
|
107479
107493
|
n9 as TapGestureTrigger,
|
|
107480
107494
|
W2 as TeleportTarget,
|
|
107481
107495
|
Z9 as TestRunner,
|
|
107482
|
-
|
|
107496
|
+
ICe as TestSceneUtils,
|
|
107483
107497
|
$9 as TestSimulateUserData,
|
|
107484
107498
|
no as Text,
|
|
107485
107499
|
X2 as TextBuilder,
|
|
@@ -107506,7 +107520,7 @@ export {
|
|
|
107506
107520
|
aN as Upload_Result,
|
|
107507
107521
|
wde as UriSerializer,
|
|
107508
107522
|
NE as UsageMarker,
|
|
107509
|
-
|
|
107523
|
+
Ywe as UserJoinedOrLeftRoomModel,
|
|
107510
107524
|
nc as VERSION,
|
|
107511
107525
|
P8 as VariantAction,
|
|
107512
107526
|
Ln as VelocityOverLifetimeModule,
|
|
@@ -107519,7 +107533,7 @@ export {
|
|
|
107519
107533
|
PE as Volume,
|
|
107520
107534
|
Nt as VolumeParameter,
|
|
107521
107535
|
_E as VolumeProfile,
|
|
107522
|
-
|
|
107536
|
+
Jwe as WaitForFrames,
|
|
107523
107537
|
uue as WaitForPromise,
|
|
107524
107538
|
hue as WaitForSeconds,
|
|
107525
107539
|
Nu as Watch,
|
|
@@ -107543,24 +107557,24 @@ export {
|
|
|
107543
107557
|
Qu as activeInHierarchyFieldName,
|
|
107544
107558
|
iK as addAttributeChangeCallback,
|
|
107545
107559
|
mh as addComponent,
|
|
107546
|
-
|
|
107560
|
+
pCe as addCustomExtensionPlugin,
|
|
107547
107561
|
kme as addFile,
|
|
107548
107562
|
Ome as addFileFromUrl,
|
|
107549
|
-
|
|
107563
|
+
vCe as addGltfLoadEventListener,
|
|
107550
107564
|
sm as addNewComponent,
|
|
107551
107565
|
ZD as addPatch,
|
|
107552
107566
|
x2 as apply,
|
|
107553
|
-
|
|
107567
|
+
CCe as applyHMRChanges,
|
|
107554
107568
|
zue as beginListenDestroy,
|
|
107555
107569
|
Lme as beginListenFileSpawn,
|
|
107556
107570
|
Hue as beginListenInstantiate,
|
|
107557
107571
|
bV as binaryIdentifierCasts,
|
|
107558
|
-
|
|
107572
|
+
Zwe as build_scene_functions,
|
|
107559
107573
|
bg as builtinComponentKeyName,
|
|
107560
107574
|
fH as calculateProgress01,
|
|
107561
|
-
|
|
107562
|
-
|
|
107563
|
-
|
|
107575
|
+
Rxe as clearBalloonMessages,
|
|
107576
|
+
Rxe as clearOverlayMessages,
|
|
107577
|
+
iCe as colorSerializer,
|
|
107564
107578
|
OM as componentSerializer,
|
|
107565
107579
|
tte as copyTexture,
|
|
107566
107580
|
c6 as createLoader,
|
|
@@ -107580,8 +107594,8 @@ export {
|
|
|
107580
107594
|
pw as editorGuidKeyName,
|
|
107581
107595
|
g3 as effectsOrder,
|
|
107582
107596
|
$0 as enableSpatialConsole,
|
|
107583
|
-
|
|
107584
|
-
|
|
107597
|
+
nCe as eventListSerializer,
|
|
107598
|
+
BCe as exportAsGLTF,
|
|
107585
107599
|
hE as findByGuid,
|
|
107586
107600
|
I5 as findObjectOfType,
|
|
107587
107601
|
ode as findObjectsOfType,
|
|
@@ -107589,7 +107603,7 @@ export {
|
|
|
107589
107603
|
ste as fitObjectIntoVolume,
|
|
107590
107604
|
Pm as foreachComponent,
|
|
107591
107605
|
b5 as foreachComponentEnumerator,
|
|
107592
|
-
|
|
107606
|
+
Oxe as forward,
|
|
107593
107607
|
rK as generateQRCode,
|
|
107594
107608
|
b2 as generateSeed,
|
|
107595
107609
|
Uf as getBoundingBox,
|
|
@@ -107603,17 +107617,17 @@ export {
|
|
|
107603
107617
|
Toe as getFormattedDate,
|
|
107604
107618
|
No as getIconElement,
|
|
107605
107619
|
qN as getIconTexture,
|
|
107606
|
-
|
|
107607
|
-
|
|
107608
|
-
|
|
107620
|
+
Mxe as getIp,
|
|
107621
|
+
Txe as getIpAndLocation,
|
|
107622
|
+
Ixe as getIpCloudflare,
|
|
107609
107623
|
al as getLoader,
|
|
107610
107624
|
uE as getOrAddComponent,
|
|
107611
107625
|
ne as getParam,
|
|
107612
|
-
|
|
107613
|
-
|
|
107614
|
-
|
|
107626
|
+
Lxe as getParentHierarchyPath,
|
|
107627
|
+
Exe as getPath,
|
|
107628
|
+
jwe as getPeerOptions,
|
|
107615
107629
|
Yhe as getPeerjsInstance,
|
|
107616
|
-
|
|
107630
|
+
Lwe as getResourceUserCount,
|
|
107617
107631
|
Og as getTempQuaternion,
|
|
107618
107632
|
zn as getTempVector,
|
|
107619
107633
|
FS as getUrlParams,
|
|
@@ -107638,14 +107652,14 @@ export {
|
|
|
107638
107652
|
Vv as isActiveSelf,
|
|
107639
107653
|
$J as isAndroidDevice,
|
|
107640
107654
|
ete as isAnimationAction,
|
|
107641
|
-
|
|
107655
|
+
xxe as isDebugMode,
|
|
107642
107656
|
ym as isDesktop,
|
|
107643
107657
|
Rm as isDestroyed,
|
|
107644
107658
|
ht as isDevEnvironment,
|
|
107645
|
-
|
|
107646
|
-
|
|
107659
|
+
Owe as isDisposed,
|
|
107660
|
+
TCe as isExporting,
|
|
107647
107661
|
WJ as isHostedOnGlitch,
|
|
107648
|
-
|
|
107662
|
+
_Ce as isHotReloading,
|
|
107649
107663
|
Rue as isIconElement,
|
|
107650
107664
|
yo as isLocalNetwork,
|
|
107651
107665
|
Ra as isMobileDevice,
|
|
@@ -107657,72 +107671,72 @@ export {
|
|
|
107657
107671
|
vm as isiOS,
|
|
107658
107672
|
l6 as loadSync,
|
|
107659
107673
|
xB as logHierarchy,
|
|
107660
|
-
|
|
107674
|
+
kxe as lookAtInverse,
|
|
107661
107675
|
HS as lookAtObject,
|
|
107662
|
-
|
|
107676
|
+
Cxe as makeId,
|
|
107663
107677
|
eG as makeIdFromRandomWords,
|
|
107664
107678
|
cl as makeNameSafeForUSD,
|
|
107665
107679
|
Yue as markAsInstancedRendered,
|
|
107666
107680
|
_L as microphonePermissionsGranted,
|
|
107667
|
-
|
|
107681
|
+
_xe as nameof,
|
|
107668
107682
|
qJ as nameofFactory,
|
|
107669
107683
|
yde as objectSerializer,
|
|
107670
|
-
|
|
107671
|
-
|
|
107672
|
-
|
|
107673
|
-
|
|
107674
|
-
|
|
107675
|
-
|
|
107676
|
-
|
|
107684
|
+
Qwe as offXRSessionEnd,
|
|
107685
|
+
Nwe as offXRSessionStart,
|
|
107686
|
+
lCe as onAfterRender,
|
|
107687
|
+
cCe as onBeforeRender,
|
|
107688
|
+
oCe as onClear,
|
|
107689
|
+
aCe as onDestroy,
|
|
107690
|
+
rCe as onInitialized,
|
|
107677
107691
|
Ide as onStart,
|
|
107678
107692
|
Mde as onUpdate,
|
|
107679
107693
|
AV as onXRSessionEnd,
|
|
107680
107694
|
a2 as onXRSessionStart,
|
|
107681
|
-
|
|
107695
|
+
rbe as parseSync,
|
|
107682
107696
|
rte as placeOnSurface,
|
|
107683
107697
|
ote as postprocessFBXMaterials,
|
|
107684
|
-
|
|
107698
|
+
hCe as prefix,
|
|
107685
107699
|
XJ as pushState,
|
|
107686
|
-
|
|
107700
|
+
Sxe as randomNumber,
|
|
107687
107701
|
_V as registerBinaryType,
|
|
107688
107702
|
y2 as registerComponent,
|
|
107689
107703
|
u9 as registerComponentExtension,
|
|
107690
107704
|
xc as registerCustomEffectType,
|
|
107691
107705
|
f9 as registerExportExtensions,
|
|
107692
107706
|
d9 as registerExtensions,
|
|
107693
|
-
|
|
107707
|
+
xCe as registerHotReloadType,
|
|
107694
107708
|
Z4 as registerLoader,
|
|
107695
107709
|
jue as registerPrefabProvider,
|
|
107696
|
-
|
|
107710
|
+
Bwe as registerType,
|
|
107697
107711
|
KJ as relativePathPrefix,
|
|
107698
107712
|
nK as removeAttributeChangeCallback,
|
|
107699
107713
|
C5 as removeComponent,
|
|
107700
|
-
|
|
107701
|
-
|
|
107702
|
-
|
|
107714
|
+
gCe as removeCustomImportExtensionType,
|
|
107715
|
+
bCe as removeGltfLoadEventListener,
|
|
107716
|
+
Dwe as removePatch,
|
|
107703
107717
|
Jf as resolveUrl,
|
|
107704
107718
|
YJ as sanitizeString,
|
|
107705
|
-
|
|
107706
|
-
|
|
107707
|
-
|
|
107719
|
+
Pbe as saveImage,
|
|
107720
|
+
MCe as screenshot,
|
|
107721
|
+
Rbe as screenshot2,
|
|
107708
107722
|
Que as sendDestroyed,
|
|
107709
107723
|
x as serializable,
|
|
107710
107724
|
Tle as serializeObject,
|
|
107711
107725
|
Nv as serializeable,
|
|
107712
107726
|
Bw as setActive,
|
|
107713
107727
|
cK as setAllowBalloonMessages,
|
|
107714
|
-
|
|
107728
|
+
Bxe as setAllowOverlayMessages,
|
|
107715
107729
|
OL as setAutoFitEnabled,
|
|
107716
107730
|
kL as setCameraController,
|
|
107717
107731
|
Jue as setDestroyed,
|
|
107718
|
-
|
|
107732
|
+
Uxe as setDevEnvironment,
|
|
107719
107733
|
U8 as setDisposable,
|
|
107720
107734
|
KN as setDontDestroy,
|
|
107721
107735
|
yL as setOrAddParamsToUrl,
|
|
107722
|
-
|
|
107736
|
+
wxe as setParam,
|
|
107723
107737
|
gB as setParamWithoutReload,
|
|
107724
|
-
|
|
107725
|
-
|
|
107738
|
+
Wwe as setPeerOptions,
|
|
107739
|
+
kwe as setResourceTrackingEnabled,
|
|
107726
107740
|
$4 as setState,
|
|
107727
107741
|
tH as setWorldEuler,
|
|
107728
107742
|
$s as setWorldPosition,
|
|
@@ -107736,17 +107750,17 @@ export {
|
|
|
107736
107750
|
_n as showBalloonMessage,
|
|
107737
107751
|
Gi as showBalloonWarning,
|
|
107738
107752
|
oH as showDebugConsole,
|
|
107739
|
-
|
|
107753
|
+
Dxe as slerp,
|
|
107740
107754
|
v2 as syncDestroy,
|
|
107741
107755
|
F5 as syncField,
|
|
107742
107756
|
m5 as syncInstantiate,
|
|
107743
|
-
|
|
107757
|
+
Fxe as textureToCanvas,
|
|
107744
107758
|
dhe as tryCastBinary,
|
|
107745
107759
|
nbe as tryDetermineFileTypeFromBinary,
|
|
107746
107760
|
ibe as tryDetermineFileTypeFromURL,
|
|
107747
107761
|
j0 as tryFindObject,
|
|
107748
107762
|
fhe as tryGetGuid,
|
|
107749
|
-
|
|
107763
|
+
wCe as unregisterHotReloadType,
|
|
107750
107764
|
tG as unwatchWrite,
|
|
107751
107765
|
zle as upload_file,
|
|
107752
107766
|
jee as useForAutoFit,
|