feat: add live multi-plane and 3d array views
This commit is contained in:
+214
-11
@@ -633,7 +633,9 @@ details > summary::-webkit-details-marker {
|
||||
}
|
||||
|
||||
.beam-pattern-controls,
|
||||
.beam-pattern-figure {
|
||||
.beam-pattern-visuals,
|
||||
.beam-pattern-figure,
|
||||
.beam-pattern-surface-figure {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@@ -658,12 +660,59 @@ details > summary::-webkit-details-marker {
|
||||
font-size: 0.55rem;
|
||||
}
|
||||
|
||||
.beam-pattern-view-switch {
|
||||
display: inline-flex;
|
||||
gap: 5px;
|
||||
margin-bottom: 11px;
|
||||
padding: 3px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: #07110f;
|
||||
}
|
||||
|
||||
.beam-pattern-view-switch .tool-button {
|
||||
min-width: 82px;
|
||||
}
|
||||
|
||||
.beam-pattern-fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.beam-frequency-field {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.beam-frequency-field > small,
|
||||
.beam-pattern-fields .field > small {
|
||||
margin-top: 5px;
|
||||
color: var(--muted);
|
||||
font-size: 0.56rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.beam-frequency-control {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
#beam-pattern-frequency {
|
||||
min-width: 0;
|
||||
padding-inline: 0;
|
||||
accent-color: var(--mint);
|
||||
cursor: ew-resize;
|
||||
}
|
||||
|
||||
#beam-pattern-frequency-value {
|
||||
color: var(--mint);
|
||||
font: 760 0.72rem ui-monospace, SFMono-Regular, Consolas, monospace;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.beam-pattern-metrics {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
@@ -728,36 +777,139 @@ details > summary::-webkit-details-marker {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.beam-pattern-figure {
|
||||
.beam-pattern-visuals {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
align-content: start;
|
||||
gap: 11px;
|
||||
}
|
||||
|
||||
.beam-pattern-cut-grid {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.beam-pattern-figure,
|
||||
.beam-pattern-surface-figure {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
justify-items: center;
|
||||
gap: 9px;
|
||||
gap: 7px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#beam-pattern-plot {
|
||||
.beam-pattern-figure-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.beam-pattern-figure-heading strong {
|
||||
color: #edf9f4;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.beam-pattern-figure-heading span {
|
||||
min-width: 0;
|
||||
color: var(--muted);
|
||||
font: 620 0.53rem ui-monospace, SFMono-Regular, Consolas, monospace;
|
||||
overflow-wrap: anywhere;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#beam-pattern-plot-xz,
|
||||
#beam-pattern-plot-yz,
|
||||
#beam-pattern-plot-xy {
|
||||
display: block;
|
||||
width: min(100%, 580px);
|
||||
width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
overflow: visible;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 14px;
|
||||
border: 1px solid rgb(145 170 162 / 22%);
|
||||
border-radius: 11px;
|
||||
color: var(--mint);
|
||||
background: #07110f;
|
||||
}
|
||||
|
||||
.beam-pattern-figure figcaption {
|
||||
width: min(100%, 580px);
|
||||
min-height: 2.8em;
|
||||
min-height: 3.8em;
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.61rem;
|
||||
font-size: 0.56rem;
|
||||
line-height: 1.45;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.beam-pattern-surface-figure {
|
||||
justify-items: stretch;
|
||||
}
|
||||
|
||||
#beam-pattern-surface {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: 16 / 10;
|
||||
border: 1px solid rgb(145 170 162 / 24%);
|
||||
border-radius: 12px;
|
||||
background: #07110f;
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
#beam-pattern-surface[data-orbiting="true"] {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
#beam-pattern-surface:focus-visible {
|
||||
outline: 2px solid var(--mint);
|
||||
outline-offset: -3px;
|
||||
}
|
||||
|
||||
.beam-pattern-surface-figure figcaption {
|
||||
color: var(--muted);
|
||||
font-size: 0.58rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.beam-pattern-diagnostics {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.beam-pattern-diagnostics p {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 8px 9px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
color: var(--muted);
|
||||
background: rgb(255 255 255 / 1.5%);
|
||||
font-size: 0.55rem;
|
||||
line-height: 1.45;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.beam-pattern-diagnostics strong,
|
||||
.beam-pattern-diagnostics span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.beam-pattern-diagnostics strong {
|
||||
margin-bottom: 3px;
|
||||
color: #cfe2db;
|
||||
}
|
||||
|
||||
[data-beam-mode][hidden],
|
||||
#beam-pattern-cuts-view[hidden],
|
||||
#beam-pattern-surface-view[hidden],
|
||||
#beam-pattern-peaks[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.beam-pattern-ring,
|
||||
.beam-pattern-axis {
|
||||
stroke: rgb(145 170 162 / 28%);
|
||||
@@ -976,6 +1128,15 @@ body[data-array-tool="add"] #array-canvas,
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
#array-canvas[data-view-mode="3d"] {
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
#array-canvas[data-view-mode="3d"][data-orbiting="true"] {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.canvas-instructions {
|
||||
position: absolute;
|
||||
top: 24px;
|
||||
@@ -1002,6 +1163,24 @@ body[data-array-tool="add"] #array-canvas,
|
||||
display: none;
|
||||
}
|
||||
|
||||
.canvas-front-badge {
|
||||
position: absolute;
|
||||
left: 12px;
|
||||
bottom: 12px;
|
||||
max-width: calc(100% - 190px);
|
||||
padding: 7px 10px;
|
||||
border: 1px solid rgb(88 199 232 / 30%);
|
||||
border-radius: 999px;
|
||||
color: var(--cyan);
|
||||
background: rgb(8 17 15 / 84%);
|
||||
backdrop-filter: blur(10px);
|
||||
font: 720 0.62rem ui-monospace, SFMono-Regular, Consolas, monospace;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.selection-status {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
@@ -1093,6 +1272,17 @@ body[data-array-tool="add"] #array-canvas,
|
||||
}
|
||||
}
|
||||
|
||||
@container beam-pattern (max-width: 620px) {
|
||||
.beam-pattern-cut-grid,
|
||||
.beam-pattern-diagnostics {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.beam-pattern-figure figcaption {
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@container beam-pattern (max-width: 460px) {
|
||||
.beam-pattern-heading {
|
||||
align-items: flex-start;
|
||||
@@ -1106,6 +1296,19 @@ body[data-array-tool="add"] #array-canvas,
|
||||
.beam-pattern-metrics {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.beam-frequency-field {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.beam-frequency-control {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
#beam-pattern-frequency-value {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
|
||||
Reference in New Issue
Block a user