@floless/app 0.126.3 → 0.126.4

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.
@@ -2689,12 +2689,11 @@ function hasPlanDir(m){
2689
2689
  if(!m||m.role==='column'||!Array.isArray(m.wp)||m.wp.length<2)return false;
2690
2690
  const k=304.8/((P&&P.pt_per_ft>0)?P.pt_per_ft:1);
2691
2691
  return Math.hypot(m.wp[1][0]-m.wp[0][0],m.wp[1][1]-m.wp[0][1])*k>=1;}
2692
- // Can this member be justified left/right? Needs a plan direction AND a resolved designation: a member
2693
- // whose profile does not parse has no section frame to flush a face to (the bake refuses it for the same
2694
- // reason — the 3D orients an unresolved/CUSTOM section by a minimal-arc rotation that does not line its
2695
- // axes up with the plan). profileDimsIn's null/non-null answer is a pure parse, so this agrees with the
2696
- // server whether or not the AISC table has loaded.
2697
- function posHEligible(m){return hasPlanDir(m)&&profileDimsIn(m&&m.profile)!=null;}
2692
+ // Can this member be justified left/right? It needs a plan direction and an authored section frame. A
2693
+ // resolved designation supplies that through profileDimsIn; a CUSTOM/imported section supplies w+d.
2694
+ // The BOX renderer now aligns that frame with the plan before applying Profile Rotation, so this
2695
+ // agrees with the server whether or not the AISC table has loaded.
2696
+ function posHEligible(m){return hasPlanDir(m)&&(profileDimsIn(m&&m.profile)!=null||!!(m&&m.section&&m.section.w>0&&m.section.d>0));}
2698
2697
  // Profile Position copy, in ONE place so the single- and multi-select panels cannot drift (they already
2699
2698
  // described the same control two different ways). Per-button tips, not one heading tip carrying
2700
2699
  // everything: with two axes under one heading the two "Middle" buttons sit adjacent, and each button
@@ -14277,6 +14276,8 @@ if(new URLSearchParams(location.search).get('selftest')==='1'){(function(){
14277
14276
  ok(hasPlanDir(Object.assign(mk(120,'W16X26'),{role:'column'}))===false,'a column never has a plan direction to justify to');
14278
14277
  ok(posHEligible(mk(120,'W16X26'))===true,'a real beam with a resolved profile is eligible');
14279
14278
  ok(posHEligible(mk(120,'MF'))===false,'an unresolved mark has no section to flush a face to');
14279
+ ok(posHEligible(Object.assign(mk(120,''),{section:{w:200,d:100}}))===true,'a sloped custom rectangle with w+d is eligible');
14280
+ ok(posHEligible(Object.assign(mk(0,''),{section:{w:200,d:100}}))===false,'a plumb custom rectangle has no left/right direction');
14280
14281
  ok(posHDefault(mk(120,'W16X26'))==='middle','posHDefault centres a member that never set one');
14281
14282
  ok(posHDefault(Object.assign(mk(120,'W16X26'),{positionH:'left'}))==='left','an explicit positionH wins');
14282
14283
  P.pt_per_ft=sp3;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floless/app",
3
- "version": "0.126.3",
3
+ "version": "0.126.4",
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": {