@floless/app 0.129.0 → 0.130.1
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/dist/floless-server.cjs +1390 -651
- package/dist/schemas/steel.model.v2.schema.json +28 -8
- package/dist/web/steel-3d-view.js +339 -32
- package/dist/web/steel-editor.html +476 -148
- package/dist/web/vector-3d.html +80 -13
- package/dist/web/vector-editor.html +66 -21
- package/package.json +4 -1
|
@@ -1,13 +1,186 @@
|
|
|
1
1
|
<!doctype html><html><head><meta charset=utf-8>
|
|
2
2
|
<title>Steel Model — editor</title>
|
|
3
|
+
<!-- Mirrors the shell's light/dark choice onto this document's <html> — see web/frame-theme.js for why it
|
|
4
|
+
reads localStorage rather than being poked by the parent. Classic, non-deferred and in <head> on
|
|
5
|
+
purpose: the attribute has to land before first paint or a light user sees a dark flash. -->
|
|
6
|
+
<script src="./frame-theme.js"></script>
|
|
3
7
|
<style>
|
|
4
|
-
|
|
8
|
+
/* THE CHROME follows the app theme; THE STAGE DOES NOT — the two halves of this palette (#727, the
|
|
9
|
+
recipe steel-filter.html established in #726).
|
|
10
|
+
Everything a user reads as app furniture — the header, the right rail, every modal, the header's own
|
|
11
|
+
dropdowns, toasts, tooltips, scrollbars — is themed below and goes light with the shell.
|
|
12
|
+
THE STAGE IS A DARK ISLAND IN BOTH THEMES. Both canvases paint geometry in colours tuned for a dark
|
|
13
|
+
ground: cyan dimensions and snap markers, #e2e8f0 label text, #64748b dash-dot grid lines, #f8fafc
|
|
14
|
+
end handles, and a three.js scene with its own clear colour. Flipping that means re-deriving the whole
|
|
15
|
+
drawing palette — a separate piece of work — and #602's reporter names keeping the drawing dark as the
|
|
16
|
+
acceptable choice as long as it is a deliberate one.
|
|
17
|
+
THE FURNITURE FLOATING ON THE STAGE STAYS DARK WITH IT, and that is the same rule rather than an
|
|
18
|
+
exception to it: a light zoom bar / 3D toolbar / legend over a dark model would put --text (near-black
|
|
19
|
+
in light) on fills nobody re-tinted and drop its shadow into nothing. They are re-pinned wholesale by
|
|
20
|
+
the ".island" block below — see it for the mechanism and the exact membership. */
|
|
21
|
+
:root{
|
|
22
|
+
color-scheme:dark; /* so the UA-drawn bits we do not style (selection, the pre-CSS canvas) agree */
|
|
23
|
+
--bg:#0f172a;--panel:#1e293b;--line:#334155;--text:#e2e8f0;--mut:#94a3b8;--brand:#3b82f6;
|
|
24
|
+
--brand-ink:#fff; /* text/glyphs on a --brand fill */
|
|
25
|
+
--brand-hover:#2f6fe0;
|
|
26
|
+
--btn:#334155; /* secondary button fill, and the menu-row hover that matches it */
|
|
27
|
+
--btn-hover:#475569;
|
|
28
|
+
--ctrl-border:#475569; /* button, field, checkbox and radio borders */
|
|
29
|
+
--field:#0f172a; /* the inside of an input/select — a shade BELOW the panel it sits on */
|
|
30
|
+
--sunken:#0b1220; /* recessed chrome: an expanded table row, a card preview, a dropzone */
|
|
31
|
+
--hover-soft:#33415580; /* the lighter row hover used by dense lists (kept translucent) */
|
|
32
|
+
--scroll:#475569;--scroll-hover:#5b6b85;
|
|
33
|
+
--shadow-lg:0 8px 24px rgba(0,0,0,.5); /* dropdowns and popovers */
|
|
34
|
+
--shadow-md:0 6px 20px rgba(0,0,0,.5); /* toasts, small popovers */
|
|
35
|
+
--shadow-sm:0 2px 8px rgba(0,0,0,.45); /* inline readouts */
|
|
36
|
+
--shadow-float:0 4px 14px rgba(0,0,0,.45); /* a control lifted off the surface behind it */
|
|
37
|
+
--shadow-modal:0 20px 60px rgba(0,0,0,.6);
|
|
38
|
+
--shadow-xl:0 24px 70px rgba(0,0,0,.7); /* the lightbox, the one panel that covers the app */
|
|
39
|
+
--shadow-tip:0 8px 22px rgba(0,0,0,.5); /* the tooltip keeps its own, SMALLER treatment — the same
|
|
40
|
+
control on four surfaces all ship 0 8px 22px, so folding
|
|
41
|
+
it into --shadow-lg would de-sync this one from them */
|
|
42
|
+
--backdrop:rgba(2,8,23,.62);
|
|
43
|
+
--brand-wash:rgba(59,130,246,.16); /* a selected row */
|
|
44
|
+
--brand-wash-soft:rgba(59,130,246,.12); /* a "you just navigated here" flash */
|
|
45
|
+
--brand-wash-faint:rgba(59,130,246,.08);/* an open accordion header */
|
|
46
|
+
--brand-wash-strong:rgba(59,130,246,.28);/* the .mck switch track when on */
|
|
47
|
+
--ink-max:#fff; /* the hover "brighten" one step past --text */
|
|
48
|
+
/* Each state carries THREE roles, and they do not collapse into one value on light: the INK (text),
|
|
49
|
+
the FILL it sits on when it is a pill, and the EDGE when it is an outlined chip. On dark the fill is
|
|
50
|
+
the deep end of the ramp and the ink the pale end; on light they swap, so a fill re-used as a border
|
|
51
|
+
would vanish and a border re-used as a fill would shout. */
|
|
52
|
+
--warn:#fbbf24;--warn-soft:#fcd34d;--warn-bg:#713f12;--warn-edge:#713f12; /* amber = "needs review", never an error */
|
|
53
|
+
--ok:#86efac;--ok-bg:#166534;--ok-edge:#166534;--ok-wash:rgba(22,101,52,.28); /* green = human-confirmed */
|
|
54
|
+
--ok-border:#16a34a;--ok-ink:#dcfce7; /* the FILLED success button (Dedupe done / Reviewed) */
|
|
55
|
+
--hi:#4ade80;--hi-bg:#14532d; /* the confidence report's "high" band, one stop off --ok */
|
|
56
|
+
--err:#fca5a5;--err-bg:#7f1d1d;--err-border:#991b1b;--err-edge:#7f1d1d;--err-ink:#fecaca;
|
|
57
|
+
--err-wash:rgba(127,29,29,.28);--err-underline:rgba(254,202,202,.55);
|
|
58
|
+
--cyan:#22d3ee;--cyan-soft:rgba(34,211,238,.10); /* the "non-default, click to act" chip */
|
|
59
|
+
--cyan-wash:rgba(34,211,238,.06);--cyan-edge:rgba(34,211,238,.35);
|
|
60
|
+
--purple:#a855f7;--purple-ink:#c4b5fd; /* detail callouts (the drawing's own purple, in chrome) */
|
|
61
|
+
--info-ink:#bfdbfe; /* pale-blue ink on a brand-bordered chip */
|
|
62
|
+
}
|
|
63
|
+
/* Light — the same slate/blue ramp as the shell's [data-theme="light"] (web/app.css), re-expressed in
|
|
64
|
+
this page's token names because a standalone page does not load app.css. No new colours: every value
|
|
65
|
+
is app.css's own light token or the -700/-800 stop of a ramp it already uses on light, and the seven
|
|
66
|
+
measured in #726's design review (--mut, --line, --ctrl-border, --warn, --ok, --err, --cyan) are
|
|
67
|
+
reused rather than re-derived. Every state colour steps DOWN its ramp, amber included: amber 400
|
|
68
|
+
measures under 2:1 on --panel, and amber here is "needs review", the state a user must not miss. */
|
|
69
|
+
[data-theme="light"]{
|
|
70
|
+
color-scheme:light;
|
|
71
|
+
--bg:#fff;--panel:#f1f5f9;--line:#cbd5e1;--text:#0f172a;--mut:#475569;--brand:#2563eb;
|
|
72
|
+
--brand-hover:#1d4ed8;
|
|
73
|
+
--btn:#e2e8f0;--btn-hover:#cbd5e1;--ctrl-border:#94a3b8;
|
|
74
|
+
--field:#fff;
|
|
75
|
+
--sunken:#e2e8f0; /* recessed reads DARKER than its panel on light — the mirror of #0b1220 */
|
|
76
|
+
--hover-soft:rgba(15,23,42,.06);
|
|
77
|
+
--scroll:#cbd5e1;--scroll-hover:#94a3b8;
|
|
78
|
+
--shadow-lg:0 8px 24px rgba(15,23,42,.14);
|
|
79
|
+
--shadow-md:0 6px 20px rgba(15,23,42,.14);
|
|
80
|
+
--shadow-sm:0 2px 8px rgba(15,23,42,.12);
|
|
81
|
+
--shadow-float:0 4px 14px rgba(15,23,42,.14);
|
|
82
|
+
--shadow-modal:0 20px 60px rgba(15,23,42,.18);
|
|
83
|
+
--shadow-xl:0 24px 70px rgba(15,23,42,.20);
|
|
84
|
+
--shadow-tip:0 8px 22px rgba(15,23,42,.14);
|
|
85
|
+
--backdrop:rgba(15,23,42,.42);
|
|
86
|
+
--brand-wash:rgba(37,99,235,.14);--brand-wash-soft:rgba(37,99,235,.10);
|
|
87
|
+
--brand-wash-faint:rgba(37,99,235,.07);--brand-wash-strong:rgba(37,99,235,.22);
|
|
88
|
+
--ink-max:#0f172a;
|
|
89
|
+
/* The ink/fill/edge swap named in :root, applied: ink is the -700/-800 stop (AA on --panel), the fill
|
|
90
|
+
is the -100 tint, and the edge is the -300 stop — visible on --panel without reading as a state fill. */
|
|
91
|
+
--warn:#b45309;--warn-soft:#b45309;--warn-bg:#fef3c7;--warn-edge:#b45309;
|
|
92
|
+
--ok:#15803d;--ok-bg:#dcfce7;--ok-edge:#15803d;--ok-wash:rgba(21,128,61,.14);
|
|
93
|
+
--ok-border:#16a34a;--ok-ink:#15803d;
|
|
94
|
+
--hi:#14532d;--hi-bg:#dcfce7; /* light keeps the two greens apart by INK depth, not a second tint */
|
|
95
|
+
--err:#b91c1c;--err-bg:#fee2e2;--err-border:#ef4444;--err-edge:#b91c1c;--err-ink:#b91c1c;
|
|
96
|
+
--err-wash:rgba(185,28,28,.12);--err-underline:rgba(185,28,28,.55);
|
|
97
|
+
--cyan:#155e75;--cyan-soft:rgba(21,94,117,.10);
|
|
98
|
+
--cyan-wash:rgba(21,94,117,.06);--cyan-edge:rgba(21,94,117,.35);
|
|
99
|
+
--purple:#7e22ce;--purple-ink:#6b21a8;
|
|
100
|
+
--info-ink:#1d4ed8;
|
|
101
|
+
}
|
|
102
|
+
/* ── THE DARK ISLAND ────────────────────────────────────────────────────────────────────────────────
|
|
103
|
+
The stage and every piece of furniture floating on it keep the dark palette in BOTH themes.
|
|
104
|
+
THE MECHANISM IS INHERITANCE, NOT A REWRITE. Custom properties cascade, so re-declaring the dark
|
|
105
|
+
values ON these elements re-points every `var(--…)` inside their subtrees back at the dark palette
|
|
106
|
+
without touching one of the ~200 rules that read them. That is deliberate: hand-renaming each of those
|
|
107
|
+
rules to a parallel `--stage-*` token (steel-filter.html's approach, which had exactly one floating
|
|
108
|
+
bar to pin) would be a 200-rule diff on this page, and every rule it missed would be a light control
|
|
109
|
+
stranded on the black canvas.
|
|
110
|
+
MEMBERSHIP IS "does it sit ON the drawing?", not "is it a popup?" — hence #propPop, #snapMenu and the
|
|
111
|
+
row menus (opened by right-clicking the model or a legend row) are in, while #moreMenu, .cmmenu,
|
|
112
|
+
#comboPop and .plan-popover — which hang off the light HEADER, exactly as steel-filter's .sheet-popover
|
|
113
|
+
does — are out. Toasts, banners and #tooltip are out too: they are app-level chrome that can appear
|
|
114
|
+
over any surface, and the sibling page already themes its own.
|
|
115
|
+
The 3D toolbar's own .m3dmenu dropdowns are inside #m3dBar, so they are covered by it; the ONE
|
|
116
|
+
.m3dmenu that lives in the ⋯ menu (#m3dInsertMenu) is not, and correctly goes light with its host —
|
|
117
|
+
which is why the .m3dmenu rules are tokenized rather than left as dark literals.
|
|
118
|
+
THE TWO COLLAPSE HANDLES LOOK INCONSISTENT AND ARE NOT: a handle follows its HOST, not its position.
|
|
119
|
+
#m3dLegendCollapse/#m3dLegendLauncher hang off the pinned-dark legend, so they are in; #panelToggle
|
|
120
|
+
hangs off the light inspector rail, so it is out — each reads as part of the thing it opens, even
|
|
121
|
+
though both straddle the same seam. */
|
|
122
|
+
[data-theme="light"] #stage,[data-theme="light"] #stage3d,[data-theme="light"] #ro2d,
|
|
123
|
+
[data-theme="light"] #zoombar,[data-theme="light"] #connCrumb,[data-theme="light"] #bottomDock,
|
|
124
|
+
[data-theme="light"] #selFly,[data-theme="light"] #m3dBar,[data-theme="light"] #m3dLegend,
|
|
125
|
+
[data-theme="light"] #m3dLegendCollapse,[data-theme="light"] #m3dLegendLauncher,
|
|
126
|
+
[data-theme="light"] #propPop,[data-theme="light"] #snapMenu,[data-theme="light"] #vwRowMenu,
|
|
127
|
+
[data-theme="light"] #favRowMenu,[data-theme="light"] #dimEditPop,[data-theme="light"] #cmHud,
|
|
128
|
+
[data-theme="light"] #m3dCube,[data-theme="light"] #m3dAxes,[data-theme="light"] #plHint,
|
|
129
|
+
[data-theme="light"] #gridReadout,[data-theme="light"] #gridLabelEdit,[data-theme="light"] #m3dReadout,[data-theme="light"] #m3dRubber,
|
|
130
|
+
[data-theme="light"] #m3dDimLabels,[data-theme="light"] #m3dMemberLabels,[data-theme="light"] #m3dHoverChip,
|
|
131
|
+
[data-theme="light"] #m3dPropLabelHost,[data-theme="light"] #m3dSelLenLabels,
|
|
132
|
+
[data-theme="light"] .dimpv,
|
|
133
|
+
[data-theme="light"] .leg-drag-ghost,[data-theme="light"] .tekla-drag-ghost{
|
|
134
|
+
color-scheme:dark;
|
|
135
|
+
/* RE-ANCHOR THE INHERITED COLOUR, not only the tokens. Re-declaring --text fixes every rule that
|
|
136
|
+
READS it, and misses every element that sets no colour at all and simply inherits <body>'s — which
|
|
137
|
+
in light is near-black. Measured, not reasoned: the 3D legend's Objects rows (`#m3dLegend .lrow`
|
|
138
|
+
declares no colour) came out #0f172a on the #1e293b panel, i.e. all but invisible, while the Views
|
|
139
|
+
rows beside them were fine because `.vwname` happens to say `color:var(--text)`. One declaration
|
|
140
|
+
here re-parents the whole subtree; without it this class of hole is invisible until someone opens
|
|
141
|
+
that exact tab. */
|
|
142
|
+
color:var(--text);
|
|
143
|
+
--bg:#0f172a;--panel:#1e293b;--line:#334155;--text:#e2e8f0;--mut:#94a3b8;--brand:#3b82f6;
|
|
144
|
+
--brand-ink:#fff;--brand-hover:#2f6fe0;
|
|
145
|
+
--btn:#334155;--btn-hover:#475569;--ctrl-border:#475569;--field:#0f172a;--sunken:#0b1220;
|
|
146
|
+
--hover-soft:#33415580;--scroll:#475569;--scroll-hover:#5b6b85;
|
|
147
|
+
--shadow-lg:0 8px 24px rgba(0,0,0,.5);--shadow-md:0 6px 20px rgba(0,0,0,.5);
|
|
148
|
+
--shadow-sm:0 2px 8px rgba(0,0,0,.45);--shadow-float:0 4px 14px rgba(0,0,0,.45);
|
|
149
|
+
--shadow-modal:0 20px 60px rgba(0,0,0,.6);--shadow-xl:0 24px 70px rgba(0,0,0,.7);
|
|
150
|
+
--shadow-tip:0 8px 22px rgba(0,0,0,.5);--backdrop:rgba(2,8,23,.62);
|
|
151
|
+
--brand-wash:rgba(59,130,246,.16);--brand-wash-soft:rgba(59,130,246,.12);
|
|
152
|
+
--brand-wash-faint:rgba(59,130,246,.08);--brand-wash-strong:rgba(59,130,246,.28);
|
|
153
|
+
--ink-max:#fff;
|
|
154
|
+
--warn:#fbbf24;--warn-soft:#fcd34d;--warn-bg:#713f12;--warn-edge:#713f12;
|
|
155
|
+
--ok:#86efac;--ok-bg:#166534;--ok-edge:#166534;--ok-wash:rgba(22,101,52,.28);
|
|
156
|
+
--ok-border:#16a34a;--ok-ink:#dcfce7;--hi:#4ade80;--hi-bg:#14532d;
|
|
157
|
+
--err:#fca5a5;--err-bg:#7f1d1d;--err-border:#991b1b;--err-edge:#7f1d1d;--err-ink:#fecaca;
|
|
158
|
+
--err-wash:rgba(127,29,29,.28);--err-underline:rgba(254,202,202,.55);
|
|
159
|
+
--cyan:#22d3ee;--cyan-soft:rgba(34,211,238,.10);
|
|
160
|
+
--cyan-wash:rgba(34,211,238,.06);--cyan-edge:rgba(34,211,238,.35);
|
|
161
|
+
--purple:#a855f7;--purple-ink:#c4b5fd;--info-ink:#bfdbfe;
|
|
162
|
+
}
|
|
163
|
+
/* Four one-off chrome values that are NOT worth a token, re-stated for light only. Each is a single rule
|
|
164
|
+
whose dark value is a hair off an existing token (a scrim at .66 where every other is .62, a hairline
|
|
165
|
+
at #0f1a2e, a drop-shadow at 18/48 where the siblings are 20/60). Folding them into the shared tokens
|
|
166
|
+
would have been tidier but would have changed dark pixels, and the point of the tokenize pass is that
|
|
167
|
+
the STYLE BLOCK comes out byte-identical in dark, so a screenshot diff of the editor proves it (it did:
|
|
168
|
+
the rendered frame matched to the byte).
|
|
169
|
+
That claim is about these rules, and deliberately not about the whole commit: three script-built
|
|
170
|
+
literals outside the editor's own surface DID change, on purpose — the whole-page empty and boot-failure
|
|
171
|
+
states moved from #070a0f/#e7ecf3/#9aa5b6/#ef4444 onto tokens, because a page that REPLACES <body> must
|
|
172
|
+
follow the theme or a light user gets a black error screen. Those three are not on any screenshot the
|
|
173
|
+
diff covers. */
|
|
174
|
+
[data-theme="light"] #ciDrop.drag{background:#dbeafe}
|
|
175
|
+
[data-theme="light"] .ci-row{border-bottom-color:var(--line)}
|
|
176
|
+
[data-theme="light"] #refImportModal .mbackdrop{background:var(--backdrop)}
|
|
177
|
+
[data-theme="light"] #refImportModal .ripanel{box-shadow:0 18px 48px rgba(15,23,42,.16)}
|
|
5
178
|
/* Theme EVERY scrollbar — no native white default may leak (applies to the canvas, panels, and every modal list). */
|
|
6
|
-
*{scrollbar-width:thin;scrollbar-color
|
|
179
|
+
*{scrollbar-width:thin;scrollbar-color:var(--scroll) transparent}
|
|
7
180
|
*::-webkit-scrollbar{width:10px;height:10px}
|
|
8
181
|
*::-webkit-scrollbar-track{background:transparent}
|
|
9
|
-
*::-webkit-scrollbar-thumb{background
|
|
10
|
-
*::-webkit-scrollbar-thumb:hover{background
|
|
182
|
+
*::-webkit-scrollbar-thumb{background:var(--scroll);border-radius:6px;border:2px solid transparent;background-clip:content-box}
|
|
183
|
+
*::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover);background-clip:content-box}
|
|
11
184
|
*::-webkit-scrollbar-corner{background:transparent}
|
|
12
185
|
*{box-sizing:border-box} html{width:100%;height:100%;overflow:hidden}
|
|
13
186
|
body{margin:0;background:var(--bg);color:var(--text);font:13px system-ui;width:100%;max-width:100%;height:100vh;overflow:hidden;display:flex;flex-direction:column}
|
|
@@ -15,11 +188,11 @@
|
|
|
15
188
|
header b{font-size:14px} .stat{color:var(--mut)} .stat b{color:var(--text)}
|
|
16
189
|
header .tb-sep{width:1px;height:20px;background:var(--line);flex:0 0 auto;align-self:center} /* thin divider grouping the header action clusters (history | tools | AI | more) */
|
|
17
190
|
#dim3dWrap{gap:8px} /* 3D Dimension cluster in the header — display flips inline-flex/none by view (applyViewState) */
|
|
18
|
-
button{background
|
|
19
|
-
button:hover{background
|
|
20
|
-
button:disabled{opacity:.4;cursor:default;background
|
|
21
|
-
.seg-group{display:inline-flex;border:1px solid
|
|
22
|
-
.seg-group button{border:0;border-radius:0;border-right:1px solid
|
|
191
|
+
button{background:var(--btn);color:var(--text);border:1px solid var(--ctrl-border);border-radius:6px;padding:5px 10px;cursor:pointer;font:13px system-ui}
|
|
192
|
+
button:hover{background:var(--btn-hover)} button.on{background:var(--brand);border-color:var(--brand)}
|
|
193
|
+
button:disabled{opacity:.4;cursor:default;background:var(--btn)}
|
|
194
|
+
.seg-group{display:inline-flex;border:1px solid var(--ctrl-border);border-radius:6px;overflow:hidden}
|
|
195
|
+
.seg-group button{border:0;border-radius:0;border-right:1px solid var(--ctrl-border)}
|
|
23
196
|
.seg-group button:last-child{border-right:0}
|
|
24
197
|
#m3dDimAxis button{min-width:5.2em;white-space:nowrap;text-align:center} /* UCS Stage 5: min-width holds the longest label ("World X") so relabeling X→X′→World X across frame states keeps every segment — and the group's total width — constant (no header-cluster jitter) */
|
|
25
198
|
/* The read-only ribbon (unit 5, P7d). IN FLOW under the header, not in the fixed-bottom banner slot —
|
|
@@ -47,8 +220,8 @@
|
|
|
47
220
|
.detf{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;font-size:11px;color:var(--mut)}
|
|
48
221
|
.detf input{width:100%}
|
|
49
222
|
/* F14 definition-points: local-frame coord row — reuses the #csStat.local cyan wash (no new colour) */
|
|
50
|
-
.dp-local{background:
|
|
51
|
-
.dp-local .detf span{color
|
|
223
|
+
.dp-local{background:var(--cyan-wash);border:1px solid var(--cyan-edge);border-radius:6px;padding:4px 4px 2px}
|
|
224
|
+
.dp-local .detf span{color:var(--cyan)}
|
|
52
225
|
#detOpacity{flex:1;min-width:0} /* SIZING only — the theming is the global input[type=range] rule below */
|
|
53
226
|
#zoombar #zPct{min-width:40px;text-align:right;color:var(--mut);font-variant-numeric:tabular-nums}
|
|
54
227
|
/* Connection Component breadcrumb (Slice A) — a floating chip over the 3D canvas, same recipe as #zoombar. */
|
|
@@ -64,7 +237,7 @@
|
|
|
64
237
|
#panelResizer::before{content:"";position:absolute;inset:0 3px;border-radius:2px;transition:background-color .12s}
|
|
65
238
|
#panelResizer:hover::before,#panelResizer.drag::before{background:var(--brand)}
|
|
66
239
|
#panelResizer:focus-visible{outline:none} #panelResizer:focus-visible::before{background:var(--brand)}
|
|
67
|
-
#panelToggle{position:absolute;right:calc(var(--panelw,240px) - 14px);top:50%;transform:translateY(-50%);z-index:12;width:28px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;background:var(--panel);border-color:var(--line);box-shadow:
|
|
240
|
+
#panelToggle{position:absolute;right:calc(var(--panelw,240px) - 14px);top:50%;transform:translateY(-50%);z-index:12;width:28px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;background:var(--panel);border-color:var(--line);box-shadow:var(--shadow-float);line-height:1}
|
|
68
241
|
#panelToggle svg,#canvasStatusToggle svg,#m3dLegendCollapse svg,#m3dLegendLauncher svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
|
|
69
242
|
#panelToggle:hover{border-color:var(--brand)}
|
|
70
243
|
#panelToggle::before,#m3dLegendCollapse::before,#m3dLegendLauncher::before{content:"";position:absolute;inset:-1px -8px}
|
|
@@ -76,7 +249,7 @@
|
|
|
76
249
|
body.panel-collapsed #panelToggle{right:16px}
|
|
77
250
|
body.panel-collapsed #panelToggle svg{transform:rotate(180deg)}
|
|
78
251
|
aside h3{margin:0 0 8px;font-size:12px;color:var(--mut);text-transform:uppercase;letter-spacing:.05em}
|
|
79
|
-
select,input{background
|
|
252
|
+
select,input{background:var(--field);color:var(--text);border:1px solid var(--ctrl-border);border-radius:6px;padding:6px;width:100%;font:13px system-ui}
|
|
80
253
|
/* The two control classes the generic rule above actively BREAKS, themed globally so anything added
|
|
81
254
|
later inherits the fix instead of needing its own escape hatch (CLAUDE.md "Style EVERY control").
|
|
82
255
|
Radios: with no accent-color a native radio paints in the LIGHT scheme on this dark page, and
|
|
@@ -86,12 +259,14 @@
|
|
|
86
259
|
#confTarget suppressed it per-id and the three #csF3dFields origin inputs did not, which is the
|
|
87
260
|
per-container patching the scrollbar guard's history says never holds. Global, once, for both. */
|
|
88
261
|
/* appearance:none, NOT accent-color. accent-color only tints the CHECKED fill; the UNCHECKED radio
|
|
89
|
-
stays the UA widget — a solid white disc with a grey ring on
|
|
90
|
-
|
|
262
|
+
stays the UA widget — a solid white disc with a grey ring on a dark page. (When this was written the
|
|
263
|
+
file declared no `color-scheme` at all; #727 added one per theme, which pushes the UA widget to the
|
|
264
|
+
right scheme but still does NOT tint the unchecked fill, so the conclusion below is unchanged and the
|
|
265
|
+
hand-built control is still the right one.) Measured in Chromium at 6x before
|
|
91
266
|
picking this route. So the radio is rebuilt the way app.css:1271 already builds .modal-check's
|
|
92
267
|
checkbox: own box, own ::before dot, :checked border, focus ring. */
|
|
93
268
|
input[type=radio]{appearance:none;-webkit-appearance:none;width:13px;height:13px;flex:none;padding:0;
|
|
94
|
-
border:1px solid
|
|
269
|
+
border:1px solid var(--ctrl-border);border-radius:50%;background:var(--field);cursor:pointer;display:inline-grid;place-content:center;
|
|
95
270
|
transition:border-color .12s} /* the ring animates WITH the dot, as app.css:1276 .modal-check already does — without this the border-colour snaps while the dot eases, which reads as two separate events (design review) */
|
|
96
271
|
input[type=radio]::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--brand);transform:scale(0);transition:transform .12s ease}
|
|
97
272
|
input[type=radio]:checked{border-color:var(--brand)}
|
|
@@ -108,9 +283,9 @@
|
|
|
108
283
|
6x, every checked box painted a solid brand square with no check in it. A guard cannot catch that
|
|
109
284
|
(it reads declarations, and `width:62%` is one), so the size is stated outright. */
|
|
110
285
|
input[type=checkbox]{appearance:none;-webkit-appearance:none;width:14px;height:14px;flex:none;padding:0;
|
|
111
|
-
border:1px solid
|
|
286
|
+
border:1px solid var(--ctrl-border);border-radius:3px;background:var(--field);cursor:pointer;display:inline-grid;place-content:center;
|
|
112
287
|
transition:border-color .12s,background-color .12s}
|
|
113
|
-
input[type=checkbox]::before{content:'';width:9px;height:9px;background
|
|
288
|
+
input[type=checkbox]::before{content:'';width:9px;height:9px;background:var(--brand-ink);transform:scale(0);transition:transform .12s ease;
|
|
114
289
|
clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%)}
|
|
115
290
|
input[type=checkbox]:checked{background:var(--brand);border-color:var(--brand)}
|
|
116
291
|
input[type=checkbox]:checked::before{transform:scale(1)}
|
|
@@ -207,9 +382,9 @@
|
|
|
207
382
|
}
|
|
208
383
|
input[type=number]{-moz-appearance:textfield;appearance:textfield}
|
|
209
384
|
input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
|
|
210
|
-
.row{margin:8px 0} .danger{background
|
|
385
|
+
.row{margin:8px 0} .danger{background:var(--err-bg);border-color:var(--err-border)} .danger:hover{background:var(--err-border)}
|
|
211
386
|
.pill{display:inline-block;padding:1px 6px;border-radius:4px;font-size:11px}
|
|
212
|
-
.pill-clickable{cursor:pointer;text-decoration:underline dotted
|
|
387
|
+
.pill-clickable{cursor:pointer;text-decoration:underline dotted var(--err-underline);text-underline-offset:2px}
|
|
213
388
|
.pill-clickable:hover{filter:brightness(1.18)}
|
|
214
389
|
.pill-clickable:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
|
|
215
390
|
line.member{cursor:pointer;stroke-width:6;stroke-linecap:round} /* default (drag-move OFF): a click selects → the pointer cursor tells the truth */
|
|
@@ -261,12 +436,12 @@
|
|
|
261
436
|
rect.marquee.window{stroke-dasharray:none} /* solid = window (L→R, fully enclose) — Tekla-style affordance */
|
|
262
437
|
.legend span{display:inline-flex;align-items:center;gap:4px;margin:0 8px 4px 0;white-space:nowrap}
|
|
263
438
|
.sw{width:12px;height:12px;border-radius:2px;display:inline-block}
|
|
264
|
-
.swc{width:14px;height:14px;padding:0;border:1px solid
|
|
439
|
+
.swc{width:14px;height:14px;padding:0;border:1px solid var(--ctrl-border);border-radius:3px;cursor:pointer;background:none;flex:none;-webkit-appearance:none;appearance:none}
|
|
265
440
|
.swc::-webkit-color-swatch-wrapper{padding:0} .swc::-webkit-color-swatch{border:none;border-radius:2px}
|
|
266
441
|
.hint{color:var(--mut);font-size:12px;line-height:1.5}
|
|
267
442
|
.seg2{display:flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;height:28px;margin-top:8px}
|
|
268
443
|
.seg2 button{flex:1;border:0;border-radius:0;background:transparent;color:var(--mut)}
|
|
269
|
-
.seg2 button.on{background:var(--brand);color
|
|
444
|
+
.seg2 button.on{background:var(--brand);color:var(--brand-ink)}
|
|
270
445
|
/* .segico = a segmented control whose buttons stack a small canonical glyph over their label (Dimension
|
|
271
446
|
style). The glyph is drawn in currentColor so it tracks the button's own muted/selected state — no new
|
|
272
447
|
hue — and the LABEL STAYS, so the accessible name and "Dot vs Tick" remain unambiguous. */
|
|
@@ -274,9 +449,9 @@
|
|
|
274
449
|
.seg2.segico button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 2px;font-size:11px;line-height:1.2}
|
|
275
450
|
.seg2.segico svg{display:block;overflow:visible}
|
|
276
451
|
.mtype-field .elab{margin-top:0}
|
|
277
|
-
.member-type-combo{height:30px;padding-right:28px;background
|
|
452
|
+
.member-type-combo{height:30px;padding-right:28px;background:var(--field) linear-gradient(45deg,transparent 48%,var(--mut) 50%,transparent 52%) right 11px center/8px 8px no-repeat}
|
|
278
453
|
#comboPop.membertypes .opt{max-width:min(220px,calc(100vw - 24px));overflow:hidden;text-overflow:ellipsis}
|
|
279
|
-
#comboPop.membertypes .opt.add{border-top:1px solid var(--line);color
|
|
454
|
+
#comboPop.membertypes .opt.add{border-top:1px solid var(--line);color:var(--info-ink)}
|
|
280
455
|
.sect{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);margin:0 0 4px}
|
|
281
456
|
.f{margin-top:8px} .unit{position:relative} .unit input{padding-right:34px}
|
|
282
457
|
.unit span{position:absolute;right:8px;top:50%;transform:translateY(-50%);color:var(--mut);font-size:11px;pointer-events:none}
|
|
@@ -302,7 +477,7 @@
|
|
|
302
477
|
.defck{display:inline-flex;align-items:center;gap:4px;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--mut);cursor:pointer}
|
|
303
478
|
.defck input{margin:0;cursor:pointer} /* size + theming now come from the global input[type=checkbox] rule; `width:auto` had to go — on an appearance:none box it collapses the control to nothing */
|
|
304
479
|
input:disabled{opacity:.55;cursor:default}
|
|
305
|
-
.badge{display:block;background:var(--brand);color
|
|
480
|
+
.badge{display:block;background:var(--brand);color:var(--brand-ink);text-align:center;font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:5px;border-radius:6px;margin-bottom:10px}
|
|
306
481
|
.pick{color:var(--brand)!important}
|
|
307
482
|
rect.lblhot{cursor:pointer;fill:rgba(251,191,36,.10);stroke:#fbbf24;stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
|
|
308
483
|
rect.lblhot:hover{fill:rgba(251,191,36,.28)}
|
|
@@ -327,15 +502,15 @@
|
|
|
327
502
|
#detailsModal,#framesModal,#rfiModal,#confModal,#askAiModal,#connModal,#connImportModal,#favConnModal,#viewGenModal{position:fixed;inset:0;z-index:20;display:none;align-items:center;justify-content:center}
|
|
328
503
|
#askAiDrop:hover{border-color:var(--brand);color:var(--text)} #askAiDrop.has{border-style:solid;border-color:var(--brand)}
|
|
329
504
|
.aithumb{position:relative;display:inline-flex} .aithumb img{height:60px;border-radius:4px;border:1px solid var(--line);background:#fff;display:block}
|
|
330
|
-
.aithumb button{position:absolute;top:-5px;right:-5px;width:16px;height:16px;padding:0;border-radius:8px;font-size:10px;line-height:16px;text-align:center;background
|
|
331
|
-
#saveStat.dirty{color
|
|
505
|
+
.aithumb button{position:absolute;top:-5px;right:-5px;width:16px;height:16px;padding:0;border-radius:8px;font-size:10px;line-height:16px;text-align:center;background:var(--err-bg);border-color:var(--err-border);color:var(--err-ink)}
|
|
506
|
+
#saveStat.dirty{color:var(--warn)} #saveStat.ok{color:var(--ok)} #saveStat.err{color:var(--err)}
|
|
332
507
|
/* Save conflict — someone else wrote here since we loaded. NOT the same as .err: the user's document
|
|
333
508
|
is fine, so it gets the existing cyan 'non-default, click to act' chip (same recipe as #csStat.local
|
|
334
509
|
and #snapStat) rather than the red failure colour. */
|
|
335
|
-
#saveStat.conflict{color
|
|
336
|
-
#csStat.local{border:1px solid
|
|
337
|
-
#snapStat{cursor:pointer;border:1px solid
|
|
338
|
-
#snapStat:hover b{color
|
|
510
|
+
#saveStat.conflict{color:var(--cyan);border:1px solid var(--cyan);background:var(--cyan-soft);border-radius:4px;padding:1px 6px;cursor:pointer}
|
|
511
|
+
#csStat.local{border:1px solid var(--cyan);background:var(--cyan-soft);border-radius:4px;padding:1px 6px;cursor:pointer} /* lift the chip out of the muted row when a local frame/plane is active (reuses the dim/accent cyan — no new colour); clickable → reset to global */
|
|
512
|
+
#snapStat{cursor:pointer;border:1px solid var(--cyan);background:var(--cyan-soft);border-radius:4px;padding:1px 6px} /* snap-override chip — same cyan treatment as #csStat.local; the cyan IS the snap-marker colour it restricts */
|
|
513
|
+
#snapStat:hover b{color:var(--ink-max)}
|
|
339
514
|
/* UCS stage 2 — live local-coordinate row inside the 3D cursor readout chip (steel-3d-view.js builds the element). */
|
|
340
515
|
.ro-coord{font-variant-numeric:tabular-nums;color:var(--mut,#94a3b8);white-space:nowrap;font-size:12px}
|
|
341
516
|
.ro-coord .ro-lbl{margin-left:9px} .ro-coord .ro-lbl:first-child{margin-left:0}
|
|
@@ -354,9 +529,9 @@
|
|
|
354
529
|
#moreMenu .msec-hdr{display:flex;align-items:center;justify-content:space-between;font-weight:600;border-top:1px solid var(--line)} /* headers read as headers: semibold + a divider between sections */
|
|
355
530
|
#moreMenu #snapHdr{border-top:0} /* first section — no divider above it */
|
|
356
531
|
#moreMenu .msec-hdr .chev{color:var(--mut);font-size:10px;transition:transform .15s}
|
|
357
|
-
#moreMenu .msec-hdr[aria-expanded=true]{background:
|
|
532
|
+
#moreMenu .msec-hdr[aria-expanded=true]{background:var(--brand-wash-faint);color:var(--brand)} /* the OPEN section's header is brand-tinted so its (indented) items read as "inside" it, not merged with the next section */
|
|
358
533
|
#moreMenu .msec-hdr[aria-expanded=true] .chev{transform:rotate(90deg);color:var(--brand)}
|
|
359
|
-
#moreMenu .msec-hdr[aria-expanded=true]:hover{background
|
|
534
|
+
#moreMenu .msec-hdr[aria-expanded=true]:hover{background:var(--btn);color:var(--text)} /* keep the normal hover feedback on an open header */
|
|
360
535
|
#moreMenu .msec-body{display:none} #moreMenu .msec-body.open{display:block;padding-bottom:4px}
|
|
361
536
|
#moreMenu .msec-body button,#moreMenu .msec-body .mhint{padding-left:26px} /* indent items so they sit visually UNDER their header */
|
|
362
537
|
/* Insert-detail now lives in the Detailing section; its picker flies out to the LEFT of the ⋯ menu (which hugs the right edge). */
|
|
@@ -376,14 +551,14 @@
|
|
|
376
551
|
#csF3dFields input:focus{outline:none;border-color:var(--brand)}
|
|
377
552
|
#moreMenu button.msnap,#moreMenu button.dtog{display:flex;align-items:center;gap:0} /* .dtog = the Display show/hide toggles, same slider switch as Snapping (.msnap) */
|
|
378
553
|
#moreMenu button.msnap.on,#moreMenu button.dtog.on{color:var(--text)} /* the switch carries the state — don't also brand the text (reads as an armed tool elsewhere in this menu) */
|
|
379
|
-
#moreMenu .mck,.cmmenu .mck,.m3dmenu .mck{position:relative;width:26px;height:14px;margin-right:9px;border-radius:7px;border:1px solid var(--line);background
|
|
554
|
+
#moreMenu .mck,.cmmenu .mck,.m3dmenu .mck{position:relative;width:26px;height:14px;margin-right:9px;border-radius:7px;border:1px solid var(--line);background:var(--sunken);flex:none;transition:background-color .15s,border-color .15s} /* delicate CSS-only slider switch — shared by the ⋯ Snapping rows, the Move/Copy → Drag-to-move/copy toggle, and the Work-area toggles */
|
|
380
555
|
#moreMenu .mck::after,.cmmenu .mck::after,.m3dmenu .mck::after{content:'';position:absolute;top:1px;left:1px;width:10px;height:10px;border-radius:50%;background:var(--mut);transition:transform .15s,background-color .15s}
|
|
381
|
-
#moreMenu button.msnap.on .mck,#moreMenu button.dtog.on .mck,.cmmenu #dragMoveB.on .mck,.m3dmenu button.wtog.on .mck{background:
|
|
556
|
+
#moreMenu button.msnap.on .mck,#moreMenu button.dtog.on .mck,.cmmenu #dragMoveB.on .mck,.m3dmenu button.wtog.on .mck{background:var(--brand-wash-strong);border-color:var(--brand)}
|
|
382
557
|
#moreMenu button.msnap.on .mck::after,#moreMenu button.dtog.on .mck::after,.cmmenu #dragMoveB.on .mck::after,.m3dmenu button.wtog.on .mck::after{transform:translateX(12px);background:var(--brand)}
|
|
383
558
|
#moreMenu button.dtog:disabled{opacity:.45;cursor:default} /* e.g. the grid toggle when the model has no grid */
|
|
384
559
|
.m3dmenu button.wtog{display:flex;align-items:center;justify-content:flex-start;gap:0}
|
|
385
560
|
.m3dmenu button.wtog.on{color:var(--text)} /* the slider carries the on-state — don't also brand the label text */
|
|
386
|
-
#moreMenu button.msnap .sg{display:inline-block;width:17px;color
|
|
561
|
+
#moreMenu button.msnap .sg{display:inline-block;width:17px;color:var(--cyan);opacity:.5;flex:none;transition:opacity .15s}
|
|
387
562
|
#moreMenu button.msnap.on .sg{opacity:1}
|
|
388
563
|
/* UCS Stage 6 — origin-grid: a plain .msnap toggle (3D-only), then a Step sub-row revealed only when it's on. */
|
|
389
564
|
body:not(.v3d) #snapSect [data-s3donly]{display:none} body.v3d #snapSect [data-s3donly]{display:flex} /* body:not(.v3d) adds the specificity to beat the base #moreMenu button.msnap{display:flex} rule (else the 3D-only row leaks into the 2D menu) */
|
|
@@ -393,6 +568,18 @@
|
|
|
393
568
|
#moreMenu .msnap-sub input{width:92px;height:24px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:5px;padding:0 7px;font:12px system-ui;box-sizing:border-box}
|
|
394
569
|
#moreMenu .msnap-sub input:focus{outline:none;border-color:var(--brand)}
|
|
395
570
|
#moreMenu .msnap-sub .oghint{flex-basis:100%;color:var(--mut);font-size:11px;line-height:1.4;margin-top:2px} /* nudge shown only when the grid is on but no local frame is set yet */
|
|
571
|
+
/* A settings row under a Display toggle — label, slider, readout. Deliberately NOT .msnap-sub: that one
|
|
572
|
+
is hidden unless its parent toggle is on AND the view is 3D, and grid label size applies always, in
|
|
573
|
+
both views. The slider itself is themed by the global input[type=range] rule; only sizing lives here. */
|
|
574
|
+
/* WRAPPED, label on its own line. The menu is 210px wide and this row is indented 26px with 12px of
|
|
575
|
+
right padding, so it has ~172px to work in — while "Grid label size" + a slider + a readout on ONE
|
|
576
|
+
line needs ~227px. Laid out flat, the readout was pushed past the panel's own right edge and (in 3D
|
|
577
|
+
at a 1600px window) off the screen with it: the DOM value was right, so it read correct to a probe,
|
|
578
|
+
while the user saw "2" of "26 px". */
|
|
579
|
+
#moreMenu .mrow{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:2px 12px 8px 26px;max-width:100%;box-sizing:border-box}
|
|
580
|
+
#moreMenu .mrow .mlbl{color:var(--mut);font-size:11px;flex:0 0 100%}
|
|
581
|
+
#moreMenu .mrow input[type=range]{flex:1 1 60px;min-width:0}
|
|
582
|
+
#moreMenu .mrow .mval{color:var(--mut);font-size:11px;flex:none;min-width:38px;text-align:right;font-variant-numeric:tabular-nums}
|
|
396
583
|
/* Pointer-behaviour bars, bottom-right of the canvas (both views): [ Select filter ] [ Snap ]. Both reuse the brand-fill "on" toolbar language. */
|
|
397
584
|
/* One bottom dock owns both sides of the canvas chrome. The hint may shrink; Select/Snap never do, so
|
|
398
585
|
the two surfaces cannot overlap at narrower widths. In 3D the whole dock stops before the world-axis
|
|
@@ -436,15 +623,15 @@
|
|
|
436
623
|
#selFly .frow.all{font-weight:600}
|
|
437
624
|
#selFly .fsep{height:1px;background:var(--line);margin:4px 6px}
|
|
438
625
|
#selFly .fempty{padding:6px 8px;color:var(--mut);font-size:12px}
|
|
439
|
-
#selFly .fck{width:15px;height:15px;flex:none;border-radius:4px;border:1.5px solid
|
|
626
|
+
#selFly .fck{width:15px;height:15px;flex:none;border-radius:4px;border:1.5px solid var(--ctrl-border);background:var(--field);display:grid;place-items:center;transition:background .12s,border-color .12s}
|
|
440
627
|
#selFly .fck::after{content:"";width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px;opacity:0;transition:opacity .1s}
|
|
441
628
|
#selFly .frow.checked .fck{background:var(--brand);border-color:var(--brand)}
|
|
442
629
|
#selFly .frow.checked .fck::after{opacity:1}
|
|
443
630
|
#selFly .frow.mixed .fck{background:linear-gradient(var(--brand),var(--brand)) center/9px 2.5px no-repeat,#0f172a;border-color:var(--brand)}
|
|
444
631
|
#selFly .frow.mixed .fck::after{opacity:0}
|
|
445
|
-
#selFly .flist{max-height:230px;overflow:auto;scrollbar-width:thin;scrollbar-color
|
|
632
|
+
#selFly .flist{max-height:230px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--scroll) transparent}
|
|
446
633
|
#selFly .flist::-webkit-scrollbar{width:8px}
|
|
447
|
-
#selFly .flist::-webkit-scrollbar-thumb{background
|
|
634
|
+
#selFly .flist::-webkit-scrollbar-thumb{background:var(--scroll);border-radius:4px}
|
|
448
635
|
#selFly .flist::-webkit-scrollbar-track{background:transparent}
|
|
449
636
|
#snapBar button{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:#22d3ee;opacity:.55;font-size:15px;line-height:1;cursor:pointer;padding:0;transition:background-color .12s,opacity .12s,color .12s}
|
|
450
637
|
#snapBar button:hover{background:rgba(148,163,184,.12);opacity:.9}
|
|
@@ -457,7 +644,7 @@
|
|
|
457
644
|
body:not(.v3d) #snapSect [data-snap3d]{display:none} /* specificity to beat button.msnap{display:flex} — same 2D-leak fix as [data-s3donly] above */
|
|
458
645
|
body.v3d #snapSect [data-snap3d]{display:flex}
|
|
459
646
|
#moreMenu .mhint{color:var(--mut);font-size:11px;line-height:1.4;padding:4px 12px 6px;max-width:230px;white-space:normal}
|
|
460
|
-
#rfiStat{cursor:pointer;text-decoration:underline dotted} #rfiStat:hover b{color
|
|
647
|
+
#rfiStat{cursor:pointer;text-decoration:underline dotted} #rfiStat:hover b{color:var(--ink-max)}
|
|
461
648
|
#confStat{cursor:pointer;text-decoration:underline dotted} #confStat:hover b{filter:brightness(1.25)}
|
|
462
649
|
.conf-cats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:14px;border-bottom:1px solid var(--line)}
|
|
463
650
|
.ccard{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:10px 12px}
|
|
@@ -471,17 +658,21 @@
|
|
|
471
658
|
.conf-filter .glab{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--mut)}
|
|
472
659
|
.conf-filter .grp{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden}
|
|
473
660
|
.conf-filter .grp button{border:0;border-radius:0;background:transparent;color:var(--mut);font-size:11px;padding:4px 9px;cursor:pointer}
|
|
474
|
-
.conf-filter .grp button.on{background:var(--brand);color
|
|
661
|
+
.conf-filter .grp button.on{background:var(--brand);color:var(--brand-ink)}
|
|
475
662
|
.conf-body{padding:0 14px 14px;overflow:auto;flex:1;min-height:0}
|
|
476
663
|
.chip{display:inline-block;padding:1px 6px;border-radius:4px;font-size:10px;border:1px solid var(--line);color:var(--mut);margin:0 3px 3px 0}
|
|
477
|
-
.chip.assumed,.chip.weak{border-color
|
|
664
|
+
.chip.assumed,.chip.weak{border-color:var(--warn-edge);color:var(--warn)} .chip.fail{border-color:var(--err-edge);color:var(--err)}
|
|
478
665
|
/* Human-confirmed. The same #166534/#86efac pair as the confidence report's `verified` band
|
|
479
666
|
(BANDPILL.verified) and the inspector's Mark-verified button — the TOKENS are shared, not the
|
|
480
667
|
treatment: this one is outlined like its .chip.fail/.chip.assumed siblings, BANDPILL's is filled. */
|
|
481
|
-
.chip.verified{border-color
|
|
482
|
-
|
|
668
|
+
.chip.verified{border-color:var(--ok-edge);color:var(--ok)}
|
|
669
|
+
/* "user" = a value a human typed. Its blue holds on BOTH grounds (3.9:1 on light --panel, a clear edge
|
|
670
|
+
on dark --panel), so only the INK steps down; the border is one of the few values needing no twin. */
|
|
671
|
+
.chip.user{border-color:#1d4ed8;color:#93c5fd}
|
|
672
|
+
[data-theme="light"] .chip.user{color:#1d4ed8}
|
|
673
|
+
tr.confrow{cursor:pointer} .conf-expand{color:var(--mut);font-size:12px;line-height:1.6;background:var(--sunken)}
|
|
483
674
|
.ftab td .combo{padding:4px 6px} .ftab .rea{color:var(--mut);font-size:12px} .ftab .vcell{white-space:nowrap}
|
|
484
|
-
.ftab-inp{background
|
|
675
|
+
.ftab-inp{background:var(--field);color:var(--text);border:1px solid var(--ctrl-border);border-radius:4px;padding:4px 6px;width:100%;font:13px system-ui}
|
|
485
676
|
.ftab-inp:focus{outline:none;border-color:var(--brand)}
|
|
486
677
|
.ftab .cdel{padding:3px 7px;font-size:11px} .ftab .csrc{white-space:nowrap}
|
|
487
678
|
/* What a bound detail will BUILD — the line under a Connection detail field that turns a recorded
|
|
@@ -489,12 +680,12 @@
|
|
|
489
680
|
.drow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:5px 0 2px}
|
|
490
681
|
.dmsg{flex:1 1 100%;min-width:0;font-size:11px;line-height:1.45;color:var(--mut)}
|
|
491
682
|
.dmsg b{color:var(--text);font-weight:600}
|
|
492
|
-
.dmsg.warn{color
|
|
683
|
+
.dmsg.warn{color:var(--warn-soft)}
|
|
493
684
|
.drow button{flex:none}
|
|
494
685
|
.dnotes{margin:2px 0 0;padding:6px 8px;background:var(--bg);border:1px solid var(--line);border-radius:6px;
|
|
495
|
-
max-height:140px;overflow:auto;scrollbar-width:thin;scrollbar-color
|
|
686
|
+
max-height:140px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--scroll) transparent}
|
|
496
687
|
.dnotes::-webkit-scrollbar{width:8px;height:8px}
|
|
497
|
-
.dnotes::-webkit-scrollbar-thumb{background
|
|
688
|
+
.dnotes::-webkit-scrollbar-thumb{background:var(--scroll);border-radius:4px}
|
|
498
689
|
.dnotes::-webkit-scrollbar-track{background:transparent}
|
|
499
690
|
.dnotes li{font-size:11px;line-height:1.5;color:var(--mut);margin:0 0 3px 14px}
|
|
500
691
|
.dnotes li:last-child{margin-bottom:0}
|
|
@@ -504,14 +695,14 @@
|
|
|
504
695
|
/* An authoring mistake the row itself can see — unreachable, not "waiting on you". Reuses the existing
|
|
505
696
|
.chip.fail tones rather than introducing a colour. */
|
|
506
697
|
.cbuilds .cwarn{display:inline-block;margin-left:6px;padding:0 5px;border-radius:4px;font-size:10px;
|
|
507
|
-
border:1px solid
|
|
508
|
-
.connset{opacity:.55} .rfichip{display:inline-block;min-width:18px;height:18px;line-height:18px;text-align:center;background
|
|
698
|
+
border:1px solid var(--err-edge);color:var(--err);cursor:default}
|
|
699
|
+
.connset{opacity:.55} .rfichip{display:inline-block;min-width:18px;height:18px;line-height:18px;text-align:center;background:var(--err-bg);color:var(--err-ink);border-radius:9px;font-size:11px;padding:0 5px}
|
|
509
700
|
/* #628: a human-confirmed row's number chip goes green. Colour alone is the SCAN cue only — the row also
|
|
510
701
|
carries a text "✓ Verified" pill in its own column, which is what a screen reader and a colour-blind
|
|
511
702
|
reader get. Same #166534/#86efac pair as .chip.verified above. */
|
|
512
|
-
.rfichip.verified{background
|
|
513
|
-
.mbackdrop{position:absolute;inset:0;background:
|
|
514
|
-
.mpanel{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:10px;width:min(880px,92vw);max-height:86vh;display:flex;flex-direction:column;box-shadow:
|
|
703
|
+
.rfichip.verified{background:var(--ok-bg);color:var(--ok)}
|
|
704
|
+
.mbackdrop{position:absolute;inset:0;background:var(--backdrop)}
|
|
705
|
+
.mpanel{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:10px;width:min(880px,92vw);max-height:86vh;display:flex;flex-direction:column;box-shadow:var(--shadow-modal)}
|
|
515
706
|
.mhead{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line)}
|
|
516
707
|
.mhead b{font-size:14px} .mhead button{padding:2px 9px}
|
|
517
708
|
.conf-tgt{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:12px;font-size:12px;color:var(--mut)}
|
|
@@ -521,34 +712,34 @@
|
|
|
521
712
|
#confTarget{width:54px;text-align:right;padding:4px 6px;font:13px system-ui}
|
|
522
713
|
.mgrid{padding:14px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px}
|
|
523
714
|
.dcard{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--bg)}
|
|
524
|
-
.dcard .dprev{height:120px;display:flex;align-items:center;justify-content:center;background
|
|
715
|
+
.dcard .dprev{height:120px;display:flex;align-items:center;justify-content:center;background:var(--sunken);color:var(--mut);font-size:11px;text-align:center;padding:8px;line-height:1.4}
|
|
525
716
|
.dcard img{display:block;width:100%;height:120px;object-fit:contain;background:#fff}
|
|
526
717
|
.dcard .dmeta{padding:6px 9px;border-top:1px solid var(--line)}
|
|
527
718
|
.dcard .dt{font-weight:600} .dcard .ds{color:var(--mut);font-size:11px}
|
|
528
719
|
.ftab{width:100%;border-collapse:collapse;font-size:13px}
|
|
529
720
|
.ftab th{text-align:left;color:var(--mut);font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:7px 10px;border-bottom:1px solid var(--line)}
|
|
530
721
|
.ftab td{padding:7px 10px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
|
|
531
|
-
.ftab tbody tr:hover{background
|
|
532
|
-
tr.rfi-row-focused{background:
|
|
722
|
+
.ftab tbody tr:hover{background:var(--sunken)} .ftab .gcell{font-weight:600;color:var(--brand)}
|
|
723
|
+
tr.rfi-row-focused{background:var(--err-wash);transition:background-color .6s ease} tr.rfi-row-focused td:first-child{box-shadow:inset 3px 0 0 var(--err-ink)}
|
|
533
724
|
/* #628: the focus wash is the RFI danger palette, which would say "urgent" over a row whose own chip just
|
|
534
725
|
said "handled". On a verified row it becomes the verified pair instead — the row is still the one you
|
|
535
726
|
arrived at, without the contradiction. Two classes beat one, so this wins without !important. */
|
|
536
|
-
tr.rfi-row-focused.rfi-verified{background:
|
|
537
|
-
#comboPop{position:fixed;z-index:30;background:var(--panel);border:1px solid
|
|
727
|
+
tr.rfi-row-focused.rfi-verified{background:var(--ok-wash)} tr.rfi-row-focused.rfi-verified td:first-child{box-shadow:inset 3px 0 0 var(--ok)}
|
|
728
|
+
#comboPop{position:fixed;z-index:30;background:var(--panel);border:1px solid var(--ctrl-border);border-radius:6px;max-height:240px;overflow:auto;box-shadow:var(--shadow-lg);display:none}
|
|
538
729
|
#comboPop .opt{padding:6px 10px;cursor:pointer;font-size:13px;color:var(--text);white-space:nowrap}
|
|
539
|
-
#comboPop .opt:hover,#comboPop .opt.active{background
|
|
730
|
+
#comboPop .opt:hover,#comboPop .opt.active{background:var(--btn)}
|
|
540
731
|
/* "More" overflow menu — themed popup (reuses the #comboPop look); flat rows keep each button's id + handler. */
|
|
541
732
|
/* Move/Copy split buttons + transform-suite chrome — all within the locked baseline tokens. */
|
|
542
733
|
.cmwrap{position:relative;display:inline-flex}
|
|
543
734
|
#xfB{white-space:nowrap}
|
|
544
|
-
#xfB.on{background:var(--brand);border-color:var(--brand);color
|
|
735
|
+
#xfB.on{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)} /* a transform tool is armed */
|
|
545
736
|
/* Drag-to-move/copy menu item wears the shared .mck slider switch (rules above, shared with ⋯ Snapping). */
|
|
546
737
|
.cmmenu #dragMoveB{display:flex;align-items:center;justify-content:flex-start;gap:0}
|
|
547
738
|
.cmmenu #dragMoveB.on{color:var(--text)} /* the switch carries the state — don't also brand the text (reads as an armed tool) */
|
|
548
|
-
.cmmenu{display:none;position:absolute;left:0;top:calc(100% + 6px);min-width:200px;background:var(--panel);border:1px solid
|
|
739
|
+
.cmmenu{display:none;position:absolute;left:0;top:calc(100% + 6px);min-width:200px;background:var(--panel);border:1px solid var(--ctrl-border);border-radius:8px;box-shadow:var(--shadow-lg);padding:4px 0;z-index:30}
|
|
549
740
|
.cmmenu.open{display:block}
|
|
550
741
|
.cmmenu button{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;background:transparent;border:0;border-radius:0;padding:7px 12px;color:var(--text);white-space:nowrap}
|
|
551
|
-
.cmmenu button:hover{background
|
|
742
|
+
.cmmenu button:hover{background:var(--btn)}
|
|
552
743
|
.cmmenu .mkbd{color:var(--mut);font-size:11px}
|
|
553
744
|
.cmghost{stroke-dasharray:6 4;opacity:.4;pointer-events:none;vector-effect:non-scaling-stroke;stroke-width:3}
|
|
554
745
|
.cmghostbox{fill:none;stroke:#22d3ee;stroke-dasharray:4 4;opacity:.5;pointer-events:none;vector-effect:non-scaling-stroke}
|
|
@@ -579,12 +770,12 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
579
770
|
#lvModal .lvrow.cur{opacity:.45;cursor:default}
|
|
580
771
|
#lvModal .lvrow .lvtos{margin-left:auto;color:var(--mut);font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}
|
|
581
772
|
#moreWrap{position:relative;display:inline-flex}
|
|
582
|
-
#moreMenu{position:absolute;right:0;top:calc(100% + 6px);min-width:210px;background:var(--panel);border:1px solid
|
|
773
|
+
#moreMenu{position:absolute;right:0;top:calc(100% + 6px);min-width:210px;background:var(--panel);border:1px solid var(--ctrl-border);border-radius:8px;box-shadow:var(--shadow-lg);padding:4px 0;z-index:30;display:none}
|
|
583
774
|
#moreMenu.open{display:block}
|
|
584
775
|
#moreMenu .mlabel,.m3dmenu .mlabel,.cmmenu .mlabel{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);padding:8px 12px 2px}
|
|
585
776
|
#moreMenu hr{border:0;border-top:1px solid var(--line);margin:4px 0}
|
|
586
777
|
#moreMenu button{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:0;padding:7px 12px;color:var(--text);white-space:nowrap}
|
|
587
|
-
#moreMenu button:hover{background
|
|
778
|
+
#moreMenu button:hover{background:var(--btn)}
|
|
588
779
|
/* "Revert to an earlier version…" is a POINTER into the workspaces shell's History step, so it
|
|
589
780
|
exists only when we're embedded there with a project open (boot adds body.in-workspace). Hidden
|
|
590
781
|
by default: Workflows mode has no version history to point at. The #moreMenu prefix is required
|
|
@@ -607,16 +798,16 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
607
798
|
#srcStat{white-space:nowrap}
|
|
608
799
|
#srcStat b{display:inline-block;max-width:130px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
|
|
609
800
|
#detailNewForm input#dnName{margin:2px 0 10px}
|
|
610
|
-
#dnDrop{border:1px dashed
|
|
801
|
+
#dnDrop{border:1px dashed var(--ctrl-border);border-radius:8px;background:var(--sunken);min-height:88px;display:flex;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--mut);cursor:pointer;padding:12px;font-size:12px}
|
|
611
802
|
#dnDrop:hover{border-color:var(--brand);color:var(--text)} #dnDrop.has{border-style:solid;border-color:var(--brand)}
|
|
612
803
|
#dnPrev{display:none;max-height:64px;max-width:128px;border-radius:4px;background:#fff;border:1px solid var(--line)}
|
|
613
804
|
#dnBtns{display:flex;gap:8px;justify-content:flex-end;margin-top:10px} #dnBtns button{padding:6px 14px}
|
|
614
805
|
#dnHint{margin-top:8px}
|
|
615
806
|
.dprevwrap{height:120px} .dprevwrap[data-det]{cursor:zoom-in} .dcard:hover .dprevwrap[data-det]{filter:brightness(1.04)}
|
|
616
|
-
.dname{width:100%;background
|
|
617
|
-
.dname:focus{outline:none;border-color:var(--brand)} .dmeta .ds .ddel{color
|
|
807
|
+
.dname{width:100%;background:var(--field);border:1px solid var(--ctrl-border);border-radius:4px;padding:3px 6px;font-weight:600;font-size:12px;color:var(--text)}
|
|
808
|
+
.dname:focus{outline:none;border-color:var(--brand)} .dmeta .ds .ddel{color:var(--err);text-decoration:underline}
|
|
618
809
|
#lightbox{position:fixed;inset:0;z-index:40;display:none;align-items:center;justify-content:center}
|
|
619
|
-
.lbpanel{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;box-shadow:
|
|
810
|
+
.lbpanel{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;box-shadow:var(--shadow-xl)}
|
|
620
811
|
#lbView{position:relative;overflow:hidden;background:#fff;width:88vw;height:82vh;cursor:grab;touch-action:none}
|
|
621
812
|
#lbView.drag{cursor:grabbing}
|
|
622
813
|
#lbImg{position:absolute;left:50%;top:50%;max-width:86vw;max-height:80vh;transform-origin:center;user-select:none;-webkit-user-drag:none}
|
|
@@ -648,11 +839,11 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
648
839
|
/* the dim inspector's "Pinned to member" slider — same .mck switch as the ⋯ Display rows, panel-scoped */
|
|
649
840
|
#panel button.pintog{display:flex;align-items:center;background:transparent;border:none;color:var(--mut);cursor:pointer;padding:2px 0;font:12px system-ui;gap:0;text-align:left}
|
|
650
841
|
#panel button.pintog.on{color:var(--text)}
|
|
651
|
-
#panel .pintog .mck{position:relative;width:26px;height:14px;margin-right:9px;border-radius:7px;border:1px solid var(--line);background
|
|
842
|
+
#panel .pintog .mck{position:relative;width:26px;height:14px;margin-right:9px;border-radius:7px;border:1px solid var(--line);background:var(--sunken);flex:none;transition:background-color .15s,border-color .15s}
|
|
652
843
|
#panel .pintog .mck::after{content:'';position:absolute;top:1px;left:1px;width:10px;height:10px;border-radius:50%;background:var(--mut);transition:transform .15s,background-color .15s}
|
|
653
|
-
#panel .pintog.on .mck{background:
|
|
844
|
+
#panel .pintog.on .mck{background:var(--brand-wash-strong);border-color:var(--brand)}
|
|
654
845
|
#panel .pintog.on .mck::after{transform:translateX(12px);background:var(--brand)}
|
|
655
|
-
#panel .pintog svg{margin-right:4px;color
|
|
846
|
+
#panel .pintog svg{margin-right:4px;color:var(--cyan);flex:none} /* the pin glyph carries the dim accent, matching the on-canvas markers */
|
|
656
847
|
#panel .pintog:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
|
|
657
848
|
/* ── The drilled-into reference object (S2 Stage A): somebody else's IFC element, read-only.
|
|
658
849
|
Property SETS are accordions because one object can carry several of them and a dozen-plus rows each
|
|
@@ -670,7 +861,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
670
861
|
border, a chevron that never turned and a count that was not muted. Same markup, same look, both
|
|
671
862
|
places. */
|
|
672
863
|
#panel .psethd,#m3dRefsBody .psethd{display:flex;align-items:center;gap:6px;width:100%;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--text);font:600 11px system-ui;padding:5px 2px;cursor:pointer;text-align:left}
|
|
673
|
-
#panel .psethd:hover,#m3dRefsBody .psethd:hover{color:var(--text);background
|
|
864
|
+
#panel .psethd:hover,#m3dRefsBody .psethd:hover{color:var(--text);background:var(--hover-soft)}
|
|
674
865
|
#panel .psethd[aria-expanded=true],#m3dRefsBody .psethd[aria-expanded=true]{color:var(--brand)}
|
|
675
866
|
#panel .psethd:focus-visible,#m3dRefsBody .psethd:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
|
|
676
867
|
#panel .psethd .chev,#m3dRefsBody .psethd .chev{color:var(--mut);font-size:10px;width:10px;flex:none;transition:transform .15s}
|
|
@@ -716,10 +907,10 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
716
907
|
text.gridtx{fill:#e2e8f0;font-weight:700;font-family:system-ui;text-anchor:middle;dominant-baseline:central;pointer-events:none}
|
|
717
908
|
g.gridbubg:hover circle.gridbub{stroke:var(--brand);fill:#1e293b}
|
|
718
909
|
body.gridpick #svg,body.gridpick line.member,body.gridpick line.seg,body.gridpick image{cursor:crosshair}
|
|
719
|
-
.gin{width:100%;background
|
|
910
|
+
.gin{width:100%;background:var(--field);border:1px solid var(--ctrl-border);border-radius:6px;padding:6px 8px;color:var(--text);font:12px ui-monospace,Consolas,monospace}
|
|
720
911
|
.gin:focus{outline:none;border-color:var(--brand)}
|
|
721
912
|
.gfb{color:var(--mut);font-size:11px;margin-top:3px;font-variant-numeric:tabular-nums}
|
|
722
|
-
.gerr{color
|
|
913
|
+
.gerr{color:var(--err);font-size:11px;margin-top:3px}
|
|
723
914
|
.gbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px} .gbtns button{margin:0}
|
|
724
915
|
.gck{display:flex;align-items:center;gap:8px;color:var(--text);cursor:pointer;font-size:12px;padding:2px 0}
|
|
725
916
|
.gck input{cursor:pointer;margin:0;width:14px;height:14px;flex:none} /* beat the panel's generic full-width input rule */
|
|
@@ -730,14 +921,14 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
730
921
|
#vgContext{padding:10px 14px;color:var(--mut);font-size:12px;border-bottom:1px solid var(--line)}
|
|
731
922
|
#vgTabs{display:flex;gap:4px;padding:10px 14px 0}
|
|
732
923
|
#vgTabs button{border:0;border-radius:5px;background:transparent;color:var(--mut);padding:6px 10px;box-shadow:none}
|
|
733
|
-
#vgTabs button[aria-selected=true]{background:
|
|
924
|
+
#vgTabs button[aria-selected=true]{background:var(--brand-wash);color:var(--text);box-shadow:inset 0 -2px 0 var(--brand)}
|
|
734
925
|
#vgTools{display:flex;align-items:center;gap:8px;padding:8px 14px}
|
|
735
926
|
#vgTools button{padding:4px 8px;background:transparent;box-shadow:none}
|
|
736
927
|
#vgCount{margin-left:auto;color:var(--mut);font-size:11px;font-variant-numeric:tabular-nums}
|
|
737
928
|
#vgList{margin:0 14px;min-height:120px;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:7px;background:var(--bg);padding:5px}
|
|
738
929
|
#vgList .vggroup{padding:5px 7px 3px;color:var(--mut);font-size:10px;text-transform:uppercase;letter-spacing:.07em}
|
|
739
930
|
#vgList .vgrow{display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:5px;cursor:pointer}
|
|
740
|
-
#vgList .vgrow:hover{background
|
|
931
|
+
#vgList .vgrow:hover{background:var(--hover-soft)}
|
|
741
932
|
#vgList .vgrow input{width:14px;height:14px;margin:0;flex:none}
|
|
742
933
|
#vgList .vgaxis{width:18px;color:var(--mut);font-size:10px;font-weight:700}
|
|
743
934
|
#vgList .vgname{color:var(--text);font-size:12px}
|
|
@@ -746,12 +937,12 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
746
937
|
#vgSettings .vgfield label{display:block;color:var(--mut);font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:3px}
|
|
747
938
|
#vgSettings input{width:100%;height:30px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:0 8px;font:12px ui-monospace,Consolas,monospace}
|
|
748
939
|
#vgSettings input:focus{outline:none;border-color:var(--brand)}
|
|
749
|
-
#vgSettings input[aria-invalid=true]{border-color
|
|
940
|
+
#vgSettings input[aria-invalid=true]{border-color:var(--err)}
|
|
750
941
|
#vgDirection{grid-column:1/-1;display:flex;align-items:center;gap:10px}
|
|
751
942
|
#vgDirection .grp{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden}
|
|
752
943
|
#vgDirection .grp button{border:0;border-radius:0;background:transparent;color:var(--mut);padding:5px 10px;box-shadow:none}
|
|
753
|
-
#vgDirection .grp button.on{background:var(--brand);color
|
|
754
|
-
#vgError{grid-column:1/-1;min-height:15px;color
|
|
944
|
+
#vgDirection .grp button.on{background:var(--brand);color:var(--brand-ink)}
|
|
945
|
+
#vgError{grid-column:1/-1;min-height:15px;color:var(--err);font-size:11px}
|
|
755
946
|
#vgFoot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid var(--line)}
|
|
756
947
|
#vgCreate:disabled{opacity:.45;cursor:default}
|
|
757
948
|
body.dimsplit #svg,body.dimsplit line.member,body.dimsplit line.seg,body.dimsplit line.dim,body.dimsplit line.dimwit,body.dimsplit image{cursor:crosshair} /* whole-canvas crosshair while the split/extend tool is armed — you can click anywhere, not just on a line (B8) */
|
|
@@ -763,8 +954,8 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
763
954
|
body.geo line.seg:hover{stroke:#22d3ee;opacity:1;stroke-width:4} body.geo line.member:hover{stroke-width:8} body.geoel line.gridhit:hover{stroke:#22d3ee;opacity:.55} /* target cue on the coincident transparent hit line — colour only, KEEP its 9px width (shrinking it would shrink the pointer-events:stroke hit area and flicker the hover) */
|
|
764
955
|
circle.numbg{fill:var(--brand);stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}
|
|
765
956
|
text.numtx{fill:#fff;font:bold 12px system-ui;text-anchor:middle;dominant-baseline:central;pointer-events:none}
|
|
766
|
-
#dupStat.has b{color
|
|
767
|
-
#dupB.ok,#revB.ok{background
|
|
957
|
+
#dupStat.has b{color:var(--err)} #dupB.alert{background:var(--err-bg);border-color:var(--err-border)} #dupB.alert:hover{background:var(--err-border)}
|
|
958
|
+
#dupB.ok,#revB.ok{background:var(--ok-bg);border-color:var(--ok-border);color:var(--ok-ink)}
|
|
768
959
|
/* Plan switcher — a themed combobox, NOT a native <select>.
|
|
769
960
|
A <select>'s CLOSED state takes styling fine; its arrow and its option list do not. Those are drawn
|
|
770
961
|
by the OS, so they come up as a light panel against this dark theme no matter what the rule says —
|
|
@@ -787,7 +978,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
787
978
|
but it is stated rather than assumed: `appearance: auto` on this control is the exact signature the
|
|
788
979
|
QA pass matched on when it caught the <select>, and leaving it reading `auto` would have the next
|
|
789
980
|
such pass re-raise a defect that is gone. */
|
|
790
|
-
.plan-trigger{display:inline-flex;align-items:center;gap:6px;min-width:210px;max-width:320px;-webkit-appearance:none;appearance:none;background:var(--bg);border:1px solid
|
|
981
|
+
.plan-trigger{display:inline-flex;align-items:center;gap:6px;min-width:210px;max-width:320px;-webkit-appearance:none;appearance:none;background:var(--bg);border:1px solid var(--ctrl-border);border-radius:6px;padding:5px 8px;font:600 13px system-ui}
|
|
791
982
|
/* Load-bearing, not decorative: the page's generic `button:hover{background:#475569}` would otherwise
|
|
792
983
|
win on hover and flash the grey ACTION-button chrome onto a control that is a field you pick from.
|
|
793
984
|
(Class beats tag, so this rule wins wherever it is declared.) */
|
|
@@ -796,7 +987,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
796
987
|
.plan-caret{color:var(--mut);flex:none;transition:transform .15s}
|
|
797
988
|
.plan-trigger.open .plan-caret{transform:rotate(180deg)}
|
|
798
989
|
/* Panel matched to #moreMenu/.cmmenu — the other dropdowns hanging off this same header row. */
|
|
799
|
-
.plan-popover{position:absolute;top:calc(100% + 6px);left:0;min-width:100%;width:max-content;max-width:400px;background:var(--panel);border:1px solid
|
|
990
|
+
.plan-popover{position:absolute;top:calc(100% + 6px);left:0;min-width:100%;width:max-content;max-width:400px;background:var(--panel);border:1px solid var(--ctrl-border);border-radius:8px;box-shadow:var(--shadow-lg);padding:4px 0;z-index:30}
|
|
800
991
|
/* This page has no global [hidden] rule, so an author `display` on a hidden element wins by ORIGIN over
|
|
801
992
|
the UA's own [hidden] and `planPopover.hidden = true` would quietly do nothing. .plan-popover declares
|
|
802
993
|
no `display` TODAY, so this is redundant right now — it stays as insurance, because the moment anyone
|
|
@@ -808,7 +999,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
808
999
|
it needs its own cursor/font rather than inheriting the page's button rules. The transparent
|
|
809
1000
|
border-left is what stops the selected row's accent shifting its text by 2px. */
|
|
810
1001
|
.plan-option{display:block;width:100%;cursor:pointer;background:transparent;border:none;border-left:2px solid transparent;padding:7px 12px;text-align:left;font:13px system-ui;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
811
|
-
.plan-option:hover,.plan-option.active{background
|
|
1002
|
+
.plan-option:hover,.plan-option.active{background:var(--btn)} /* .active = the keyboard highlight, the name #comboPop already uses for it on this page */
|
|
812
1003
|
/* Left-border accent for the current plan — the shared .wf-option.selected convention, not a tick glyph:
|
|
813
1004
|
this page already spends ✓ on .m3dmenu's mode toggles, and blurring "pick one value" with "toggle a
|
|
814
1005
|
mode" is worse than keeping the two apart. */
|
|
@@ -828,6 +1019,17 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
828
1019
|
circle.handle.ep-start{fill:#facc15;stroke:#0b1220;stroke-width:2}
|
|
829
1020
|
circle.handle.ep-end{fill:#f472b6;stroke:#0b1220;stroke-width:2}
|
|
830
1021
|
.epdot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:middle}
|
|
1022
|
+
/* On dark this swatch carries its own contrast; on light the pale end of the drawing palette does not
|
|
1023
|
+
— #facc15 measures 1.40:1 on --panel and #f472b6 2.42:1, both under the 3:1 a non-text cue needs, so
|
|
1024
|
+
the dot that TELLS you which end you are editing stops being findable. The fill is the legend and
|
|
1025
|
+
must keep naming the on-canvas colour exactly, so the RING is what carries the contrast instead.
|
|
1026
|
+
--mut (7.25:1 on --panel), NOT --ctrl-border: the first cut used the control border and a second
|
|
1027
|
+
review measured it at 2.34:1 — still short of the 3:1 this rule exists to reach, which is the whole
|
|
1028
|
+
reason a "give it a border" fix is worth measuring rather than eyeballing.
|
|
1029
|
+
Light-only: dark keeps the borderless dot it has always had. (Codex review on #727.)
|
|
1030
|
+
The sibling swatch `.swc` needs nothing — being an <input type=color> it already carries a
|
|
1031
|
+
1px border of its own. */
|
|
1032
|
+
[data-theme="light"] .epdot{box-shadow:0 0 0 1px var(--mut)}
|
|
831
1033
|
/* 3D-only floating chrome (parity with AWARE viewer-3d): toolbar TL, legend BL, ViewCube BR */
|
|
832
1034
|
#m3dBar{position:absolute;top:12px;left:12px;right:12px;display:none;flex-wrap:wrap;gap:6px;align-items:center;z-index:59} /* bounded to the stage so narrow windows wrap this local toolbar instead of widening the whole document; above the model-glued label chips (z:3-4, under the 3D chrome — #614), below toasts (60) */
|
|
833
1035
|
#m3dBar .seg-group,#m3dBar>button{box-shadow:0 4px 14px rgba(0,0,0,.45)}
|
|
@@ -835,22 +1037,26 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
835
1037
|
#m3dBar .m3dwrap{position:relative;display:inline-flex}
|
|
836
1038
|
#m3dBar .m3dwrap>button{font-size:12px;padding:5px 9px;box-shadow:0 4px 14px rgba(0,0,0,.45)}
|
|
837
1039
|
#m3dModeBtn{min-width:8.2em;text-align:center} /* same reason as #m3dDimAxis above: reflectMode() rewrites this label live, and "Realistic ▾" is far wider than "Solid ▾" — without a min-width every mode switch shoves Isolate/Views/Clip sideways. Scoped to this button; the sibling dropdowns have no such label variance. */
|
|
838
|
-
.m3dmenu
|
|
1040
|
+
/* TOKENIZED even though every .m3dmenu but one hangs off the pinned-dark 3D toolbar: #m3dInsertMenu
|
|
1041
|
+
lives inside the ⋯ menu, which is light chrome, so on light its rows hovered to #334155 — 1.73:1,
|
|
1042
|
+
i.e. unreadable exactly while you point at them. Inside the island these tokens resolve dark, so the
|
|
1043
|
+
toolbar's own menus are unchanged. (Review on #727.) */
|
|
1044
|
+
.m3dmenu{position:absolute;left:0;top:calc(100% + 6px);min-width:172px;background:var(--panel);border:1px solid var(--ctrl-border);border-radius:8px;box-shadow:var(--shadow-lg);padding:4px 0;z-index:30;display:none}
|
|
839
1045
|
.m3dmenu.open{display:block}
|
|
840
1046
|
.m3dmenu button{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:0;padding:7px 12px;color:var(--text);white-space:nowrap;font-size:12px;box-shadow:none}
|
|
841
|
-
.m3dmenu button:hover{background
|
|
1047
|
+
.m3dmenu button:hover{background:var(--btn)}
|
|
842
1048
|
.m3dmenu button.on{color:var(--brand)} /* active choice in a radio-style menu (Camera / Display) */
|
|
843
1049
|
.m3dmenu button.on:not(.wtog)::after{content:'✓';float:right;margin-left:16px;color:var(--brand)} /* radio-style tick for Camera/Display choices — NOT the .wtog slider toggles (their .mck knob carries state) */
|
|
844
1050
|
.m3dmenu button:disabled{opacity:.4;cursor:default;background:transparent}
|
|
845
|
-
.m3dmenu button.mdanger{color
|
|
1051
|
+
.m3dmenu button.mdanger{color:var(--err)} .m3dmenu button.mdanger:hover{background:var(--err-bg);color:var(--err-ink)}
|
|
846
1052
|
.m3dmenu hr{border:0;border-top:1px solid var(--line);margin:4px 0}
|
|
847
1053
|
.m3dmenu label{display:flex;align-items:center;gap:7px;padding:7px 12px;color:var(--text);font-size:12px;cursor:pointer;white-space:nowrap}
|
|
848
|
-
.m3dmenu label:hover{background
|
|
1054
|
+
.m3dmenu label:hover{background:var(--btn)}
|
|
849
1055
|
.m3dmenu label input{margin:0;cursor:pointer} /* the global input[type=checkbox] rule now sets the box size, so this no longer inherits input{width:100%} and no longer needs `width:auto` — which on an appearance:none box would collapse it (View / Plane / Work toggles) */
|
|
850
1056
|
.m3dmenu .m3d-actions{display:flex;gap:6px;padding:4px 8px}
|
|
851
|
-
.m3dmenu .m3d-actions button{flex:1;width:auto;text-align:center;padding:5px 9px;border:1px solid
|
|
852
|
-
.m3dmenu .m3d-actions button:hover{background
|
|
853
|
-
.m3dmenu .m3d-actions button.mprimary{background:var(--brand);border-color:var(--brand);color
|
|
1057
|
+
.m3dmenu .m3d-actions button{flex:1;width:auto;text-align:center;padding:5px 9px;border:1px solid var(--ctrl-border);border-radius:6px;background:var(--btn)}
|
|
1058
|
+
.m3dmenu .m3d-actions button:hover{background:var(--btn-hover)}
|
|
1059
|
+
.m3dmenu .m3d-actions button.mprimary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
|
|
854
1060
|
.m3dmenu .m3d-actions button.mprimary:hover{background:var(--brand)}
|
|
855
1061
|
.m3dmenu .wpprow{display:flex;gap:4px;align-items:center;padding:4px 12px}
|
|
856
1062
|
.m3dmenu .wpprow button{width:auto;flex:none;padding:4px 8px;border:1px solid var(--line);border-radius:5px}
|
|
@@ -903,7 +1109,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
903
1109
|
#connImportModal .mpanel{width:min(560px,92vw)}
|
|
904
1110
|
#connImportModal.pick .mpanel{width:min(720px,92vw)}
|
|
905
1111
|
#ciBody{padding:16px;display:flex;flex-direction:column;gap:10px;overflow:auto;max-height:76vh}
|
|
906
|
-
#ciDrop{border:1px dashed
|
|
1112
|
+
#ciDrop{border:1px dashed var(--ctrl-border);border-radius:8px;background:var(--sunken);min-height:104px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--mut);cursor:pointer;padding:16px;font-size:12px}
|
|
907
1113
|
#ciDrop:hover{border-color:var(--brand);color:var(--text)}
|
|
908
1114
|
#ciDrop.drag{border-style:solid;border-color:var(--brand);color:var(--text);background:#0d1526}
|
|
909
1115
|
.ci-prog{display:flex;align-items:center;gap:10px;padding:22px 4px;color:var(--text);font-size:13px}
|
|
@@ -915,8 +1121,8 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
915
1121
|
#ciList{overflow:auto;max-height:min(52vh,360px);border:1px solid var(--line);border-radius:8px}
|
|
916
1122
|
.ci-row{display:flex;align-items:center;gap:10px;min-height:34px;padding:6px 12px;cursor:pointer;border:0;border-bottom:1px solid #0f1a2e;background:transparent;text-align:left;width:100%;box-sizing:border-box}
|
|
917
1123
|
.ci-row:last-child{border-bottom:0}
|
|
918
|
-
.ci-row:hover{background
|
|
919
|
-
.ci-row.sel{background:
|
|
1124
|
+
.ci-row:hover{background:var(--panel)}
|
|
1125
|
+
.ci-row.sel{background:var(--brand-wash);border-left:2px solid var(--brand);padding-left:10px}
|
|
920
1126
|
.ci-row .pn{flex:1;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
|
|
921
1127
|
.ci-row .pv{color:var(--mut);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}
|
|
922
1128
|
.ci-empty{color:var(--mut);font-size:12px;padding:16px;text-align:center}
|
|
@@ -924,7 +1130,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
924
1130
|
/* thin cluster divider in the 3D toolbar */
|
|
925
1131
|
#m3dBar .tb-sep{width:1px;height:18px;background:var(--line);flex:0 0 auto;align-self:center}
|
|
926
1132
|
/* Themed tooltip — replaces native title= so no OS-default tooltip leaks the dark theme. */
|
|
927
|
-
#tooltip{position:fixed;z-index:80;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:5px 8px;font-size:11.5px;line-height:1.35;color:var(--text);pointer-events:none;max-width:260px;box-shadow:
|
|
1133
|
+
#tooltip{position:fixed;z-index:80;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:5px 8px;font-size:11.5px;line-height:1.35;color:var(--text);pointer-events:none;max-width:260px;box-shadow:var(--shadow-tip);opacity:0;transition:opacity .12s}
|
|
928
1134
|
#tooltip.show{opacity:1}
|
|
929
1135
|
#m3dLegend .lrow .lx{margin-left:auto;color:var(--mut);padding:0 3px;border-radius:4px;visibility:hidden;font-size:13px;line-height:1}
|
|
930
1136
|
#m3dLegend .lrow:hover .lx{visibility:visible}
|
|
@@ -1001,9 +1207,9 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
1001
1207
|
track); no new token enters the baseline. */
|
|
1002
1208
|
#m3dRefsBody .refdet .dmeas{border:1px solid var(--line);border-radius:6px;background:#0b1220;padding:6px;display:flex;flex-direction:column;gap:6px}
|
|
1003
1209
|
#m3dRefsBody .refdet .lockrow{display:flex;align-items:center;gap:0;color:var(--text);font-size:11px;background:transparent;border:0;padding:2px 0;cursor:pointer;box-shadow:none}
|
|
1004
|
-
#m3dRefsBody .refdet .lockrow .mck{position:relative;width:26px;height:14px;margin-right:9px;border-radius:7px;border:1px solid var(--line);background
|
|
1210
|
+
#m3dRefsBody .refdet .lockrow .mck{position:relative;width:26px;height:14px;margin-right:9px;border-radius:7px;border:1px solid var(--line);background:var(--sunken);flex:none;transition:background-color .15s,border-color .15s}
|
|
1005
1211
|
#m3dRefsBody .refdet .lockrow .mck::after{content:'';position:absolute;top:1px;left:1px;width:10px;height:10px;border-radius:50%;background:#64748b;transition:transform .15s,background-color .15s}
|
|
1006
|
-
#m3dRefsBody .refdet .lockrow.on .mck{background:
|
|
1212
|
+
#m3dRefsBody .refdet .lockrow.on .mck{background:var(--brand-wash-strong);border-color:var(--brand)}
|
|
1007
1213
|
#m3dRefsBody .refdet .lockrow.on .mck::after{transform:translateX(12px);background:var(--brand)}
|
|
1008
1214
|
/* ── Reference colour: File / Grey / your own.
|
|
1009
1215
|
THE SWATCH IS THE THIRD SEGMENT, not a control beside one. Picking a colour and choosing "custom"
|
|
@@ -1059,16 +1265,16 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
1059
1265
|
#refImportModal .mhead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
|
|
1060
1266
|
#refImportModal .ribody{padding:14px;overflow:auto;min-height:0}
|
|
1061
1267
|
#refImportModal .rifoot{display:flex;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid var(--line)}
|
|
1062
|
-
#riDrop{border:1px dashed
|
|
1268
|
+
#riDrop{border:1px dashed var(--ctrl-border);border-radius:8px;padding:26px 14px;text-align:center;color:var(--mut);font-size:12px;line-height:1.6;cursor:pointer}
|
|
1063
1269
|
#riDrop:hover,#riDrop.drag{border-color:var(--brand);color:var(--text);background:rgba(59,130,246,.07)}
|
|
1064
|
-
#riDropErr{display:none;margin-top:8px;color
|
|
1270
|
+
#riDropErr{display:none;margin-top:8px;color:var(--err);font-size:11.5px;line-height:1.5}
|
|
1065
1271
|
#riProgTxt{color:var(--mut);font-size:12px;line-height:1.6;text-align:center;padding:22px 6px}
|
|
1066
1272
|
#refImportModal .rirow{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:3px 0;font-size:12px}
|
|
1067
1273
|
#refImportModal .rirow .pn{color:var(--mut)}
|
|
1068
1274
|
#refImportModal .rirow .pv{color:var(--text);font-variant-numeric:tabular-nums}
|
|
1069
1275
|
#riSays{margin:2px 0 10px;font-size:12.5px;color:var(--text);line-height:1.6}
|
|
1070
1276
|
#riSays b{color:var(--mut);font-weight:600}
|
|
1071
|
-
#riVerdict{display:none;margin-top:10px;padding:8px 10px;border:1px solid
|
|
1277
|
+
#riVerdict{display:none;margin-top:10px;padding:8px 10px;border:1px solid var(--warn-edge);border-radius:7px;color:var(--warn);font-size:11.5px;line-height:1.55}
|
|
1072
1278
|
#riVerdict button{margin-top:7px}
|
|
1073
1279
|
/* ── The storey / type picker (S2 Stage C) — load ONE FLOOR of a building you cannot afford whole.
|
|
1074
1280
|
A section INSIDE the confirm stage rather than a fourth stage: that stage already means "here are
|
|
@@ -1083,7 +1289,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
1083
1289
|
#riPickToggle{margin-top:10px}
|
|
1084
1290
|
#refImportModal .reftree{max-height:168px;overflow:auto;border:1px solid var(--line);border-radius:7px;background:var(--bg);padding:3px 2px;margin-bottom:8px}
|
|
1085
1291
|
#refImportModal .ripick-row{display:flex;align-items:center;gap:6px;padding:2px 4px;border-radius:5px;font-size:11.5px;color:var(--text);cursor:pointer;user-select:none}
|
|
1086
|
-
#refImportModal .ripick-row:hover{background
|
|
1292
|
+
#refImportModal .ripick-row:hover{background:var(--hover-soft)}
|
|
1087
1293
|
#refImportModal .ripick-row .rpname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
|
|
1088
1294
|
#refImportModal .ripick-row .rpcount{flex:none;color:var(--mut);font-variant-numeric:tabular-nums;font-size:10px}
|
|
1089
1295
|
/* The storey-less row. NOT a disabled checkbox — a disabled control says "you may not do this yet",
|
|
@@ -1095,14 +1301,14 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
1095
1301
|
#riPickNote,#riNoBreak{color:var(--mut);font-size:11px;line-height:1.5;margin:8px 0}
|
|
1096
1302
|
/* The live count's two loud states, in the tokens this file already uses — #riVerdict's amber and
|
|
1097
1303
|
#riDropErr's red. No new colour is introduced by this feature. */
|
|
1098
|
-
#riConfirmErr{display:none;margin-top:10px;color
|
|
1304
|
+
#riConfirmErr{display:none;margin-top:10px;color:var(--err);font-size:11.5px;line-height:1.5}
|
|
1099
1305
|
/* Two ids, deliberately: `#riElements.warn` alone is specificity (1,1,0) and loses to
|
|
1100
1306
|
`#refImportModal .rirow .pv` (1,2,0) above, so the colour was authored and never rendered. An
|
|
1101
1307
|
independent QA pass found it by reading the computed colour — asserting the class name, which
|
|
1102
1308
|
is what this session's own E2E did, passes with the pixel still wrong. */
|
|
1103
|
-
#refImportModal #riElements.warn{color
|
|
1309
|
+
#refImportModal #riElements.warn{color:var(--warn)} #refImportModal #riElements.refuse{color:var(--err)}
|
|
1104
1310
|
#riFootNote{display:none;flex:1;align-self:center;font-size:11px;line-height:1.4;text-align:left}
|
|
1105
|
-
#riFootNote.warn{color
|
|
1311
|
+
#riFootNote.warn{color:var(--warn)} #riFootNote.refuse{color:var(--err)}
|
|
1106
1312
|
#riInsert[disabled]{opacity:.5;cursor:not-allowed}
|
|
1107
1313
|
/* ── Favourites tab (#m3dFavBody) — the Views-tab row/search recipe. No create button (★ lives in the
|
|
1108
1314
|
Inspector); a kind-filter + search header, per-row kind swatch + portability badge + row-click-to-arm. ── */
|
|
@@ -1142,7 +1348,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
1142
1348
|
.ghostw.faved{color:var(--brand);border-color:var(--brand)} /* the ★ Save button once this recipe is in the library */
|
|
1143
1349
|
/* #favConnModal — a small sibling modal (askAiModal sizing); Kind is a read-only chip row, not an input. */
|
|
1144
1350
|
#favConnModal .mpanel{width:min(460px,92vw)}
|
|
1145
|
-
#favConnModal .favkindfield{display:flex;align-items:center;gap:8px;background
|
|
1351
|
+
#favConnModal .favkindfield{display:flex;align-items:center;gap:8px;background:var(--field);border:1px solid var(--ctrl-border);border-radius:6px;padding:6px 8px;min-height:34px}
|
|
1146
1352
|
#favConnModal .favkindfield .chip{margin:0}
|
|
1147
1353
|
#m3dLegend .lhint{color:var(--mut);font-size:10px;margin-bottom:4px;max-width:230px;white-space:normal} /* wrap-guard: the hint never drives the panel wider than the rows, so it can't clip on any font */
|
|
1148
1354
|
#m3dLegend .lrow{display:flex;align-items:center;gap:7px;cursor:default;user-select:none;padding:2px 4px;border-radius:5px;white-space:nowrap} /* only the left-hand box toggles now (it sets cursor:pointer); the row still isolates on dbl-click + right-clicks for the menu */
|
|
@@ -1377,6 +1583,10 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
1377
1583
|
<button id=dimToggleB class=dtog role=menuitemcheckbox aria-checked=true data-tip="Show or hide all placed dimensions on the plan"><span class=mck aria-hidden=true></span>Dimensions</button>
|
|
1378
1584
|
<button id=calloutToggleB class=dtog role=menuitemcheckbox aria-checked=true data-tip="Show or hide the clickable callout bubbles (section / elevation / detail references) on the plan"><span class=mck aria-hidden=true></span>Callouts</button>
|
|
1379
1585
|
<button id=gridToggleB class=dtog role=menuitemcheckbox aria-checked=false data-tip="Show or hide the grid lines in 2D and 3D"><span class=mck aria-hidden=true></span>Grid lines</button>
|
|
1586
|
+
<!-- step=1, NOT 2: clampGridLabelPx rounds to an integer and the key is user-writable, so a coarser
|
|
1587
|
+
step would let a stored odd value draw at 15 and read "15 px" while the browser snapped the thumb
|
|
1588
|
+
to 16 — then jumped on the first drag. One authority on what a legal size is. -->
|
|
1589
|
+
<div class=mrow><span class=mlbl>Grid label size</span><input id=gridLabelSize type=range min=14 max=48 step=1 aria-label="Grid label size in pixels" data-tip="How big the grid bubbles are drawn, in both 2D and 3D. Like a CAD drawing they hold this size on screen however far you zoom in or out."><span id=gridLabelSizeV class=mval>26 px</span></div>
|
|
1380
1590
|
<button id=lenToggleB class=dtog role=menuitemcheckbox aria-checked=false data-tip="Show the length of each selected member in 2D and 3D"><span class=mck aria-hidden=true></span>Member length</button>
|
|
1381
1591
|
<button id=plToggleB class=dtog role=menuitemcheckbox aria-checked=true data-tip="Show or hide property labels in the 2D plan (the property selection is shared with 3D — this hides them here only)"><span class=mck aria-hidden=true></span>Property labels</button>
|
|
1382
1592
|
<button id=refToggleB class=dtog role=menuitemcheckbox aria-checked=true data-tip="Show or hide the traced reference sheet (the PDF/SVG drawing under the model). Hidden, it also stops contributing snap points."><span class=mck aria-hidden=true></span>Reference sheet</button>
|
|
@@ -1741,8 +1951,8 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
|
|
|
1741
1951
|
<div class=mpanel style="width:min(560px,92vw)">
|
|
1742
1952
|
<div class=mhead><b>Ask the AI</b><button id=askAiClose>✕</button></div>
|
|
1743
1953
|
<div style="padding:14px;display:flex;flex-direction:column;gap:10px">
|
|
1744
|
-
<textarea id=askAiText rows=4 placeholder="Describe the change — e.g. 'this bay is missing two W12x19 infills'" style="width:100%;resize:vertical;background
|
|
1745
|
-
<div id=askAiDrop style="border:1px dashed
|
|
1954
|
+
<textarea id=askAiText rows=4 placeholder="Describe the change — e.g. 'this bay is missing two W12x19 infills'" style="width:100%;resize:vertical;background:var(--field);color:var(--text);border:1px solid var(--ctrl-border);border-radius:6px;padding:8px;font:13px system-ui;min-height:72px"></textarea>
|
|
1955
|
+
<div id=askAiDrop style="border:1px dashed var(--ctrl-border);border-radius:8px;background:var(--sunken);min-height:72px;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;text-align:center;color:var(--mut);cursor:pointer;padding:10px;font-size:12px">
|
|
1746
1956
|
<span id=askAiDropTxt>Paste or drop a screenshot (Ctrl+V) — optional</span>
|
|
1747
1957
|
</div>
|
|
1748
1958
|
<input id=askAiFile type=file accept="image/*" multiple hidden>
|
|
@@ -2006,7 +2216,7 @@ const queueWrite = (fn) => (writeQueue = writeQueue.then(fn, fn));
|
|
|
2006
2216
|
*/
|
|
2007
2217
|
function showEmpty(icon, headline, bodyText, appIdText, opts) {
|
|
2008
2218
|
const wrap = document.createElement('div');
|
|
2009
|
-
wrap.style.cssText = 'display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100vh;box-sizing:border-box;text-align:center;color
|
|
2219
|
+
wrap.style.cssText = 'display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100vh;box-sizing:border-box;text-align:center;color:var(--text);font:13px system-ui,sans-serif;gap:10px;padding:24px;background:var(--bg)';
|
|
2010
2220
|
wrap.setAttribute('role', 'alert');
|
|
2011
2221
|
wrap.setAttribute('aria-labelledby', 'empty-state-heading');
|
|
2012
2222
|
wrap.setAttribute('aria-describedby', 'empty-state-body');
|
|
@@ -2014,14 +2224,14 @@ function showEmpty(icon, headline, bodyText, appIdText, opts) {
|
|
|
2014
2224
|
const h = document.createElement('h1'); h.id = 'empty-state-heading'; h.style.cssText = 'font-size:15px;font-weight:600;margin:0';
|
|
2015
2225
|
if (appIdText != null) { h.append(headline + ' '); const b = document.createElement('strong'); b.textContent = appIdText; h.append(b); }
|
|
2016
2226
|
else { h.textContent = headline; }
|
|
2017
|
-
const body = document.createElement('div'); body.id = 'empty-state-body'; body.style.cssText = 'font-size:12.5px;color
|
|
2227
|
+
const body = document.createElement('div'); body.id = 'empty-state-body'; body.style.cssText = 'font-size:12.5px;color:var(--mut);max-width:340px;line-height:1.55'; body.textContent = bodyText;
|
|
2018
2228
|
// Insert the live region before populating it so assistive technology reliably announces this async
|
|
2019
2229
|
// terminal state. The visual result is unchanged: all children are appended in the same microtask.
|
|
2020
2230
|
document.body.replaceChildren(wrap);
|
|
2021
2231
|
wrap.append(ic, h, body);
|
|
2022
2232
|
if (opts && opts.detail) {
|
|
2023
2233
|
const det = document.createElement('div');
|
|
2024
|
-
det.style.cssText = 'font-size:10.5px;color
|
|
2234
|
+
det.style.cssText = 'font-size:10.5px;color:var(--mut);opacity:.65;margin-top:-2px';
|
|
2025
2235
|
det.textContent = opts.detail; // textContent, not innerHTML: detail may include stored/server-authored text
|
|
2026
2236
|
wrap.append(det);
|
|
2027
2237
|
}
|
|
@@ -2647,6 +2857,18 @@ let drawDraft=null; // Add-member tool: the first CLICKED start point (or null
|
|
|
2647
2857
|
let calloutsVisible=true; // Workstream B: show/hide the clickable callout bubbles (details + section/elevation/detail-ref) on the plan in select mode
|
|
2648
2858
|
let showSelLen=(()=>{try{return localStorage.getItem('steel:selLen:v1')==='1';}catch(_){return false;}})(); // ⋯ Display → Show member length: paint each selected member's length on the canvas (opt-in, default off)
|
|
2649
2859
|
let refSheetOn=(()=>{try{return localStorage.getItem('steel:refSheet:v1')!=='0';}catch(_){return true;}})(); // ⋯ Display → Reference sheet (F13): show/hide the traced PDF/SVG overlay under the model (default ON; only an explicit '0' hides it)
|
|
2860
|
+
// ⋯ Display → Grid label size: how big a grid bubble is ON SCREEN, in px. Constant on screen in both
|
|
2861
|
+
// views (2D divides by zoom, 3D re-derives a world size per frame), so one grid reads the same in each —
|
|
2862
|
+
// which is why the setting is shared rather than per-view. A VIEW preference, not model data: it lives in
|
|
2863
|
+
// this browser and never enters the contract. steel-3d-view.js reads the SAME key at load, so the two
|
|
2864
|
+
// agree before the first frame; changing it here pushes to the renderer live (setGridLabelPx).
|
|
2865
|
+
const GRID_LABEL_PX_DEFAULT=26,GRID_LABEL_PX_MIN=14,GRID_LABEL_PX_MAX=48;
|
|
2866
|
+
// × gridLabelPx between two bubble centres before the later one drops out. Must be ≥ 1: gridLabelPx IS
|
|
2867
|
+
// the diameter, so centres one diameter apart are exactly touching. Same value as the renderer's
|
|
2868
|
+
// GRID_LABEL_MIN_GAP — the two views must agree about what "too close" means.
|
|
2869
|
+
const GRID_LABEL_MIN_GAP=1.05;
|
|
2870
|
+
const clampGridLabelPx=v=>{const n=Math.round(+v);return Number.isFinite(n)&&n>0?Math.min(GRID_LABEL_PX_MAX,Math.max(GRID_LABEL_PX_MIN,n)):GRID_LABEL_PX_DEFAULT;};
|
|
2871
|
+
let gridLabelPx=(()=>{try{const raw=localStorage.getItem('steel:gridLabelPx:v1');return raw===null?GRID_LABEL_PX_DEFAULT:clampGridLabelPx(raw);}catch(_){return GRID_LABEL_PX_DEFAULT;}})();
|
|
2650
2872
|
let gridMode=false, gridPick=false, gridLinePick=null; // Grid lines: panel-takeover editing mode + armed pick-origin / single-line clicks
|
|
2651
2873
|
let dimStyleMode=false; // Dimension style: panel-takeover pane for the model-global defaults (⋯ → Display → Dimension style…)
|
|
2652
2874
|
let csaxisMode=false, csDraft=null; // Local coordinate system "set axes" tool: armed flag + in-progress origin [x,y] (null until click 1). P.frame={o,u} holds the committed local frame (null = global).
|
|
@@ -4471,21 +4693,101 @@ function gridLineEndpoints(el){const geo=gridGeo();if(!geo||!el||!el.dataset)ret
|
|
|
4471
4693
|
const gi=+(free?el.dataset.gl:(el.dataset.gv!=null?el.dataset.gv:el.dataset.gh));if(!isFinite(gi))return null;
|
|
4472
4694
|
const line=free?(geo.lines||[])[gi]:geo[axis][gi];if(!line)return null;
|
|
4473
4695
|
return free?[line.a.slice(),line.b.slice()]:(axis==='v'?[[line.x,line.lo],[line.x,line.hi]]:[[line.lo,line.y],[line.hi,line.y]]);}
|
|
4696
|
+
// Grid bubble geometry in SCREEN px — shared by the first render and the zoom rescale so the two can
|
|
4697
|
+
// never drift apart. Two CAD habits are encoded here. (1) EVERY bubble is the same diameter, exactly
|
|
4698
|
+
// gridLabelPx, and a long mark shrinks its TEXT to fit — that is how a drawing does it, and it is the
|
|
4699
|
+
// only way "one size, both views" can be literally true (3D's gridBubbleTexture shrinks to fit too, so
|
|
4700
|
+
// growing the circle here instead made 2D 26% bigger than 3D for any 4-character insert like "10.1").
|
|
4701
|
+
// (2) It sits TANGENT to the end of its line, on the far side from the model — the line stops at the
|
|
4702
|
+
// circle instead of running to its centre. That is the same convention gridFromDrawing measures on real
|
|
4703
|
+
// sheets, and it is what keeps a bubble off the perimeter column standing at the grid end.
|
|
4704
|
+
// sizeGridLabels() in steel-3d-view.js does both of these for 3D, from the same gridLabelPx.
|
|
4705
|
+
function gridBubbleRPx(){return gridLabelPx/2;} // ONE diameter for every mark, always
|
|
4706
|
+
// EXACT text width, not an estimate. Measured once per label on a canvas in the same font, at a
|
|
4707
|
+
// reference size, and scaled linearly — advance width is linear in font size, so one measure per
|
|
4708
|
+
// distinct mark for the life of the page. The estimate this replaces (0.58em × character count) is
|
|
4709
|
+
// blind to which glyphs they are: QA measured "D12" reaching 12.01 px into a rim that spans
|
|
4710
|
+
// 11.50–13.00 px, i.e. the D and the 2 sitting ON the stroke, because D is nearer 0.72em than 0.58.
|
|
4711
|
+
// LAZY and guarded, not a module-scope `createElement(...).getContext('2d')`: the characterization
|
|
4712
|
+
// harness evaluates this script over a minimal DOM stub whose canvas has no 2D context, so eager
|
|
4713
|
+
// construction threw during load and took 75 tests with it.
|
|
4714
|
+
let _gridTxCtx=null,_gridTxCtxTried=false;const _gridTxW=new Map();
|
|
4715
|
+
function gridLabelWidthEm(label){const t=String(label==null?'':label)||' ';
|
|
4716
|
+
if(_gridTxW.has(t))return _gridTxW.get(t);
|
|
4717
|
+
if(!_gridTxCtxTried){_gridTxCtxTried=true;try{_gridTxCtx=document.createElement('canvas').getContext('2d');}catch(_){_gridTxCtx=null;}}
|
|
4718
|
+
let w;
|
|
4719
|
+
if(_gridTxCtx&&typeof _gridTxCtx.measureText==='function'){_gridTxCtx.font='bold 100px system-ui';w=_gridTxCtx.measureText(t).width/100;}
|
|
4720
|
+
// No canvas to measure with (headless). A deliberately GENEROUS per-character estimate, so the fallback
|
|
4721
|
+
// can only shrink the text further than a real measurement would — it can never overrun the rim.
|
|
4722
|
+
else w=t.length*0.62;
|
|
4723
|
+
_gridTxW.set(t,w);return w;}
|
|
4724
|
+
// Fit the text to the CIRCLE, not to the diameter. A centred line of text is widest at its own
|
|
4725
|
+
// half-height, where the circle has already narrowed — so the constraint is
|
|
4726
|
+
// (w·fs/2)² + (0.36·fs)² ≤ Ri² (0.36em ≈ half the cap height)
|
|
4727
|
+
// which solves in closed form for fs. Ri is the INNER radius: the rim is a 1.5 px non-scaling stroke, so
|
|
4728
|
+
// text that stops at R still lands on it. 0.95 keeps the ink clearly inside rather than exactly tangent.
|
|
4729
|
+
// The base ratio (26px bubble → 12px text) is the ceiling; a long mark only ever shrinks from there.
|
|
4730
|
+
function gridLabelFontPx(label){
|
|
4731
|
+
const w=gridLabelWidthEm(label),Ri=Math.max(1,gridBubbleRPx()-1.5);
|
|
4732
|
+
return Math.min(gridLabelPx*0.46,0.95*Ri/Math.sqrt(w*w/4+0.1296));}
|
|
4474
4733
|
function gridSvg(){
|
|
4475
4734
|
if(!gridOn())return '';
|
|
4476
4735
|
const geo=gridGeo();if(!geo||(!geo.v.length&&!geo.h.length&&!(geo.lines&&geo.lines.length)))return '';
|
|
4477
|
-
const R=11/zoom,F=12/zoom;
|
|
4478
4736
|
let s='<g id=gridG>';
|
|
4479
4737
|
const gsel=i=>selGridIds.has(i)?' sel':''; // marquee/Ctrl+A grid selection → highlight the visible line
|
|
4480
4738
|
const gTip=geoMode==='el'?'extend/trim target':'drag to move'; // while Extend/Trim is armed, a grid line is a target (drag is disabled) — don't promise "drag to move"
|
|
4481
4739
|
geo.v.forEach((l,i)=>{s+=`<line class="gridln${gsel('gv:'+i)}" data-gv="${i}" x1="${l.x}" y1="${l.lo}" x2="${l.x}" y2="${l.hi}"/><line class="gridhit gv" data-gv="${i}" x1="${l.x}" y1="${l.lo}" x2="${l.x}" y2="${l.hi}" data-tip="Grid ${esc(l.label)} — ${gTip}"></line>`;});
|
|
4482
4740
|
geo.h.forEach((l,i)=>{s+=`<line class="gridln${gsel('gh:'+i)}" data-gh="${i}" x1="${l.lo}" y1="${l.y}" x2="${l.hi}" y2="${l.y}"/><line class="gridhit gh" data-gh="${i}" x1="${l.lo}" y1="${l.y}" x2="${l.hi}" y2="${l.y}" data-tip="Grid ${esc(l.label)} — ${gTip}"></line>`;});
|
|
4483
4741
|
(geo.lines||[]).forEach((l,i)=>{s+=`<line class="gridln${gsel('gl:'+(l.id!=null?l.id:i))}" data-gl="${i}" x1="${l.a[0]}" y1="${l.a[1]}" x2="${l.b[0]}" y2="${l.b[1]}"/><line class="gridhit gl" data-gl="${i}" x1="${l.a[0]}" y1="${l.a[1]}" x2="${l.b[0]}" y2="${l.b[1]}" data-tip="Grid ${esc(l.label)} — ${gTip}"></line>`;});
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4742
|
+
// (ox,oy) is the line's OTHER end — it gives the outward direction the bubble hangs along. Both are
|
|
4743
|
+
// baked onto the group as data-* so sizeGridBubbles() can re-place the circle on zoom without a rebuild
|
|
4744
|
+
// (a rebuild between a dblclick's two clicks would kill the rename gesture — see gridRenameBubble).
|
|
4745
|
+
const bub=(x,y,ox,oy,lb,ax,i,end)=>{
|
|
4746
|
+
// A zero-length line has no outward direction. `|| 1` used to guard the division and yield a ZERO
|
|
4747
|
+
// vector, parking the bubble on the model — the one thing this placement exists to prevent, in code
|
|
4748
|
+
// that read as if the case were handled. +X is arbitrary but it is a real direction. (Same in 3D.)
|
|
4749
|
+
const dx=x-ox,dy=y-oy,len=Math.hypot(dx,dy),ux=len>1e-9?dx/len:1,uy=len>1e-9?dy/len:0;
|
|
4750
|
+
const R=gridBubbleRPx()/zoom,F=gridLabelFontPx(lb)/zoom,cx=x+ux*R,cy=y+uy*R;
|
|
4751
|
+
return `<g class=gridbubg data-${ax}="${i}" data-end="${end}" data-ax="${x}" data-ay="${y}" data-ux="${ux}" data-uy="${uy}" data-label="${esc(lb)}" data-tip="Grid ${esc(lb)} — drag to move or adjust · dbl-click to rename · click to select"><circle class=gridbub cx="${cx}" cy="${cy}" r="${R}"/><text class=gridtx x="${cx}" y="${cy}" style="font-size:${F}px">${esc(lb)}</text></g>`;};
|
|
4752
|
+
geo.v.forEach((l,i)=>{s+=bub(l.x,l.lo,l.x,l.hi,l.label,'gv',i,0)+bub(l.x,l.hi,l.x,l.lo,l.label,'gv',i,1);});
|
|
4753
|
+
geo.h.forEach((l,i)=>{s+=bub(l.lo,l.y,l.hi,l.y,l.label,'gh',i,0)+bub(l.hi,l.y,l.lo,l.y,l.label,'gh',i,1);});
|
|
4754
|
+
(geo.lines||[]).forEach((l,i)=>{s+=bub(l.a[0],l.a[1],l.b[0],l.b[1],l.label,'gl',i,0)+bub(l.b[0],l.b[1],l.a[0],l.a[1],l.label,'gl',i,1);});
|
|
4488
4755
|
return s+'</g>';}
|
|
4756
|
+
// Re-place + re-size every 2D bubble for the current zoom (and for a changed Grid label size), from the
|
|
4757
|
+
// anchor/outward baked above — the screen-constant half of the same two habits gridSvg documents.
|
|
4758
|
+
function sizeGridBubbles(){
|
|
4759
|
+
const placedBubbles=[];
|
|
4760
|
+
svg.querySelectorAll('g.gridbubg').forEach(g=>{
|
|
4761
|
+
const c=g.querySelector('circle.gridbub'),t=g.querySelector('text.gridtx');if(!c||!t)return;
|
|
4762
|
+
const R=gridBubbleRPx()/zoom,F=gridLabelFontPx(g.dataset.label)/zoom;
|
|
4763
|
+
const cx=+g.dataset.ax+(+g.dataset.ux)*R,cy=+g.dataset.ay+(+g.dataset.uy)*R;
|
|
4764
|
+
// A NaN here does NOT leave a missing bubble — it leaves a bubble frozen at the previous zoom's
|
|
4765
|
+
// radius and centre, drifting off its line end as the plan scales under it. That reads as "the
|
|
4766
|
+
// drawing is wrong", not "one element failed to update", so it says so once. Reachable from a
|
|
4767
|
+
// malformed grid coordinate: sanitizePlanGrid only validates `origin`, so a NaN endpoint survives it.
|
|
4768
|
+
if(!isFinite(cx)||!isFinite(cy)||!isFinite(R)){if(!staleBubbleWarned){staleBubbleWarned=true;console.warn('steel-editor: grid bubble "'+(g.dataset.label||'?')+'" has an unusable anchor — it will not follow the zoom (check the grid coordinates)');}return;}
|
|
4769
|
+
c.setAttribute('r',R);c.setAttribute('cx',cx);c.setAttribute('cy',cy);
|
|
4770
|
+
t.setAttribute('x',cx);t.setAttribute('y',cy);t.style.fontSize=F+'px';
|
|
4771
|
+
g.style.removeProperty('display');placedBubbles.push({g,cx,cy});});
|
|
4772
|
+
// DECLUTTER, the same rule 3D applies — a drawing never prints two bubbles on top of each other, and
|
|
4773
|
+
// the plan can pile them up just as readily: zoom out far enough, or take the size up towards 48 px, and
|
|
4774
|
+
// adjacent endpoints come closer than one diameter. (It went unnoticed because at the default 26 px the
|
|
4775
|
+
// 2D zoom bottoms out with the closest centres at ~30 px — just clear.) Distances are compared in USER
|
|
4776
|
+
// units, where the threshold is the screen gap ÷ zoom, exactly as the radius is.
|
|
4777
|
+
// Selection first, then document order: the same stable, selection-aware priority as sizeGridLabels, so
|
|
4778
|
+
// the grid you are working on never loses its label and the survivors don't flicker while zooming.
|
|
4779
|
+
if(selGridIds.size)placedBubbles.sort((a,b)=>(gridIdOfBubble(b.g)&&selGridIds.has(gridIdOfBubble(b.g))?1:0)-(gridIdOfBubble(a.g)&&selGridIds.has(gridIdOfBubble(a.g))?1:0));
|
|
4780
|
+
const minGap=gridLabelPx*GRID_LABEL_MIN_GAP/zoom,kept=[];
|
|
4781
|
+
for(const b of placedBubbles){
|
|
4782
|
+
if(kept.some(k=>Math.hypot(k.cx-b.cx,k.cy-b.cy)<minGap)){b.g.style.display='none';continue;}
|
|
4783
|
+
kept.push(b);}}
|
|
4784
|
+
// The grid id a 2D bubble group belongs to — mirrors the axis/index decode the drag and rename paths use.
|
|
4785
|
+
function gridIdOfBubble(g){const geo=gridGeo()||{};
|
|
4786
|
+
if(g.dataset.gv!=null)return 'gv:'+g.dataset.gv;
|
|
4787
|
+
if(g.dataset.gh!=null)return 'gh:'+g.dataset.gh;
|
|
4788
|
+
if(g.dataset.gl!=null){const l=(geo.lines||[])[+g.dataset.gl];return 'gl:'+(l&&l.id!=null?l.id:g.dataset.gl);}
|
|
4789
|
+
return null;}
|
|
4790
|
+
let staleBubbleWarned=false; // warn once; sizeGridBubbles runs on every zoom step
|
|
4489
4791
|
// live re-render of just the grid layer while a line is being dragged (render() is too heavy per move)
|
|
4490
4792
|
function refreshGridLayer(){const el=document.getElementById('gridG');if(el)el.outerHTML=gridSvg();}
|
|
4491
4793
|
// every visible grid line with a synthetic id + endpoints — the source for marquee/Ctrl+A grid selection.
|
|
@@ -4525,7 +4827,7 @@ function deleteSelGrids(){
|
|
|
4525
4827
|
// cursor-following distance readout for grid drags (same chrome as the 3D drag readout)
|
|
4526
4828
|
let gridRd=null;
|
|
4527
4829
|
function gridReadout(e,main,sub){
|
|
4528
|
-
if(!gridRd){gridRd=document.createElement('div');
|
|
4830
|
+
if(!gridRd){gridRd=document.createElement('div');gridRd.id='gridReadout';
|
|
4529
4831
|
gridRd.style.cssText='position:fixed;display:none;pointer-events:none;z-index:60;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:4px;padding:3px 7px;font:12px system-ui;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.5)';
|
|
4530
4832
|
gridRd._m=document.createElement('span');gridRd._s=document.createElement('span');gridRd._s.style.color='var(--mut)';
|
|
4531
4833
|
gridRd.append(gridRd._m,gridRd._s);document.body.appendChild(gridRd);}
|
|
@@ -4539,7 +4841,7 @@ function gridRenameBubble(axis,gi,anchorEl){
|
|
|
4539
4841
|
const gc=GC();if(!gc||!gridOf())return;
|
|
4540
4842
|
const geo=gridGeo();const lines=axis==='v'?geo.v:axis==='h'?geo.h:(geo.lines||[]);const line=lines[gi];if(!line||!anchorEl)return;
|
|
4541
4843
|
const cur=line.label,r=anchorEl.getBoundingClientRect();
|
|
4542
|
-
const inp=document.createElement('input');inp.value=cur;inp.className='gin';
|
|
4844
|
+
const inp=document.createElement('input');inp.value=cur;inp.className='gin';inp.id='gridLabelEdit'; // the id is for CSS only: it puts THIS floating instance in the dark island (#727), while the same .gin class inside the light #panel stays light
|
|
4543
4845
|
inp.style.cssText='position:fixed;z-index:70;width:72px;text-align:center;left:'+(r.left+r.width/2-36)+'px;top:'+(r.top+r.height/2-14)+'px;padding:4px;border-color:var(--brand);box-shadow:0 4px 14px rgba(0,0,0,.5)';
|
|
4544
4846
|
document.body.appendChild(inp);inp.focus();inp.select();
|
|
4545
4847
|
let done=false;
|
|
@@ -4793,7 +5095,7 @@ function renderGridPanel(p){
|
|
|
4793
5095
|
wire('gLY',(v)=>{if(v!==(g.labels_y||''))editGrid(()=>{ModelCmd.patchGrid(gridOf(),{labels_y:v});});});
|
|
4794
5096
|
document.querySelectorAll('[data-zlabel]').forEach(el=>{const orig=el.value;el.addEventListener('input',()=>{const limited=gc.truncateText(el.value,40);if(limited!==el.value)el.value=limited;});el.addEventListener('keydown',ev=>{ev.stopPropagation();if(ev.key==='Enter'){ev.preventDefault();el.blur();}else if(ev.key==='Escape'){ev.preventDefault();el.value=orig;}});el.addEventListener('change',()=>{const i=+el.dataset.zlabel,nv=gc.truncateText(el.value.trim(),40),labels=zNormalizedLabels.labels.slice();if(labels[i]===nv&&g.z===normZ)return;labels[i]=nv;editGridZLabels(normZ,g,{labels_z:labels});});});
|
|
4795
5097
|
document.querySelectorAll('[data-zvisible]').forEach(el=>el.addEventListener('change',()=>{const lv=zParsed.levels[+el.dataset.zvisible];if(!lv)return;const key=gc.gridLevelKey(lv.mm),next=hiddenZ.filter(mm=>gc.gridLevelKey(mm)!==key);if(!el.checked)next.push(lv.mm);const hidden=gc.normalizeHiddenLevels(next,zParsed.levels);editGrid(()=>{ModelCmd.patchGrid(gridOf(),{hidden_z:hidden.length?hidden:undefined});});}));
|
|
4796
|
-
wire('gExt',(v,el)=>{const mm=gc.parseLen(v);if(!isFinite(mm)||mm<0){el.style.borderColor='
|
|
5098
|
+
wire('gExt',(v,el)=>{const mm=gc.parseLen(v);if(!isFinite(mm)||mm<0){el.style.borderColor='var(--err)';return;}el.style.borderColor='';if(Math.abs(mm-(isFinite(g.ext)?g.ext:1524))>0.5)editGrid(()=>{ModelCmd.patchGrid(gridOf(),{ext:mm});});});
|
|
4797
5099
|
// The ORIGIN, typed (unit 5, P7d). v1 sets it by clicking the 1-A corner on the plan; a v2 model has no
|
|
4798
5100
|
// plan canvas to click (§1), so "move the grid" would have had no gesture at all — and moving it is one of
|
|
4799
5101
|
// the edits this unit exists to give the human. Both coordinates commit as ONE edit: writing X and then Y
|
|
@@ -5087,8 +5389,7 @@ function updateBadges(){const R=12/zoom,F=13/zoom,ox=el=>(+el.dataset.fi-(+el.da
|
|
|
5087
5389
|
// (brace arrowheads need no rescale here — they are content-unit sized, so they scale with the member
|
|
5088
5390
|
// stroke exactly like the line they cap. See braceHeadPoints().)
|
|
5089
5391
|
{const dg=svg.querySelector('g.dimsg');if(dg)dg.innerHTML=renderDimsInner();} // dims shrink below DIM_ZMIN (see dimSvg) so dense dims don't overlap when zoomed out (B8) — every part of a dim is zoom-derived, so rebuild the group rather than patch it
|
|
5090
|
-
|
|
5091
|
-
svg.querySelectorAll('text.gridtx').forEach(t=>t.style.fontSize=(12/zoom)+'px');
|
|
5392
|
+
sizeGridBubbles(); // radius, font AND centre — the bubble hangs off its line end by its own radius, so a zoom that changes the radius moves it too
|
|
5092
5393
|
// property-label chips: recompute size + stacked screen offset from the baked anchor (ax,ay) + per-row screen
|
|
5093
5394
|
// offset (off) so they stay constant on screen while zooming (like dim chips) — AND re-apply the zoom
|
|
5094
5395
|
// threshold live (data-mlen × zoom), so zooming reveals/hides labels as members cross ~24px on screen.
|
|
@@ -5393,7 +5694,7 @@ function panel(){
|
|
|
5393
5694
|
${cmArrayMode?`<div class=sect style="margin-top:12px">Array counts</div><div class=elab>Direction A</div><input id=cmNA inputmode=numeric value="${cmCountA}" autocomplete=off><div class=elab>Direction B</div><input id=cmNB inputmode=numeric value="${cmCountB}" autocomplete=off><div class=hint id=cmCapHint style="margin-top:4px">Counts include the original — 4 × 6 fills a 4-by-6 grid (max 100).</div>`:''}
|
|
5394
5695
|
<div class=hint style="margin-top:8px">${refTarget?'1 reference model selected.':nsel+' member'+(nsel===1?'':'s')+' selected.'} ${view3d?'<b>Shift</b>=straight · <b>X/Y/Z</b> lock (press again to release · <b>F</b> clears; lock two to snap to whichever you drag toward) · <b>Alt</b>=lock out-of-plane':'<b>Shift</b>=straight · <b>X/Y/F</b> axis · <b>Alt</b>=no snap'} · type after the first pick for an exact value · <b>Esc</b> cancels.${refTarget?'':' Connections don’t copy.'}</div>`;
|
|
5395
5696
|
const wireN=(id,set)=>{const i=document.getElementById(id);if(i)i.onchange=e=>{const n=Math.max(1,Math.min(99,Math.round(Number(e.target.value)||1)));set(n);e.target.value=n;
|
|
5396
|
-
const ch=document.getElementById('cmCapHint');if(ch)ch.style.color=(cmArrayMode&&cmCountA*cmCountB>100)?'
|
|
5697
|
+
const ch=document.getElementById('cmCapHint');if(ch)ch.style.color=(cmArrayMode&&cmCountA*cmCountB>100)?'var(--err)':'';cmRefreshPrev();};};
|
|
5397
5698
|
wireN('cmN',n=>cmCount=n);wireN('cmNA',n=>cmCountA=n);wireN('cmNB',n=>cmCountB=n);
|
|
5398
5699
|
return;}
|
|
5399
5700
|
if(dimMode){p.innerHTML=`<span class=badge>Dimension</span>
|
|
@@ -5541,7 +5842,7 @@ function panel(){
|
|
|
5541
5842
|
if(isBP)body=sec('Plate')+kv('Size',sz)+kv('Thickness',plate?dim(plate.thickness):dim(pp.thickness))+sec('Anchors')+kv('Grid (cols × rows)',esc(`${pp.boltCols||2} × ${pp.boltRows||2}`))+kv('Diameter',pp.boltDia?dim(pp.boltDia):dim(24));
|
|
5542
5843
|
else body=sec('Plate')+kv('Size',sz)+kv('Thickness',plate?dim(plate.thickness):dim(pp.plateThickness))+sec('Bolts')+kv('Grid (cols × rows)',esc(`${pp.boltCols||1} × ${pp.boltRows||3}`))+kv('Diameter',pp.boltDia?dim(pp.boltDia):dim(20))+sec('Weld')+kv('Leg',pp.weldLeg?dim(pp.weldLeg):dim(6));
|
|
5543
5844
|
p.innerHTML=`<span class=badge>${connKindLabel(cs.kind)}</span>
|
|
5544
|
-
<div class=row style="margin:0 0 6px"><span class=chip style="border-color:var(--brand);color
|
|
5845
|
+
<div class=row style="margin:0 0 6px"><span class=chip style="border-color:var(--brand);color:var(--info-ink)">Parametric — editable</span></div>
|
|
5545
5846
|
<div class="row hint" style="margin:0 0 2px">On <button class=pilllink id=cmpMember data-tip="Select ${esc(j.main)}">${esc(j.main)}</button> · ${cs.childIds.length} parts</div>
|
|
5546
5847
|
<div class="row hint" style="margin:0 0 6px;font-size:11px">Double-click to enter and pick a part · <b>Esc</b> steps back.</div>
|
|
5547
5848
|
${body}
|
|
@@ -5693,8 +5994,8 @@ function panel(){
|
|
|
5693
5994
|
<div class="row hint" style="margin-top:0">Edits apply to <b>all ${arr.length}</b> selected · a blank <b>Varies</b> field is left unchanged.</div>
|
|
5694
5995
|
${memberTypeField('mTypeM',arr)}
|
|
5695
5996
|
<div class="f"><div class=elab>Profile</div><input id=pf class=combo data-src=profiles placeholder="${VV(profAgg)?'Varies':''}" value="${VV(profAgg)?'':esc(profAgg||'')}" autocomplete=off></div>
|
|
5696
|
-
<div class="row hint">Total length <b>${totalL} ft</b>${totalW!=null?` · <b>${totalW.toLocaleString()} lb</b>`:''}${dupSel?` · <span style="color
|
|
5697
|
-
<div class=row><button class=ghostw id=verifyBtn${allVerified?' style="border-color
|
|
5997
|
+
<div class="row hint">Total length <b>${totalL} ft</b>${totalW!=null?` · <b>${totalW.toLocaleString()} lb</b>`:''}${dupSel?` · <span style="color:var(--err)">${dupSel} duplicate${dupSel>1?'s':''}</span> (overlap a kept member — deleting these dedupes)`:''}</div>
|
|
5998
|
+
<div class=row><button class=ghostw id=verifyBtn${allVerified?' style="border-color:var(--ok-edge);color:var(--ok)"':''}>${allVerified?'✓ All verified — click to unverify':'Mark all verified'}</button></div>
|
|
5698
5999
|
${elev}
|
|
5699
6000
|
${!allCol?`<div class=divrow><hr><span class=sect style="margin:0" data-tip="${POSTIP.head(hOk.length>0)}">Profile Position <span style="opacity:.45;font-weight:400">ⓘ</span></span><hr></div>
|
|
5700
6001
|
<div class=elab style="margin-top:0">Vertical</div>
|
|
@@ -5784,7 +6085,7 @@ function panel(){
|
|
|
5784
6085
|
// fallback. Readonly combo → pick only, no free typing; the connrows source shows every row.
|
|
5785
6086
|
const cFld=(id,o)=>{const row=o.conn?connRowById(o.conn):null;
|
|
5786
6087
|
const cap=row?`<span class=edec style="text-align:left">${esc(row.type||'?')}${row.detail?' · '+esc(row.detail):''} — ${esc(row.source||'user')}</span>`
|
|
5787
|
-
:(o.conn?'<span class=edec style="text-align:left;color
|
|
6088
|
+
:(o.conn?'<span class=edec style="text-align:left;color:var(--err)">references a missing row — re-pick</span>':'');
|
|
5788
6089
|
return `<div class=elab>Connection</div><input id=${id} class=combo data-src=connrows readonly placeholder="— none — (pick from the library)" value="${esc(row?connLabel(row):'')}" autocomplete=off>${cap}`;};
|
|
5789
6090
|
const fb=(o,html)=>`<div class="${o.conn?'connset':''}">${html}</div>`; // dim the note/detail fallback when a library row is referenced
|
|
5790
6091
|
// What this end's detail will BUILD. Silent until there is a callout or a library reference to talk
|
|
@@ -5848,7 +6149,7 @@ function panel(){
|
|
|
5848
6149
|
${pFld('plateWidth','Plate width "N"','auto','mm')}${pFld('plateDepth','Plate depth "B"','auto','mm')}${pFld('thickness','Thickness','1"','mm')}${pFld('weldLeg','Weld leg','5/16"','mm')}
|
|
5849
6150
|
<div class=elab style="margin-top:7px;opacity:.7">Anchor kit</div>
|
|
5850
6151
|
${pFld('boltCols','Bolt columns','2','')}${pFld('boltRows','Bolt rows','2','')}${pFld('boltDia','Bolt ⌀','1"','mm')}${pFld('embedment','Embedment','auto','mm')}${pFld('grout','Grout','auto','mm')}
|
|
5851
|
-
<div class="row f"><button class="ghostw" id=bpTrim data-tip="Pick a point on ${esc(m.id)} — trim or extend the column so its base seats there (snaps to framing levels)">⭶ Trim / Extend column to base…</button><button class="ghostw" id=bpRemove data-tip="Delete this column's base plate" style="color
|
|
6152
|
+
<div class="row f"><button class="ghostw" id=bpTrim data-tip="Pick a point on ${esc(m.id)} — trim or extend the column so its base seats there (snaps to framing levels)">⭶ Trim / Extend column to base…</button><button class="ghostw" id=bpRemove data-tip="Delete this column's base plate" style="color:var(--err);border-color:var(--err-edge)">Remove base plate</button></div>`:'';
|
|
5852
6153
|
// This BEAM's shear-plate joints — one params block per detailed END (start/end). Mirrors bpSect but
|
|
5853
6154
|
// per-end (a beam can be detailed at both ends), and adds the clearance + web-side + stiffener controls.
|
|
5854
6155
|
// Both parametric END kinds. A gusset reaching this panel and finding no section for it was a dead end:
|
|
@@ -5874,7 +6175,7 @@ function panel(){
|
|
|
5874
6175
|
<div class=seg2 style="margin-top:0"><button id="spg_e${e}_325" class="${(j.params&&j.params.boltGrade==='A490')?'':'on'}">A325</button><button id="spg_e${e}_490" class="${(j.params&&j.params.boltGrade==='A490')?'on':''}">A490</button></div>
|
|
5875
6176
|
<div class=hint style="margin:4px 0 0">Bolt length auto-sizes from the grip (AISC) → shown on the bolt callout.</div>
|
|
5876
6177
|
${gus?`<div class=hint style="margin:4px 0 0">The brace is set back to the support face automatically — a gusset has no erection gap to enter.</div>`:`<div class=elabrow><span class=elab>Opposite stiffener</span><label class=defck><input type=checkbox id="spck_e${e}"${st?' checked':''}>add</label></div>`}
|
|
5877
|
-
<div class="row f"><button class="ghostw" id="sprm_e${e}" data-tip="Delete this end's ${gus?'gusset':'shear plate'}" style="color
|
|
6178
|
+
<div class="row f"><button class="ghostw" id="sprm_e${e}" data-tip="Delete this end's ${gus?'gusset':'shear plate'}" style="color:var(--err);border-color:var(--err-edge)">Remove ${gus?'gusset':'shear plate'}</button></div>`;};
|
|
5878
6179
|
// The intro reads per-KIND: a gusset has no erection clearance to explain and does not lap a web, so the
|
|
5879
6180
|
// fin-plate wording above a gusset block was describing controls that are not there.
|
|
5880
6181
|
const spAllGus=spjs.length>0&&spjs.every(x=>x.j.kind==='brace-gusset');
|
|
@@ -5939,7 +6240,7 @@ function panel(){
|
|
|
5939
6240
|
const _dpIn=(id,lbl,vin)=>{const v=Math.abs(vin)<1e-6?0:vin;return `<label class=detf><span>${lbl}</span><input id=${id} inputmode=decimal placeholder="${_dpPH}" value="${esc(fmtFtIn(v))}" autocomplete=off></label>`;}; // snap float-noise to 0 (no "-0"" from a local round-trip)
|
|
5940
6241
|
const _dpBlock=(i,head)=>{const g=_dpGlobal(i),loc=_dpLocal?_dpToLocal(g):null;
|
|
5941
6242
|
const grow=`<div class=detrow>${_dpAxes.map((ax,a)=>_dpIn('dpG_'+i+'_'+a,ax,g[a])).join('')}</div>`;
|
|
5942
|
-
const lrow=loc?`<div class=elab style="color
|
|
6243
|
+
const lrow=loc?`<div class=elab style="color:var(--cyan);margin:4px 0 0">Local frame</div><div class="detrow dp-local">${_dpAxes.map((ax,a)=>_dpIn('dpL_'+i+'_'+a,ax+'′',loc[a])).join('')}</div>`:'';
|
|
5943
6244
|
return head+(loc?'<div class=elab style="margin:2px 0 0">Global</div>':'')+grow+lrow;};
|
|
5944
6245
|
const defPts=`<div class=divrow><hr><span class=sect style="margin:0" data-tip="The member's two work points in global coordinates${_dpLocal?' and the current local frame':''}. Type a value to move that point.">Definition points</span><hr></div>`
|
|
5945
6246
|
+(col
|
|
@@ -5960,12 +6261,12 @@ function panel(){
|
|
|
5960
6261
|
p.innerHTML=`<h3>Member ${esc(m.id)}</h3>
|
|
5961
6262
|
${typeFilterHTML()}
|
|
5962
6263
|
${memberTypeField('mTypeS',[m])}
|
|
5963
|
-
<div class="f"><div class=elab>Profile</div><div style="display:flex;gap:6px"><input id=pf class=combo data-src=profiles value="${esc(m.profile)}" style="flex:1" autocomplete=off><button id=pickProf class="ghost${(picking&&pickKind==='profile')?' on':''}" data-tip="Pick profile by clicking a label in the drawing">⌖ pick</button></div>${(picking&&pickKind==='profile')?'<div class="hint" style="margin-top:4px;font-style:italic;color:var(--brand)">Click a profile label in the drawing…</div>':(picking&&pickKind==='detail')?'<div class="hint" style="margin-top:4px;font-style:italic;color
|
|
6264
|
+
<div class="f"><div class=elab>Profile</div><div style="display:flex;gap:6px"><input id=pf class=combo data-src=profiles value="${esc(m.profile)}" style="flex:1" autocomplete=off><button id=pickProf class="ghost${(picking&&pickKind==='profile')?' on':''}" data-tip="Pick profile by clicking a label in the drawing">⌖ pick</button></div>${(picking&&pickKind==='profile')?'<div class="hint" style="margin-top:4px;font-style:italic;color:var(--brand)">Click a profile label in the drawing…</div>':(picking&&pickKind==='detail')?'<div class="hint" style="margin-top:4px;font-style:italic;color:var(--purple)">Click a detail callout in the drawing…</div>':''}</div>
|
|
5964
6265
|
${appearanceSect}
|
|
5965
6266
|
${braceSect}
|
|
5966
|
-
<div class="row hint">Length <b>${L} ft</b> · ${wpf==null?'<span id=rfiPill class="pill pill-clickable" role=button tabindex=0 data-tip="Open the RFI list, focused on this member" style="background
|
|
5967
|
-
<div class=row><button class=ghostw id=verifyBtn${m.verified?' style="border-color
|
|
5968
|
-
${mfSug.length?`<div class="row" style="border:1px solid
|
|
6267
|
+
<div class="row hint">Length <b>${L} ft</b> · ${wpf==null?'<span id=rfiPill class="pill pill-clickable" role=button tabindex=0 data-tip="Open the RFI list, focused on this member" style="background:var(--err-bg)">RFI — size unresolved</span>':'Weight <b>'+(_lenFt(m)*wpf).toFixed(0)+' lb</b> · '+wpf+' lb/ft'}</div>
|
|
6268
|
+
<div class=row><button class=ghostw id=verifyBtn${m.verified?' style="border-color:var(--ok-edge);color:var(--ok)"':''} data-tip="Mark this member human-confirmed → 100% in the confidence report">${m.verified?'✓ Verified — human-confirmed':'Mark verified'}</button></div>
|
|
6269
|
+
${mfSug.length?`<div class="row" style="border:1px solid var(--purple);border-radius:6px;padding:7px 8px;background:rgba(168,85,247,.07)"><div class=elab style="color:var(--purple-ink);margin:0">Moment-frame girder · ${_lvl==='roof'?'roof':'2nd floor'} (from Frames)</div><div style="display:flex;flex-wrap:wrap;gap:5px;margin-top:5px">${mfSug.map(s=>`<button class="ghost mfsug${s===m.profile?' on':''}" data-s="${esc(s)}">${esc(s)}</button>`).join('')}</div></div>`:''}
|
|
5969
6270
|
${elev}
|
|
5970
6271
|
${defPts}
|
|
5971
6272
|
${bpSect}${spSect}${copeSect}
|
|
@@ -6106,7 +6407,7 @@ function panel(){
|
|
|
6106
6407
|
{const dpWire=(id,i,a,isLocal)=>{const inp=document.getElementById(id);if(!inp)return;const orig=inp.value;
|
|
6107
6408
|
inp.onkeydown=e=>{e.stopPropagation();if(e.key==='Enter'){e.preventDefault();inp.blur();}else if(e.key==='Escape'){e.preventDefault();inp.value=orig;inp.blur();}};
|
|
6108
6409
|
inp.onchange=()=>{const vin=parseLen(inp.value);
|
|
6109
|
-
if(vin==null||!Number.isFinite(vin)){inp.style.borderColor='
|
|
6410
|
+
if(vin==null||!Number.isFinite(vin)){inp.style.borderColor='var(--err)';return;} // bad parse → flag, don't commit
|
|
6110
6411
|
inp.style.borderColor='';
|
|
6111
6412
|
const g=_dpGlobal(i);let Pt;
|
|
6112
6413
|
if(isLocal){const loc=_dpToLocal(g)||[0,0,0];loc[a]=vin;Pt=_dpFromLocal(loc);}
|
|
@@ -7348,7 +7649,7 @@ function updCS(){const s=document.getElementById('csStat');const r=document.getE
|
|
|
7348
7649
|
// `sticky` holds the toast up with no timer — for an operation whose result the user must see land
|
|
7349
7650
|
// (the Tekla send takes seconds); the next plain toast() replaces the text and re-arms the timer.
|
|
7350
7651
|
function toast(msg,sticky){let t=document.getElementById('toast');
|
|
7351
|
-
if(!t){t=document.createElement('div');t.id='toast';t.style.cssText='position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 14px;box-shadow:
|
|
7652
|
+
if(!t){t=document.createElement('div');t.id='toast';t.style.cssText='position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 14px;box-shadow:var(--shadow-md);z-index:60;font:13px system-ui;opacity:0;transition:opacity .2s;pointer-events:none';document.body.appendChild(t);}
|
|
7352
7653
|
t.setAttribute('role','status');t.setAttribute('aria-live','polite');t.setAttribute('aria-atomic','true');
|
|
7353
7654
|
t.textContent=msg;t.style.opacity='1';clearTimeout(t._h);if(!sticky)t._h=setTimeout(()=>{t.style.opacity='0';},2600);}
|
|
7354
7655
|
// --- pointer: select(+ctrl toggle / box) + group-move + endpoint (Shift = ortho) ---
|
|
@@ -7674,6 +7975,28 @@ document.getElementById('dimToggleB').onclick=e=>{e.stopPropagation();if(MODEL_R
|
|
|
7674
7975
|
// selected-member payload to 3D on both formats.
|
|
7675
7976
|
function updLenToggle(){const b=document.getElementById('lenToggleB');if(!b)return;const on=showSelLen;b.disabled=false;b.classList.toggle('on',on);b.setAttribute('aria-checked',String(on));}
|
|
7676
7977
|
document.getElementById('lenToggleB').onclick=e=>{e.stopPropagation();showSelLen=!showSelLen;try{localStorage.setItem('steel:selLen:v1',showSelLen?'1':'0');}catch(_){}updLenToggle();render();}; // render() repaints the 2D chips + pushes/clears labels in 3D
|
|
7978
|
+
// ⋯ Display → Grid label size. One setting, both views: 2D re-places its bubbles from the anchors baked
|
|
7979
|
+
// by gridSvg (no re-render — a rebuild between a dblclick's two clicks would kill the rename gesture),
|
|
7980
|
+
// and 3D is told live, where sizeGridLabels() re-derives the world size on the next frame.
|
|
7981
|
+
// Guarded like every other row in this menu (updLenToggle, updCalloutToggle) and for a sharper reason:
|
|
7982
|
+
// this block runs INSIDE main(), which boot() calls unguarded and which wires the SSE subscription
|
|
7983
|
+
// AFTER it — so an unguarded throw on a missing element would abort the remaining ~6000 lines of main()
|
|
7984
|
+
// plus live updates, and leave a half-initialised editor whose root cause is a range input.
|
|
7985
|
+
{const r=document.getElementById('gridLabelSize'),v=document.getElementById('gridLabelSizeV');
|
|
7986
|
+
if(!r||!v)console.warn('steel-editor: the Grid label size control is missing from ⋯ ▸ Display — grid labels stay at '+gridLabelPx+'px this session');
|
|
7987
|
+
else{
|
|
7988
|
+
const showVal=()=>{v.textContent=gridLabelPx+' px';};
|
|
7989
|
+
r.min=GRID_LABEL_PX_MIN;r.max=GRID_LABEL_PX_MAX;r.value=gridLabelPx;showVal();
|
|
7990
|
+
r.addEventListener('input',()=>{gridLabelPx=clampGridLabelPx(r.value);showVal();
|
|
7991
|
+
// A failed write is the ONE path where the two views can disagree: the live push below is skipped
|
|
7992
|
+
// while the renderer module is still loading, so the shared key is the only thing left to carry the
|
|
7993
|
+
// size across — and it just didn't. setView(true) re-pushes on the next switch to 3D, so the
|
|
7994
|
+
// divergence self-heals; this says why persistence stopped working. (Idiom as at :2590.)
|
|
7995
|
+
try{localStorage.setItem('steel:gridLabelPx:v1',String(gridLabelPx));}
|
|
7996
|
+
catch(_){if(!gridLabelPxSaveWarned){gridLabelPxSaveWarned=true;console.warn('steel-editor: the grid label size could not be saved to this browser — it will not survive a reload');}}
|
|
7997
|
+
sizeGridBubbles();
|
|
7998
|
+
if(window.Steel3DView&&window.Steel3DView.setGridLabelPx)window.Steel3DView.setGridLabelPx(gridLabelPx);});}}
|
|
7999
|
+
let gridLabelPxSaveWarned=false;
|
|
7677
8000
|
function updCalloutToggle(){const b=document.getElementById('calloutToggleB');if(!b)return;const on=!MODEL_RO&&calloutsVisible;b.disabled=MODEL_RO;b.classList.toggle('on',on);b.setAttribute('aria-checked',String(on));} // plan-only, like Dimensions
|
|
7678
8001
|
document.getElementById('calloutToggleB').onclick=e=>{e.stopPropagation();if(MODEL_RO)return;calloutsVisible=!calloutsVisible;updCalloutToggle();render();};
|
|
7679
8002
|
// NOTE FOR THE NEXT EDITOR: do NOT add `b.disabled=MODEL_RO` here to match the five rows around it.
|
|
@@ -7871,7 +8194,11 @@ addEventListener('keydown',e=>{
|
|
|
7871
8194
|
if(pre)apply(pre);else render(); // apply() restores the snapshot + re-renders (2D+3D); draw/marquee have no snapshot, just refresh
|
|
7872
8195
|
return;}
|
|
7873
8196
|
if(e.key==='Escape'&&!view3d&&snapOnly){snapOnlyClear2d();return;} // own Esc rung: 1st Esc drops the snap override, the next cancels the tool/draft (mirrors the set-axes two-step)
|
|
7874
|
-
|
|
8197
|
+
// `!inForm`, like the shortcuts below it: Home/End is the documented affordance of a range input
|
|
8198
|
+
// (jump to min/max), and ⋯ ▸ Display now has one. Without the gate, tabbing to Grid label size and
|
|
8199
|
+
// pressing Home preventDefault()s the jump-to-min AND zooms the plan to fit behind the open menu —
|
|
8200
|
+
// while End still works, so the pair behaved asymmetrically, which is worse than either alone.
|
|
8201
|
+
if(e.key==='Home'&&!inForm){e.preventDefault();if(view3d&&window.Steel3DView)window.Steel3DView.frameAll();else fitToWindow();return;}
|
|
7875
8202
|
if(view3d&&window.Steel3DView&&!inForm&&e.shiftKey&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&!cmTool&&mode!=='add'&&!(window.Steel3DView.dimToolOn&&window.Steel3DView.dimToolOn())){const ck=e.key.toLowerCase(); // Shift+X arms a clip plane, Shift+B a clip box (3D-only sectioning; mirrors the Clip ▾ menu). Both are skipped while Move/Copy, Add, or 3D-Dim is armed: Shift+X then falls through to that tool's X-axis lock (instead of nuking the pick), and Shift+B is held off for the same reason so it can't discard an in-progress operation either.
|
|
7876
8203
|
if(ck==='x'){e.preventDefault();window.Steel3DView.setClipMode('plane');setLastCmd('Clip plane',()=>window.Steel3DView.setClipMode('plane'));return;}
|
|
7877
8204
|
if(ck==='b'){e.preventDefault();window.Steel3DView.setClipMode('box');setLastCmd('Clip box',()=>window.Steel3DView.setClipMode('box'));return;}}
|
|
@@ -9371,7 +9698,7 @@ document.getElementById('viewGenModal').addEventListener('keydown',e=>{e.stopPro
|
|
|
9371
9698
|
const focusable=[...document.querySelectorAll('#viewGenModal button:not(:disabled),#viewGenModal input:not(:disabled)')].filter(el=>el.offsetParent!==null);if(!focusable.length)return;const first=focusable[0],last=focusable[focusable.length-1];if(e.shiftKey&&document.activeElement===first){e.preventDefault();last.focus();}else if(!e.shiftKey&&document.activeElement===last){e.preventDefault();first.focus();}});
|
|
9372
9699
|
// A themed undo toast (extends toast(): an inline "Undo" action + a ~5s window). Baseline tokens only.
|
|
9373
9700
|
function undoToast(msg,onUndo){let t=document.getElementById('undoToast');
|
|
9374
|
-
if(!t){t=document.createElement('div');t.id='undoToast';t.style.cssText='position:fixed;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 14px;box-shadow:
|
|
9701
|
+
if(!t){t=document.createElement('div');t.id='undoToast';t.style.cssText='position:fixed;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 14px;box-shadow:var(--shadow-md);z-index:60;font:13px system-ui;opacity:0;transition:opacity .2s';document.body.appendChild(t);}
|
|
9375
9702
|
t.replaceChildren();t.appendChild(document.createTextNode(msg));
|
|
9376
9703
|
const btn=document.createElement('button');btn.type='button';btn.textContent='Undo';btn.style.cssText='background:transparent;border:0;color:var(--brand);cursor:pointer;font:600 13px system-ui;padding:0;box-shadow:none';
|
|
9377
9704
|
btn.addEventListener('click',()=>{clearTimeout(t._h);t.style.opacity='0';try{onUndo();}catch(e){console.error(e);}});
|
|
@@ -9423,7 +9750,7 @@ function favSuggestName(j){if(!j)return '';
|
|
|
9423
9750
|
function favFillModal({title,kind,name,category,portable,hint}){
|
|
9424
9751
|
document.getElementById('favModalTitle').textContent=title;
|
|
9425
9752
|
const kf=document.getElementById('favKind');kf.className='chip';kf.textContent=FAV_KIND_LABEL[kind]||kind;
|
|
9426
|
-
kf.style.borderColor=portable?'var(--brand)':'var(--line)';kf.style.color=portable?'
|
|
9753
|
+
kf.style.borderColor=portable?'var(--brand)':'var(--line)';kf.style.color=portable?'var(--info-ink)':'var(--mut)'; // --info-ink, not the raw #bfdbfe: this chip sits on --field, which is #fff on light (1.42:1)
|
|
9427
9754
|
document.getElementById('favName').value=name||'';
|
|
9428
9755
|
document.getElementById('favCat').value=category||'';
|
|
9429
9756
|
favCatKind=kind; // what COMBO_SRC.favcats offers — set before the field can be focused
|
|
@@ -12475,6 +12802,7 @@ async function setView(on){
|
|
|
12475
12802
|
if(seq!==viewSeq)return;
|
|
12476
12803
|
window.Steel3DView.setSelection(selIds);
|
|
12477
12804
|
if(window.Steel3DView.setGridSelection)window.Steel3DView.setGridSelection(selGridIds); // carry the shared 2D grid selection across the rebuild; rebuild replaces the line objects/materials
|
|
12805
|
+
if(window.Steel3DView.setGridLabelPx)window.Steel3DView.setGridLabelPx(gridLabelPx); // the renderer reads the shared key at LOAD and the slider pushes live, but a size set BEFORE the module arrived reaches it through neither — so relay it here too, like every other preference in this block. Makes a 2D/3D divergence self-healing on the next switch rather than permanent.
|
|
12478
12806
|
wire3DBar();wireLegendTabs();loadSteelFavourites();build3DLegend();
|
|
12479
12807
|
// Reference models (#278). The tab exists only on the model-level contract — hidden, not disabled,
|
|
12480
12808
|
// because a tab that can never hold anything is the same dead chrome the header stats are hidden for.
|
|
@@ -12744,7 +13072,7 @@ function runApplyAllDetails(force){
|
|
|
12744
13072
|
body.append(el('div','font-size:12px;line-height:1.5;color:var(--mut);margin-bottom:'+(order.length?'10px':'0'),head.join(' ')));
|
|
12745
13073
|
if(order.length){
|
|
12746
13074
|
const lab=el('div',null,'Left alone — '+res.skipped.length);lab.className='elab';body.append(lab);
|
|
12747
|
-
const list=el('div','max-height:220px;overflow:auto;scrollbar-width:thin;scrollbar-color
|
|
13075
|
+
const list=el('div','max-height:220px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--scroll) transparent;border:1px solid var(--line);border-radius:6px;padding:6px 8px');
|
|
12748
13076
|
list.className='dnotes';
|
|
12749
13077
|
for(const k of order){
|
|
12750
13078
|
const g=groups[k];
|
|
@@ -12770,7 +13098,7 @@ function renderConnTable(){const tb=document.getElementById('connBody');if(!tb)r
|
|
|
12770
13098
|
const rows=C.connections||[];
|
|
12771
13099
|
if(!rows.length){tb.innerHTML='<tr><td colspan=5 style="text-align:center;padding:32px;color:var(--mut);font-size:12px">No connections defined — click + New row to add the first.</td></tr>';updConnBtn();return;}
|
|
12772
13100
|
const dupKeys=new Set(dupDetailKeys()); // detail numbers that two or more rows share, once for the whole table
|
|
12773
|
-
const srcChip=s=>s==='drawing'?'<span class="chip assumed">drawing</span>':s==='company-rules'?'<span class=chip>company-rules</span>':'<span class=chip
|
|
13101
|
+
const srcChip=s=>s==='drawing'?'<span class="chip assumed">drawing</span>':s==='company-rules'?'<span class=chip>company-rules</span>':'<span class="chip user">user</span>';
|
|
12774
13102
|
tb.innerHTML=rows.map(r=>`<tr data-id="${esc(r.id)}">`
|
|
12775
13103
|
+`<td><input class="combo ftab-inp" data-src=conntypes data-f=type value="${esc(r.type||'')}" placeholder="moment" autocomplete=off></td>`
|
|
12776
13104
|
+`<td><input class="combo ftab-inp" data-src=details data-f=detail value="${esc(r.detail||'')}" placeholder="e.g. 50S504" autocomplete=off>`
|
|
@@ -12945,8 +13273,8 @@ document.getElementById('rfiBackdrop').onclick=closeRFI;
|
|
|
12945
13273
|
// Deterministic: scores ONLY observable evidence already in the contract, never a model self-report.
|
|
12946
13274
|
const BANDW={verified:1,high:.9,med:.65,low:.35,rfi:0};
|
|
12947
13275
|
const BANDLAB={verified:'Verified',high:'High',med:'Medium',low:'Low',rfi:'RFI'};
|
|
12948
|
-
const BANDC={verified:'
|
|
12949
|
-
const BANDPILL={verified:'background
|
|
13276
|
+
const BANDC={verified:'var(--ok)',high:'var(--hi)',med:'var(--warn)',low:'var(--err)',rfi:'var(--err)'};
|
|
13277
|
+
const BANDPILL={verified:'background:var(--ok-bg);color:var(--ok)',high:'background:var(--hi-bg);color:var(--hi)',med:'background:var(--warn-bg);color:var(--warn)',low:'background:var(--err-bg);color:var(--err)',rfi:'background:var(--err-bg);color:var(--err)'};
|
|
12950
13278
|
// The AISC catalogue weight — the only way most of the catalogue can be weighed at all. Nothing in
|
|
12951
13279
|
// "HSS4X4X3/8" encodes 17.27 lb/ft, so before the table carried weights every hollow section, angle
|
|
12952
13280
|
// and double angle read as "not in the AISC table", was flagged RFI, and contributed 0 lb to the
|
|
@@ -14706,7 +15034,7 @@ function askAiAddFile(file) {
|
|
|
14706
15034
|
askAiSetStatus('Encoding image…');
|
|
14707
15035
|
readImageCompressed(file, b64 => {
|
|
14708
15036
|
try {
|
|
14709
|
-
if (!b64) { askAiSetStatus('Could not read that image — try another.', '
|
|
15037
|
+
if (!b64) { askAiSetStatus('Could not read that image — try another.', 'var(--err)'); return; }
|
|
14710
15038
|
askAiSnapshots.push({ name, dataUrl: 'data:image/jpeg;base64,' + b64 });
|
|
14711
15039
|
askAiRenderThumbs();
|
|
14712
15040
|
askAiSetStatus('');
|
|
@@ -14756,14 +15084,14 @@ document.addEventListener('paste', e => {
|
|
|
14756
15084
|
// Send handler
|
|
14757
15085
|
document.getElementById('askAiSend').onclick = async () => {
|
|
14758
15086
|
const instruction = document.getElementById('askAiText').value.trim();
|
|
14759
|
-
if (!instruction) { askAiSetStatus('Please enter an instruction.', '
|
|
15087
|
+
if (!instruction) { askAiSetStatus('Please enter an instruction.', 'var(--err)'); return; }
|
|
14760
15088
|
const sendBtn = document.getElementById('askAiSend');
|
|
14761
15089
|
sendBtn.disabled = true;
|
|
14762
15090
|
askAiSetStatus('Saving contract…', 'var(--mut)');
|
|
14763
15091
|
try {
|
|
14764
15092
|
await window.flushContract();
|
|
14765
15093
|
} catch (err) {
|
|
14766
|
-
askAiSetStatus('Could not save the contract — check the server and try again.', '
|
|
15094
|
+
askAiSetStatus('Could not save the contract — check the server and try again.', 'var(--err)');
|
|
14767
15095
|
sendBtn.disabled = false;
|
|
14768
15096
|
return;
|
|
14769
15097
|
}
|
|
@@ -14781,23 +15109,23 @@ document.getElementById('askAiSend').onclick = async () => {
|
|
|
14781
15109
|
});
|
|
14782
15110
|
if (res.ok) {
|
|
14783
15111
|
askAiClearForm();
|
|
14784
|
-
askAiSetStatus('Queued — the request is waiting for your terminal AI session to pick it up.', '
|
|
15112
|
+
askAiSetStatus('Queued — the request is waiting for your terminal AI session to pick it up.', 'var(--ok)');
|
|
14785
15113
|
// leave the panel open so the user can read the confirmation, then close manually
|
|
14786
15114
|
} else {
|
|
14787
15115
|
let errText = 'Request failed (' + res.status + ')';
|
|
14788
15116
|
try { const body = await res.json(); if (body && body.error) errText = body.error; } catch (_) {}
|
|
14789
|
-
askAiSetStatus(errText, '
|
|
15117
|
+
askAiSetStatus(errText, 'var(--err)');
|
|
14790
15118
|
sendBtn.disabled = false;
|
|
14791
15119
|
}
|
|
14792
15120
|
} catch (err) {
|
|
14793
|
-
askAiSetStatus('Network error — check the server and try again.', '
|
|
15121
|
+
askAiSetStatus('Network error — check the server and try again.', 'var(--err)');
|
|
14794
15122
|
sendBtn.disabled = false;
|
|
14795
15123
|
}
|
|
14796
15124
|
};
|
|
14797
15125
|
// Esc closes the Ask-AI panel (inserted before other modal Esc checks in the existing keydown handler)
|
|
14798
15126
|
document.getElementById('reloadB').onclick = () => location.reload();
|
|
14799
15127
|
} // end main()
|
|
14800
|
-
boot().catch(err => { document.body.replaceChildren(Object.assign(document.createElement('p'), { textContent: 'Failed to load: ' + err.message, style: 'padding:24px;color
|
|
15128
|
+
boot().catch(err => { document.body.replaceChildren(Object.assign(document.createElement('p'), { textContent: 'Failed to load: ' + err.message, style: 'padding:24px;color:var(--err)' })); });
|
|
14801
15129
|
|
|
14802
15130
|
// Themed tooltips (replaces native title=) for the 3D toolbar — one shared element, shown on
|
|
14803
15131
|
// data-tip hover after a short delay, positioned below the control and clamped to the viewport.
|