@diodeinc/pcb-zen-wasm 0.3.54 → 0.3.55
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/package.json +1 -1
- package/pcb_zen_wasm.d.ts +2 -4
- package/pcb_zen_wasm.js +4 -6
- package/pcb_zen_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/pcb_zen_wasm.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Evaluate a Zener module from
|
|
5
|
-
*
|
|
6
|
-
* This is a thin wrapper around `evaluate_impl` for wasm-bindgen.
|
|
4
|
+
* Evaluate a Zener module from an in-memory source bundle (WASM binding).
|
|
7
5
|
*/
|
|
8
|
-
export function evaluate(
|
|
6
|
+
export function evaluate(bundle_bytes: Uint8Array, main_file: string, inputs_json: string): any;
|
|
9
7
|
export function start(): void;
|
|
10
8
|
|
|
11
9
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
package/pcb_zen_wasm.js
CHANGED
|
@@ -96,16 +96,14 @@ function takeFromExternrefTable0(idx) {
|
|
|
96
96
|
return value;
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
|
-
* Evaluate a Zener module from
|
|
100
|
-
*
|
|
101
|
-
* This is a thin wrapper around `evaluate_impl` for wasm-bindgen.
|
|
102
|
-
* @param {Uint8Array} zip_bytes
|
|
99
|
+
* Evaluate a Zener module from an in-memory source bundle (WASM binding).
|
|
100
|
+
* @param {Uint8Array} bundle_bytes
|
|
103
101
|
* @param {string} main_file
|
|
104
102
|
* @param {string} inputs_json
|
|
105
103
|
* @returns {any}
|
|
106
104
|
*/
|
|
107
|
-
export function evaluate(
|
|
108
|
-
const ptr0 = passArray8ToWasm0(
|
|
105
|
+
export function evaluate(bundle_bytes, main_file, inputs_json) {
|
|
106
|
+
const ptr0 = passArray8ToWasm0(bundle_bytes, wasm.__wbindgen_malloc);
|
|
109
107
|
const len0 = WASM_VECTOR_LEN;
|
|
110
108
|
const ptr1 = passStringToWasm0(main_file, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
111
109
|
const len1 = WASM_VECTOR_LEN;
|
package/pcb_zen_wasm_bg.wasm
CHANGED
|
Binary file
|