@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.
- package/dist/floless-server.cjs +443 -402
- package/dist/web/app.css +127 -0
- package/dist/web/aware.js +345 -2
- package/dist/web/index.html +32 -1
- package/dist/web/steel-3d-view.js +14 -2
- package/dist/web/steel-editor.html +7 -6
- package/package.json +1 -1
|
@@ -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?
|
|
2693
|
-
//
|
|
2694
|
-
//
|
|
2695
|
-
//
|
|
2696
|
-
|
|
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;}
|