@ferscloud/fers-calculation-web 0.2.62 → 0.2.63
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 +12 -3
- package/fers-models.d.ts +15 -6
- package/fers_calculations_bg.js +2 -2
- package/fers_calculations_bg.wasm +0 -0
- package/package.json +1 -1
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
|
|
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
|
-
|
|
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
|
-
/**
|
|
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
|
/**
|
package/fers_calculations_bg.js
CHANGED
|
@@ -118,7 +118,7 @@ export function version() {
|
|
|
118
118
|
export function wasm_init() {
|
|
119
119
|
wasm.wasm_init();
|
|
120
120
|
}
|
|
121
|
-
export function
|
|
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
|
|
139
|
+
export function __wbg_now_d1fb6650485d7f3e() {
|
|
140
140
|
const ret = Date.now();
|
|
141
141
|
return ret;
|
|
142
142
|
}
|
|
Binary file
|