@needle-tools/engine 4.1.0-beta.4 → 4.1.0-beta.6

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +28 -18
  2. package/components.needle.json +1 -1
  3. package/dist/needle-engine.bundle.js +2700 -2688
  4. package/dist/needle-engine.bundle.light.js +2699 -2687
  5. package/dist/needle-engine.bundle.light.min.js +110 -110
  6. package/dist/needle-engine.bundle.light.umd.cjs +101 -101
  7. package/dist/needle-engine.bundle.min.js +110 -110
  8. package/dist/needle-engine.bundle.umd.cjs +113 -113
  9. package/dist/needle-engine.d.ts +136 -0
  10. package/dist/needle-engine.js +202 -201
  11. package/dist/needle-engine.light.d.ts +136 -0
  12. package/dist/needle-engine.light.js +202 -201
  13. package/dist/needle-engine.light.min.js +1 -1
  14. package/dist/needle-engine.light.umd.cjs +1 -1
  15. package/dist/needle-engine.min.js +1 -1
  16. package/dist/needle-engine.umd.cjs +1 -1
  17. package/dist/three-examples.js +2795 -2436
  18. package/dist/three-examples.light.js +2795 -2436
  19. package/dist/three-examples.light.min.js +47 -15
  20. package/dist/three-examples.light.umd.cjs +47 -15
  21. package/dist/three-examples.min.js +47 -15
  22. package/dist/three-examples.umd.cjs +47 -15
  23. package/dist/three.js +67 -62
  24. package/dist/three.light.js +67 -62
  25. package/dist/three.light.min.js +170 -170
  26. package/dist/three.light.umd.cjs +170 -170
  27. package/dist/three.min.js +170 -170
  28. package/dist/three.umd.cjs +170 -170
  29. package/dist/vendor.js +1 -1
  30. package/dist/vendor.light.js +1 -1
  31. package/dist/vendor.light.min.js +1 -1
  32. package/dist/vendor.min.js +1 -1
  33. package/lib/engine/engine_context.d.ts +1 -0
  34. package/lib/engine/engine_context.js +1 -0
  35. package/lib/engine/engine_context.js.map +1 -1
  36. package/lib/engine/engine_physics_rapier.d.ts +1 -1
  37. package/lib/engine/engine_physics_rapier.js +17 -12
  38. package/lib/engine/engine_physics_rapier.js.map +1 -1
  39. package/lib/engine/engine_scenetools.js +6 -2
  40. package/lib/engine/engine_scenetools.js.map +1 -1
  41. package/lib/engine/engine_types.d.ts +1 -1
  42. package/lib/engine-components/Collider.js +4 -5
  43. package/lib/engine-components/Collider.js.map +1 -1
  44. package/lib/engine-components/RigidBody.js +2 -2
  45. package/lib/engine-components/RigidBody.js.map +1 -1
  46. package/lib/engine-components/export/usdz/ThreeUSDZExporter.d.ts +1 -1
  47. package/lib/engine-components/export/usdz/ThreeUSDZExporter.js +1 -1
  48. package/lib/engine-components/export/usdz/index.d.ts +1 -1
  49. package/lib/engine-components/export/usdz/index.js +1 -1
  50. package/lib/engine-components/export/usdz/index.js.map +1 -1
  51. package/lib/engine-components/particlesystem/ParticleSystem.d.ts +5 -6
  52. package/lib/engine-components/particlesystem/ParticleSystem.js +23 -9
  53. package/lib/engine-components/particlesystem/ParticleSystem.js.map +1 -1
  54. package/lib/engine-components/particlesystem/ParticleSystemModules.js +7 -1
  55. package/lib/engine-components/particlesystem/ParticleSystemModules.js.map +1 -1
  56. package/package.json +11 -5
  57. package/src/engine/engine_context.ts +2 -0
  58. package/src/engine/engine_physics_rapier.ts +20 -10
  59. package/src/engine/engine_scenetools.ts +6 -2
  60. package/src/engine/engine_types.ts +1 -1
  61. package/src/engine-components/Collider.ts +4 -4
  62. package/src/engine-components/RigidBody.ts +2 -2
  63. package/src/engine-components/export/usdz/ThreeUSDZExporter.ts +1 -1
  64. package/src/engine-components/export/usdz/index.ts +1 -1
  65. package/src/engine-components/particlesystem/ParticleSystem.ts +26 -10
  66. package/src/engine-components/particlesystem/ParticleSystemModules.ts +9 -2
@@ -0,0 +1,136 @@
1
+ export { }
2
+
3
+
4
+ declare global {
5
+ interface NavigatorUAData {
6
+ platform: string;
7
+ }
8
+ interface Navigator {
9
+ userAgentData?: NavigatorUAData;
10
+ }
11
+ }
12
+
13
+ declare module 'three' {
14
+ interface SkinnedMesh {
15
+ staticGenerator?: StaticGeometryGenerator;
16
+ staticGeometry?: BufferGeometry;
17
+ staticGeometryLastUpdate?: number;
18
+ }
19
+ interface Mesh {
20
+ acceleratedRaycast?: any;
21
+ }
22
+ interface SkinnedMesh {
23
+ autoUpdateMeshBVH?: boolean;
24
+ bvhNeedsUpdate?: boolean;
25
+ }
26
+ }
27
+
28
+ declare module 'three' {
29
+ interface Object3D {
30
+ get guid(): string | undefined;
31
+ set guid(value: string | undefined);
32
+ /**
33
+ * Add a Needle Engine component to the {@link Object3D}.
34
+ * @param comp The component instance or constructor to add.
35
+ * @param init Optional initialization data for the component.
36
+ * @returns The added component instance.
37
+ * @example Directly pass in constructor and properties:
38
+ * ```ts
39
+ * const obj = new Object3D();
40
+ * obj.addComponent(MyComponent, { myProperty: 42 });
41
+ * ```
42
+ * @example Create a component instance, assign properties and then add it:
43
+ * ```ts
44
+ * const obj = new Object3D();
45
+ * const comp = new MyComponent();
46
+ * comp.myProperty = 42;
47
+ * obj.addComponent(comp);
48
+ * ```
49
+ */
50
+ addComponent<T extends IComponent>(comp: T | ConstructorConcrete<T>, init?: ComponentInit<T>): T;
51
+ /**
52
+ * Remove a Needle Engine component from the {@link Object3D}.
53
+ */
54
+ removeComponent(inst: IComponent): IComponent;
55
+ /**
56
+ * Get or add a Needle Engine component to the Object3D.
57
+ * If the component already exists, it will be returned. Otherwise, a new component will be added.
58
+ * @param typeName The component constructor to get or add.
59
+ * @param init Optional initialization data for the component.
60
+ * @returns The component instance.
61
+ */
62
+ getOrAddComponent<T extends IComponent>(typeName: ConstructorConcrete<T>, init?: ComponentInit<T>): T;
63
+ /**
64
+ * Get a Needle Engine component from the {@link Object3D}.
65
+ * @returns The component instance or null if not found.
66
+ */
67
+ getComponent<T extends IComponent>(type: Constructor<T>): T | null;
68
+ /**
69
+ * Get all components of a specific type from the {@link Object3D}.
70
+ * @param arr Optional array to fill with the found components.
71
+ * @returns An array of components.
72
+ */
73
+ getComponents<T extends IComponent>(type: Constructor<T>, arr?: []): T[];
74
+ /**
75
+ * Get a Needle Engine component from the {@link Object3D} or its children. This will search on the current Object and all its children.
76
+ * @returns The component instance or null if not found.
77
+ */
78
+ getComponentInChildren<T extends IComponent>(type: Constructor<T>): T | null;
79
+ /**
80
+ * Get all components of a specific type from the {@link Object3D} or its children. This will search on the current Object and all its children.
81
+ * @param arr Optional array to fill with the found components.
82
+ * @returns An array of components.
83
+ */
84
+ getComponentsInChildren<T extends IComponent>(type: Constructor<T>, arr?: []): T[];
85
+ /**
86
+ * Get a Needle Engine component from the {@link Object3D} or its parents. This will search on the current Object and all its parents.
87
+ * @returns The component instance or null if not found.
88
+ */
89
+ getComponentInParent<T extends IComponent>(type: Constructor<T>): T | null;
90
+ /**
91
+ * Get all Needle Engine components of a specific type from the {@link Object3D} or its parents. This will search on the current Object and all its parents.
92
+ * @param arr Optional array to fill with the found components.
93
+ * @returns An array of components.
94
+ */
95
+ getComponentsInParent<T extends IComponent>(type: Constructor<T>, arr?: []): T[];
96
+ /**
97
+ * Destroys the {@link Object3D} and all its Needle Engine components.
98
+ */
99
+ destroy(): void;
100
+ /**
101
+ * Get or set the world position of the {@link Object3D}.
102
+ * Added by Needle Engine.
103
+ */
104
+ worldPosition: Vector3;
105
+ /**
106
+ * Get or set the world quaternion of the {@link Object3D}.
107
+ * Added by Needle Engine.
108
+ */
109
+ worldQuaternion: Quaternion;
110
+ /**
111
+ * Get or set the world rotation of the {@link Object3D}.
112
+ * Added by Needle Engine.
113
+ */
114
+ worldRotation: Vector3;
115
+ /**
116
+ * Get or set the world scale of the {@link Object3D}.
117
+ * Added by Needle Engine.
118
+ */
119
+ worldScale: Vector3;
120
+ /**
121
+ * Get the world forward vector of the {@link Object3D}.
122
+ * Added by Needle Engine.
123
+ */
124
+ get worldForward(): Vector3;
125
+ /**
126
+ * Get the world right vector of the {@link Object3D}.
127
+ * Added by Needle Engine.
128
+ */
129
+ get worldRight(): Vector3;
130
+ /**
131
+ * Get the world up vector of the {@link Object3D}.
132
+ * Added by Needle Engine.
133
+ */
134
+ get worldUp(): Vector3;
135
+ }
136
+ }
@@ -1,6 +1,6 @@
1
1
  import { G as t, V as n, C as i, N as l, l as d, o as c, a as g, b as m, c as p, d as h } from "./needle-engine.bundle.light.js";
2
- import { cW as v, fq as P, f7 as A, fp as T, F as I, ep as M, bY as O, eq as D, es as L, f5 as x, gY as k, A as N, et as B, e0 as F, eu as G, e1 as w, d_ as U, gd as W, R as H, Q as X, S as z, H as V, f8 as _, ev as j, ew as K, gZ as Q, hv as Z, eB as Y, eC as J, eE as $, hD as q, eD as ee, ey as ae, ez as se, eA as te, ex as oe, bT as re, eF as ne, ag as ie, h1 as le, eG as de, f9 as ce, fl as ge, el as me, bh as pe, ge as he, eN as fe, fA as be, eH as ue, h3 as Se, e6 as Ce, bD as ye, eZ as Ee, eI as Re, fP as ve, h4 as Pe, h5 as Ae, eP as Te, fb as Ie, fa as Me, eJ as Oe, eK as De, gf as Le, d1 as xe, em as ke, hU as Ne, eL as Be, cY as Fe, bR as Ge, gg as we, ga as Ue, f_ as We, el as He, ae as Xe, b9 as ze, cX as Ve, eQ as _e, am as je, ap as Ke, aq as Qe, g$ as Ze, fx as Ye, dS as Je, bZ as $e, eT as qe, eS as ea, gh as aa, eU as sa, dn as ta, fs as oa, eV as ra, en as na, eX as ia, eW as la, eY as da, gi as ca, fZ as ga, fe as ma, az as pa, e$ as ha, e_ as fa, h6 as ba, f0 as ua, gv as Sa, O as Ca, P as ya, bj as Ea, bi as Ra, fF as va, fz as Pa, an as Aa, af as Ta, f as Ia, f2 as Ma, f1 as Oa, c2 as Da, c1 as La, fU as xa, h7 as ka, hj as Na, cJ as Ba, fB as Fa, hf as Ga, fC as wa, fo as Ua, aA as Wa, fd as Ha, fG as Xa, he as za, bq as Va, h9 as _a, J as ja, K as Ka, g8 as Qa, a$ as Za, a_ as Ya, aW as Ja, hb as $a, gA as qa, gz as es, I as as, bm as ss, bl as ts, aB as os, fE as rs, dN as ns, bb as is, aZ as ls, er as ds, fJ as cs, fI as gs, bc as ms, fH as ps, b$ as hs, g7 as fs, ax as bs, eR as us, L as Ss, hr as Cs, fK as ys, fX as Es, hV as Rs, h8 as vs, b4 as Ps, eO as As, gx as Ts, fV as Is, fW as Ms, M as Os, aY as Ds, aX as Ls, e7 as xs, aq as ks, aw as Ns, c0 as Bs, fL as Fs, bM as Gs, hN as ws, ei as Us, ej as Ws, ek as Hs, fM as Xs, bg as zs, bA as Vs, bF as _s, fN as js, br as Ks, g1 as Qs, hi as Zs, av as Ys, fO as Js, b5 as $s, b6 as qs, hs as et, fQ as at, hg as st, be as tt, bf as ot, ah as rt, hc as nt, fY as it, gb as lt, fS as dt, hZ as ct, fR as gt, h_ as mt, bE as pt, bz as ht, bP as ft, fr as bt, bQ as ut, gj as St, fg as Ct, ff as yt, gU as Et, gc as Rt, i1 as vt, i0 as Pt, h$ as At, bW as Tt, bX as It, hh as Mt, aV as Ot, hR as Dt, gq as Lt, gr as xt, fh as kt, fi as Nt, bk as Bt, au as Ft, cU as Gt, dG as wt, dF as Ut, e5 as Wt, bU as Ht, ha as Xt, bN as zt, hn as Vt, ho as _t, gu as jt, f3 as Kt, gG as Qt, ck as Zt, ch as Yt, gw as Jt, b_ as $t, gB as qt, gC as eo, bS as ao, ba as so, g6 as to, g5 as oo, dR as ro, gD as no, gE as io, gk as lo, gl as co, bH as go, c8 as mo, fc as po, gF as ho, g0 as fo, gm as bo, gV as uo, gX as So, gW as Co, g_ as yo, hm as Eo, g9 as Ro, f$ as vo, gy as Po, gH as Ao, hk as To, hp as Io, gJ as Mo, gI as Oo, gK as Do, eM as Lo, bO as xo, cZ as ko, gL as No, gN as Bo, gO as Fo, gM as Go, dZ as wo, bB as Uo, bC as Wo, fT as Ho, gP as Xo, gQ as zo, gR as Vo, fk as _o, hz as jo, gS as Ko, cj as Qo, gT as Zo, hq as Yo, fu as Jo, fv as $o, g4 as qo, gn as er, cS as ar, go as sr, hW as tr, hT as or, g2 as rr, f4 as nr, h0 as ir, fn as lr, fm as dr, T as cr, hl as gr, h2 as mr, hO as pr, hP as hr, hQ as fr, fy as br, ft as ur, fw as Sr, ci as Cr, fD as yr, bd as Er, f6 as Rr, g3 as vr, hd as Pr, ht as Ar, bV as Tr, gp as Ir, fj as Mr, hu as Or, gr as Dr, gs as Lr, gt as xr, as as kr, at as Nr, ar as Br, dk as Fr, hA as Gr, hB as wr, hC as Ur, e8 as Wr, hG as Hr, hF as Xr, hH as zr, hE as Vr, hw as _r, hx as jr, hy as Kr, hK as Qr, hI as Zr, hJ as Yr, hY as Jr, eo as $r, _ as qr, ai as en, dD as an, a4 as sn, dT as tn, c3 as on, a3 as rn, bK as nn, e4 as ln, aU as dn, e2 as cn, bp as gn, bu as mn, i2 as pn, al as hn, aj as fn, ay as bn, m as un, m as Sn, cc as Cn, dQ as yn, cf as En, cK as Rn, c5 as vn, d$ as Pn, b7 as An, b8 as Tn, de as In, df as Mn, dg as On, c7 as Dn, aL as Ln, a5 as xn, Z as kn, bG as Nn, ak as Bn, B as Fn, cd as Gn, cg as wn, dP as Un, aH as Wn, ac as Hn, ad as Xn, $ as zn, cP as Vn, aM as _n, aN as jn, cz as Kn, dH as Qn, bt as Zn, cO as Yn, g as Jn, a6 as $n, a8 as qn, aa as ei, a7 as ai, a9 as si, ab as ti, cT as oi, e9 as ri, eb as ni, dB as ii, dC as li, dA as di, aP as ci, a2 as gi, d3 as mi, cH as pi, di as hi, bw as fi, by as bi, a0 as ui, cp as Si, cq as Ci, co as yi, d2 as Ei, cN as Ri, cA as vi, cB as Pi, cr as Ai, cu as Ti, cD as Ii, cx as Mi, h as Oi, i as Di, hX as Li, j as xi, E as ki, hL as Ni, aO as Bi, dY as Fi, eh as Gi, eg as wi, aE as Ui, aC as Wi, dt as Hi, cI as Xi, cV as zi, d0 as Vi, dp as _i, aI as ji, y as Ki, Y as Qi, dO as Zi, bJ as Yi, aR as Ji, dr as $i, ea as qi, bI as el, dv as al, dq as sl, du as tl, dy as ol, W as rl, dx as nl, aG as il, dw as ll, ds as dl, cG as cl, cm as gl, cn as ml, d9 as pl, db as hl, hM as fl, aF as bl, dz as ul, c$ as Sl, c_ as Cl, ce as yl, ef as El, ed as Rl, b3 as vl, b1 as Pl, b2 as Al, b0 as Tl, ee as Il, ec as Ml, c6 as Ol, cQ as Dl, cR as Ll, p as xl, d7 as kl, da as Nl, i3 as Bl, ao as Fl, dV as Gl, hS as wl, dX as Ul, dW as Wl, aS as Hl, aQ as Xl, bv as zl, e3 as Vl, r as _l, dh as jl, dE as Kl, a1 as Ql, dU as Zl, c4 as Yl, bL as Jl, dj as $l, dc as ql, dM as ed, dK as ad, dL as sd, bo as td, ca as od, c9 as rd, cb as nd, aD as id, n as ld, q as dd, s as cd, e as gd, aJ as md, z as pd, X as hd, aK as fd, d6 as bd, d4 as ud, d5 as Sd, bx as Cd, U as yd, d8 as Ed, cM as Rd, cC as vd, cs as Pd, ct as Ad, cv as Td, cw as Id, cE as Md, cF as Od, cy as Dd, x as Ld, t as xd, w as kd, D as Nd, cl as Bd, bn as Fd, k as Gd, bs as wd, cL as Ud, i4 as Wd, dJ as Hd, dI as Xd, dd as zd, i5 as Vd, aT as _d, dm as jd, u as Kd, v as Qd, dl as Zd } from "./needle-engine.bundle.light.js";
3
- import { N as Jd } from "./gltf-progressive.light.js";
2
+ import { cW as v, fq as P, f7 as T, fp as A, F as I, ep as M, bY as O, eq as D, es as L, f5 as x, gY as k, A as N, et as B, e0 as F, eu as G, e1 as w, d_ as U, gd as W, R as H, Q as X, S as z, H as V, f8 as _, ev as j, ew as K, gZ as Q, hv as Z, eB as Y, eC as J, eE as $, hD as q, eD as ee, ey as ae, ez as se, eA as te, ex as oe, bT as re, eF as ne, ag as ie, h1 as le, eG as de, f9 as ce, fl as ge, el as me, bh as pe, ge as he, eN as fe, fA as be, eH as ue, h3 as Se, e6 as Ce, bD as ye, eZ as Ee, eI as Re, fP as ve, h4 as Pe, h5 as Te, eP as Ae, fb as Ie, fa as Me, eJ as Oe, eK as De, gf as Le, d1 as xe, em as ke, hV as Ne, eL as Be, cY as Fe, bR as Ge, gg as we, ga as Ue, f_ as We, el as He, ae as Xe, b9 as ze, cX as Ve, eQ as _e, am as je, ap as Ke, aq as Qe, g$ as Ze, fx as Ye, dS as Je, bZ as $e, eT as qe, eS as ea, gh as aa, eU as sa, dn as ta, fs as oa, eV as ra, en as na, eX as ia, eW as la, eY as da, gi as ca, fZ as ga, fe as ma, az as pa, e$ as ha, e_ as fa, h6 as ba, f0 as ua, gv as Sa, O as Ca, P as ya, bj as Ea, bi as Ra, fF as va, fz as Pa, an as Ta, af as Aa, f as Ia, f2 as Ma, f1 as Oa, c2 as Da, c1 as La, fU as xa, h7 as ka, hj as Na, cJ as Ba, fB as Fa, hf as Ga, fC as wa, fo as Ua, aA as Wa, fd as Ha, fG as Xa, he as za, bq as Va, h9 as _a, J as ja, K as Ka, g8 as Qa, a$ as Za, a_ as Ya, aW as Ja, hb as $a, gA as qa, gz as es, I as as, bm as ss, bl as ts, aB as os, fE as rs, dN as ns, bb as is, aZ as ls, er as ds, fJ as cs, fI as gs, bc as ms, fH as ps, b$ as hs, g7 as fs, ax as bs, eR as us, L as Ss, hr as Cs, fK as ys, fX as Es, hW as Rs, h8 as vs, b4 as Ps, eO as Ts, gx as As, fV as Is, fW as Ms, M as Os, aY as Ds, aX as Ls, e7 as xs, aq as ks, aw as Ns, c0 as Bs, fL as Fs, bM as Gs, hO as ws, ei as Us, ej as Ws, ek as Hs, fM as Xs, bg as zs, bA as Vs, bF as _s, fN as js, br as Ks, g1 as Qs, hi as Zs, av as Ys, fO as Js, b5 as $s, b6 as qs, hs as et, fQ as at, hg as st, be as tt, bf as ot, ah as rt, hc as nt, fY as it, gb as lt, fS as dt, h_ as ct, fR as gt, h$ as mt, bE as pt, bz as ht, bP as ft, fr as bt, bQ as ut, gj as St, fg as Ct, ff as yt, gU as Et, gc as Rt, i2 as vt, i1 as Pt, i0 as Tt, bW as At, bX as It, hh as Mt, aV as Ot, hS as Dt, gq as Lt, gr as xt, fh as kt, fi as Nt, bk as Bt, au as Ft, cU as Gt, dG as wt, dF as Ut, e5 as Wt, bU as Ht, ha as Xt, bN as zt, hn as Vt, ho as _t, gu as jt, f3 as Kt, gG as Qt, ck as Zt, ch as Yt, gw as Jt, b_ as $t, gB as qt, gC as eo, bS as ao, ba as so, g6 as to, g5 as oo, dR as ro, gD as no, gE as io, gk as lo, gl as co, bH as go, c8 as mo, fc as po, gF as ho, g0 as fo, gm as bo, gV as uo, gX as So, gW as Co, g_ as yo, hm as Eo, g9 as Ro, f$ as vo, gy as Po, gH as To, hk as Ao, hp as Io, gJ as Mo, gI as Oo, gK as Do, eM as Lo, bO as xo, cZ as ko, gL as No, gN as Bo, gO as Fo, gM as Go, dZ as wo, bB as Uo, bC as Wo, fT as Ho, gP as Xo, gQ as zo, gR as Vo, fk as _o, hz as jo, gS as Ko, cj as Qo, gT as Zo, hq as Yo, fu as Jo, fv as $o, g4 as qo, gn as er, cS as ar, go as sr, hX as tr, hU as or, g2 as rr, f4 as nr, h0 as ir, fn as lr, fm as dr, T as cr, hl as gr, h2 as mr, hP as pr, hQ as hr, hR as fr, fy as br, ft as ur, fw as Sr, ci as Cr, fD as yr, bd as Er, f6 as Rr, g3 as vr, hd as Pr, ht as Tr, bV as Ar, gp as Ir, fj as Mr, hu as Or, gr as Dr, gs as Lr, gt as xr, as as kr, at as Nr, ar as Br, dk as Fr, hA as Gr, hB as wr, hC as Ur, e8 as Wr, hG as Hr, hF as Xr, hH as zr, hE as Vr, hw as _r, hx as jr, hy as Kr, hK as Qr, hI as Zr, hJ as Yr, hZ as Jr, eo as $r, _ as qr, ai as en, dD as an, a4 as sn, dT as tn, c3 as on, a3 as rn, bK as nn, e4 as ln, aU as dn, e2 as cn, bp as gn, bu as mn, i3 as pn, al as hn, aj as fn, ay as bn, m as un, m as Sn, cc as Cn, dQ as yn, cf as En, cK as Rn, c5 as vn, d$ as Pn, b7 as Tn, b8 as An, hL as In, de as Mn, df as On, dg as Dn, c7 as Ln, aL as xn, a5 as kn, Z as Nn, bG as Bn, ak as Fn, B as Gn, cd as wn, cg as Un, dP as Wn, aH as Hn, ac as Xn, ad as zn, $ as Vn, cP as _n, aM as jn, aN as Kn, cz as Qn, dH as Zn, bt as Yn, cO as Jn, g as $n, a6 as qn, a8 as ei, aa as ai, a7 as si, a9 as ti, ab as oi, cT as ri, e9 as ni, eb as ii, dB as li, dC as di, dA as ci, aP as gi, a2 as mi, d3 as pi, cH as hi, di as fi, bw as bi, by as ui, a0 as Si, cp as Ci, cq as yi, co as Ei, d2 as Ri, cN as vi, cA as Pi, cB as Ti, cr as Ai, cu as Ii, cD as Mi, cx as Oi, h as Di, i as Li, hY as xi, j as ki, E as Ni, hM as Bi, aO as Fi, dY as Gi, eh as wi, eg as Ui, aE as Wi, aC as Hi, dt as Xi, cI as zi, cV as Vi, d0 as _i, dp as ji, aI as Ki, y as Qi, Y as Zi, dO as Yi, bJ as Ji, aR as $i, dr as qi, ea as el, bI as al, dv as sl, dq as tl, du as ol, dy as rl, W as nl, dx as il, aG as ll, dw as dl, ds as cl, cG as gl, cm as ml, cn as pl, d9 as hl, db as fl, hN as bl, aF as ul, dz as Sl, c$ as Cl, c_ as yl, ce as El, ef as Rl, ed as vl, b3 as Pl, b1 as Tl, b2 as Al, b0 as Il, ee as Ml, ec as Ol, c6 as Dl, cQ as Ll, cR as xl, p as kl, d7 as Nl, da as Bl, i4 as Fl, ao as Gl, dV as wl, hT as Ul, dX as Wl, dW as Hl, aS as Xl, aQ as zl, bv as Vl, e3 as _l, r as jl, dh as Kl, dE as Ql, a1 as Zl, dU as Yl, c4 as Jl, bL as $l, dj as ql, dc as ed, dM as ad, dK as sd, dL as td, bo as od, ca as rd, c9 as nd, cb as id, aD as ld, n as dd, q as cd, s as gd, e as md, aJ as pd, z as hd, X as fd, aK as bd, d6 as ud, d4 as Sd, d5 as Cd, bx as yd, U as Ed, d8 as Rd, cM as vd, cC as Pd, cs as Td, ct as Ad, cv as Id, cw as Md, cE as Od, cF as Dd, cy as Ld, x as xd, t as kd, w as Nd, D as Bd, cl as Fd, bn as Gd, k as wd, bs as Ud, cL as Wd, i5 as Hd, dJ as Xd, dI as zd, dd as Vd, i6 as _d, aT as jd, dm as Kd, u as Qd, v as Zd, dl as Yd } from "./needle-engine.bundle.light.js";
3
+ import { N as $d } from "./gltf-progressive.light.js";
4
4
  import { f } from "./three.light.js";
5
5
  import "./three-examples.light.js";
6
6
  import "./vendor.light.js";
@@ -46,8 +46,8 @@ globalThis.THREE ? console.warn("Three.js is already imported") : globalThis.THR
46
46
  export {
47
47
  v as $physicsKey,
48
48
  P as ActionBuilder,
49
- A as ActionCollection,
50
- T as ActionModel,
49
+ T as ActionCollection,
50
+ A as ActionModel,
51
51
  I as Addressables,
52
52
  M as AlignmentConstraint,
53
53
  O as AmbientMode,
@@ -100,8 +100,8 @@ export {
100
100
  Re as Camera,
101
101
  ve as CameraTargetReachedEvent,
102
102
  Pe as Canvas,
103
- Ae as CanvasGroup,
104
- Te as CapsuleCollider,
103
+ Te as CanvasGroup,
104
+ Ae as CapsuleCollider,
105
105
  Ie as ChangeMaterialOnClick,
106
106
  Me as ChangeTransformOnClick,
107
107
  Oe as CharacterController,
@@ -155,8 +155,8 @@ export {
155
155
  Ra as File_Event,
156
156
  va as FixedJoint,
157
157
  Pa as Fog,
158
- Aa as FrameEvent,
159
- Ta as GENERATOR,
158
+ Ta as FrameEvent,
159
+ Aa as GENERATOR,
160
160
  t as GameObject,
161
161
  Ia as Gizmos,
162
162
  Ma as GltfExport,
@@ -210,12 +210,12 @@ export {
210
210
  Rs as MarkerType,
211
211
  vs as MaskableGraphic,
212
212
  Ps as Mathf,
213
- As as MeshCollider,
214
- Ts as MeshRenderer,
213
+ Ts as MeshCollider,
214
+ As as MeshRenderer,
215
215
  Is as MinMaxCurve,
216
216
  Ms as MinMaxGradient,
217
217
  Os as NEEDLE_ENGINE_MODULES,
218
- Jd as NEEDLE_progressive,
218
+ $d as NEEDLE_progressive,
219
219
  Ds as NEKeyboardEvent,
220
220
  Ls as NEPointerEvent,
221
221
  xs as NeedleButtonElement,
@@ -266,8 +266,8 @@ export {
266
266
  Rt as PlayerColor,
267
267
  vt as PlayerState,
268
268
  Pt as PlayerStateEvent,
269
- At as PlayerSync,
270
- Tt as PlayerView,
269
+ Tt as PlayerSync,
270
+ At as PlayerView,
271
271
  It as PlayerViewManager,
272
272
  Mt as PointerEventData,
273
273
  Ot as PointerType,
@@ -319,8 +319,8 @@ export {
319
319
  Ro as SizeBySpeedModule,
320
320
  vo as SizeOverLifetimeModule,
321
321
  Po as SkinnedMeshRenderer,
322
- Ao as SmoothFollow,
323
- To as SpatialGrabRaycaster,
322
+ To as SmoothFollow,
323
+ Ao as SpatialGrabRaycaster,
324
324
  Io as SpatialHtml,
325
325
  Mo as SpatialTrigger,
326
326
  Oo as SpatialTriggerReceiver,
@@ -374,8 +374,8 @@ export {
374
374
  Rr as VariantAction,
375
375
  vr as VelocityOverLifetimeModule,
376
376
  Pr as VerticalLayoutGroup,
377
- Ar as VideoPlayer,
378
- Tr as ViewDevice,
377
+ Tr as VideoPlayer,
378
+ Ar as ViewDevice,
379
379
  Ir as Vignette,
380
380
  Mr as VisibilityAction,
381
381
  Or as Voip,
@@ -427,195 +427,196 @@ export {
427
427
  Rn as copyTexture,
428
428
  vn as createLoader,
429
429
  Pn as createMotion,
430
- An as debugNet,
431
- Tn as debugOwner,
432
- In as deepClone,
433
- Mn as delay,
434
- On as delayForFrames,
435
- Dn as deserializeObject,
436
- Ln as destroy,
437
- xn as destroyComponentInstance,
438
- kn as disposeObjectResources,
439
- Nn as disposeStream,
440
- Bn as editorGuidKeyName,
441
- Fn as enableSpatialConsole,
442
- Gn as euler,
443
- wn as eventListSerializer,
444
- Un as exportAsGLTF,
445
- Wn as findByGuid,
446
- Hn as findObjectOfType,
447
- Xn as findObjectsOfType,
448
- zn as findResourceUsers,
449
- Vn as fitObjectIntoVolume,
450
- _n as foreachComponent,
451
- jn as foreachComponentEnumerator,
452
- Kn as forward,
453
- Qn as generateQRCode,
454
- Zn as generateSeed,
455
- Yn as getBoundingBox,
456
- Jn as getCameraController,
457
- $n as getComponent,
458
- qn as getComponentInChildren,
459
- ei as getComponentInParent,
460
- ai as getComponents,
461
- si as getComponentsInChildren,
462
- ti as getComponentsInParent,
463
- oi as getFormattedDate,
464
- ri as getIconElement,
465
- ni as getIconTexture,
466
- ii as getIp,
467
- li as getIpAndLocation,
468
- di as getIpCloudflare,
469
- ci as getLoader,
470
- gi as getOrAddComponent,
471
- mi as getParam,
472
- pi as getParentHierarchyPath,
473
- hi as getPath,
474
- fi as getPeerOptions,
475
- bi as getPeerjsInstance,
476
- ui as getResourceUserCount,
477
- Si as getTempColor,
478
- Ci as getTempQuaternion,
479
- yi as getTempVector,
480
- Ei as getUrlParams,
481
- Ri as getVisibleInCustomShadowRendering,
482
- vi as getWorldDirection,
483
- Pi as getWorldEuler,
430
+ Tn as debugNet,
431
+ An as debugOwner,
432
+ In as decompressGpuTexture,
433
+ Mn as deepClone,
434
+ On as delay,
435
+ Dn as delayForFrames,
436
+ Ln as deserializeObject,
437
+ xn as destroy,
438
+ kn as destroyComponentInstance,
439
+ Nn as disposeObjectResources,
440
+ Bn as disposeStream,
441
+ Fn as editorGuidKeyName,
442
+ Gn as enableSpatialConsole,
443
+ wn as euler,
444
+ Un as eventListSerializer,
445
+ Wn as exportAsGLTF,
446
+ Hn as findByGuid,
447
+ Xn as findObjectOfType,
448
+ zn as findObjectsOfType,
449
+ Vn as findResourceUsers,
450
+ _n as fitObjectIntoVolume,
451
+ jn as foreachComponent,
452
+ Kn as foreachComponentEnumerator,
453
+ Qn as forward,
454
+ Zn as generateQRCode,
455
+ Yn as generateSeed,
456
+ Jn as getBoundingBox,
457
+ $n as getCameraController,
458
+ qn as getComponent,
459
+ ei as getComponentInChildren,
460
+ ai as getComponentInParent,
461
+ si as getComponents,
462
+ ti as getComponentsInChildren,
463
+ oi as getComponentsInParent,
464
+ ri as getFormattedDate,
465
+ ni as getIconElement,
466
+ ii as getIconTexture,
467
+ li as getIp,
468
+ di as getIpAndLocation,
469
+ ci as getIpCloudflare,
470
+ gi as getLoader,
471
+ mi as getOrAddComponent,
472
+ pi as getParam,
473
+ hi as getParentHierarchyPath,
474
+ fi as getPath,
475
+ bi as getPeerOptions,
476
+ ui as getPeerjsInstance,
477
+ Si as getResourceUserCount,
478
+ Ci as getTempColor,
479
+ yi as getTempQuaternion,
480
+ Ei as getTempVector,
481
+ Ri as getUrlParams,
482
+ vi as getVisibleInCustomShadowRendering,
483
+ Pi as getWorldDirection,
484
+ Ti as getWorldEuler,
484
485
  Ai as getWorldPosition,
485
- Ti as getWorldQuaternion,
486
- Ii as getWorldRotation,
487
- Mi as getWorldScale,
488
- Oi as hasCommercialLicense,
489
- Di as hasIndieLicense,
490
- Li as hasPointerEventComponent,
491
- xi as hasProLicense,
492
- ki as hideDebugConsole,
493
- Ni as imageToCanvas,
494
- Bi as instantiate,
495
- Fi as invokeAfterImportPluginHooks,
496
- Gi as invokeXRSessionEnd,
497
- wi as invokeXRSessionStart,
498
- Ui as isActiveInHierarchy,
499
- Wi as isActiveSelf,
500
- Hi as isAndroidDevice,
501
- Xi as isAnimationAction,
502
- zi as isComponent,
503
- Vi as isDebugMode,
504
- _i as isDesktop,
505
- ji as isDestroyed,
506
- Ki as isDevEnvironment,
507
- Qi as isDisposed,
508
- Zi as isExporting,
509
- Yi as isHostedOnGlitch,
510
- Ji as isHotReloading,
511
- $i as isIPad,
512
- qi as isIconElement,
513
- el as isLocalNetwork,
514
- al as isMacOS,
515
- sl as isMobileDevice,
516
- tl as isMozillaXR,
517
- ol as isQuest,
518
- rl as isResourceTrackingEnabled,
519
- nl as isSafari,
520
- il as isUsingInstancing,
521
- ll as isiOS,
522
- dl as isiPad,
486
+ Ii as getWorldQuaternion,
487
+ Mi as getWorldRotation,
488
+ Oi as getWorldScale,
489
+ Di as hasCommercialLicense,
490
+ Li as hasIndieLicense,
491
+ xi as hasPointerEventComponent,
492
+ ki as hasProLicense,
493
+ Ni as hideDebugConsole,
494
+ Bi as imageToCanvas,
495
+ Fi as instantiate,
496
+ Gi as invokeAfterImportPluginHooks,
497
+ wi as invokeXRSessionEnd,
498
+ Ui as invokeXRSessionStart,
499
+ Wi as isActiveInHierarchy,
500
+ Hi as isActiveSelf,
501
+ Xi as isAndroidDevice,
502
+ zi as isAnimationAction,
503
+ Vi as isComponent,
504
+ _i as isDebugMode,
505
+ ji as isDesktop,
506
+ Ki as isDestroyed,
507
+ Qi as isDevEnvironment,
508
+ Zi as isDisposed,
509
+ Yi as isExporting,
510
+ Ji as isHostedOnGlitch,
511
+ $i as isHotReloading,
512
+ qi as isIPad,
513
+ el as isIconElement,
514
+ al as isLocalNetwork,
515
+ sl as isMacOS,
516
+ tl as isMobileDevice,
517
+ ol as isMozillaXR,
518
+ rl as isQuest,
519
+ nl as isResourceTrackingEnabled,
520
+ il as isSafari,
521
+ ll as isUsingInstancing,
522
+ dl as isiOS,
523
+ cl as isiPad,
523
524
  d as loadSync,
524
- cl as logHierarchy,
525
- gl as lookAtInverse,
526
- ml as lookAtObject,
527
- pl as makeId,
528
- hl as makeIdFromRandomWords,
529
- fl as makeNameSafeForUSD,
530
- bl as markAsInstancedRendered,
531
- ul as microphonePermissionsGranted,
532
- Sl as nameof,
533
- Cl as nameofFactory,
534
- yl as objectSerializer,
535
- El as offXRSessionEnd,
536
- Rl as offXRSessionStart,
537
- vl as onAfterRender,
525
+ gl as logHierarchy,
526
+ ml as lookAtInverse,
527
+ pl as lookAtObject,
528
+ hl as makeId,
529
+ fl as makeIdFromRandomWords,
530
+ bl as makeNameSafeForUSD,
531
+ ul as markAsInstancedRendered,
532
+ Sl as microphonePermissionsGranted,
533
+ Cl as nameof,
534
+ yl as nameofFactory,
535
+ El as objectSerializer,
536
+ Rl as offXRSessionEnd,
537
+ vl as offXRSessionStart,
538
+ Pl as onAfterRender,
538
539
  m as onBeforeRender,
539
- Pl as onClear,
540
+ Tl as onClear,
540
541
  Al as onDestroy,
541
- Tl as onInitialized,
542
+ Il as onInitialized,
542
543
  c as onStart,
543
544
  g as onUpdate,
544
- Il as onXRSessionEnd,
545
- Ml as onXRSessionStart,
546
- Ol as parseSync,
547
- Dl as placeOnSurface,
548
- Ll as postprocessFBXMaterials,
549
- xl as prefix,
550
- kl as pushState,
551
- Nl as randomNumber,
552
- Bl as registerBinaryType,
553
- Fl as registerComponent,
554
- Gl as registerComponentExtension,
555
- wl as registerCustomEffectType,
556
- Ul as registerExportExtensions,
557
- Wl as registerExtensions,
558
- Hl as registerHotReloadType,
559
- Xl as registerLoader,
560
- zl as registerPrefabProvider,
561
- Vl as registerPrototypeExtensions,
562
- _l as registerType,
563
- jl as relativePathPrefix,
564
- Kl as removeAttributeChangeCallback,
565
- Ql as removeComponent,
566
- Zl as removeCustomImportExtensionType,
567
- Yl as removeGltfLoadEventListener,
568
- Jl as removePatch,
569
- $l as resolveUrl,
570
- ql as sanitizeString,
571
- ed as saveImage,
572
- ad as screenshot,
573
- sd as screenshot2,
574
- td as sendDestroyed,
575
- od as serializable,
576
- rd as serializeObject,
577
- nd as serializeable,
578
- id as setActive,
579
- ld as setAllowBalloonMessages,
580
- dd as setAllowOverlayMessages,
581
- cd as setAutoFitEnabled,
582
- gd as setCameraController,
583
- md as setDestroyed,
584
- pd as setDevEnvironment,
585
- hd as setDisposable,
586
- fd as setDontDestroy,
587
- bd as setOrAddParamsToUrl,
588
- ud as setParam,
589
- Sd as setParamWithoutReload,
590
- Cd as setPeerOptions,
591
- yd as setResourceTrackingEnabled,
592
- Ed as setState,
593
- Rd as setVisibleInCustomShadowRendering,
594
- vd as setWorldEuler,
595
- Pd as setWorldPosition,
545
+ Ml as onXRSessionEnd,
546
+ Ol as onXRSessionStart,
547
+ Dl as parseSync,
548
+ Ll as placeOnSurface,
549
+ xl as postprocessFBXMaterials,
550
+ kl as prefix,
551
+ Nl as pushState,
552
+ Bl as randomNumber,
553
+ Fl as registerBinaryType,
554
+ Gl as registerComponent,
555
+ wl as registerComponentExtension,
556
+ Ul as registerCustomEffectType,
557
+ Wl as registerExportExtensions,
558
+ Hl as registerExtensions,
559
+ Xl as registerHotReloadType,
560
+ zl as registerLoader,
561
+ Vl as registerPrefabProvider,
562
+ _l as registerPrototypeExtensions,
563
+ jl as registerType,
564
+ Kl as relativePathPrefix,
565
+ Ql as removeAttributeChangeCallback,
566
+ Zl as removeComponent,
567
+ Yl as removeCustomImportExtensionType,
568
+ Jl as removeGltfLoadEventListener,
569
+ $l as removePatch,
570
+ ql as resolveUrl,
571
+ ed as sanitizeString,
572
+ ad as saveImage,
573
+ sd as screenshot,
574
+ td as screenshot2,
575
+ od as sendDestroyed,
576
+ rd as serializable,
577
+ nd as serializeObject,
578
+ id as serializeable,
579
+ ld as setActive,
580
+ dd as setAllowBalloonMessages,
581
+ cd as setAllowOverlayMessages,
582
+ gd as setAutoFitEnabled,
583
+ md as setCameraController,
584
+ pd as setDestroyed,
585
+ hd as setDevEnvironment,
586
+ fd as setDisposable,
587
+ bd as setDontDestroy,
588
+ ud as setOrAddParamsToUrl,
589
+ Sd as setParam,
590
+ Cd as setParamWithoutReload,
591
+ yd as setPeerOptions,
592
+ Ed as setResourceTrackingEnabled,
593
+ Rd as setState,
594
+ vd as setVisibleInCustomShadowRendering,
595
+ Pd as setWorldEuler,
596
+ Td as setWorldPosition,
596
597
  Ad as setWorldPositionXYZ,
597
- Td as setWorldQuaternion,
598
- Id as setWorldQuaternionXYZW,
599
- Md as setWorldRotation,
600
- Od as setWorldRotationXYZ,
601
- Dd as setWorldScale,
602
- Ld as showBalloonError,
603
- xd as showBalloonMessage,
604
- kd as showBalloonWarning,
605
- Nd as showDebugConsole,
606
- Bd as slerp,
607
- Fd as syncDestroy,
608
- Gd as syncField,
609
- wd as syncInstantiate,
610
- Ud as textureToCanvas,
611
- Wd as tryCastBinary,
612
- Hd as tryDetermineFileTypeFromBinary,
613
- Xd as tryDetermineFileTypeFromURL,
614
- zd as tryFindObject,
615
- Vd as tryGetGuid,
616
- _d as unregisterHotReloadType,
617
- jd as unwatchWrite,
618
- Kd as useForAutoFit,
619
- Qd as validate,
620
- Zd as watchWrite
598
+ Id as setWorldQuaternion,
599
+ Md as setWorldQuaternionXYZW,
600
+ Od as setWorldRotation,
601
+ Dd as setWorldRotationXYZ,
602
+ Ld as setWorldScale,
603
+ xd as showBalloonError,
604
+ kd as showBalloonMessage,
605
+ Nd as showBalloonWarning,
606
+ Bd as showDebugConsole,
607
+ Fd as slerp,
608
+ Gd as syncDestroy,
609
+ wd as syncField,
610
+ Ud as syncInstantiate,
611
+ Wd as textureToCanvas,
612
+ Hd as tryCastBinary,
613
+ Xd as tryDetermineFileTypeFromBinary,
614
+ zd as tryDetermineFileTypeFromURL,
615
+ Vd as tryFindObject,
616
+ _d as tryGetGuid,
617
+ jd as unregisterHotReloadType,
618
+ Kd as unwatchWrite,
619
+ Qd as useForAutoFit,
620
+ Zd as validate,
621
+ Yd as watchWrite
621
622
  };