@ferscloud/fers-calculation 0.2.103 → 0.2.104

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.
@@ -89,6 +89,13 @@ export function render_reports_from_json(json_data: string): string;
89
89
  */
90
90
  export function results_for(request_json: string): string;
91
91
 
92
+ /**
93
+ * `listener(done, total)` is called as each load case, combination and eigen
94
+ * analysis of the solves and parts this instance runs finishes, and once with
95
+ * `done = 0` as each starts (see `progress`). `undefined` stops it.
96
+ */
97
+ export function set_progress_listener(listener?: Function | null): void;
98
+
92
99
  /**
93
100
  * The engine version, queryable without solving anything. The npm package
94
101
  * version is set from the same `Cargo.toml` at build time, but a caller
@@ -300,6 +300,17 @@ function results_for(request_json) {
300
300
  }
301
301
  exports.results_for = results_for;
302
302
 
303
+ /**
304
+ * `listener(done, total)` is called as each load case, combination and eigen
305
+ * analysis of the solves and parts this instance runs finishes, and once with
306
+ * `done = 0` as each starts (see `progress`). `undefined` stops it.
307
+ * @param {Function | null} [listener]
308
+ */
309
+ function set_progress_listener(listener) {
310
+ wasm.set_progress_listener(isLikeNone(listener) ? 0 : addToExternrefTable0(listener));
311
+ }
312
+ exports.set_progress_listener = set_progress_listener;
313
+
303
314
  /**
304
315
  * The engine version, queryable without solving anything. The npm package
305
316
  * version is set from the same `Cargo.toml` at build time, but a caller
@@ -346,6 +357,10 @@ function __wbg_get_imports() {
346
357
  __wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
347
358
  throw new Error(getStringFromWasm0(arg0, arg1));
348
359
  },
360
+ __wbg_call_fc92fee6137d452d: function() { return handleError(function (arg0, arg1, arg2, arg3) {
361
+ const ret = arg0.call(arg1, arg2, arg3);
362
+ return ret;
363
+ }, arguments); },
349
364
  __wbg_error_757e9472f8410341: function(arg0, arg1) {
350
365
  let deferred0_0;
351
366
  let deferred0_1;
@@ -372,6 +387,11 @@ function __wbg_get_imports() {
372
387
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
373
388
  getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
374
389
  },
390
+ __wbindgen_generic_0000000000000001: function(arg0) {
391
+ // Cast intrinsic for `F64 -> Externref`.
392
+ const ret = arg0;
393
+ return ret;
394
+ },
375
395
  __wbindgen_init_externref_table: function() {
376
396
  const table = wasm.__wbindgen_externrefs;
377
397
  table.set(0, undefined);
@@ -414,6 +434,15 @@ function getUint8ArrayMemory0() {
414
434
  return cachedUint8ArrayMemory0;
415
435
  }
416
436
 
437
+ function handleError(f, args) {
438
+ try {
439
+ return f.apply(this, args);
440
+ } catch (e) {
441
+ const idx = addToExternrefTable0(e);
442
+ wasm.__wbindgen_exn_store(idx);
443
+ }
444
+ }
445
+
417
446
  function isLikeNone(x) {
418
447
  return x === undefined || x === null;
419
448
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ferscloud/fers-calculation",
3
- "version": "0.2.103",
3
+ "version": "0.2.104",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",