feat: standardize Beam viewer environment settings

This commit is contained in:
CODEX
2026-06-05 17:04:11 +03:00
parent be2294d3fa
commit ef5b0a42a6
12 changed files with 556 additions and 194 deletions
+19 -13
View File
@@ -52,7 +52,9 @@
set("--toolbar-border", s.toolbarBorder);
set("--toolbar-outline", s.toolbarOutline);
set("--modal-bg", s.modalBg);
set("--modal-bg-alpha", s.modalBgAlpha !== undefined ? `${s.modalBgAlpha * 100}%` : undefined);
set("--modal-focus", s.modalFocus);
set("--modal-focus-alpha", s.modalFocusAlpha !== undefined ? `${s.modalFocusAlpha * 100}%` : undefined);
set("--modal-border", s.modalBorder);
set("--modal-element", s.modalElement);
set("--modal-element-outline", s.modalElementOutline);
@@ -87,7 +89,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./dcViewer.css?v=12">
<link rel="stylesheet" href="./dcViewer.css?v=16">
</head>
<body>
<header>
@@ -125,17 +127,21 @@
</section>
<aside class="side-panel" id="viewerInspector">
<div class="panel-section">
<div class="inspector-panel-header">
<h3>Инспектор</h3>
<button
class="inspector-collapse-btn"
id="inspectorCollapseButton"
type="button"
title="Свернуть инспектор"
aria-label="Свернуть инспектор"
>▁</button>
</div>
<div class="inspector-panel-header">
<h3>Инспектор</h3>
<button
class="inspector-collapse-btn"
id="inspectorCollapseButton"
type="button"
title="Свернуть инспектор"
aria-label="Свернуть инспектор"
>
<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true">
<path d="M4.25 4.25 11.75 11.75M11.75 4.25 4.25 11.75" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path>
</svg>
</button>
</div>
<div class="panel-section inspector-main-section">
<div id="treeContainer" class="tree"></div>
<div class="inspector-controls">
<div class="inspector-control-row inspector-control-row--half" id="displayModeControl">
@@ -251,6 +257,6 @@
<input id="fileInput" class="hidden" type="file"
accept=".xkt,.glb,.gltf,.bim,.las,.laz,.obj,.stl">
<script type="module" src="./dcViewer.js?v=17"></script>
<script type="module" src="./dcViewer.js?v=21"></script>
</body>
</html>