@sequent-org/ifc-viewer 1.0.10000001-ci.16.0 → 1.0.22000000001-ci.17.0
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/package.json
CHANGED
|
@@ -70,17 +70,18 @@ try {
|
|
|
70
70
|
globalThis.__THREE_BUFFER_GEOMETRY_UTILS_PATCH__ = patchedUtils;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// Патчим модуль BufferGeometryUtils через
|
|
73
|
+
// Патчим модуль BufferGeometryUtils через Promise (без top-level await)
|
|
74
74
|
if (typeof import.meta !== 'undefined' && import.meta.glob) {
|
|
75
|
-
// Для Vite - патчим через
|
|
76
|
-
|
|
77
|
-
const utilsModule = await import('three/examples/jsm/utils/BufferGeometryUtils.js');
|
|
75
|
+
// Для Vite - патчим через Promise
|
|
76
|
+
import('three/examples/jsm/utils/BufferGeometryUtils.js').then(utilsModule => {
|
|
78
77
|
if (utilsModule && !utilsModule.mergeGeometries) {
|
|
79
78
|
utilsModule.mergeGeometries = mergeGeometries;
|
|
79
|
+
console.log('✅ Three.js патч: mergeGeometries добавлен в BufferGeometryUtils модуль');
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
}).catch(e => {
|
|
82
82
|
// Игнорируем ошибки импорта
|
|
83
|
-
|
|
83
|
+
console.warn('Three.js патч: не удалось загрузить BufferGeometryUtils модуль:', e.message);
|
|
84
|
+
});
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
console.log('✅ Three.js патч: BufferGeometryUtils готов для web-ifc-three');
|