@diodeinc/pcb-zen-wasm 0.3.16 → 0.3.17
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 +1 -1
- package/pcb_zen_wasm.js +4 -4
- package/pcb_zen_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/pcb_zen_wasm.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function start(): void;
|
|
4
3
|
/**
|
|
5
4
|
* Evaluate a Zener module from a zip archive (WASM binding).
|
|
6
5
|
*
|
|
7
6
|
* This is a thin wrapper around `evaluate_impl` for wasm-bindgen.
|
|
8
7
|
*/
|
|
9
8
|
export function evaluate(zip_bytes: Uint8Array, main_file: string, inputs_json: string): any;
|
|
9
|
+
export function start(): void;
|
|
10
10
|
|
|
11
11
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
12
12
|
|
package/pcb_zen_wasm.js
CHANGED
|
@@ -83,10 +83,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
83
83
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export function start() {
|
|
87
|
-
wasm.start();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
86
|
function passArray8ToWasm0(arg, malloc) {
|
|
91
87
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
92
88
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -122,6 +118,10 @@ export function evaluate(zip_bytes, main_file, inputs_json) {
|
|
|
122
118
|
return takeFromExternrefTable0(ret[0]);
|
|
123
119
|
}
|
|
124
120
|
|
|
121
|
+
export function start() {
|
|
122
|
+
wasm.start();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
125
|
async function __wbg_load(module, imports) {
|
|
126
126
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
127
127
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
package/pcb_zen_wasm_bg.wasm
CHANGED
|
Binary file
|