@gnsx/three 0.185.2 → 0.185.4
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/examples/jsm/Addons.js
CHANGED
|
@@ -104,7 +104,12 @@ export * from './loaders/LUT3dlLoader.js';
|
|
|
104
104
|
export * from './loaders/LUTCubeLoader.js';
|
|
105
105
|
export * from './loaders/LUTImageLoader.js';
|
|
106
106
|
export * from './loaders/LWOLoader.js';
|
|
107
|
-
|
|
107
|
+
// WITH_GENESYS
|
|
108
|
+
// LottieLoader is excluded from the Addons barrel because it imports lottie-web from a CDN URL
|
|
109
|
+
// (https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/+esm), which Node.js/TSX cannot resolve in test
|
|
110
|
+
// environments. The loader is also deprecated in r185 and scheduled for removal in r186.
|
|
111
|
+
// export * from './loaders/LottieLoader.js';
|
|
112
|
+
// !WITH_GENESYS
|
|
108
113
|
export * from './loaders/MD2Loader.js';
|
|
109
114
|
export * from './loaders/MDDLoader.js';
|
|
110
115
|
export * from './loaders/MTLLoader.js';
|
|
@@ -539,6 +539,14 @@ class Inspector extends RendererInspector {
|
|
|
539
539
|
|
|
540
540
|
function getItem( id ) {
|
|
541
541
|
|
|
542
|
+
// WITH_GENESYS
|
|
543
|
+
if ( globalThis.localStorage === undefined ) {
|
|
544
|
+
|
|
545
|
+
return {};
|
|
546
|
+
|
|
547
|
+
}
|
|
548
|
+
// !WITH_GENESYS
|
|
549
|
+
|
|
542
550
|
const data = JSON.parse( localStorage.getItem( 'threejs-inspector' ) || '{}' );
|
|
543
551
|
|
|
544
552
|
if ( data.version !== REVISION ||
|
|
@@ -556,6 +564,14 @@ function getItem( id ) {
|
|
|
556
564
|
|
|
557
565
|
function setItem( id, state ) {
|
|
558
566
|
|
|
567
|
+
// WITH_GENESYS
|
|
568
|
+
if ( globalThis.localStorage === undefined ) {
|
|
569
|
+
|
|
570
|
+
return;
|
|
571
|
+
|
|
572
|
+
}
|
|
573
|
+
// !WITH_GENESYS
|
|
574
|
+
|
|
559
575
|
const data = JSON.parse( localStorage.getItem( 'threejs-inspector' ) || '{}' );
|
|
560
576
|
|
|
561
577
|
if ( state === null ) {
|