@diodeinc/pcb-zen-wasm 0.3.60 → 0.3.62
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,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function start(): void;
|
|
3
4
|
/**
|
|
4
5
|
* Evaluate a Zener module from an in-memory source bundle (WASM binding).
|
|
5
6
|
*/
|
|
6
7
|
export function evaluate(bundle_bytes: Uint8Array, main_file: string, inputs_json: string): any;
|
|
7
|
-
export function start(): void;
|
|
8
8
|
|
|
9
9
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
10
10
|
|
package/pcb_zen_wasm.js
CHANGED
|
@@ -83,6 +83,10 @@ 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
|
+
|
|
86
90
|
function passArray8ToWasm0(arg, malloc) {
|
|
87
91
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
88
92
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -116,10 +120,6 @@ export function evaluate(bundle_bytes, main_file, inputs_json) {
|
|
|
116
120
|
return takeFromExternrefTable0(ret[0]);
|
|
117
121
|
}
|
|
118
122
|
|
|
119
|
-
export function start() {
|
|
120
|
-
wasm.start();
|
|
121
|
-
}
|
|
122
|
-
|
|
123
123
|
async function __wbg_load(module, imports) {
|
|
124
124
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
125
125
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
package/pcb_zen_wasm_bg.wasm
CHANGED
|
Binary file
|