@needle-tools/engine 5.1.0-experimental.0 → 5.1.0-experimental.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { Vector2 as Z, Vector3 as _, Vector4 as ye, Quaternion as V, Box3 as Ut, ShadowMaterial as Ov, Euler as dt, PlaneGeometry as kn, WebGLRenderer as Fr, PerspectiveCamera as de, OrthographicCamera as vu, Scene as Ei, Mesh as H, Texture as xe, Uniform as Qi, Color as re, ShaderMaterial as Qn, MeshStandardMaterial as gt, Box3Helper as mS, GridHelper as Rv, Object3D as R, Material as be, Matrix3 as Mv, Matrix4 as ee, Layers as ko, PropertyBinding as za, AnimationClip as Ri, KeyframeTrack as gS, FileLoader as Ev, BufferGeometry as Ki, TextureLoader as Or, MeshBasicMaterial as Se, DoubleSide as Ti, Group as ks, CylinderGeometry as Tv, SphereGeometry as wu, BoxGeometry as Ua, SpriteMaterial as yS, Sprite as _S, Shape as bS, ExtrudeGeometry as vS, Ray as Is, CubeUVReflectionMapping as Ls, LinearSRGBColorSpace as Ds, ShaderChunk as ei, Sphere as xu, DataTexture as rg, RGBAFormat as Su, EquirectangularReflectionMapping as Os, SRGBColorSpace as js, Timer as wS, NeutralToneMapping as Na, AgXToneMapping as Cu, ACESFilmicToneMapping as Pu, NoToneMapping as zd, PCFSoftShadowMap as xS, BasicNodeLibrary as SS, WebGLRenderTarget as Yn, DepthTexture as Av, NearestFilter as Ud, AxesHelper as Mi, MathUtils as Rs, Fog as Iv, DirectionalLight as Qp, PointLight as ag, EdgesGeometry as CS, LineSegments as Yp, LineBasicMaterial as Nd, Line as $a, BufferAttribute as tt, Raycaster as ku, ArrayCamera as PS, Plane as Rr, SkinnedMesh as wo, InterleavedBufferAttribute as Lv, Skeleton as kS, Bone as OS, WebGLCubeRenderTarget as RS, CubeCamera as MS, LoopRepeat as ES, LoopOnce as Kp, AnimationMixer as lg, CompressedTexture as TS, FrontSide as Oo, Camera as AS, Frustum as qy, AudioListener as IS, PositionalAudio as LS, AudioLoader as Zp, VectorKeyframeTrack as DS, QuaternionKeyframeTrack as jS, Audio as BS, BackSide as Ou, PMREMGenerator as FS, EquirectangularRefractionMapping as Dv, CubeTexture as jv, CompressedCubeTexture as zS, EventDispatcher as cg, MeshDepthMaterial as US, CustomBlending as NS, MaxEquation as $S, AlwaysStencilFunc as WS, GreaterEqualStencilFunc as VS, NotEqualStencilFunc as HS, GreaterStencilFunc as GS, LessEqualStencilFunc as qS, EqualStencilFunc as XS, LessStencilFunc as QS, NeverStencilFunc as Xy, InvertStencilOp as YS, DecrementWrapStencilOp as KS, IncrementWrapStencilOp as ZS, DecrementStencilOp as JS, IncrementStencilOp as eC, ReplaceStencilOp as tC, ZeroStencilOp as iC, KeepStencilOp as nC, AmbientLight as sC, HemisphereLight as oC, Loader as rC, GLSL3 as aC, AlwaysDepth as lC, GreaterEqualDepth as cC, GreaterDepth as hC, LessEqualDepth as dC, LessDepth as uC, NotEqualDepth as fC, EqualDepth as pC, RawShaderMaterial as Bv, BatchedMesh as Qy, LinearFilter as $d, UnsignedByteType as mC, MeshPhysicalMaterial as Yy, RingGeometry as gC, Line3 as yC, AdditiveBlending as Fv, BoxHelper as _C, SpotLight as bC, DirectionalLightHelper as vC, CameraHelper as wC, LOD as xC, Triangle as SC, NormalBlending as CC, ReinhardToneMapping as hg, LinearToneMapping as dg, HalfFloatType as Bf, Source as PC, VideoTexture as kC, CatmullRomCurve3 as OC, MirroredRepeatWrapping as Ky, ShaderLib as Wd, UniformsUtils as zv, MeshNormalMaterial as RC, AudioContext as MC } from "./three.js";
2
2
  import { createLoaders as ug, LODsManager as er, NEEDLE_progressive as Ve, getRaycastMesh as Uv, setKTX2TranscoderLocation as EC, setDracoDecoderLocation as TC, addDracoAndKTX2Loaders as AC, configureLoader as IC } from "./gltf-progressive-DwWaVr0o.js";
3
3
  import { GroundedSkybox as Wa, Font as LC, TextGeometry as DC, FontLoader as jC, GLTFLoader as Bs, EXRLoader as fg, HDRLoader as Nv, Stats as BC, nodeFrame as Zy, TransformControlsGizmo as Jy, OrbitControls as FC, PositionalAudioHelper as zC, HorizontalBlurShader as UC, VerticalBlurShader as NC, GLTFExporter as $v, strToU8 as Wv, zipSync as $C, XRControllerModelFactory as WC, XRHandMeshModel as VC, Line2 as HC, LineGeometry as GC, LineMaterial as qC, TransformControls as XC, InteractiveGroup as QC, HTMLMesh as YC, VertexNormalsHelper as KC, OBJLoader as pg, FBXLoader as Vv, mergeVertices as ZC } from "./three-examples.js";
4
- import { _md5 as e_, md5 as JC, v5 as t_, ByteBuffer as e1, fetchProfile as t1, MotionController as i1, SIZE_PREFIX_LENGTH as Hv, Builder as mg, createNoise4D as n1, Matrix4 as Ff, BatchedParticleRenderer as s1, ParticleSystem as o1, RenderMode as ms, ConstantColor as r1, Vector4 as a1, ConstantValue as l1, TrailParticle as i_, WorkerBase as c1, MeshBVH as h1 } from "./vendor-CwL-uvVy.js";
4
+ import { _md5 as e_, md5 as JC, v5 as t_, ByteBuffer as e1, fetchProfile as t1, MotionController as i1, SIZE_PREFIX_LENGTH as Hv, Builder as mg, createNoise4D as n1, Matrix4 as Ff, BatchedParticleRenderer as s1, ParticleSystem as o1, RenderMode as ms, ConstantColor as r1, Vector4 as a1, ConstantValue as l1, TrailParticle as i_, WorkerBase as c1, MeshBVH as h1 } from "./vendor-D-7l5gB0.js";
5
5
  import { __webpack_exports__default as ke, __webpack_exports__Text as Gv, __webpack_exports__update as d1, __webpack_exports__Block as qv, SimpleStateBehavior as u1, __webpack_exports__Inline as zf, __webpack_exports__FontLibrary as n_, ThreeMeshUI as s_ } from "./three-mesh-ui-B-lqrZWj.js";
6
6
  import { EffectAttribute as f1 } from "./postprocessing-CXlA3QA6.js";
7
7
  const o_ = typeof window !== void 0 ? window.location.search.includes("debugcontext") : !1;
@@ -2244,11 +2244,11 @@ Ao('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
2244
2244
  Ao('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
2245
2245
  Ao('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
2246
2246
  Ao('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
2247
- Ao('globalThis["__NEEDLE_ENGINE_VERSION__"] = "5.1.0-experimental.0";');
2247
+ Ao('globalThis["__NEEDLE_ENGINE_VERSION__"] = "5.1.0-experimental.2";');
2248
2248
  Ao('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
2249
- Ao('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Mon Mar 30 2026 12:54:09 GMT+0700 (Indochina Time)";');
2249
+ Ao('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Mon Mar 30 2026 13:22:23 GMT+0700 (Indochina Time)";');
2250
2250
  Ao('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_ad8e492e31253a2800d563522e42a7311d0d7b766ac4ec1f64d3b425f06eacbd";');
2251
- const Pi = "5.1.0-experimental.0", Lc = "undefined", Xd = "Mon Mar 30 2026 12:54:09 GMT+0700 (Indochina Time)";
2251
+ const Pi = "5.1.0-experimental.2", Lc = "undefined", Xd = "Mon Mar 30 2026 13:22:23 GMT+0700 (Indochina Time)";
2252
2252
  y0 && console.log(`Engine version: ${Pi} (generator: ${Lc})
2253
2253
  Project built at ${Xd}`);
2254
2254
  const Oa = "npk_ad8e492e31253a2800d563522e42a7311d0d7b766ac4ec1f64d3b425f06eacbd", ws = "needle_isActiveInHierarchy", ua = "builtin_components", yd = "needle_editor_guid";
@@ -5386,7 +5386,7 @@ const A = {
5386
5386
  () => import("./postprocessing-CXlA3QA6.js").then((s) => s.N8AO)
5387
5387
  ),
5388
5388
  PEERJS: Ll(
5389
- () => import("./vendor-CwL-uvVy.js").then((s) => s.bundler)
5389
+ () => import("./vendor-D-7l5gB0.js").then((s) => s.bundler)
5390
5390
  )
5391
5391
  };
5392
5392
  let Mg;
@@ -5873,7 +5873,7 @@ class Hk {
5873
5873
  }
5874
5874
  console.debug(`Connecting to networking backend on
5875
5875
  ` + Ui);
5876
- const o = await import("./vendor-CwL-uvVy.js").then((c) => c.index), r = o.default?.WebsocketBuilder ?? o.WebsocketBuilder, a = o.default?.ExponentialBackoff ?? o.ExponentialBackoff, l = new r(Ui).withMaxRetries(10).withBackoff(new a(2e3, 4)).onOpen(() => {
5876
+ const o = await import("./vendor-D-7l5gB0.js").then((c) => c.index), r = o.default?.WebsocketBuilder ?? o.WebsocketBuilder, a = o.default?.ExponentialBackoff ?? o.ExponentialBackoff, l = new r(Ui).withMaxRetries(10).withBackoff(new a(2e3, 4)).onOpen(() => {
5877
5877
  this._connectingToWebsocketPromise = null, this._ws = l, this.connected = !0, L() || bi ? console.log(`Connected to networking backend
5878
5878
  ` + Ui) : console.debug("Connected to networking backend", Ui), n(!0), this.onSendQueued(Un.OnConnection);
5879
5879
  }).onClose((c) => {
@@ -11893,7 +11893,7 @@ var eu;
11893
11893
  s.runMeshBVHRaycast = t;
11894
11894
  let i = !1, n = null, o = null, r = null, a = null;
11895
11895
  function l() {
11896
- i || (i = !0, import("./vendor-CwL-uvVy.js").then((b) => b.index$1).then((b) => {
11896
+ i || (i = !0, import("./vendor-D-7l5gB0.js").then((b) => b.index$1).then((b) => {
11897
11897
  n = b.acceleratedRaycast, o = b.MeshBVH, r = b.StaticGeometryGenerator, a = b.computeBoundsTree;
11898
11898
  }).catch((b) => {
11899
11899
  (Zt || L()) && console.error("Failed to load BVH library...", b.message);
@@ -24608,7 +24608,7 @@ function Fw(s) {
24608
24608
  }
24609
24609
  const EE = x("debugextensions");
24610
24610
  let du;
24611
- const TE = import("./vendor-CwL-uvVy.js").then((s) => s.index$2).then(async (s) => (du = s.GLTFAnimationPointerExtension, du)).catch((s) => {
24611
+ const TE = import("./vendor-D-7l5gB0.js").then((s) => s.index$2).then(async (s) => (du = s.GLTFAnimationPointerExtension, du)).catch((s) => {
24612
24612
  console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three-animationpointer for full KHR_animation support", s);
24613
24613
  }), Ar = new Array();
24614
24614
  function B2(s) {