nucleation 0.1.133 → 0.1.134
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 +11 -11
- package/nucleation.d.ts +1 -1
- package/nucleation_bg.wasm +0 -0
- package/package.json +1 -1
package/nucleation-original.js
CHANGED
|
@@ -255,16 +255,23 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
255
255
|
WASM_VECTOR_LEN = arg.length;
|
|
256
256
|
return ptr;
|
|
257
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Initialize WASM module with panic hook for better error messages
|
|
260
|
+
*/
|
|
261
|
+
export function start() {
|
|
262
|
+
wasm.start();
|
|
263
|
+
}
|
|
264
|
+
|
|
258
265
|
/**
|
|
259
266
|
* @param {SchematicWrapper} schematic
|
|
260
267
|
* @returns {string}
|
|
261
268
|
*/
|
|
262
|
-
export function
|
|
269
|
+
export function debug_json_schematic(schematic) {
|
|
263
270
|
let deferred1_0;
|
|
264
271
|
let deferred1_1;
|
|
265
272
|
try {
|
|
266
273
|
_assertClass(schematic, SchematicWrapper);
|
|
267
|
-
const ret = wasm.
|
|
274
|
+
const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
|
|
268
275
|
deferred1_0 = ret[0];
|
|
269
276
|
deferred1_1 = ret[1];
|
|
270
277
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -273,23 +280,16 @@ export function debug_schematic(schematic) {
|
|
|
273
280
|
}
|
|
274
281
|
}
|
|
275
282
|
|
|
276
|
-
/**
|
|
277
|
-
* Initialize WASM module with panic hook for better error messages
|
|
278
|
-
*/
|
|
279
|
-
export function start() {
|
|
280
|
-
wasm.start();
|
|
281
|
-
}
|
|
282
|
-
|
|
283
283
|
/**
|
|
284
284
|
* @param {SchematicWrapper} schematic
|
|
285
285
|
* @returns {string}
|
|
286
286
|
*/
|
|
287
|
-
export function
|
|
287
|
+
export function debug_schematic(schematic) {
|
|
288
288
|
let deferred1_0;
|
|
289
289
|
let deferred1_1;
|
|
290
290
|
try {
|
|
291
291
|
_assertClass(schematic, SchematicWrapper);
|
|
292
|
-
const ret = wasm.
|
|
292
|
+
const ret = wasm.debug_schematic(schematic.__wbg_ptr);
|
|
293
293
|
deferred1_0 = ret[0];
|
|
294
294
|
deferred1_1 = ret[1];
|
|
295
295
|
return getStringFromWasm0(ret[0], ret[1]);
|
package/nucleation.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function debug_schematic(schematic: SchematicWrapper): string;
|
|
4
3
|
/**
|
|
5
4
|
* Initialize WASM module with panic hook for better error messages
|
|
6
5
|
*/
|
|
7
6
|
export function start(): void;
|
|
8
7
|
export function debug_json_schematic(schematic: SchematicWrapper): string;
|
|
8
|
+
export function debug_schematic(schematic: SchematicWrapper): string;
|
|
9
9
|
export class BlockPosition {
|
|
10
10
|
free(): void;
|
|
11
11
|
[Symbol.dispose](): void;
|
package/nucleation_bg.wasm
CHANGED
|
Binary file
|