feat: add axis-aligned 3d camera views

This commit is contained in:
2026-08-30 11:40:21 +09:00
parent 51c7bbd859
commit 2a2e192196
12 changed files with 619 additions and 61 deletions
+64
View File
@@ -1030,6 +1030,45 @@ details > summary::-webkit-details-marker {
border-right: 1px solid var(--line);
}
.axis-view-control {
display: grid;
min-width: 0;
grid-template-columns: auto minmax(132px, 1fr);
align-items: center;
gap: 7px;
padding-right: 8px;
border-right: 1px solid var(--line);
}
.axis-view-control[hidden] {
display: none !important;
}
.axis-view-control > span {
color: var(--muted);
font-size: 0.64rem;
font-weight: 680;
white-space: nowrap;
}
.axis-view-control select {
width: 100%;
min-width: 0;
max-width: 184px;
min-height: 32px;
padding: 5px 27px 5px 8px;
border: 1px solid var(--line);
border-radius: 8px;
color: var(--text);
background: #0b1714;
font-size: 0.66rem;
}
.axis-view-control select:focus-visible {
border-color: var(--mint);
outline: 2px solid rgb(101 242 191 / 10%);
}
.tool-button,
.icon-button {
min-height: 32px;
@@ -1429,6 +1468,11 @@ body[data-array-tool="add"] #array-canvas,
touch-action: pan-y;
}
#array-canvas[data-view-mode="3d"],
#beam-pattern-surface {
touch-action: pan-y;
}
.shortcut-help > div {
grid-template-columns: minmax(0, 1fr);
}
@@ -1488,6 +1532,17 @@ body[data-array-tool="add"] #array-canvas,
flex: 1 1 auto;
}
.axis-view-control {
width: 100%;
grid-template-columns: auto minmax(0, 1fr);
padding-right: 0;
border-right: 0;
}
.axis-view-control select {
max-width: none;
}
.zoom-tools {
width: 100%;
}
@@ -1504,6 +1559,15 @@ body[data-array-tool="add"] #array-canvas,
height: 430px;
}
.canvas-front-badge {
bottom: 48px;
max-width: calc(100% - 24px);
border-radius: 10px;
line-height: 1.35;
text-overflow: clip;
white-space: normal;
}
.array-statistics {
grid-template-columns: repeat(2, minmax(0, 1fr));
}