@floless/app 0.120.1 → 0.120.2

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.
@@ -54529,7 +54529,7 @@ function appVersion() {
54529
54529
  return resolveVersion({
54530
54530
  isSea: isSea2(),
54531
54531
  sqVersionXml: readSqVersionXml(),
54532
- define: true ? "0.120.1" : void 0,
54532
+ define: true ? "0.120.2" : void 0,
54533
54533
  pkgVersion: readPkgVersion()
54534
54534
  });
54535
54535
  }
@@ -54545,7 +54545,7 @@ function resolveChannel(s) {
54545
54545
  function appChannel() {
54546
54546
  return resolveChannel({
54547
54547
  isSea: isSea2(),
54548
- define: true ? "0.120.1" : void 0,
54548
+ define: true ? "0.120.2" : void 0,
54549
54549
  // argv[1] is the entry the runtime actually loaded (…/dist/floless-server.cjs), which is what
54550
54550
  // carries the npx cache prefix. Absent under the SEA exe, which never reaches the npx branch.
54551
54551
  modulePath: process.argv[1]
@@ -95,8 +95,28 @@
95
95
  each true work point so the end handles never look detached. Same language as the dimension witness. */
96
96
  line.bracewit{stroke:#94a3b8;stroke-width:1;opacity:.55;stroke-dasharray:3 3;vector-effect:non-scaling-stroke;pointer-events:none}
97
97
  /* Columns render as their profile-section footprint (a filled polygon), not a line: a solid fill so
98
- they read as a section on the plan; fill-opacity keeps any grid/linework beneath faintly visible. */
99
- polygon.member{cursor:pointer;stroke-width:1.5;fill-opacity:.7;stroke-linejoin:round}
98
+ they read as a section on the plan; fill-opacity keeps any grid/linework beneath faintly visible.
99
+ non-scaling-stroke because zoom here scales the <svg> width/height against a fixed viewBox, so a
100
+ content-unit stroke — and, crucially, a content-unit DASH — scales with the shape. That pinned the
101
+ RFI dash-cycle-to-outline ratio at EVERY zoom: a true-size footprint (#502/#518) is only ~6.6 units
102
+ across, so the "6 4" cycle fits ~2.6 times around a 26.4-unit square outline and each 6.6-unit run
103
+ is a whole dash with a nick at the corner. (An I-section outline is worse in places — its 1.65-unit
104
+ flange runs are shorter than one dash.) The legend promises "short even dashes = RFI"; it could not
105
+ be delivered, and unlike the rest of #519 no amount of zooming helped, because the ratio was
106
+ invariant. In screen space the ratio tracks zoom, so leaning in resolves the dash: measured in a
107
+ real browser, a 26.4px side at the 400% ceiling shows ~2.6 cycles and reads as evenly dashed.
108
+ Applied to the base rule, not to .rfi, because vector-effect governs stroke WIDTH too — de-scoped to
109
+ .rfi it would draw an RFI outline at 1.5px against a resolved neighbour's 6px at 400%, making the
110
+ member that needs attention the thinnest outline on the canvas on top of its already-faintest fill.
111
+ It also brings the footprint in line with this canvas's OVERLAY strokes — gridln, dim + witness,
112
+ marquee, cobub, pdfvec, plchip, snapmk are all already non-scaling (the MEMBER strokes, line.member
113
+ and line.bracebody, deliberately still scale; see BRACE_STROKE) — and with CAD practice, where
114
+ lineweight is a screen/plot property rather than a model-space one. Two knock-ons, both measured
115
+ rather than argued: the .sel weight bump is now a constant 0.5px rather than 2 content units (the
116
+ selection glow carries that affordance), and at 30% zoom the full-opacity outline is a larger share
117
+ of a sub-2px footprint, so an RFI column paints ~3x the ink it used to — MORE visible than before,
118
+ and still well short of a resolved one (mean ink 63 vs 106 on the same sample). #519 item 1. */
119
+ polygon.member{cursor:pointer;stroke-width:1.5;fill-opacity:.7;stroke-linejoin:round;vector-effect:non-scaling-stroke}
100
120
  body.dragmove polygon.member{cursor:move}
101
121
  polygon.member.sel{stroke-width:2} polygon.member.rfi{fill-opacity:.15;stroke-dasharray:6 4}
102
122
  circle.handle{fill:var(--bg);stroke:#f8fafc;stroke-width:3;cursor:grab}
@@ -972,9 +992,10 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
972
992
  <div class=plan-list id=planList role=none></div>
973
993
  </div>
974
994
  </div>
975
- <!-- These four are per-SHEET counts (see stats()). A model in the canonical format has no per-sheet
976
- members, so for it they are HIDDEN rather than dimmed — a readout that is wrong is worse than one
977
- that is absent, and "Members 0" beside a populated 3D scene is wrong (unit 5, P7d §8.5). -->
995
+ <!-- These four are per-SHEET counts (see stats()). When no plan view is active there is no per-sheet
996
+ member list to count, so for that state they are HIDDEN rather than dimmed — a readout that is wrong
997
+ is worse than one that is absent, and "Members 0" beside a populated 3D scene is wrong (unit 5, P7d
998
+ §8.5). A canonical-format model WITH a plan view keeps them: its projection is a real member list. -->
978
999
  <span class=stat id=mcStat>Members <b id=mc>0</b></span><span class=stat id=wtStat>Weight <b id=wt>0</b> tons · <b id=wtlb>0</b> lb</span>
979
1000
  <span class=stat id=rfiStat data-tip="Click to list members with an unresolved size (RFI — Request for Information)">RFI <b id=rc>0</b></span>
980
1001
  <span class=stat id=dupStat data-tip="Overlapping/duplicate members (same geometry)">Dup <b id=dpc>0</b></span>
@@ -2395,13 +2416,16 @@ const isDimAnchorableMember=m=>!!m&&!isBrace(m)&&Array.isArray(m.wp)&&m.wp.lengt
2395
2416
  // Heads are sized in CONTENT units, i.e. RELATIVE TO THE VISIBLE BRACE STROKE (line.bracebody stroke-width:6,
2396
2417
  // itself a content unit that scales with zoom) — not in screen px. A screen-constant head is swallowed by its
2397
2418
  // own line once you zoom in (at 170% the stroke is already ~10px) and floats free of it when you zoom out.
2398
- // Everything else on this canvas (stroke, RFI dash, dim witness) scales with zoom; the head matches.
2419
+ // The MEMBER strokes on this canvas (line.member, line.bracebody, line.seg, line.draw) scale with zoom; the
2420
+ // head matches those. Overlay/annotation strokes do not — gridln, dim + its witness, marquee, snapmk, cobub,
2421
+ // pdfvec, plchip are non-scaling, and since #519 so is polygon.member (see its rule for why).
2399
2422
  const BRACE_STROKE=6; // must track line.bracebody's stroke-width in the CSS above
2400
2423
  const BRACE_ARR=BRACE_STROKE*3; // head length — 3× the stroke reads as an arrow at every zoom
2401
2424
  // A below-floor brace is DASHED — but `dashed` already means RFI on this canvas (line.member.rfi is
2402
2425
  // "10 6", a uniform short dash, and the legend says "Dashed = RFI"). So the brace uses a PHANTOM line
2403
- // (long–short–long–short) that can't be mistaken for RFI's even ticks at a glance. Content units, so it
2404
- // scales with zoom like every other dash here. Colour stays the member's profile colour — braces remain
2426
+ // (long–short–long–short) that can't be mistaken for RFI's even ticks at a glance. Content units, like the
2427
+ // other member-stroke dashes (a brace is long geometry, so the cycle never collapses the way a 6.6-unit
2428
+ // column footprint's did — #519). Colour stays the member's profile colour — braces remain
2405
2429
  // recolourable from the legend, so the dash (not a reserved hue) is what identifies them.
2406
2430
  // long 30 / short 6 — an authored 5:1. stroke-linecap:round visually ADDS ~one stroke (6) to every dash, so
2407
2431
  // on screen it reads ~36:12, i.e. the 3:1 we actually want. Authoring 3:1 would collapse toward uniform.
@@ -4469,7 +4493,7 @@ function render(){
4469
4493
  // force-closes, so they are unreachable; updConf yields an empty report that leaves #confStat at the
4470
4494
  // display:none its markup already carries; and updCS is already called from every path that can change
4471
4495
  // the axes on a v2 document (csArm3dB, onFrame3dChange, the view switch), so it would add nothing.
4472
- if(MODEL_RO){svg.replaceChildren();stats();panel();updUR();syncDisplayRows();refreshSelLen3d();return;} // stats() here only RETIRES the per-sheet readouts — see its v2 branch; selected length is a 3D overlay and must follow every v2 selection repaint
4496
+ if(MODEL_RO){svg.replaceChildren();stats();panel();updUR();syncDisplayRows();refreshSelLen3d();return;} // stats() here only RETIRES the per-sheet readouts — see its NO_PLAN_VIEW branch; selected length is a 3D overlay and must follow every v2 selection repaint
4473
4497
  document.body.classList.remove('snapping'); // a wholesale svg rebuild drops any #snapMark → clear the cursor-hide flag too (the next pointermove re-adds it if still snapping)
4474
4498
  buildColorRank(); // refresh the model-global colour rank before any colorFor() call below (B2 — keeps 2D hues stable across plans + matched to 3D)
4475
4499
  reanchorAllPlans(); // F9: glue magnetic dims to their members BEFORE anything reads P.dims — covers every mutation path that ends in a render()
@@ -4569,14 +4593,35 @@ function updateLine(m){
4569
4593
  if(pg){const pts=columnSectionPoly(m);if(pts)pg.setAttribute('points',_polyStr(pts));}return;}
4570
4594
  const ln=svg.querySelector(`line.member[data-id="${m.id}"]`);
4571
4595
  if(ln){ln.setAttribute('x1',m.wp[0][0]);ln.setAttribute('y1',m.wp[0][1]);ln.setAttribute('x2',m.wp[1][0]);ln.setAttribute('y2',m.wp[1][1]);}}
4596
+ /** The four header readouts computed from the ACTIVE PLAN's member list. Named once — see stats(). */
4597
+ const PLAN_STATS=['mcStat','wtStat','rfiStat','dupStat'];
4572
4598
  /** Take a header stat out of the flow entirely — not dimmed, not zeroed. See stats() for when and why. */
4573
4599
  function hideStat(id){const el=document.getElementById(id);if(el)el.style.display='none';}
4600
+ /** …and put it back. The state stats() hides for is REVERSIBLE, so the hiding has to be too — see there. */
4601
+ function showStat(id){const el=document.getElementById(id);if(el)el.style.display='';}
4574
4602
  function stats(){
4575
- // A v2 model has no per-sheet member list, and every number below is per-sheet. There is no honest value
4576
- // to put here, so the readouts are REMOVED from the header instead of showing zeros beside a populated
4577
- // 3D scene. This is the one place `hidden` beats `disabled` in this editor — that rule is about ACTION
4578
- // controls, where vanishing reads as "broken"; a stat that cannot be computed has nothing to act on.
4579
- if(MODEL_RO){for(const id of ['mcStat','wtStat','rfiStat','dupStat'])hideStat(id);return;}
4603
+ // EVERY NUMBER BELOW IS PER-SHEET: each walks `P.members`, the members of the ACTIVE PLAN VIEW. When
4604
+ // there is no plan view to be active, `P.members` is the empty placeholder setPlan() installs, not a
4605
+ // measurement — so there is no honest value to print and the readouts are REMOVED from the header rather
4606
+ // than showing "Members 0 · Weight 0.0 tons · RFI 0" beside a populated 3D scene. This is the one place
4607
+ // `hidden` beats `disabled` in this editor — that rule is about ACTION controls, where vanishing reads as
4608
+ // "broken"; a stat that cannot be computed has nothing to act on. (RFI is the sharpest case: it is
4609
+ // CLICKABLE, and a live-looking control that opens a list about a member set which is not loaded is worse
4610
+ // than an absent one.) The canvas already explains the state in full — see panel()'s NO_PLAN_VIEW badge —
4611
+ // so saying it again in four header tooltips would only repeat the reason.
4612
+ //
4613
+ // THE PREDICATE IS `NO_PLAN_VIEW`, AND IT USED TO BE `MODEL_RO` (#515). That was written when v2 was
4614
+ // read-only and had no plan projection at all, so "a v2 document" and "no per-sheet members" were the
4615
+ // same statement. They stopped being the same when v2 went live, and the guard did not follow:
4616
+ // `MODEL_RO = MODEL_V2 && !MODEL_V2_LIVE` with `MODEL_V2_LIVE` the constant `true` makes it permanently
4617
+ // FALSE, so this branch was dead and a v2 model with no plan view printed exactly the zeros it exists to
4618
+ // prevent. A v2 model that DOES have a plan view is NOT the case being excluded: its `P.members` is the
4619
+ // real projection for that sheet, so its numbers are as honest as v1's and it keeps every one of them.
4620
+ if(NO_PLAN_VIEW){for(const id of PLAN_STATS)hideStat(id);return;}
4621
+ // REVERSIBLE, and this line is the whole of it: hideStat writes an INLINE display:none that nothing else
4622
+ // clears, so without this the first no-plan-view sheet would hide these four permanently — including
4623
+ // after the user activates a plan sheet again, which setPlan() allows and which is the ordinary way back.
4624
+ for(const id of PLAN_STATS)showStat(id);
4580
4625
  document.getElementById('mc').textContent=P.members.length;
4581
4626
  let w=0,rfi=0; for(const m of P.members){const wpf=_wt(m.profile); if(wpf==null)rfi++; else w+=_lenFt(ensureMeta(m))*wpf;}
4582
4627
  document.getElementById('wt').textContent=(w/2000).toFixed(1);document.getElementById('wtlb').textContent=Math.round(w).toLocaleString();document.getElementById('rc').textContent=rfi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floless/app",
3
- "version": "0.120.1",
3
+ "version": "0.120.2",
4
4
  "type": "module",
5
5
  "description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
6
6
  "bin": {