@sequent-org/ifc-viewer 1.2.4-ci.23.0 → 1.2.4-ci.24.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 +1 -1
- package/src/IfcViewer.js +10 -31
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequent-org/ifc-viewer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.4-ci.
|
|
4
|
+
"version": "1.2.4-ci.24.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "IFC 3D model viewer component for web applications - fully self-contained with local IFCLoader",
|
|
7
7
|
"main": "src/index.js",
|
package/src/IfcViewer.js
CHANGED
|
@@ -293,8 +293,16 @@ export class IfcViewer {
|
|
|
293
293
|
// Основная разметка просмотрщика
|
|
294
294
|
const html = `
|
|
295
295
|
<div class="ifc-viewer-container" style="width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; border:0px red solid;">
|
|
296
|
+
<!-- Прелоадер -->
|
|
297
|
+
<div id="ifcPreloader" class="absolute inset-0 bg-base-100 flex items-center justify-center z-50">
|
|
298
|
+
<div class="text-center">
|
|
299
|
+
<span class="loading loading-spinner loading-lg"></span>
|
|
300
|
+
<div class="mt-2 text-sm opacity-70">Загрузка модели...</div>
|
|
301
|
+
</div>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
296
304
|
<!-- Верхняя панель управления -->
|
|
297
|
-
<div id="ifcToolbar" class="d-flex px-4" style="border:0px red solid; width: 250px; position: absolute; z-index: 1000; justify-content:space-between; bottom:
|
|
305
|
+
<div id="ifcToolbar" class="d-flex px-4" style="border:0px red solid; width: 250px; position: absolute; z-index: 1000; justify-content:space-between; bottom: 10px; left: calc(50% - 125px); ">
|
|
298
306
|
|
|
299
307
|
<div class="navbar-end flex gap-2">
|
|
300
308
|
|
|
@@ -311,36 +319,7 @@ export class IfcViewer {
|
|
|
311
319
|
</div>
|
|
312
320
|
|
|
313
321
|
</div>
|
|
314
|
-
</div>
|
|
315
|
-
|
|
316
|
-
<!-- Слайдеры секущих плоскостей (изначально скрыты) -->
|
|
317
|
-
<div id="ifcClipControls" class="bg-base-200 px-4 py-2 border-b border-base-300" style="display: ${this.options.showToolbar ? 'none' : 'none'};">
|
|
318
|
-
<div class="flex items-center gap-4 text-sm">
|
|
319
|
-
<!-- Слайдер X -->
|
|
320
|
-
<div id="ifcClipXControl" class="flex items-center gap-2" style="display: none;">
|
|
321
|
-
<span class="w-12">Clip X:</span>
|
|
322
|
-
<input type="range" id="ifcClipXRange" class="range range-sm flex-1" min="0" max="1" step="0.01" value="0.5">
|
|
323
|
-
</div>
|
|
324
|
-
<!-- Слайдер Y -->
|
|
325
|
-
<div id="ifcClipYControl" class="flex items-center gap-2" style="display: none;">
|
|
326
|
-
<span class="w-12">Clip Y:</span>
|
|
327
|
-
<input type="range" id="ifcClipYRange" class="range range-sm flex-1" min="0" max="1" step="0.01" value="0.5">
|
|
328
|
-
</div>
|
|
329
|
-
<!-- Слайдер Z -->
|
|
330
|
-
<div id="ifcClipZControl" class="flex items-center gap-2" style="display: none;">
|
|
331
|
-
<span class="w-12">Clip Z:</span>
|
|
332
|
-
<input type="range" id="ifcClipZRange" class="range range-sm flex-1" min="0" max="1" step="0.01" value="0.5">
|
|
333
|
-
</div>
|
|
334
|
-
</div>
|
|
335
|
-
</div>
|
|
336
|
-
|
|
337
|
-
<!-- Прелоадер -->
|
|
338
|
-
<div id="ifcPreloader" class="absolute inset-0 bg-base-100 flex items-center justify-center z-50">
|
|
339
|
-
<div class="text-center">
|
|
340
|
-
<span class="loading loading-spinner loading-lg"></span>
|
|
341
|
-
<div class="mt-2 text-sm opacity-70">Загрузка модели...</div>
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
322
|
+
</div>
|
|
344
323
|
|
|
345
324
|
<!-- Основной контейнер просмотрщика -->
|
|
346
325
|
<div id="ifcViewerMain" class="w-full flex-1 relative"></div>
|