@ferscloud/fers-calculation-web 0.2.62 → 0.2.64

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/README.md CHANGED
@@ -20,17 +20,26 @@ npm install @ferscloud/fers-calculation
20
20
  **Vite**
21
21
 
22
22
  ```bash
23
- npm i -D vite-plugin-wasm vite-plugin-top-level-await
23
+ npm i -D vite-plugin-wasm
24
24
  ```
25
25
 
26
26
  ```ts
27
27
  // vite.config.ts
28
28
  import wasm from "vite-plugin-wasm";
29
- import topLevelAwait from "vite-plugin-top-level-await";
30
29
 
31
- export default { plugins: [wasm(), topLevelAwait()] };
30
+ // The package initialises with a top-level await, so the build target has to
31
+ // be one that supports it. `esnext` needs no second plugin.
32
+ export default {
33
+ plugins: [wasm()],
34
+ build: { target: "esnext" },
35
+ };
32
36
  ```
33
37
 
38
+ `esnext` keeps the top-level await in the output, which needs Chrome, Edge or
39
+ Firefox 89+, or Safari 15+. If you still have `vite-plugin-top-level-await` in
40
+ your config from an earlier version of this README, drop it — recent
41
+ `@swc/core` releases make it fail at `vite build`.
42
+
34
43
  **Next.js / webpack**
35
44
 
36
45
  ```js
package/fers-models.d.ts CHANGED
@@ -125,11 +125,7 @@ export interface components {
125
125
  include_warping: boolean;
126
126
  /** Format: int32 */
127
127
  max_iterations?: number | null;
128
- /**
129
- * @description Controls the nonlinear solver formulation (P_DELTA or COROTATIONAL).
130
- * Only affects second-order (nonlinear) analysis.
131
- */
132
- nonlinear_method?: components["schemas"]["NonlinearMethod"];
128
+ nonlinear_method?: null | components["schemas"]["NonlinearMethod"];
133
129
  order: components["schemas"]["AnalysisOrder"];
134
130
  /**
135
131
  * @description Controls the geometric stiffness matrix formulation for P-Delta analysis.
@@ -200,7 +196,20 @@ export interface components {
200
196
  */
201
197
  self_weight_load_case_id?: number | null;
202
198
  solve_loadcases: boolean;
203
- /** Format: double */
199
+ /**
200
+ * Format: double
201
+ * @description Convergence tolerance for the second-order Newton residual.
202
+ *
203
+ * **Floored at 1e-6.** A smaller value is accepted and then raised to that
204
+ * floor, because below it the residual is dominated by rounding in the
205
+ * assembly rather than by the equilibrium error, so iterating further buys
206
+ * precision that is not there. Asking for 1e-10 therefore gets you 1e-6, and
207
+ * that is deliberate — the number is named `SECOND_ORDER_RESIDUAL_FLOOR` in
208
+ * `models::fers::fers`.
209
+ *
210
+ * Ignored entirely by a first-order (`Linear`) analysis, which factorises
211
+ * once and does not iterate.
212
+ */
204
213
  tolerance: number;
205
214
  };
206
215
  /**
@@ -507,6 +516,24 @@ export interface components {
507
516
  * with real numbers substituted, and the resulting value + unit (display units).
508
517
  */
509
518
  CalcStep: {
519
+ /**
520
+ * Format: double
521
+ * @description The resistance `demand` was compared against, in display units and in
522
+ * `unit`. Present exactly when `demand` is.
523
+ */
524
+ capacity?: number | null;
525
+ /**
526
+ * Format: double
527
+ * @description The action effect behind `value`, in display units, when this step
528
+ * compares a single physical quantity against a single resistance — an
529
+ * axial force against `N_b,Rd`, a moment against `M_c,Rd`. Absent on
530
+ * dimensionless rows (the §6.2.1 and §6.3.3 interaction sums), where no
531
+ * one demand and no one capacity exist to report.
532
+ *
533
+ * `value` stays the utilization ratio on every row, so a consumer that
534
+ * only reads `value` is unaffected by these being present.
535
+ */
536
+ demand?: number | null;
510
537
  formula: string;
511
538
  label: string;
512
539
  substituted: string;
@@ -610,8 +637,10 @@ export interface components {
610
637
  /**
611
638
  * Format: double
612
639
  * @description Effective area for class 4 sections (EN 1993-1-5 §4.3), in the model's
613
- * area unit. Required together with `wel_y_eff` to run EC3 checks on a
614
- * class 4 section.
640
+ * area unit. Required to run any EC3 check on a class 4 section: the gross
641
+ * area would overstate every axial resistance. A concentrically loaded
642
+ * strut needs only this; `wel_y_eff` becomes required once there is a
643
+ * moment to resist.
615
644
  */
616
645
  a_eff?: number | null;
617
646
  buckling_curve_lt?: null | components["schemas"]["BucklingCurve"];
@@ -619,8 +648,8 @@ export interface components {
619
648
  buckling_curve_z?: null | components["schemas"]["BucklingCurve"];
620
649
  /**
621
650
  * Format: int32
622
- * @description Cross-section class 1–4 (EN 1993-1-1 §5.5). Class 4 needs effective
623
- * properties (currently a limitation — see the EC3 evaluator).
651
+ * @description Cross-section class 1–4 (EN 1993-1-1 §5.5). Class 4 needs `a_eff`, and
652
+ * `wel_y_eff` too once the member carries bending.
624
653
  */
625
654
  section_class?: number | null;
626
655
  /**
@@ -118,7 +118,7 @@ export function version() {
118
118
  export function wasm_init() {
119
119
  wasm.wasm_init();
120
120
  }
121
- export function __wbg___wbindgen_throw_bb96b2010945f0bc(arg0, arg1) {
121
+ export function __wbg___wbindgen_throw_5d9e815e6fdf150f(arg0, arg1) {
122
122
  throw new Error(getStringFromWasm0(arg0, arg1));
123
123
  }
124
124
  export function __wbg_error_757e9472f8410341(arg0, arg1) {
@@ -136,7 +136,7 @@ export function __wbg_new_227d7c05414eb861() {
136
136
  const ret = new Error();
137
137
  return ret;
138
138
  }
139
- export function __wbg_now_8b265300afd5f2b9() {
139
+ export function __wbg_now_d1fb6650485d7f3e() {
140
140
  const ret = Date.now();
141
141
  return ret;
142
142
  }
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ferscloud/fers-calculation-web",
3
3
  "type": "module",
4
- "version": "0.2.62",
4
+ "version": "0.2.64",
5
5
  "license": "BSD-3-Clause",
6
6
  "repository": {
7
7
  "type": "git",