@needle-tools/engine 4.12.0-next.f0b1535 → 4.12.0-next.f962b5a
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-CrbGpIHn.js → needle-engine.bundle-BbNVbTsd.js} +25 -11
- package/dist/{needle-engine.bundle-DdJ-HkwM.umd.cjs → needle-engine.bundle-DZDLbOMI.umd.cjs} +6 -5
- package/dist/{needle-engine.bundle-DAiK_I7w.min.js → needle-engine.bundle-Dm-UEvOC.min.js} +5 -4
- package/dist/needle-engine.js +46 -46
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine/debug/debug_console.js +1 -1
- package/lib/engine/debug/debug_console.js.map +1 -1
- package/lib/engine/xr/NeedleXRSession.js +28 -8
- package/lib/engine/xr/NeedleXRSession.js.map +1 -1
- package/lib/engine-components/Camera.js +4 -1
- package/lib/engine-components/Camera.js.map +1 -1
- package/lib/engine-components/SpectatorCamera.js +1 -1
- package/lib/engine-components/SpectatorCamera.js.map +1 -1
- package/lib/engine-components/api.d.ts +1 -1
- package/lib/engine-components/api.js +1 -1
- package/lib/engine-components/api.js.map +1 -1
- package/lib/engine-components/webxr/Avatar.js +1 -1
- package/lib/engine-components/webxr/Avatar.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/debug/debug_console.ts +1 -1
- package/src/engine/xr/NeedleXRSession.ts +31 -11
- package/src/engine-components/Camera.ts +4 -1
- package/src/engine-components/SpectatorCamera.ts +1 -1
- package/src/engine-components/api.ts +1 -1
- package/src/engine-components/webxr/Avatar.ts +1 -1
|
@@ -1914,9 +1914,9 @@ So('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUIL
|
|
|
1914
1914
|
So('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1915
1915
|
So('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.12.0-beta.2";');
|
|
1916
1916
|
So('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1917
|
-
So('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
1917
|
+
So('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Jan 22 2026 14:39:38 GMT+0000 (Coordinated Universal Time)";');
|
|
1918
1918
|
So('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
1919
|
-
const Nn = "4.12.0-beta.2", tg = "undefined", z0 = "
|
|
1919
|
+
const Nn = "4.12.0-beta.2", tg = "undefined", z0 = "Thu Jan 22 2026 14:39:38 GMT+0000 (Coordinated Universal Time)";
|
|
1920
1920
|
U0 && console.log(`Engine version: ${Nn} (generator: ${tg})
|
|
1921
1921
|
Project built at ${z0}`);
|
|
1922
1922
|
const Nl = NEEDLE_PUBLIC_KEY, po = "needle_isActiveInHierarchy", ia = "builtin_components", ed = "needle_editor_guid";
|
|
@@ -4660,12 +4660,10 @@ TP();
|
|
|
4660
4660
|
async function TP() {
|
|
4661
4661
|
let s = "immersive-vr";
|
|
4662
4662
|
try {
|
|
4663
|
-
if (j.isNeedleAppClip() ? s = "immersive-ar" : await navigator.xr?.isSessionSupported("immersive-vr") || (s = "immersive-ar"), !await navigator.xr?.isSessionSupported("immersive-ar") && s === "immersive-ar")
|
|
4664
|
-
console.warn("[NeedleXRSession:granted] Neither VR nor AR supported, aborting session start.");
|
|
4663
|
+
if (j.isNeedleAppClip() ? s = "immersive-ar" : await navigator.xr?.isSessionSupported("immersive-vr") || (s = "immersive-ar"), !await navigator.xr?.isSessionSupported("immersive-ar") && s === "immersive-ar")
|
|
4665
4664
|
return;
|
|
4666
|
-
}
|
|
4667
4665
|
} catch (e) {
|
|
4668
|
-
console.
|
|
4666
|
+
console.debug("[NeedleXRSession:granted] Error while checking XR support:", e);
|
|
4669
4667
|
return;
|
|
4670
4668
|
}
|
|
4671
4669
|
if (x("debugasap")) {
|
|
@@ -4896,8 +4894,16 @@ class K {
|
|
|
4896
4894
|
if (j.isVisionOS() && !a && (e === "ar" || e === "immersive-ar") && (e = "quicklook"), e === "quicklook")
|
|
4897
4895
|
return Oc.exportAndOpen(), null;
|
|
4898
4896
|
if (!a && (e === "immersive-ar" || e === "ar")) {
|
|
4899
|
-
const l =
|
|
4900
|
-
|
|
4897
|
+
const l = new URL("https://appclip.apple.com/id?p=tools.needle.launch-app.Clip");
|
|
4898
|
+
l.searchParams.set("url", location.href);
|
|
4899
|
+
const c = l.toString(), h = window.top || window;
|
|
4900
|
+
try {
|
|
4901
|
+
console.debug("iOS device detected - opening Needle App Clip for AR experience", { mode: e, init: t, url: l }), h.location.href = c;
|
|
4902
|
+
} catch (d) {
|
|
4903
|
+
console.warn("Error navigating to AppClip " + c + `
|
|
4904
|
+
`, d), window !== window.top ? window.open(c, "_blank") : window.location.href = c;
|
|
4905
|
+
}
|
|
4906
|
+
return null;
|
|
4901
4907
|
}
|
|
4902
4908
|
}
|
|
4903
4909
|
if (e === "quicklook")
|
|
@@ -17380,7 +17386,15 @@ const to = x("debugcam"), Y_ = x("debugscreenpointtoray"), zt = class Hl extends
|
|
|
17380
17386
|
const i = t.environmentBlendMode;
|
|
17381
17387
|
to && Be("Environment blend mode: " + i + " on " + navigator.userAgent);
|
|
17382
17388
|
let n = i === "additive" || i === "alpha-blend";
|
|
17383
|
-
|
|
17389
|
+
if (e.isInAR && i === "opaque") {
|
|
17390
|
+
if (navigator.userAgent?.includes("OculusBrowser"))
|
|
17391
|
+
n = !0;
|
|
17392
|
+
else if (navigator.userAgent?.includes("Mozilla") && navigator.userAgent?.includes("Mobile WebXRViewer/v2"))
|
|
17393
|
+
n = !0;
|
|
17394
|
+
else if (j.isNeedleAppClip())
|
|
17395
|
+
return !0;
|
|
17396
|
+
}
|
|
17397
|
+
return t._transparent = n, n;
|
|
17384
17398
|
}
|
|
17385
17399
|
};
|
|
17386
17400
|
Zt([
|
|
@@ -44275,8 +44289,8 @@ export {
|
|
|
44275
44289
|
_w as USDDocument,
|
|
44276
44290
|
rt as USDObject,
|
|
44277
44291
|
tT as USDWriter,
|
|
44278
|
-
|
|
44279
|
-
|
|
44292
|
+
nT as USDZExporter,
|
|
44293
|
+
Vn as USDZExporter$1,
|
|
44280
44294
|
Ql as USDZText,
|
|
44281
44295
|
Vw as USDZUIExtension,
|
|
44282
44296
|
_M as UriSerializer,
|