Add BIM section plane tool

This commit is contained in:
CODEX
2026-06-18 21:53:18 +03:00
parent 4638acc04b
commit e343412468
3 changed files with 327 additions and 3 deletions
+91
View File
@@ -1911,11 +1911,102 @@ header {
background: var(--toolbar-bg-active);
}
.tb-btn.disabled,
.tb-btn:disabled {
cursor: default;
opacity: 0.45;
transform: none;
box-shadow: none;
}
body[data-viewer-mode="guest"] .bottom-toolbar,
body[data-viewer-mode="guest"] .section-toolbar,
body[data-viewer-mode="guest"] .section-overview,
body[data-viewer-mode="guest"] .inspector-restore-tray {
display: none !important;
}
.section-toolbar {
position: fixed;
left: calc(12px + var(--tb-size, 52px) + 10px);
bottom: 12px;
z-index: 16;
display: flex;
align-items: center;
gap: 6px;
padding: 6px;
border: 1px solid var(--toolbar-border);
border-radius: var(--tb-radius, 12px);
background: color-mix(in srgb, var(--toolbar-bg) 88%, transparent);
box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
backdrop-filter: blur(18px) saturate(124%);
-webkit-backdrop-filter: blur(18px) saturate(124%);
}
.section-toolbar.hidden {
display: none;
}
.section-tool-btn {
width: 38px;
height: 38px;
display: inline-grid;
place-items: center;
border: 1px solid transparent;
border-radius: calc(var(--tb-radius, 12px) - 4px);
background: transparent;
color: var(--text);
font-size: 13px;
font-weight: 700;
line-height: 1;
cursor: pointer;
transition: background 120ms ease, border-color 120ms ease, transform 100ms ease;
}
.section-tool-btn:hover,
.section-tool-btn.active {
border-color: var(--toolbar-outline, rgba(76, 224, 210, 0.7));
background: var(--toolbar-bg-active);
color: var(--modal-btn-primary-contrast, #15170f);
}
.section-tool-btn:active {
transform: translateY(1px);
}
.section-tool-btn svg {
display: block;
width: 21px;
height: 21px;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.section-axis-btn {
letter-spacing: 0;
}
.section-overview {
position: fixed;
left: calc(12px + var(--tb-size, 52px) + 10px);
bottom: 66px;
width: 150px;
height: 150px;
z-index: 14;
display: none;
border: 1px solid var(--toolbar-border);
border-radius: 12px;
background: color-mix(in srgb, var(--toolbar-bg) 84%, transparent);
box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}
body[data-section-mode="active"] .section-overview {
display: block;
}
.templates-panel {
position: fixed;
left: var(--templates-left, 72px);