@needle-tools/engine 4.7.2-next.37cf642 → 4.7.2-next.d24ebbc
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/{gltf-progressive-BiLgh4_q.js → gltf-progressive-CNdBjvz6.js} +398 -412
- package/dist/gltf-progressive-C_oN6wCA.umd.cjs +8 -0
- package/dist/gltf-progressive-MgWOszRl.min.js +8 -0
- package/dist/{needle-engine.bundle-CaBnooYY.min.js → needle-engine.bundle-CGXifNgp.min.js} +5 -5
- package/dist/{needle-engine.bundle-DuNhdVQQ.js → needle-engine.bundle-CHfSBXXT.js} +19 -22
- package/dist/{needle-engine.bundle-BECP5XKQ.umd.cjs → needle-engine.bundle-Dcn5L5IY.umd.cjs} +6 -6
- package/dist/needle-engine.js +3 -3
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine/engine_input.js +0 -3
- package/lib/engine/engine_input.js.map +1 -1
- package/lib/engine/webcomponents/needle-engine.js +11 -14
- package/lib/engine/webcomponents/needle-engine.js.map +1 -1
- package/lib/engine-components/Skybox.js +1 -1
- package/lib/engine-components/Skybox.js.map +1 -1
- package/package.json +2 -2
- package/src/engine/engine_input.ts +1 -8
- package/src/engine/webcomponents/needle-engine.ts +13 -15
- package/src/engine-components/Skybox.ts +1 -1
- package/dist/gltf-progressive-Cyd060gj.umd.cjs +0 -8
- package/dist/gltf-progressive-Q-uNWnqA.min.js +0 -8
|
@@ -6,7 +6,7 @@ var aS = (o, t, e) => t in o ? rS(o, t, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var r = (o, t, e) => aS(o, typeof t != "symbol" ? t + "" : t, e), Xf = (o, t, e) => t.has(o) || t_("Cannot " + e);
|
|
7
7
|
var ue = (o, t, e) => (Xf(o, t, "read from private field"), e ? e.call(o) : t.get(o)), mn = (o, t, e) => t.has(o) ? t_("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), gn = (o, t, e, i) => (Xf(o, t, "write to private field"), i ? i.call(o, e) : t.set(o, e), e), $l = (o, t, e) => (Xf(o, t, "access private method"), e);
|
|
8
8
|
import { Vector2 as ae, Vector3 as w, Vector4 as ye, Quaternion as W, PlaneGeometry as ls, WebGLRenderer as Kr, PerspectiveCamera as ve, OrthographicCamera as Lu, Scene as ji, Mesh as G, Texture as Fe, Uniform$1 as tn, Color as re, ShaderMaterial as ns, Box3 as Li, ShadowMaterial as b0, Euler as Ft, MeshStandardMaterial as yt, Box3Helper as lS, GridHelper as gg, Object3D as L, Material as Pe, Matrix3 as v0, Matrix4 as oe, Layers as Wo, Ray as Vo, MathUtils as zs, AxesHelper as Di, MeshBasicMaterial as Me, DoubleSide as Bi, BufferGeometry as es, Group as jo, CylinderGeometry as w0, SphereGeometry as Du, BoxGeometry as Za, SpriteMaterial as cS, Sprite as hS, Shape as dS, ExtrudeGeometry as uS, Fog as x0, DirectionalLight as rm, PointLight as yg, EdgesGeometry as fS, LineSegments as S0, LineBasicMaterial as C0, Line as Wc, BufferAttribute as _t, Raycaster as ju, Sphere as Bu, ArrayCamera as pS, Plane as Vr, SkinnedMesh as Us, InterleavedBufferAttribute as P0, Skeleton as mS, Bone as gS, Source as yS, WebGLCubeRenderTarget as _S, CubeCamera as bS, AnimationClip as Bo, FileLoader as _g, TextureLoader as $a, PropertyBinding as Ja, LinearSRGBColorSpace as Gs, ShaderChunk as ii, UniformsLib as vS, DataTexture as bg, RGBAFormat as Fu, EquirectangularReflectionMapping as Ns, SRGBColorSpace as qs, Clock as wS, NeutralToneMapping as el, AgXToneMapping as zu, ACESFilmicToneMapping as Uu, NoToneMapping as jd, PCFSoftShadowMap$1 as xS, BasicNodeLibrary as SS, WebGLRenderTarget as ss, DepthTexture as O0, NearestFilter as Bd, LoopRepeat as CS, LoopOnce as am, AnimationMixer as vg, CompressedTexture as PS, FrontSide as Ho, Camera as OS, Frustum as i_, AudioListener as kS, PositionalAudio as MS, AudioLoader as lm, EventDispatcher as wg, BackSide as Nu, MeshDepthMaterial as RS, CustomBlending as TS, MaxEquation as ES, AmbientLight as AS, HemisphereLight as IS, AlwaysStencilFunc as LS, GreaterEqualStencilFunc as DS, NotEqualStencilFunc as jS, GreaterStencilFunc as BS, LessEqualStencilFunc as FS, EqualStencilFunc as zS, LessStencilFunc as US, NeverStencilFunc as n_, InvertStencilOp as NS, DecrementWrapStencilOp as $S, IncrementWrapStencilOp as WS, DecrementStencilOp as VS, IncrementStencilOp as HS, ReplaceStencilOp as GS, ZeroStencilOp as qS, KeepStencilOp as XS, RawShaderMaterial as k0, GLSL3 as QS, AlwaysDepth as YS, GreaterEqualDepth as KS, GreaterDepth as ZS, LessEqualDepth as JS, LessDepth as eC, NotEqualDepth as tC, EqualDepth as iC, BatchedMesh as s_, MeshPhysicalMaterial as cm, LinearFilter as Fd, UnsignedByteType as nC, RingGeometry as sC, Line3 as oC, AdditiveBlending as M0, BoxHelper as rC, SpotLight as aC, DirectionalLightHelper as lC, CameraHelper as cC, LOD as hC, Triangle as dC, NormalBlending as uC, ReinhardToneMapping as xg, LinearToneMapping as Sg, HalfFloatType as Qf, VideoTexture as fC, CubeTexture as pC, CompressedCubeTexture as mC, EquirectangularRefractionMapping as gC, VectorKeyframeTrack as yC, QuaternionKeyframeTrack as _C, Audio as bC, ShaderLib as zd, UniformsUtils as R0, MirroredRepeatWrapping as o_, MeshNormalMaterial as vC, AudioContext as wC, PMREMGenerator$1 as xC } from "./three-DrqIzZTH.js";
|
|
9
|
-
import { createLoaders as Cg, getRaycastMesh as T0, LODsManager as fa, NEEDLE_progressive as Ze, addDracoAndKTX2Loaders as SC, configureLoader as CC, setKTX2TranscoderLocation as PC, setDracoDecoderLocation as OC } from "./gltf-progressive-
|
|
9
|
+
import { createLoaders as Cg, getRaycastMesh as T0, LODsManager as fa, NEEDLE_progressive as Ze, addDracoAndKTX2Loaders as SC, configureLoader as CC, setKTX2TranscoderLocation as PC, setDracoDecoderLocation as OC } from "./gltf-progressive-CNdBjvz6.js";
|
|
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-B50TT3Iu.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";
|
|
@@ -1806,9 +1806,9 @@ qo('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUIL
|
|
|
1806
1806
|
qo('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1807
1807
|
qo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.2-alpha";');
|
|
1808
1808
|
qo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1809
|
-
qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Aug 01 2025 15:
|
|
1809
|
+
qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Aug 01 2025 14:15:44 GMT+0000 (Coordinated Universal Time)";');
|
|
1810
1810
|
qo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
1811
|
-
const ts = "4.7.2-alpha", Eg = "undefined", av = "Fri Aug 01 2025 15:
|
|
1811
|
+
const ts = "4.7.2-alpha", Eg = "undefined", av = "Fri Aug 01 2025 14:15:44 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, zo = "needle_isActiveInHierarchy", Sa = "builtin_components", vd = "needle_editor_guid";
|
|
@@ -2562,8 +2562,6 @@ class wP {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
unbindEvents() {
|
|
2564
2564
|
var t, e;
|
|
2565
|
-
for (const i in this._eventListeners)
|
|
2566
|
-
this._eventListeners[i].length = 0;
|
|
2567
2565
|
window.removeEventListener("contextmenu", this.onContextMenu), (t = this._htmlEventSource) == null || t.removeEventListener("pointerdown", this.onPointerDown), window.removeEventListener("pointermove", this.onPointerMove), window.removeEventListener("pointerup", this.onPointerUp), window.removeEventListener("pointercancel", this.onPointerCancel), window.removeEventListener("touchstart", this.onTouchStart), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd), (e = this._htmlEventSource) == null || e.removeEventListener("wheel", this.onMouseWheel, !1), window.removeEventListener("wheel", this.onWheelWindow, !1), window.removeEventListener("keydown", this.onKeyDown, !1), window.removeEventListener("keypress", this.onKeyPressed, !1), window.removeEventListener("keyup", this.onKeyUp, !1), window.removeEventListener("blur", this.onLostFocus);
|
|
2568
2566
|
}
|
|
2569
2567
|
dispose() {
|
|
@@ -36195,8 +36193,10 @@ const Et = S("debugskybox");
|
|
|
36195
36193
|
Fy("background-image");
|
|
36196
36194
|
Fy("environment-image");
|
|
36197
36195
|
function n0(o, t, e, i, n) {
|
|
36198
|
-
if (t === "transparent" || t != null && t.startsWith("rgb") || t != null && t.startsWith("#"))
|
|
36199
|
-
|
|
36196
|
+
if (t === "transparent" || t != null && t.startsWith("rgb") || t != null && t.startsWith("#")) {
|
|
36197
|
+
console.warn(`Needle Engine: Invalid ${n} value (${t}). Did you mean to set background-color instead?`);
|
|
36198
|
+
return;
|
|
36199
|
+
}
|
|
36200
36200
|
const s = new zy();
|
|
36201
36201
|
s.allowDrop = !1, s.allowNetworking = !1, s.background = e, s.environment = i, C.addComponent(o.scene, s);
|
|
36202
36202
|
const a = (l) => {
|
|
@@ -41662,22 +41662,20 @@ function NI(o) {
|
|
|
41662
41662
|
return z() && console.debug("Loading: use default name", e), e;
|
|
41663
41663
|
}
|
|
41664
41664
|
function $I(o) {
|
|
41665
|
-
|
|
41665
|
+
const t = o.getAttribute("loading-blur");
|
|
41666
|
+
t !== null && t !== "0" && Jv((e) => {
|
|
41666
41667
|
var i;
|
|
41667
|
-
|
|
41668
|
-
|
|
41669
|
-
|
|
41670
|
-
frames: 5,
|
|
41671
|
-
signal: AbortSignal.timeout(1e4),
|
|
41668
|
+
if (e.domElement === o) {
|
|
41669
|
+
const n = (i = e.lodsManager.manager) == null ? void 0 : i.awaitLoading({
|
|
41670
|
+
signal: AbortSignal.timeout(1e4)
|
|
41672
41671
|
// Limit how long the page can be blurred
|
|
41673
|
-
maxPromisesPerObject: 1
|
|
41674
41672
|
}).catch((l) => {
|
|
41675
41673
|
});
|
|
41676
|
-
let s = "
|
|
41677
|
-
|
|
41678
|
-
const a =
|
|
41679
|
-
if (
|
|
41680
|
-
const l = o, c =
|
|
41674
|
+
let s = "10px";
|
|
41675
|
+
t.endsWith("px") && (s = t);
|
|
41676
|
+
const a = 500;
|
|
41677
|
+
if (e.scene.background === null) {
|
|
41678
|
+
const l = o, c = e.renderer.domElement, h = c.style.filter, d = c.style.overflow;
|
|
41681
41679
|
c.style.filter += `blur(${s})`, l.style.overflow = "hidden", n == null || n.then(() => {
|
|
41682
41680
|
const u = c.animate([
|
|
41683
41681
|
{
|
|
@@ -41690,11 +41688,10 @@ function $I(o) {
|
|
|
41690
41688
|
});
|
|
41691
41689
|
} else {
|
|
41692
41690
|
const l = document.createElement("div");
|
|
41693
|
-
|
|
41691
|
+
e.domElement.prepend(l), l.style.cssText = "position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10;", l.style.backdropFilter = `blur(${s})`, n == null || n.then(() => {
|
|
41694
41692
|
const c = l.animate([
|
|
41695
41693
|
{
|
|
41696
|
-
backdropFilter: "blur(0px)"
|
|
41697
|
-
opacity: 0
|
|
41694
|
+
backdropFilter: "blur(0px)"
|
|
41698
41695
|
}
|
|
41699
41696
|
], { duration: a, easing: "ease-in" });
|
|
41700
41697
|
c.onfinish = () => {
|