nucleation 0.1.113 → 0.1.115
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/nucleation-original.js +19 -4
- package/nucleation.d.ts +6 -1
- package/nucleation_bg.wasm +0 -0
- package/package.json +1 -1
package/nucleation-original.js
CHANGED
|
@@ -229,12 +229,12 @@ function getArrayI32FromWasm0(ptr, len) {
|
|
|
229
229
|
* @param {SchematicWrapper} schematic
|
|
230
230
|
* @returns {string}
|
|
231
231
|
*/
|
|
232
|
-
export function
|
|
232
|
+
export function debug_schematic(schematic) {
|
|
233
233
|
let deferred1_0;
|
|
234
234
|
let deferred1_1;
|
|
235
235
|
try {
|
|
236
236
|
_assertClass(schematic, SchematicWrapper);
|
|
237
|
-
const ret = wasm.
|
|
237
|
+
const ret = wasm.debug_schematic(schematic.__wbg_ptr);
|
|
238
238
|
deferred1_0 = ret[0];
|
|
239
239
|
deferred1_1 = ret[1];
|
|
240
240
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -247,12 +247,12 @@ export function debug_json_schematic(schematic) {
|
|
|
247
247
|
* @param {SchematicWrapper} schematic
|
|
248
248
|
* @returns {string}
|
|
249
249
|
*/
|
|
250
|
-
export function
|
|
250
|
+
export function debug_json_schematic(schematic) {
|
|
251
251
|
let deferred1_0;
|
|
252
252
|
let deferred1_1;
|
|
253
253
|
try {
|
|
254
254
|
_assertClass(schematic, SchematicWrapper);
|
|
255
|
-
const ret = wasm.
|
|
255
|
+
const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
|
|
256
256
|
deferred1_0 = ret[0];
|
|
257
257
|
deferred1_1 = ret[1];
|
|
258
258
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2128,6 +2128,21 @@ export class TypedCircuitExecutorWrapper {
|
|
|
2128
2128
|
const ret = wasm.typedcircuitexecutorwrapper_syncToSchematic(this.__wbg_ptr);
|
|
2129
2129
|
return SchematicWrapper.__wrap(ret);
|
|
2130
2130
|
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Create executor from Insign annotations with custom simulation options
|
|
2133
|
+
* @param {SchematicWrapper} schematic
|
|
2134
|
+
* @param {SimulationOptionsWrapper} options
|
|
2135
|
+
* @returns {TypedCircuitExecutorWrapper}
|
|
2136
|
+
*/
|
|
2137
|
+
static fromInsignWithOptions(schematic, options) {
|
|
2138
|
+
_assertClass(schematic, SchematicWrapper);
|
|
2139
|
+
_assertClass(options, SimulationOptionsWrapper);
|
|
2140
|
+
const ret = wasm.typedcircuitexecutorwrapper_fromInsignWithOptions(schematic.__wbg_ptr, options.__wbg_ptr);
|
|
2141
|
+
if (ret[2]) {
|
|
2142
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2143
|
+
}
|
|
2144
|
+
return TypedCircuitExecutorWrapper.__wrap(ret[0]);
|
|
2145
|
+
}
|
|
2131
2146
|
/**
|
|
2132
2147
|
* Create executor from world, layout, and options
|
|
2133
2148
|
* @param {MchprsWorldWrapper} world
|
package/nucleation.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function debug_json_schematic(schematic: SchematicWrapper): string;
|
|
4
3
|
export function debug_schematic(schematic: SchematicWrapper): string;
|
|
4
|
+
export function debug_json_schematic(schematic: SchematicWrapper): string;
|
|
5
5
|
/**
|
|
6
6
|
* Initialize WASM module with panic hook for better error messages
|
|
7
7
|
*/
|
|
@@ -508,6 +508,10 @@ export class TypedCircuitExecutorWrapper {
|
|
|
508
508
|
* Returns the updated schematic.
|
|
509
509
|
*/
|
|
510
510
|
syncToSchematic(): SchematicWrapper;
|
|
511
|
+
/**
|
|
512
|
+
* Create executor from Insign annotations with custom simulation options
|
|
513
|
+
*/
|
|
514
|
+
static fromInsignWithOptions(schematic: SchematicWrapper, options: SimulationOptionsWrapper): TypedCircuitExecutorWrapper;
|
|
511
515
|
/**
|
|
512
516
|
* Create executor from world, layout, and options
|
|
513
517
|
*/
|
|
@@ -705,6 +709,7 @@ export interface InitOutput {
|
|
|
705
709
|
readonly simulationoptionswrapper_set_optimize: (a: number, b: number) => void;
|
|
706
710
|
readonly typedcircuitexecutorwrapper_execute: (a: number, b: any, c: number) => [number, number, number];
|
|
707
711
|
readonly typedcircuitexecutorwrapper_fromInsign: (a: number) => [number, number, number];
|
|
712
|
+
readonly typedcircuitexecutorwrapper_fromInsignWithOptions: (a: number, b: number) => [number, number, number];
|
|
708
713
|
readonly typedcircuitexecutorwrapper_fromLayout: (a: number, b: number) => [number, number, number];
|
|
709
714
|
readonly typedcircuitexecutorwrapper_fromLayoutWithOptions: (a: number, b: number, c: number) => [number, number, number];
|
|
710
715
|
readonly typedcircuitexecutorwrapper_reset: (a: number) => [number, number];
|
package/nucleation_bg.wasm
CHANGED
|
Binary file
|