@needle-tools/engine 4.7.2 → 4.7.3-next.24c33e7
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/dist/{needle-engine.bundle-CnzaSk8v.min.js → needle-engine.bundle-BWEF8NxU.min.js} +21 -21
- package/dist/{needle-engine.bundle-RNpCdQTu.umd.cjs → needle-engine.bundle-d3zmAOp8.umd.cjs} +24 -24
- package/dist/{needle-engine.bundle-DALjvqho.js → needle-engine.bundle-wtPHWC_F.js} +87 -74
- package/dist/needle-engine.d.ts +15 -15
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/dist/{postprocessing-TkXiVrjY.min.js → postprocessing-BzY0H7ry.min.js} +8 -8
- package/dist/{postprocessing-CNCT892s.umd.cjs → postprocessing-Dw2OCMp4.umd.cjs} +8 -8
- package/dist/{postprocessing-qvgDnYKK.js → postprocessing-vKBVFpSz.js} +9 -9
- package/lib/engine-components/OrbitControls.d.ts +12 -0
- package/lib/engine-components/OrbitControls.js +14 -0
- package/lib/engine-components/OrbitControls.js.map +1 -1
- package/lib/engine-components/Skybox.d.ts +1 -0
- package/lib/engine-components/Skybox.js +13 -17
- package/lib/engine-components/Skybox.js.map +1 -1
- package/package.json +2 -2
- package/src/engine-components/OrbitControls.ts +16 -0
- package/src/engine-components/Skybox.ts +14 -20
|
@@ -10,7 +10,7 @@ import { createLoaders as Cg, getRaycastMesh as T0, LODsManager as fa, NEEDLE_pr
|
|
|
10
10
|
import { GroundedSkybox as tl, Font as kC, TextGeometry as MC, FontLoader as RC, GLTFLoader as Xs, TransformControlsGizmo as E0, EXRLoader as Ud, RGBELoader as hm, Stats as TC, nodeFrame as EC, OrbitControls as A0, PositionalAudioHelper as AC, HorizontalBlurShader as IC, VerticalBlurShader as LC, GLTFExporter as I0, strToU8 as L0, zipSync as DC, XRControllerModelFactory as jC, XRHandMeshModel as BC, Line2 as FC, LineGeometry as zC, LineMaterial as UC, KTX2Loader as NC, TransformControls as $C, InteractiveGroup as WC, HTMLMesh as VC, VertexNormalsHelper as HC, OBJLoader as Pg, FBXLoader as D0, mergeVertices as GC } from "./three-examples-tvuhV8Ne.js";
|
|
11
11
|
import { fetchProfile as qC, MotionController as XC, $70d766613f57b014$export$2e2bcd8739ae039 as r_, ByteBuffer as QC, v5 as a_, md5 as l_, SIZE_PREFIX_LENGTH as j0, Builder as Og, createNoise4D as YC, Matrix4 as Yf, BatchedParticleRenderer as KC, ParticleSystem as ZC, RenderMode as Ps, ConstantColor as JC, Vector4 as e1, ConstantValue as t1, TrailParticle as c_, WorkerBase as i1, MeshBVH as n1 } from "./vendor-BmYIgaS1.js";
|
|
12
12
|
import { __webpack_exports__default as Ee, __webpack_exports__Text as B0, __webpack_exports__Block as F0, __webpack_exports__update as s1, SimpleStateBehavior as o1, __webpack_exports__Inline as Kf, __webpack_exports__FontLibrary as h_, ThreeMeshUI as d_ } from "./three-mesh-ui-CxuWt7m-.js";
|
|
13
|
-
import { EffectAttribute as r1 } from "./postprocessing-
|
|
13
|
+
import { EffectAttribute as r1 } from "./postprocessing-vKBVFpSz.js";
|
|
14
14
|
const Zf = /* @__PURE__ */ new Map();
|
|
15
15
|
function bi(o = ((t) => (t = globalThis.location) == null ? void 0 : t.hostname)()) {
|
|
16
16
|
if (Zf.has(o)) return Zf.get(o);
|
|
@@ -1804,11 +1804,11 @@ Go('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
|
|
|
1804
1804
|
Go('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
|
|
1805
1805
|
Go('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
|
|
1806
1806
|
Go('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1807
|
-
Go('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.
|
|
1807
|
+
Go('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.3-alpha";');
|
|
1808
1808
|
Go('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1809
|
-
Go('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
1809
|
+
Go('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Tue Aug 05 2025 10:11:20 GMT+0000 (Coordinated Universal Time)";');
|
|
1810
1810
|
Go('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
1811
|
-
const ts = "4.7.
|
|
1811
|
+
const ts = "4.7.3-alpha", Eg = "undefined", av = "Tue Aug 05 2025 10:11:20 GMT+0000 (Coordinated Universal Time)";
|
|
1812
1812
|
rv && console.log(`Engine version: ${ts} (generator: ${Eg})
|
|
1813
1813
|
Project built at ${av}`);
|
|
1814
1814
|
const hc = NEEDLE_PUBLIC_KEY, Fo = "needle_isActiveInHierarchy", Sa = "builtin_components", vd = "needle_editor_guid";
|
|
@@ -5477,7 +5477,7 @@ class qP {
|
|
|
5477
5477
|
}
|
|
5478
5478
|
}
|
|
5479
5479
|
}
|
|
5480
|
-
const
|
|
5480
|
+
const At = new w(), N_ = new w(), $_ = new W(), XP = S("debuggizmos"), yn = 8947848, dp = 32, pi = class pi {
|
|
5481
5481
|
constructor() {
|
|
5482
5482
|
}
|
|
5483
5483
|
/**
|
|
@@ -5520,7 +5520,7 @@ const It = new w(), N_ = new w(), $_ = new W(), XP = S("debuggizmos"), yn = 8947
|
|
|
5520
5520
|
static DrawRay(t, e, i = yn, n = 0, s = !0) {
|
|
5521
5521
|
if (!pi.enabled) return;
|
|
5522
5522
|
const a = Le.getLine(n), l = a.geometry.getAttribute("position");
|
|
5523
|
-
l.setXYZ(0, t.x, t.y, t.z),
|
|
5523
|
+
l.setXYZ(0, t.x, t.y, t.z), At.set(e.x, e.y, e.z).multiplyScalar(999999999), l.setXYZ(1, t.x + At.x, t.y + At.y, t.z + At.z), l.needsUpdate = !0, a.material.color.set(i), a.material.depthTest = s, a.material.depthWrite = !1;
|
|
5524
5524
|
}
|
|
5525
5525
|
/**
|
|
5526
5526
|
* Draw a line gizmo in the scene
|
|
@@ -5534,7 +5534,7 @@ const It = new w(), N_ = new w(), $_ = new W(), XP = S("debuggizmos"), yn = 8947
|
|
|
5534
5534
|
static DrawDirection(t, e, i = yn, n = 0, s = !0, a = 1) {
|
|
5535
5535
|
if (!pi.enabled) return;
|
|
5536
5536
|
const l = Le.getLine(n), c = l.geometry.getAttribute("position");
|
|
5537
|
-
c.setXYZ(0, t.x, t.y, t.z), e.w !== void 0 ? (
|
|
5537
|
+
c.setXYZ(0, t.x, t.y, t.z), e.w !== void 0 ? (At.set(0, 0, -a), $_.set(e.x, e.y, e.z, e.w), At.applyQuaternion($_)) : (At.set(e.x, e.y, e.z), At.multiplyScalar(a)), c.setXYZ(1, t.x + At.x, t.y + At.y, t.z + At.z), c.needsUpdate = !0, l.material.color.set(i), l.material.depthTest = s, l.material.depthWrite = !1;
|
|
5538
5538
|
}
|
|
5539
5539
|
/**
|
|
5540
5540
|
* Draw a line gizmo in the scene
|
|
@@ -5561,7 +5561,7 @@ const It = new w(), N_ = new w(), $_ = new W(), XP = S("debuggizmos"), yn = 8947
|
|
|
5561
5561
|
static DrawCircle(t, e, i, n = yn, s = 0, a = !0) {
|
|
5562
5562
|
if (!pi.enabled) return;
|
|
5563
5563
|
const l = Le.getCircle(s);
|
|
5564
|
-
l.position.set(t.x, t.y, t.z), l.scale.set(i, i, i), l.quaternion.setFromUnitVectors(this._up,
|
|
5564
|
+
l.position.set(t.x, t.y, t.z), l.scale.set(i, i, i), l.quaternion.setFromUnitVectors(this._up, At.set(e.x, e.y, e.z).normalize()), l.material.color.set(n), l.material.depthTest = a, l.material.depthWrite = !1, l.material.fog = !1;
|
|
5565
5565
|
}
|
|
5566
5566
|
/**
|
|
5567
5567
|
* Draw a 3D wiremesh sphere gizmo in the scene
|
|
@@ -5612,7 +5612,7 @@ const It = new w(), N_ = new w(), $_ = new W(), XP = S("debuggizmos"), yn = 8947
|
|
|
5612
5612
|
static DrawWireBox3(t, e = yn, i = 0, n = !0) {
|
|
5613
5613
|
if (!pi.enabled) return;
|
|
5614
5614
|
const s = Le.getBox(i);
|
|
5615
|
-
s.position.copy(t.getCenter(
|
|
5615
|
+
s.position.copy(t.getCenter(At)), s.scale.copy(t.getSize(At)), s.material.color.set(e), s.material.depthTest = n, s.material.wireframe = !0, s.material.depthWrite = !1, s.material.fog = !1;
|
|
5616
5616
|
}
|
|
5617
5617
|
/**
|
|
5618
5618
|
* Draw an arrow gizmo in the scene
|
|
@@ -5626,8 +5626,8 @@ const It = new w(), N_ = new w(), $_ = new W(), XP = S("debuggizmos"), yn = 8947
|
|
|
5626
5626
|
static DrawArrow(t, e, i = yn, n = 0, s = !0, a = !1) {
|
|
5627
5627
|
if (!pi.enabled) return;
|
|
5628
5628
|
const l = Le.getArrowHead(n);
|
|
5629
|
-
l.position.set(e.x, e.y, e.z), l.quaternion.setFromUnitVectors(this._up.set(0, 1, 0),
|
|
5630
|
-
const h =
|
|
5629
|
+
l.position.set(e.x, e.y, e.z), l.quaternion.setFromUnitVectors(this._up.set(0, 1, 0), At.set(e.x, e.y, e.z).sub(N_.set(t.x, t.y, t.z)).normalize());
|
|
5630
|
+
const h = At.set(e.x, e.y, e.z).sub(N_.set(t.x, t.y, t.z)).length() * 0.1;
|
|
5631
5631
|
l.scale.set(h, h, h), l.material.color.set(i), l.material.depthTest = s, l.material.wireframe = a, this.DrawLine(t, e, i, n, s);
|
|
5632
5632
|
}
|
|
5633
5633
|
/**
|
|
@@ -14510,7 +14510,7 @@ var j;
|
|
|
14510
14510
|
t.ready = i;
|
|
14511
14511
|
async function n() {
|
|
14512
14512
|
if (t.MODULE) return t.MODULE;
|
|
14513
|
-
const s = await import("./postprocessing-
|
|
14513
|
+
const s = await import("./postprocessing-vKBVFpSz.js").then((a) => a.index);
|
|
14514
14514
|
return t.MODULE = s, t.MAYBEMODULE = s, e.forEach((a) => a(s)), e.length = 0, s;
|
|
14515
14515
|
}
|
|
14516
14516
|
t.load = n;
|
|
@@ -14525,7 +14525,7 @@ var j;
|
|
|
14525
14525
|
t.ready = i;
|
|
14526
14526
|
async function n() {
|
|
14527
14527
|
if (t.MODULE) return t.MODULE;
|
|
14528
|
-
const s = await import("./postprocessing-
|
|
14528
|
+
const s = await import("./postprocessing-vKBVFpSz.js").then((a) => a.N8AO);
|
|
14529
14529
|
return t.MODULE = s, t.MAYBEMODULE = s, e.forEach((a) => a(s)), e.length = 0, s;
|
|
14530
14530
|
}
|
|
14531
14531
|
t.load = n;
|
|
@@ -16352,6 +16352,21 @@ class xe extends B {
|
|
|
16352
16352
|
var i;
|
|
16353
16353
|
(i = this._controls) == null || i._rotateLeft(e);
|
|
16354
16354
|
}
|
|
16355
|
+
/**
|
|
16356
|
+
* Rotate the camera up (or down) by the specified angle in radians.
|
|
16357
|
+
* For positive angles the camera will rotate up, for negative angles it will rotate down.
|
|
16358
|
+
* Tip: Use Mathf to convert between degrees and radians.
|
|
16359
|
+
* @param angleInRadians The angle in radians to rotate the camera up
|
|
16360
|
+
* @example
|
|
16361
|
+
* ```typescript
|
|
16362
|
+
* // Rotate the camera up by 0.1 radians
|
|
16363
|
+
* orbitControls.rotateUp(0.1);
|
|
16364
|
+
* ```
|
|
16365
|
+
*/
|
|
16366
|
+
rotateUp(e) {
|
|
16367
|
+
var i;
|
|
16368
|
+
(i = this._controls) == null || i._rotateUp(e);
|
|
16369
|
+
}
|
|
16355
16370
|
/**
|
|
16356
16371
|
* Pan the camera by the specified amount in the x and y direction in pixels.
|
|
16357
16372
|
* @param dx The amount to pan the camera in the x direction in pixels.
|
|
@@ -29692,7 +29707,7 @@ function qb(o, t) {
|
|
|
29692
29707
|
const a = document.createElement("img");
|
|
29693
29708
|
return a.id = "button", s.appendChild(a), o.domElement.shadowRoot.appendChild(i), s;
|
|
29694
29709
|
}
|
|
29695
|
-
var eE = Object.defineProperty,
|
|
29710
|
+
var eE = Object.defineProperty, Et = (o, t, e, i) => {
|
|
29696
29711
|
for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
29697
29712
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
29698
29713
|
return n && eE(t, e, n), n;
|
|
@@ -29706,16 +29721,16 @@ class Rl {
|
|
|
29706
29721
|
r(this, "callToActionURL");
|
|
29707
29722
|
}
|
|
29708
29723
|
}
|
|
29709
|
-
|
|
29724
|
+
Et([
|
|
29710
29725
|
p()
|
|
29711
29726
|
], Rl.prototype, "callToAction");
|
|
29712
|
-
|
|
29727
|
+
Et([
|
|
29713
29728
|
p()
|
|
29714
29729
|
], Rl.prototype, "checkoutTitle");
|
|
29715
|
-
|
|
29730
|
+
Et([
|
|
29716
29731
|
p()
|
|
29717
29732
|
], Rl.prototype, "checkoutSubtitle");
|
|
29718
|
-
|
|
29733
|
+
Et([
|
|
29719
29734
|
p()
|
|
29720
29735
|
], Rl.prototype, "callToActionURL");
|
|
29721
29736
|
var Is;
|
|
@@ -29957,43 +29972,43 @@ const xi = (Is = class extends B {
|
|
|
29957
29972
|
return i.parentNode || this.context.menu.appendChild(i), i;
|
|
29958
29973
|
}
|
|
29959
29974
|
}, r(Is, "invertForwardMatrix", new re().makeRotationY(Math.PI)), r(Is, "invertForwardQuaternion", new W().setFromEuler(new Ft(0, Math.PI, 0))), Is);
|
|
29960
|
-
|
|
29975
|
+
Et([
|
|
29961
29976
|
p(D)
|
|
29962
29977
|
], xi.prototype, "objectToExport");
|
|
29963
|
-
|
|
29978
|
+
Et([
|
|
29964
29979
|
p()
|
|
29965
29980
|
], xi.prototype, "autoExportAnimations");
|
|
29966
|
-
|
|
29981
|
+
Et([
|
|
29967
29982
|
p()
|
|
29968
29983
|
], xi.prototype, "autoExportAudioSources");
|
|
29969
|
-
|
|
29984
|
+
Et([
|
|
29970
29985
|
p()
|
|
29971
29986
|
], xi.prototype, "exportFileName");
|
|
29972
|
-
|
|
29987
|
+
Et([
|
|
29973
29988
|
p(URL)
|
|
29974
29989
|
], xi.prototype, "customUsdzFile");
|
|
29975
|
-
|
|
29990
|
+
Et([
|
|
29976
29991
|
p(Rl)
|
|
29977
29992
|
], xi.prototype, "customBranding");
|
|
29978
|
-
|
|
29993
|
+
Et([
|
|
29979
29994
|
p()
|
|
29980
29995
|
], xi.prototype, "anchoringType");
|
|
29981
|
-
|
|
29996
|
+
Et([
|
|
29982
29997
|
p()
|
|
29983
29998
|
], xi.prototype, "maxTextureSize");
|
|
29984
|
-
|
|
29999
|
+
Et([
|
|
29985
30000
|
p()
|
|
29986
30001
|
], xi.prototype, "planeAnchoringAlignment");
|
|
29987
|
-
|
|
30002
|
+
Et([
|
|
29988
30003
|
p()
|
|
29989
30004
|
], xi.prototype, "interactive");
|
|
29990
|
-
|
|
30005
|
+
Et([
|
|
29991
30006
|
p()
|
|
29992
30007
|
], xi.prototype, "physics");
|
|
29993
|
-
|
|
30008
|
+
Et([
|
|
29994
30009
|
p()
|
|
29995
30010
|
], xi.prototype, "allowCreateQuicklookButton");
|
|
29996
|
-
|
|
30011
|
+
Et([
|
|
29997
30012
|
p()
|
|
29998
30013
|
], xi.prototype, "quickLookCompatible");
|
|
29999
30014
|
let Vs = xi;
|
|
@@ -34657,7 +34672,7 @@ var mA = Object.defineProperty, Ot = (o, t, e, i) => {
|
|
|
34657
34672
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
34658
34673
|
return n && mA(t, e, n), n;
|
|
34659
34674
|
};
|
|
34660
|
-
const
|
|
34675
|
+
const It = S("debugsceneswitcher"), gA = S("sceneswitcher:clearscene"), Dd = "scene";
|
|
34661
34676
|
Fy(Dd);
|
|
34662
34677
|
const po = Promise.resolve(!1);
|
|
34663
34678
|
class lt extends B {
|
|
@@ -34696,7 +34711,7 @@ class lt extends B {
|
|
|
34696
34711
|
const s = e == null ? void 0 : e.state;
|
|
34697
34712
|
if (s && s.startsWith(this.guid)) {
|
|
34698
34713
|
const a = s.substr(this.guid.length + 2);
|
|
34699
|
-
|
|
34714
|
+
It && console.log("PopState", a), await this.trySelectSceneFromValue(a);
|
|
34700
34715
|
}
|
|
34701
34716
|
}
|
|
34702
34717
|
} finally {
|
|
@@ -34772,7 +34787,7 @@ class lt extends B {
|
|
|
34772
34787
|
this.scenes === void 0 && (this.scenes = []);
|
|
34773
34788
|
for (const e of this.scenes)
|
|
34774
34789
|
e && !e.hasUrl && e.asset instanceof D ? C.remove(e.asset) : e instanceof D && C.remove(e);
|
|
34775
|
-
|
|
34790
|
+
It && console.log("SceneSwitcher", this);
|
|
34776
34791
|
}
|
|
34777
34792
|
/** @internal */
|
|
34778
34793
|
async onEnable() {
|
|
@@ -34859,7 +34874,7 @@ class lt extends B {
|
|
|
34859
34874
|
*/
|
|
34860
34875
|
select(e) {
|
|
34861
34876
|
var n, s, a;
|
|
34862
|
-
if (
|
|
34877
|
+
if (It && console.log("select", e), typeof e == "object" && console.warn('Switching to "' + e + '" might not work. Please either use an index or a AssetReference (not a scene reference)'), typeof e == "string") {
|
|
34863
34878
|
const l = (n = this.scenes) == null ? void 0 : n.find((c) => c.url === e);
|
|
34864
34879
|
if (!l) {
|
|
34865
34880
|
const c = le.getOrCreate(this.sourceId ?? "", e, this.context);
|
|
@@ -34928,7 +34943,7 @@ class lt extends B {
|
|
|
34928
34943
|
async __unloadCurrentScene() {
|
|
34929
34944
|
const e = this._currentScene;
|
|
34930
34945
|
if (this._currentScene = void 0, e) {
|
|
34931
|
-
|
|
34946
|
+
It && console.log("UNLOAD", e.url, "HasURL?: " + e.hasUrl);
|
|
34932
34947
|
const i = this.tryGetSceneEventListener(e.asset);
|
|
34933
34948
|
if (i != null && i.sceneClosing) {
|
|
34934
34949
|
const n = i.sceneClosing();
|
|
@@ -34947,7 +34962,7 @@ class lt extends B {
|
|
|
34947
34962
|
const h = new CustomEvent("loadscene-start", { detail: { scene: e, switcher: this, index: i } });
|
|
34948
34963
|
this.dispatchEvent(h), (s = this.sceneLoadingStart) == null || s.invoke(h.detail), await this.onStartLoading(), await e.loadAssetAsync((u, f) => {
|
|
34949
34964
|
var m;
|
|
34950
|
-
if (
|
|
34965
|
+
if (It) {
|
|
34951
34966
|
const g = f.loaded / f.total, _ = "[" + "=".repeat(Math.floor(g * 20)) + "-".repeat(20 - Math.floor(g * 20)) + "]";
|
|
34952
34967
|
console.debug(`[SceneSwitcher] Download ${(g * 100).toFixed(1)} % ${_}`, e.url);
|
|
34953
34968
|
}
|
|
@@ -34955,11 +34970,11 @@ class lt extends B {
|
|
|
34955
34970
|
}).catch(console.error), await this.onEndLoading();
|
|
34956
34971
|
const d = new CustomEvent("loadscene-finished", { detail: { scene: e, switcher: this, index: i } });
|
|
34957
34972
|
if (this.dispatchEvent(d), this._currentLoadingProgress = void 0, this._currentlyLoadingScene = void 0, d.defaultPrevented)
|
|
34958
|
-
return
|
|
34973
|
+
return It && console.warn("Adding loaded scene prevented:", e, d), !1;
|
|
34959
34974
|
if (!e.asset)
|
|
34960
|
-
return
|
|
34975
|
+
return It && console.warn("Failed loading scene:", e), !1;
|
|
34961
34976
|
if (this._currentIndex === i) {
|
|
34962
|
-
if (
|
|
34977
|
+
if (It && console.log("ADD", e.url), this._currentScene = e, gA) {
|
|
34963
34978
|
const m = ((a = this.context.mainCameraComponent) == null ? void 0 : a.gameObject) || this.context.mainCamera;
|
|
34964
34979
|
m == null || m.removeFromParent();
|
|
34965
34980
|
const g = this.gameObject.removeFromParent();
|
|
@@ -34967,7 +34982,7 @@ class lt extends B {
|
|
|
34967
34982
|
}
|
|
34968
34983
|
if (C.add(e.asset, this.gameObject), this.useSceneLighting && this.context.sceneLighting.enable(e), this.useSceneBackground) {
|
|
34969
34984
|
const m = this.context.lightmaps.tryGetSkybox(e.url);
|
|
34970
|
-
m ? (m.mapping = Ns, this.context.scene.background = m) :
|
|
34985
|
+
m ? (m.mapping = Ns, this.context.scene.background = m) : It && console.warn("SceneSwitcher: Can't find skybox for scene " + e.url);
|
|
34971
34986
|
}
|
|
34972
34987
|
if (this.useHistory && i >= 0) {
|
|
34973
34988
|
let m = i.toString();
|
|
@@ -35027,7 +35042,7 @@ class lt extends B {
|
|
|
35027
35042
|
async onStartLoading() {
|
|
35028
35043
|
var e, i;
|
|
35029
35044
|
if (this._isCurrentlyLoading = !0, this.loadingScene && (this._lastLoadingScene !== this.loadingScene && (this._loadingScenePromise = void 0), this._lastLoadingScene = this.loadingScene, this._loadingScenePromise || (this._loadingScenePromise = (e = this.loadingScene) == null ? void 0 : e.loadAssetAsync().then((n) => n != null)), await this._loadingScenePromise, this._isCurrentlyLoading && ((i = this.loadingScene) != null && i.asset))) {
|
|
35030
|
-
|
|
35045
|
+
It && console.log("Add loading scene", this.loadingScene.url, this.loadingScene.asset);
|
|
35031
35046
|
const n = this.loadingScene.asset;
|
|
35032
35047
|
C.add(n, this.gameObject);
|
|
35033
35048
|
const s = this.tryGetSceneEventListener(n);
|
|
@@ -35047,7 +35062,7 @@ class lt extends B {
|
|
|
35047
35062
|
async onEndLoading() {
|
|
35048
35063
|
var e;
|
|
35049
35064
|
if (this._isCurrentlyLoading = !1, (e = this.loadingScene) != null && e.asset) {
|
|
35050
|
-
|
|
35065
|
+
It && console.log("Remove loading scene", this.loadingScene.url);
|
|
35051
35066
|
const i = this.loadingScene.asset, n = this.tryGetSceneEventListener(i);
|
|
35052
35067
|
if (typeof (n == null ? void 0 : n.sceneClosing) == "function") {
|
|
35053
35068
|
const s = n.sceneClosing();
|
|
@@ -35163,10 +35178,10 @@ class yA {
|
|
|
35163
35178
|
*/
|
|
35164
35179
|
begin(t) {
|
|
35165
35180
|
if (this._isRunning) return;
|
|
35166
|
-
|
|
35181
|
+
It && console.log("Preload begin", { delay: t }), this._isRunning = !0;
|
|
35167
35182
|
let e = -10, i, n;
|
|
35168
35183
|
const s = this._switcher.scenes, a = Date.now() + t, l = setInterval(() => {
|
|
35169
|
-
if (this.allLoaded() && (
|
|
35184
|
+
if (this.allLoaded() && (It && console.log("All scenes (pre-)loaded"), this.stop()), !this._isRunning) {
|
|
35170
35185
|
clearInterval(l);
|
|
35171
35186
|
return;
|
|
35172
35187
|
}
|
|
@@ -35179,7 +35194,7 @@ class yA {
|
|
|
35179
35194
|
const d = c ? e + i : e - i;
|
|
35180
35195
|
if (!(d < 0) && !(d < 0 || d >= s.length) && !this._loadTasks.some((u) => u.index === d)) {
|
|
35181
35196
|
const u = s[d];
|
|
35182
|
-
|
|
35197
|
+
It && console.log("Preload scene", { roomIndex: d, searchForward: c, lastRoom: e, currentIndex: this._switcher.currentIndex, tasks: this._loadTasks.length }, u == null ? void 0 : u.url), new _A(d, u, this._loadTasks);
|
|
35183
35198
|
}
|
|
35184
35199
|
}, 200);
|
|
35185
35200
|
}
|
|
@@ -35229,7 +35244,7 @@ class _A {
|
|
|
35229
35244
|
* Asynchronously loads the asset and removes this task from the active tasks list when complete
|
|
35230
35245
|
*/
|
|
35231
35246
|
async awaitLoading() {
|
|
35232
|
-
this.asset && !this.asset.isLoaded() && (
|
|
35247
|
+
this.asset && !this.asset.isLoaded() && (It && console.log("Preload start: " + this.asset.url, this.index), await this.asset.preload(), It && console.log("Preload finished: " + this.asset.url, this.index));
|
|
35233
35248
|
const t = this.tasks.indexOf(this);
|
|
35234
35249
|
t >= 0 && this.tasks.splice(t, 1);
|
|
35235
35250
|
}
|
|
@@ -36248,7 +36263,7 @@ var RA = Object.defineProperty, Ih = (o, t, e, i) => {
|
|
|
36248
36263
|
(a = o[s]) && (n = a(t, e, n) || n);
|
|
36249
36264
|
return n && RA(t, e, n), n;
|
|
36250
36265
|
};
|
|
36251
|
-
const
|
|
36266
|
+
const Lt = S("debugskybox");
|
|
36252
36267
|
Fy("background-image");
|
|
36253
36268
|
Fy("environment-image");
|
|
36254
36269
|
function n0(o, t, e, i, n) {
|
|
@@ -36257,22 +36272,22 @@ function n0(o, t, e, i, n) {
|
|
|
36257
36272
|
const s = new zy();
|
|
36258
36273
|
s.allowDrop = !1, s.allowNetworking = !1, s.background = e, s.environment = i, C.addComponent(o.scene, s);
|
|
36259
36274
|
const a = (l) => {
|
|
36260
|
-
typeof l == "string" && (
|
|
36275
|
+
typeof l == "string" && (Lt && console.log(n, "CHANGED TO", l), s.setSkybox(l));
|
|
36261
36276
|
};
|
|
36262
36277
|
return x1(o.domElement, n, a), s.addEventListener("destroy", () => {
|
|
36263
|
-
|
|
36278
|
+
Lt && console.log("Destroyed attribute remote skybox", n), S1(o.domElement, n, a);
|
|
36264
36279
|
}), s.setSkybox(t);
|
|
36265
36280
|
}
|
|
36266
36281
|
const bu = new Array();
|
|
36267
36282
|
fe.registerCallback(me.ContextCreationStart, (o) => {
|
|
36268
36283
|
const t = o.context, e = t.domElement.getAttribute("background-image"), i = t.domElement.getAttribute("environment-image");
|
|
36269
36284
|
if (e) {
|
|
36270
|
-
|
|
36285
|
+
Lt && console.log("Creating remote skybox to load " + e);
|
|
36271
36286
|
const n = n0(t, e, !0, !1, "background-image");
|
|
36272
36287
|
n && bu.push(n);
|
|
36273
36288
|
}
|
|
36274
36289
|
if (i) {
|
|
36275
|
-
|
|
36290
|
+
Lt && console.log("Creating remote environment to load " + i);
|
|
36276
36291
|
const n = n0(t, i, !1, !0, "environment-image");
|
|
36277
36292
|
n && bu.push(n);
|
|
36278
36293
|
}
|
|
@@ -36285,11 +36300,11 @@ function Tx() {
|
|
|
36285
36300
|
}
|
|
36286
36301
|
function s0(o) {
|
|
36287
36302
|
const e = Tx().find((i) => i.src === o);
|
|
36288
|
-
return e ? (
|
|
36303
|
+
return e ? (Lt && console.log("Skybox: Found previously loaded texture for " + o), e.texture) : null;
|
|
36289
36304
|
}
|
|
36290
36305
|
async function TA(o) {
|
|
36291
36306
|
const t = await o;
|
|
36292
|
-
xv(t, !0), Ie(t);
|
|
36307
|
+
t && (xv(t, !0), Ie(t));
|
|
36293
36308
|
}
|
|
36294
36309
|
function EA(o, t) {
|
|
36295
36310
|
const e = Tx();
|
|
@@ -36312,6 +36327,7 @@ const Yr = class extends B {
|
|
|
36312
36327
|
r(this, "_prevLoadedEnvironment");
|
|
36313
36328
|
r(this, "_prevEnvironment", null);
|
|
36314
36329
|
r(this, "_prevBackground", null);
|
|
36330
|
+
r(this, "validProtocols", ["file:", "blob:", "data:"]);
|
|
36315
36331
|
r(this, "validTextureTypes", [".ktx2", ".hdr", ".exr", ".jpg", ".jpeg", ".png"]);
|
|
36316
36332
|
r(this, "onDragOverEvent", (e) => {
|
|
36317
36333
|
if (this.allowDrop && e.dataTransfer)
|
|
@@ -36322,11 +36338,11 @@ const Yr = class extends B {
|
|
|
36322
36338
|
var i, n, s, a;
|
|
36323
36339
|
if (this.allowDrop && e.dataTransfer) {
|
|
36324
36340
|
for (const l of e.dataTransfer.types)
|
|
36325
|
-
if (
|
|
36341
|
+
if (Lt && console.log(l), l === "text/uri-list") {
|
|
36326
36342
|
const c = e.dataTransfer.getData(l);
|
|
36327
|
-
|
|
36343
|
+
Lt && console.log(l, c);
|
|
36328
36344
|
let h = (n = (i = new RegExp(/polyhaven.com\/asset_img\/.+?\/(?<name>.+)\.png/).exec(c)) == null ? void 0 : i.groups) == null ? void 0 : n.name;
|
|
36329
|
-
if (h || (h = (a = (s = new RegExp(/polyhaven\.com\/a\/(?<name>.+)/).exec(c)) == null ? void 0 : s.groups) == null ? void 0 : a.name),
|
|
36345
|
+
if (h || (h = (a = (s = new RegExp(/polyhaven\.com\/a\/(?<name>.+)/).exec(c)) == null ? void 0 : s.groups) == null ? void 0 : a.name), Lt && console.log(h), h) {
|
|
36330
36346
|
const d = "https://dl.polyhaven.org/file/ph-assets/HDRIs/exr/1k/" + h + "_1k.exr";
|
|
36331
36347
|
console.log(`[Remote Skybox] Setting skybox from url: ${d}`), e.preventDefault(), this.setSkybox(d);
|
|
36332
36348
|
break;
|
|
@@ -36349,7 +36365,7 @@ const Yr = class extends B {
|
|
|
36349
36365
|
}
|
|
36350
36366
|
} else if (l == "Files") {
|
|
36351
36367
|
const c = e.dataTransfer.files.item(0);
|
|
36352
|
-
if (
|
|
36368
|
+
if (Lt && console.log(l, c), !c) continue;
|
|
36353
36369
|
if (!this.isValidTextureType(c.name)) {
|
|
36354
36370
|
console.warn(`[RemoteSkybox]: File "${c.name}" is not supported. Supported files are ${this.validTextureTypes.join(", ")}`);
|
|
36355
36371
|
return;
|
|
@@ -36374,7 +36390,7 @@ const Yr = class extends B {
|
|
|
36374
36390
|
this.context.scene.environment === this._prevLoadedEnvironment && (this.context.scene.environment = this._prevEnvironment, Ai.backgroundShouldBeTransparent(this.context) || (this.context.scene.background = this._prevBackground), this._prevLoadedEnvironment = void 0), this.unregisterDropEvents(), (e = this.context.mainCameraComponent) == null || e.applyClearFlags();
|
|
36375
36391
|
}
|
|
36376
36392
|
urlChangedSyncField() {
|
|
36377
|
-
this.allowNetworking && this.url && (this.isRemoteTexture(this.url) ? this.setSkybox(this.url) :
|
|
36393
|
+
this.allowNetworking && this.url && (this.isRemoteTexture(this.url) ? this.setSkybox(this.url) : Lt && console.warn(`RemoteSkybox: Not setting skybox: ${this.url} is not a remote texture. If you want to set a local texture, set allowNetworking to false.`));
|
|
36378
36394
|
}
|
|
36379
36395
|
/**
|
|
36380
36396
|
* Set the skybox from a given url
|
|
@@ -36383,23 +36399,18 @@ const Yr = class extends B {
|
|
|
36383
36399
|
* @returns Whether the skybox was successfully set
|
|
36384
36400
|
*/
|
|
36385
36401
|
async setSkybox(e, i) {
|
|
36386
|
-
var a;
|
|
36402
|
+
var a, l;
|
|
36387
36403
|
if (!this.activeAndEnabled || (e = AA(e, this.environment, this.background), !e)) return !1;
|
|
36388
|
-
|
|
36389
|
-
e.startsWith("/") || e.startsWith(".") ? new URL(e, window.location.href) : new URL(e);
|
|
36390
|
-
} catch {
|
|
36391
|
-
return Et && console.warn("RemoteSkybox: Invalid URL", e, this.name), !1;
|
|
36392
|
-
}
|
|
36393
|
-
if (i ?? (i = e), this.isValidTextureType(i) || console.warn("Potentially invalid skybox url", i, "on", this.name), Et && console.log("Set remote skybox url: " + e), this._prevUrl === e && this._prevLoadedEnvironment)
|
|
36404
|
+
if (i ?? (i = e), this.isValidTextureType(i) || console.warn('Potentially invalid skybox URL: "' + i + '" on ' + (this.name || ((a = this.gameObject) == null ? void 0 : a.name) || "context")), Lt && console.log("Set remote skybox url: " + e), this._prevUrl === e && this._prevLoadedEnvironment)
|
|
36394
36405
|
return this.apply(), !0;
|
|
36395
|
-
(
|
|
36406
|
+
(l = this._prevLoadedEnvironment) == null || l.dispose(), this._prevLoadedEnvironment = void 0, this._prevUrl = e;
|
|
36396
36407
|
const n = await this.loadTexture(e, i);
|
|
36397
36408
|
if (!n)
|
|
36398
|
-
return
|
|
36409
|
+
return Lt && console.warn("RemoteSkybox: Failed to load texture from url", e), !1;
|
|
36399
36410
|
if (!this.enabled)
|
|
36400
|
-
return
|
|
36411
|
+
return Lt && console.warn("RemoteSkybox: Component is not enabled, aborting setSkybox"), !1;
|
|
36401
36412
|
if (this._prevUrl !== e)
|
|
36402
|
-
return
|
|
36413
|
+
return Lt && console.warn("RemoteSkybox: URL changed while loading texture, aborting setSkybox"), !1;
|
|
36403
36414
|
this.url = e;
|
|
36404
36415
|
const s = e.lastIndexOf("/");
|
|
36405
36416
|
return n.name = e.substring(s >= 0 ? s + 1 : 0), this._loader instanceof $a && (n.colorSpace = qs), this._prevLoadedEnvironment = n, this.apply(), !0;
|
|
@@ -36411,7 +36422,7 @@ const Yr = class extends B {
|
|
|
36411
36422
|
const n = s0(i);
|
|
36412
36423
|
if (n) {
|
|
36413
36424
|
const _ = await n;
|
|
36414
|
-
if (((u = (d = _.source) == null ? void 0 : d.data) == null ? void 0 : u.length) > 0 || (g = (m = (f = _.source) == null ? void 0 : f.data) == null ? void 0 : m.data) != null && g.length) return _;
|
|
36425
|
+
if (((u = (d = _ == null ? void 0 : _.source) == null ? void 0 : d.data) == null ? void 0 : u.length) > 0 || (g = (m = (f = _ == null ? void 0 : _.source) == null ? void 0 : f.data) == null ? void 0 : m.data) != null && g.length) return _;
|
|
36415
36426
|
}
|
|
36416
36427
|
const s = i.endsWith(".exr"), a = i.endsWith(".hdr"), l = i.endsWith(".ktx2");
|
|
36417
36428
|
if (s)
|
|
@@ -36425,14 +36436,14 @@ const Yr = class extends B {
|
|
|
36425
36436
|
}
|
|
36426
36437
|
} else
|
|
36427
36438
|
this._loader instanceof $a || (this._loader = new $a());
|
|
36428
|
-
|
|
36429
|
-
const c = this._loader.loadAsync(e);
|
|
36439
|
+
Lt && console.log("Loading skybox: " + e);
|
|
36440
|
+
const c = this._loader.loadAsync(e).catch((_) => (console.warn("RemoteSkybox: Failed to load texture from url:", e), null));
|
|
36430
36441
|
return EA(i, c), await c;
|
|
36431
36442
|
}
|
|
36432
36443
|
apply() {
|
|
36433
36444
|
var i;
|
|
36434
36445
|
const e = this._prevLoadedEnvironment;
|
|
36435
|
-
e && (e instanceof pC || e instanceof mC || (e.mapping = gC, e.needsUpdate = !0), this.context.scene.background !== e && (this._prevBackground = this.context.scene.background), this.context.scene.environment !== e && (this._prevEnvironment = this.context.scene.environment),
|
|
36446
|
+
e && (e instanceof pC || e instanceof mC || (e.mapping = gC, e.needsUpdate = !0), this.context.scene.background !== e && (this._prevBackground = this.context.scene.background), this.context.scene.environment !== e && (this._prevEnvironment = this.context.scene.environment), Lt && console.log("Set remote skybox", this.url, !Ai.backgroundShouldBeTransparent(this.context)), this.environment && (this.context.scene.environment = e), this.background && !Ai.backgroundShouldBeTransparent(this.context) && (this.context.scene.background = e), ((i = this.context.mainCameraComponent) == null ? void 0 : i.backgroundBlurriness) !== void 0 && (this.context.scene.backgroundBlurriness = this.context.mainCameraComponent.backgroundBlurriness));
|
|
36436
36447
|
}
|
|
36437
36448
|
isRemoteTexture(e) {
|
|
36438
36449
|
return e.startsWith("http://") || e.startsWith("https://");
|
|
@@ -36440,6 +36451,8 @@ const Yr = class extends B {
|
|
|
36440
36451
|
isValidTextureType(e) {
|
|
36441
36452
|
for (const i of this.validTextureTypes)
|
|
36442
36453
|
if (e.endsWith(i)) return !0;
|
|
36454
|
+
for (const i of this.validProtocols)
|
|
36455
|
+
if (e.startsWith(i)) return !0;
|
|
36443
36456
|
return !1;
|
|
36444
36457
|
}
|
|
36445
36458
|
registerDropEvents() {
|
package/dist/needle-engine.d.ts
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
export { }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
declare module 'three/examples/jsm/controls/OrbitControls.js' {
|
|
5
|
-
interface OrbitControls {
|
|
6
|
-
_sphericalDelta: import("three").Spherical;
|
|
7
|
-
_rotateLeft: (angleInRadians: number) => void;
|
|
8
|
-
_rotateUp: (angleInRadians: number) => void;
|
|
9
|
-
_pan: (dx: number, dy: number) => void;
|
|
10
|
-
_dollyIn: (dollyScale: number) => void;
|
|
11
|
-
_dollyOut: (dollyScale: number) => void;
|
|
12
|
-
}
|
|
13
|
-
interface OrbitControlsEventMap {
|
|
14
|
-
endMovement: Event;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
4
|
declare module 'three' {
|
|
20
5
|
interface SkinnedMesh {
|
|
21
6
|
staticGenerator?: StaticGeometryGenerator;
|
|
@@ -38,6 +23,21 @@ declare module 'three' {
|
|
|
38
23
|
}
|
|
39
24
|
|
|
40
25
|
|
|
26
|
+
declare module 'three/examples/jsm/controls/OrbitControls.js' {
|
|
27
|
+
interface OrbitControls {
|
|
28
|
+
_sphericalDelta: import("three").Spherical;
|
|
29
|
+
_rotateLeft: (angleInRadians: number) => void;
|
|
30
|
+
_rotateUp: (angleInRadians: number) => void;
|
|
31
|
+
_pan: (dx: number, dy: number) => void;
|
|
32
|
+
_dollyIn: (dollyScale: number) => void;
|
|
33
|
+
_dollyOut: (dollyScale: number) => void;
|
|
34
|
+
}
|
|
35
|
+
interface OrbitControlsEventMap {
|
|
36
|
+
endMovement: Event;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
41
|
declare module 'three' {
|
|
42
42
|
interface Object3D {
|
|
43
43
|
get guid(): string | undefined;
|
package/dist/needle-engine.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GameObject as r, onClear as a, onDestroy as s, onInitialized as l, onAfterRender as d, onBeforeRender as c, onUpdate as m, onStart as g, loadAsset as p, NeedleXRSession as u, Context as S, VERSION as C, Component as y, Components as E } from "./needle-engine.bundle-
|
|
2
|
-
import { $physicsKey as T, ActionBuilder as b, ActionCollection as A, ActionModel as M, Addressables as I, AlignmentConstraint as O, AmbientMode as D, Animation as x, AnimationCurve as k, AnimationExtension as L, AnimationTrackHandler as N, AnimationUtils as B, Animator as F, AnimatorConditionMode as U, AnimatorController as w, AnimatorControllerParameterType as G, AnimatorStateInfo as W, Antialiasing as H, Application as X, AssetDatabase as z, AssetReference as V, AudioExtension as _, AudioListener as j, AudioSource as K, AudioTrackHandler as Z, Avatar as Q, AvatarBlink_Simple as Y, AvatarEyeLook_Rotation as $, AvatarLoader as J, AvatarMarker as q, AvatarModel as ee, Avatar_Brain_LookAt as te, Avatar_MouthShapes as oe, Avatar_MustacheShake as re, Avatar_POI as ne, Axes as ie, AxesHelper as ae, BUILD_TIME as se, BaseUIComponent as le, BasicIKConstraint as de, BehaviorExtension as ce, BehaviorModel as me, Component$1 as ge, BlobStorage as pe, BloomEffect as ue, BoxCollider as Se, BoxGizmo as Ce, BoxHelperComponent as ye, Button as Ee, ButtonsFactory as Re, CallDirection as he, CallInfo as fe, Camera as ve, CameraTargetReachedEvent as Pe, Canvas as Te, CanvasGroup as be, CapsuleCollider as Ae, ChangeMaterialOnClick as Me, ChangeTransformOnClick as Ie, CharacterController as Oe, CharacterControllerInput as De, ChromaticAberration as xe, CircularBuffer as ke, ClearFlags as Le, ClipExtrapolation as Ne, Collider as Be, Collision as Fe, CollisionDetectionMode as Ue, ColorAdjustments as we, ColorBySpeedModule as Ge, ColorOverLifetimeModule as We, Component$1 as He, ComponentLifecycleEvents as Xe, ConnectionEvents as ze, ContactPoint as Ve, ContactShadows as _e, ContextArgs as je, ContextEvent as Ke, ContextRegistry as Ze, ControlTrackHandler as Qe, CustomBranding as Ye, CustomShader as $e, DefaultReflectionMode as Je, Deletable as qe, DeleteBox as et, DepthOfField as tt, DeviceFlag as ot, DeviceUtilities as rt, DocumentExtension as nt, DragControls as it, DragMode as at, DropListener as st, Duplicatable as lt, EffectWrapper as dt, EmissionModule as ct, EmphasizeOnClick as mt, EngineLoadingView as gt, EnvironmentScene as pt, EventList as ut, EventListEvent as St, EventSystem as Ct, EventTrigger as yt, FieldWithDefault as Et, FileReference as Rt, FileReferenceSerializer as ht, FileSpawnModel as ft, File_Event as vt, FixedJoint as Pt, Fog as Tt, FrameEvent as bt, GENERATOR as At, Gizmos as Mt, GltfExport as It, GltfExportBox as Ot, Gradient as Dt, Graphic as xt, GraphicRaycaster as kt, Graphics as Lt, GridHelper as Nt, GridLayoutGroup as Bt, GroundProjectedEnv as Ft, GroupActionModel as Ut, HideFlags as wt, HideOnStart as Gt, HingeJoint as Wt, HorizontalLayoutGroup as Ht, HostData as Xt, Image as zt, ImageReference as Vt, ImageReferenceSerializer as _t, InheritVelocityModule as jt, Input as Kt, InputEventQueue as Zt, InputEvents as Qt, InputField as Yt, InstanceHandle as $t, InstancingHandler as Jt, InstancingUtil as qt, InstantiateEvent as eo, InstantiateIdProvider as to, InstantiateOptions as oo, Interactable as ro, InternalScreenshotUtils as no, JoinedRoomResponse as io, KeyEventArgs as ao, Keyframe as so, LODGroup as lo, LODModel as co, LeftRoomResponse as mo, Light as go, LightData as po, LimitVelocityOverLifetimeModule as uo, LoadingElementOptions as So, LogStats as Co, LogType as yo, LookAt as Eo, LookAtConstraint as Ro, MainModule as ho, MarkerType as fo, MaskableGraphic as vo, Mathf as Po, MeshCollider as To, MeshRenderer as bo, MinMaxCurve as Ao, MinMaxGradient as Mo, MODULES as Io, NEKeyboardEvent as Oo, NEPointerEvent as Do, NeedleButtonElement as xo, ContextRegistry as ko, NeedleEngineModelLoader as Lo, NeedleEngineWebComponent as No, NeedleMenu as Bo, NeedlePatchesKey as Fo, USDZExporter$1 as Uo, NeedleXRController as wo, NeedleXRSync as Go, NeedleXRUtils as Wo, NestedGltf as Ho, NetworkConnection as Xo, NetworkedStreamEvents as zo, NetworkedStreams as Vo, Networking as _o, NewInstanceModel as jo, NoiseModule as Ko, ObjectRaycaster as Zo, ObjectUtils as Qo, OffsetConstraint as Yo, OneEuroFilter as $o, OneEuroFilterXYZ as Jo, OpenURL as qo, OrbitControls as er, Outline as tr, OwnershipEvent as or, OwnershipModel as rr, PUBLIC_KEY as nr, Padding as ir, ParticleBurst as ar, ParticleSubEmitter as sr, ParticleSystem as lr, ParticleSystemBaseBehaviour as dr, ParticleSystemRenderer as cr, ParticleSystemShapeType as mr, PeerHandle as gr, PeerNetworking as pr, Physics as ur, PhysicsExtension as Sr, PhysicsMaterialCombine as Cr, PixelationEffect as yr, PlayAnimationOnClick as Er, PlayAudioOnClick as Rr, PlayableDirector as hr, PlayerColor as fr, PlayerState as vr, PlayerStateEvent as Pr, PlayerSync as Tr, PlayerView as br, PlayerViewManager as Ar, PointerEventData as Mr, PointerType as Ir, PostProcessingEffect as Or, PostProcessingEffectOrder as Dr, PostProcessingHandler as xr, Volume as kr, PreliminaryAction as Lr, PreliminaryTrigger as Nr, PreviewHelper as Br, PrimitiveType as Fr, Progress as Ur, PromiseAllWithErrors as wr, PromiseErrorResult as Gr, RGBAColor as Wr, RapierPhysics as Hr, RawImage as Xr, RaycastOptions as zr, Rect as Vr, RectTransform as _r, ReflectionProbe as jr, RegisteredAnimationInfo as Kr, RemoteSkybox as Zr, RenderTexture as Qr, RenderTextureSerializer as Yr, Renderer as $r, RendererData as Jr, RendererLightmap as qr, Rigidbody as en, RigidbodyConstraints as tn, RoomEvents as on, RotationBySpeedModule as rn, RotationOverLifetimeModule as nn, SceneLightSettings as an, SceneSwitcher as sn, ScreenCapture as ln, ScreenSpaceAmbientOcclusion as dn, ScreenSpaceAmbientOcclusionN8 as cn, SendQueue as mn, SerializationContext as gn, SetActiveOnClick as pn, ShadowCatcher as un, ShapeModule as Sn, SharpeningEffect as Cn, SignalAsset as yn, SignalReceiver as En, SignalReceiverEvent as Rn, SignalTrackHandler as hn, Size as fn, SizeBySpeedModule as vn, SizeOverLifetimeModule as Pn, SkinnedMeshRenderer as Tn, SmoothFollow as bn, SpatialGrabRaycaster as An, SpatialHtml as Mn, SpatialTrigger as In, SpatialTriggerReceiver as On, SpectatorCamera as Dn, SphereCollider as xn, SphereIntersection as kn, SphereOverlapResult as Ln, Sprite as Nn, SpriteData as Bn, SpriteRenderer as Fn, SpriteSheet as Un, StateMachineBehaviour as wn, StreamEndedEvent as Gn, StreamReceivedEvent as Wn, SubEmitterSystem as Hn, SyncedCamera as Xn, SyncedRoom as zn, SyncedTransform as Vn, TapGestureTrigger as _n, TeleportTarget as jn, TestRunner as Kn, TestSceneUtils as Zn, TestSimulateUserData as Qn, Text as Yn, TextBuilder as $n, TextExtension as Jn, TextureSheetAnimationModule as qn, TiltShiftEffect as ei, Time as ti, ToneMappingEffect as oi, TrackHandler as ri, TrackType as ni, TrailModule as ii, TransformData as ai, TransformGizmo as si, TriggerBuilder as li, TriggerModel as di, TypeStore as ci, UIRaycastUtils as mi, UIRootComponent as gi, USDDocument as pi, USDObject as ui, USDWriter as Si, USDZExporter as Ci, USDZText as yi, USDZUIExtension as Ei, UriSerializer as Ri, UsageMarker as hi, UserJoinedOrLeftRoomModel as fi, VariantAction as vi, VelocityOverLifetimeModule as Pi, VerticalLayoutGroup as Ti, VideoPlayer as bi, ViewDevice as Ai, Vignette as Mi, VisibilityAction as Ii, Voip as Oi, Volume as Di, VolumeParameter as xi, VolumeProfile as ki, WaitForFrames as Li, WaitForPromise as Ni, WaitForSeconds as Bi, Watch as Fi, WebARCameraBackground as Ui, WebARSessionRoot as wi, WebXR as Gi, WebXRButtonFactory as Wi, WebXRImageTracking as Hi, WebXRImageTrackingModel as Xi, WebXRPlaneTracking as zi, WebXRTrackedImage as Vi, XRControllerFollow as _i, XRControllerModel as ji, XRControllerMovement as Ki, XRFlag as Zi, XRRig as Qi, XRState as Yi, XRStateFlag as $i, __Ignore as Ji, __internalNotifyObjectDestroyed as qi, activeInHierarchyFieldName as ea, addAttributeChangeCallback as ta, addComponent as oa, addCustomExtensionPlugin as ra, addNewComponent as na, addPatch as ia, apply as aa, applyHMRChanges as sa, applyPrototypeExtensions as la, beginListenDestroy as da, beginListenInstantiate as ca, binaryIdentifierCasts as ma, build_scene_functions as ga, builtinComponentKeyName as pa, calculateProgress01 as ua, clearMessages as Sa, clearMessages as Ca, colorSerializer as ya, compareAssociation as Ea, componentSerializer as Ra, copyTexture as ha, createMotion as fa, debugNet as va, debugOwner as Pa, decompressGpuTexture as Ta, deepClone as ba, delay as Aa, delayForFrames as Ma, deserializeObject as Ia, destroy as Oa, destroyComponentInstance as Da, determineMimeTypeFromExtension as xa, disposeObjectResources as ka, disposeStream as La, editorGuidKeyName as Na, enableSpatialConsole as Ba, euler as Fa, eventListSerializer as Ua, exportAsGLTF as wa, findByGuid as Ga, findObjectOfType as Wa, findObjectsOfType as Ha, findResourceUsers as Xa, fitObjectIntoVolume as za, foreachComponent as Va, foreachComponentEnumerator as _a, forward as ja, generateQRCode as Ka, generateSeed as Za, getBoundingBox as Qa, getCameraController as Ya, getComponent as $a, getComponentInChildren as Ja, getComponentInParent as qa, getComponents as es, getComponentsInChildren as ts, getComponentsInParent as os, getFormattedDate as rs, getIconElement as ns, getIconTexture as is, getLoader as as, getOrAddComponent as ss, getParam as ls, getParentHierarchyPath as ds, getPath as cs, getPeerOptions as ms, getPeerjsInstance as gs, getResourceUserCount as ps, getTempColor as us, getTempQuaternion as Ss, getTempVector as Cs, getUrlParams as ys, getVisibleInCustomShadowRendering as Es, getWorldDirection as Rs, getWorldEuler as hs, getWorldPosition as fs, getWorldQuaternion as vs, getWorldRotation as Ps, getWorldScale as Ts, hasCommercialLicense as bs, hasIndieLicense as As, hasPointerEventComponent as Ms, hasProLicense as Is, hideDebugConsole as Os, imageToCanvas as Ds, instantiate as xs, invokeLoadedImportPluginHooks as ks, invokeXRSessionEnd as Ls, invokeXRSessionStart as Ns, isActiveInHierarchy as Bs, isActiveSelf as Fs, isAndroidDevice as Us, isAnimationAction as ws, isComponent as Gs, isDebugMode as Ws, isDesktop as Hs, isDestroyed as Xs, isDevEnvironment as zs, isDisposed as Vs, isExporting as _s, isGLTFModel as js, isHostedOnGlitch as Ks, isHotReloadEnabled as Zs, isHotReloading as Qs, isIPad as Ys, isIconElement as $s, isLocalNetwork as Js, isMacOS as qs, isMobileDevice as el, isMozillaXR as tl, isQuest as ol, isResourceTrackingEnabled as rl, isSafari as nl, isUsingInstancing as il, isiOS as al, isiPad as sl, loadSync as ll, logHierarchy as dl, lookAtInverse as cl, lookAtObject as ml, lookAtScreenPoint as gl, makeId as pl, makeIdFromRandomWords as ul, makeNameSafe as Sl, markAsInstancedRendered as Cl, microphonePermissionsGranted as yl, nameof as El, nameofFactory as Rl, objectSerializer as hl, offXRSessionEnd as fl, offXRSessionStart as vl, onXRSessionEnd as Pl, onXRSessionStart as Tl, parseSync as bl, placeOnSurface as Al, postprocessFBXMaterials as Ml, prefix as Il, pushState as Ol, randomNumber as Dl, registerBinaryType as xl, registerComponent as kl, registerComponentExtension as Ll, registerCustomEffectType as Nl, registerExportExtensions as Bl, registerExtensions as Fl, registerHotReloadType as Ul, registerLoader as wl, registerPrefabProvider as Gl, registerPrototypeExtensions as Wl, registerType as Hl, relativePathPrefix as Xl, removeAttributeChangeCallback as zl, removeComponent as Vl, removeCustomImportExtensionType as _l, removePatch as jl, resolveUrl as Kl, sanitizeString as Zl, saveImage as Ql, screenshot as Yl, screenshot2 as $l, sendDestroyed as Jl, serializable as ql, serializeObject as ed, serializeable as td, setActive as od, setAllowBalloonMessages as rd, setAllowOverlayMessages as nd, setAutoFitEnabled as id, setCameraController as ad, setDestroyed as sd, setDevEnvironment as ld, setDisposable as dd, setDontDestroy as cd, setOrAddParamsToUrl as md, setParam as gd, setParamWithoutReload as pd, setPeerOptions as ud, setResourceTrackingEnabled as Sd, setState as Cd, setVisibleInCustomShadowRendering as yd, setWorldEuler as Ed, setWorldPosition as Rd, setWorldPositionXYZ as hd, setWorldQuaternion as fd, setWorldQuaternionXYZW as vd, setWorldRotation as Pd, setWorldRotationXYZ as Td, setWorldScale as bd, showBalloonError as Ad, showBalloonMessage as Md, showBalloonWarning as Id, showDebugConsole as Od, slerp as Dd, syncDestroy as xd, syncField as kd, syncInstantiate as Ld, textureToCanvas as Nd, tryCastBinary as Bd, tryDetermineMimetypeFromBinary as Fd, tryDetermineMimetypeFromURL as Ud, tryFindObject as wd, tryGetGuid as Gd, unregisterHotReloadType as Wd, unwatchWrite as Hd, useForAutoFit as Xd, validate as zd, watchWrite as Vd } from "./needle-engine.bundle-DALjvqho.js";
|
|
1
|
+
import { GameObject as r, onClear as a, onDestroy as s, onInitialized as l, onAfterRender as d, onBeforeRender as c, onUpdate as m, onStart as g, loadAsset as p, NeedleXRSession as u, Context as S, VERSION as C, Component as y, Components as E } from "./needle-engine.bundle-wtPHWC_F.js";
|
|
2
|
+
import { $physicsKey as T, ActionBuilder as b, ActionCollection as A, ActionModel as M, Addressables as I, AlignmentConstraint as O, AmbientMode as D, Animation as x, AnimationCurve as k, AnimationExtension as L, AnimationTrackHandler as N, AnimationUtils as B, Animator as F, AnimatorConditionMode as U, AnimatorController as w, AnimatorControllerParameterType as G, AnimatorStateInfo as W, Antialiasing as H, Application as X, AssetDatabase as z, AssetReference as V, AudioExtension as _, AudioListener as j, AudioSource as K, AudioTrackHandler as Z, Avatar as Q, AvatarBlink_Simple as Y, AvatarEyeLook_Rotation as $, AvatarLoader as J, AvatarMarker as q, AvatarModel as ee, Avatar_Brain_LookAt as te, Avatar_MouthShapes as oe, Avatar_MustacheShake as re, Avatar_POI as ne, Axes as ie, AxesHelper as ae, BUILD_TIME as se, BaseUIComponent as le, BasicIKConstraint as de, BehaviorExtension as ce, BehaviorModel as me, Component$1 as ge, BlobStorage as pe, BloomEffect as ue, BoxCollider as Se, BoxGizmo as Ce, BoxHelperComponent as ye, Button as Ee, ButtonsFactory as Re, CallDirection as he, CallInfo as fe, Camera as ve, CameraTargetReachedEvent as Pe, Canvas as Te, CanvasGroup as be, CapsuleCollider as Ae, ChangeMaterialOnClick as Me, ChangeTransformOnClick as Ie, CharacterController as Oe, CharacterControllerInput as De, ChromaticAberration as xe, CircularBuffer as ke, ClearFlags as Le, ClipExtrapolation as Ne, Collider as Be, Collision as Fe, CollisionDetectionMode as Ue, ColorAdjustments as we, ColorBySpeedModule as Ge, ColorOverLifetimeModule as We, Component$1 as He, ComponentLifecycleEvents as Xe, ConnectionEvents as ze, ContactPoint as Ve, ContactShadows as _e, ContextArgs as je, ContextEvent as Ke, ContextRegistry as Ze, ControlTrackHandler as Qe, CustomBranding as Ye, CustomShader as $e, DefaultReflectionMode as Je, Deletable as qe, DeleteBox as et, DepthOfField as tt, DeviceFlag as ot, DeviceUtilities as rt, DocumentExtension as nt, DragControls as it, DragMode as at, DropListener as st, Duplicatable as lt, EffectWrapper as dt, EmissionModule as ct, EmphasizeOnClick as mt, EngineLoadingView as gt, EnvironmentScene as pt, EventList as ut, EventListEvent as St, EventSystem as Ct, EventTrigger as yt, FieldWithDefault as Et, FileReference as Rt, FileReferenceSerializer as ht, FileSpawnModel as ft, File_Event as vt, FixedJoint as Pt, Fog as Tt, FrameEvent as bt, GENERATOR as At, Gizmos as Mt, GltfExport as It, GltfExportBox as Ot, Gradient as Dt, Graphic as xt, GraphicRaycaster as kt, Graphics as Lt, GridHelper as Nt, GridLayoutGroup as Bt, GroundProjectedEnv as Ft, GroupActionModel as Ut, HideFlags as wt, HideOnStart as Gt, HingeJoint as Wt, HorizontalLayoutGroup as Ht, HostData as Xt, Image as zt, ImageReference as Vt, ImageReferenceSerializer as _t, InheritVelocityModule as jt, Input as Kt, InputEventQueue as Zt, InputEvents as Qt, InputField as Yt, InstanceHandle as $t, InstancingHandler as Jt, InstancingUtil as qt, InstantiateEvent as eo, InstantiateIdProvider as to, InstantiateOptions as oo, Interactable as ro, InternalScreenshotUtils as no, JoinedRoomResponse as io, KeyEventArgs as ao, Keyframe as so, LODGroup as lo, LODModel as co, LeftRoomResponse as mo, Light as go, LightData as po, LimitVelocityOverLifetimeModule as uo, LoadingElementOptions as So, LogStats as Co, LogType as yo, LookAt as Eo, LookAtConstraint as Ro, MainModule as ho, MarkerType as fo, MaskableGraphic as vo, Mathf as Po, MeshCollider as To, MeshRenderer as bo, MinMaxCurve as Ao, MinMaxGradient as Mo, MODULES as Io, NEKeyboardEvent as Oo, NEPointerEvent as Do, NeedleButtonElement as xo, ContextRegistry as ko, NeedleEngineModelLoader as Lo, NeedleEngineWebComponent as No, NeedleMenu as Bo, NeedlePatchesKey as Fo, USDZExporter$1 as Uo, NeedleXRController as wo, NeedleXRSync as Go, NeedleXRUtils as Wo, NestedGltf as Ho, NetworkConnection as Xo, NetworkedStreamEvents as zo, NetworkedStreams as Vo, Networking as _o, NewInstanceModel as jo, NoiseModule as Ko, ObjectRaycaster as Zo, ObjectUtils as Qo, OffsetConstraint as Yo, OneEuroFilter as $o, OneEuroFilterXYZ as Jo, OpenURL as qo, OrbitControls as er, Outline as tr, OwnershipEvent as or, OwnershipModel as rr, PUBLIC_KEY as nr, Padding as ir, ParticleBurst as ar, ParticleSubEmitter as sr, ParticleSystem as lr, ParticleSystemBaseBehaviour as dr, ParticleSystemRenderer as cr, ParticleSystemShapeType as mr, PeerHandle as gr, PeerNetworking as pr, Physics as ur, PhysicsExtension as Sr, PhysicsMaterialCombine as Cr, PixelationEffect as yr, PlayAnimationOnClick as Er, PlayAudioOnClick as Rr, PlayableDirector as hr, PlayerColor as fr, PlayerState as vr, PlayerStateEvent as Pr, PlayerSync as Tr, PlayerView as br, PlayerViewManager as Ar, PointerEventData as Mr, PointerType as Ir, PostProcessingEffect as Or, PostProcessingEffectOrder as Dr, PostProcessingHandler as xr, Volume as kr, PreliminaryAction as Lr, PreliminaryTrigger as Nr, PreviewHelper as Br, PrimitiveType as Fr, Progress as Ur, PromiseAllWithErrors as wr, PromiseErrorResult as Gr, RGBAColor as Wr, RapierPhysics as Hr, RawImage as Xr, RaycastOptions as zr, Rect as Vr, RectTransform as _r, ReflectionProbe as jr, RegisteredAnimationInfo as Kr, RemoteSkybox as Zr, RenderTexture as Qr, RenderTextureSerializer as Yr, Renderer as $r, RendererData as Jr, RendererLightmap as qr, Rigidbody as en, RigidbodyConstraints as tn, RoomEvents as on, RotationBySpeedModule as rn, RotationOverLifetimeModule as nn, SceneLightSettings as an, SceneSwitcher as sn, ScreenCapture as ln, ScreenSpaceAmbientOcclusion as dn, ScreenSpaceAmbientOcclusionN8 as cn, SendQueue as mn, SerializationContext as gn, SetActiveOnClick as pn, ShadowCatcher as un, ShapeModule as Sn, SharpeningEffect as Cn, SignalAsset as yn, SignalReceiver as En, SignalReceiverEvent as Rn, SignalTrackHandler as hn, Size as fn, SizeBySpeedModule as vn, SizeOverLifetimeModule as Pn, SkinnedMeshRenderer as Tn, SmoothFollow as bn, SpatialGrabRaycaster as An, SpatialHtml as Mn, SpatialTrigger as In, SpatialTriggerReceiver as On, SpectatorCamera as Dn, SphereCollider as xn, SphereIntersection as kn, SphereOverlapResult as Ln, Sprite as Nn, SpriteData as Bn, SpriteRenderer as Fn, SpriteSheet as Un, StateMachineBehaviour as wn, StreamEndedEvent as Gn, StreamReceivedEvent as Wn, SubEmitterSystem as Hn, SyncedCamera as Xn, SyncedRoom as zn, SyncedTransform as Vn, TapGestureTrigger as _n, TeleportTarget as jn, TestRunner as Kn, TestSceneUtils as Zn, TestSimulateUserData as Qn, Text as Yn, TextBuilder as $n, TextExtension as Jn, TextureSheetAnimationModule as qn, TiltShiftEffect as ei, Time as ti, ToneMappingEffect as oi, TrackHandler as ri, TrackType as ni, TrailModule as ii, TransformData as ai, TransformGizmo as si, TriggerBuilder as li, TriggerModel as di, TypeStore as ci, UIRaycastUtils as mi, UIRootComponent as gi, USDDocument as pi, USDObject as ui, USDWriter as Si, USDZExporter as Ci, USDZText as yi, USDZUIExtension as Ei, UriSerializer as Ri, UsageMarker as hi, UserJoinedOrLeftRoomModel as fi, VariantAction as vi, VelocityOverLifetimeModule as Pi, VerticalLayoutGroup as Ti, VideoPlayer as bi, ViewDevice as Ai, Vignette as Mi, VisibilityAction as Ii, Voip as Oi, Volume as Di, VolumeParameter as xi, VolumeProfile as ki, WaitForFrames as Li, WaitForPromise as Ni, WaitForSeconds as Bi, Watch as Fi, WebARCameraBackground as Ui, WebARSessionRoot as wi, WebXR as Gi, WebXRButtonFactory as Wi, WebXRImageTracking as Hi, WebXRImageTrackingModel as Xi, WebXRPlaneTracking as zi, WebXRTrackedImage as Vi, XRControllerFollow as _i, XRControllerModel as ji, XRControllerMovement as Ki, XRFlag as Zi, XRRig as Qi, XRState as Yi, XRStateFlag as $i, __Ignore as Ji, __internalNotifyObjectDestroyed as qi, activeInHierarchyFieldName as ea, addAttributeChangeCallback as ta, addComponent as oa, addCustomExtensionPlugin as ra, addNewComponent as na, addPatch as ia, apply as aa, applyHMRChanges as sa, applyPrototypeExtensions as la, beginListenDestroy as da, beginListenInstantiate as ca, binaryIdentifierCasts as ma, build_scene_functions as ga, builtinComponentKeyName as pa, calculateProgress01 as ua, clearMessages as Sa, clearMessages as Ca, colorSerializer as ya, compareAssociation as Ea, componentSerializer as Ra, copyTexture as ha, createMotion as fa, debugNet as va, debugOwner as Pa, decompressGpuTexture as Ta, deepClone as ba, delay as Aa, delayForFrames as Ma, deserializeObject as Ia, destroy as Oa, destroyComponentInstance as Da, determineMimeTypeFromExtension as xa, disposeObjectResources as ka, disposeStream as La, editorGuidKeyName as Na, enableSpatialConsole as Ba, euler as Fa, eventListSerializer as Ua, exportAsGLTF as wa, findByGuid as Ga, findObjectOfType as Wa, findObjectsOfType as Ha, findResourceUsers as Xa, fitObjectIntoVolume as za, foreachComponent as Va, foreachComponentEnumerator as _a, forward as ja, generateQRCode as Ka, generateSeed as Za, getBoundingBox as Qa, getCameraController as Ya, getComponent as $a, getComponentInChildren as Ja, getComponentInParent as qa, getComponents as es, getComponentsInChildren as ts, getComponentsInParent as os, getFormattedDate as rs, getIconElement as ns, getIconTexture as is, getLoader as as, getOrAddComponent as ss, getParam as ls, getParentHierarchyPath as ds, getPath as cs, getPeerOptions as ms, getPeerjsInstance as gs, getResourceUserCount as ps, getTempColor as us, getTempQuaternion as Ss, getTempVector as Cs, getUrlParams as ys, getVisibleInCustomShadowRendering as Es, getWorldDirection as Rs, getWorldEuler as hs, getWorldPosition as fs, getWorldQuaternion as vs, getWorldRotation as Ps, getWorldScale as Ts, hasCommercialLicense as bs, hasIndieLicense as As, hasPointerEventComponent as Ms, hasProLicense as Is, hideDebugConsole as Os, imageToCanvas as Ds, instantiate as xs, invokeLoadedImportPluginHooks as ks, invokeXRSessionEnd as Ls, invokeXRSessionStart as Ns, isActiveInHierarchy as Bs, isActiveSelf as Fs, isAndroidDevice as Us, isAnimationAction as ws, isComponent as Gs, isDebugMode as Ws, isDesktop as Hs, isDestroyed as Xs, isDevEnvironment as zs, isDisposed as Vs, isExporting as _s, isGLTFModel as js, isHostedOnGlitch as Ks, isHotReloadEnabled as Zs, isHotReloading as Qs, isIPad as Ys, isIconElement as $s, isLocalNetwork as Js, isMacOS as qs, isMobileDevice as el, isMozillaXR as tl, isQuest as ol, isResourceTrackingEnabled as rl, isSafari as nl, isUsingInstancing as il, isiOS as al, isiPad as sl, loadSync as ll, logHierarchy as dl, lookAtInverse as cl, lookAtObject as ml, lookAtScreenPoint as gl, makeId as pl, makeIdFromRandomWords as ul, makeNameSafe as Sl, markAsInstancedRendered as Cl, microphonePermissionsGranted as yl, nameof as El, nameofFactory as Rl, objectSerializer as hl, offXRSessionEnd as fl, offXRSessionStart as vl, onXRSessionEnd as Pl, onXRSessionStart as Tl, parseSync as bl, placeOnSurface as Al, postprocessFBXMaterials as Ml, prefix as Il, pushState as Ol, randomNumber as Dl, registerBinaryType as xl, registerComponent as kl, registerComponentExtension as Ll, registerCustomEffectType as Nl, registerExportExtensions as Bl, registerExtensions as Fl, registerHotReloadType as Ul, registerLoader as wl, registerPrefabProvider as Gl, registerPrototypeExtensions as Wl, registerType as Hl, relativePathPrefix as Xl, removeAttributeChangeCallback as zl, removeComponent as Vl, removeCustomImportExtensionType as _l, removePatch as jl, resolveUrl as Kl, sanitizeString as Zl, saveImage as Ql, screenshot as Yl, screenshot2 as $l, sendDestroyed as Jl, serializable as ql, serializeObject as ed, serializeable as td, setActive as od, setAllowBalloonMessages as rd, setAllowOverlayMessages as nd, setAutoFitEnabled as id, setCameraController as ad, setDestroyed as sd, setDevEnvironment as ld, setDisposable as dd, setDontDestroy as cd, setOrAddParamsToUrl as md, setParam as gd, setParamWithoutReload as pd, setPeerOptions as ud, setResourceTrackingEnabled as Sd, setState as Cd, setVisibleInCustomShadowRendering as yd, setWorldEuler as Ed, setWorldPosition as Rd, setWorldPositionXYZ as hd, setWorldQuaternion as fd, setWorldQuaternionXYZW as vd, setWorldRotation as Pd, setWorldRotationXYZ as Td, setWorldScale as bd, showBalloonError as Ad, showBalloonMessage as Md, showBalloonWarning as Id, showDebugConsole as Od, slerp as Dd, syncDestroy as xd, syncField as kd, syncInstantiate as Ld, textureToCanvas as Nd, tryCastBinary as Bd, tryDetermineMimetypeFromBinary as Fd, tryDetermineMimetypeFromURL as Ud, tryFindObject as wd, tryGetGuid as Gd, unregisterHotReloadType as Wd, unwatchWrite as Hd, useForAutoFit as Xd, validate as zd, watchWrite as Vd } from "./needle-engine.bundle-wtPHWC_F.js";
|
|
3
3
|
import { NEEDLE_progressive as jd } from "./gltf-progressive-CCddD-3B.js";
|
|
4
4
|
import { THREE as R } from "./three-DrqIzZTH.js";
|
|
5
5
|
const t = {
|