nucleation 0.1.116 → 0.1.117
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 +29 -25
- package/nucleation.d.ts +1 -1
- package/nucleation_bg.wasm +0 -0
- package/package.json +1 -1
package/nucleation-original.js
CHANGED
|
@@ -177,6 +177,20 @@ function handleError(f, args) {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
let cachedInt32ArrayMemory0 = null;
|
|
181
|
+
|
|
182
|
+
function getInt32ArrayMemory0() {
|
|
183
|
+
if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
|
|
184
|
+
cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
|
|
185
|
+
}
|
|
186
|
+
return cachedInt32ArrayMemory0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function getArrayI32FromWasm0(ptr, len) {
|
|
190
|
+
ptr = ptr >>> 0;
|
|
191
|
+
return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
192
|
+
}
|
|
193
|
+
|
|
180
194
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
181
195
|
ptr = ptr >>> 0;
|
|
182
196
|
const mem = getDataViewMemory0();
|
|
@@ -211,30 +225,16 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
211
225
|
WASM_VECTOR_LEN = arg.length;
|
|
212
226
|
return ptr;
|
|
213
227
|
}
|
|
214
|
-
|
|
215
|
-
let cachedInt32ArrayMemory0 = null;
|
|
216
|
-
|
|
217
|
-
function getInt32ArrayMemory0() {
|
|
218
|
-
if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
|
|
219
|
-
cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
|
|
220
|
-
}
|
|
221
|
-
return cachedInt32ArrayMemory0;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
function getArrayI32FromWasm0(ptr, len) {
|
|
225
|
-
ptr = ptr >>> 0;
|
|
226
|
-
return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
227
|
-
}
|
|
228
228
|
/**
|
|
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]);
|
|
@@ -243,23 +243,16 @@ export function debug_json_schematic(schematic) {
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
/**
|
|
247
|
-
* Initialize WASM module with panic hook for better error messages
|
|
248
|
-
*/
|
|
249
|
-
export function start() {
|
|
250
|
-
wasm.start();
|
|
251
|
-
}
|
|
252
|
-
|
|
253
246
|
/**
|
|
254
247
|
* @param {SchematicWrapper} schematic
|
|
255
248
|
* @returns {string}
|
|
256
249
|
*/
|
|
257
|
-
export function
|
|
250
|
+
export function debug_json_schematic(schematic) {
|
|
258
251
|
let deferred1_0;
|
|
259
252
|
let deferred1_1;
|
|
260
253
|
try {
|
|
261
254
|
_assertClass(schematic, SchematicWrapper);
|
|
262
|
-
const ret = wasm.
|
|
255
|
+
const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
|
|
263
256
|
deferred1_0 = ret[0];
|
|
264
257
|
deferred1_1 = ret[1];
|
|
265
258
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -268,6 +261,13 @@ export function debug_schematic(schematic) {
|
|
|
268
261
|
}
|
|
269
262
|
}
|
|
270
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Initialize WASM module with panic hook for better error messages
|
|
266
|
+
*/
|
|
267
|
+
export function start() {
|
|
268
|
+
wasm.start();
|
|
269
|
+
}
|
|
270
|
+
|
|
271
271
|
let cachedUint32ArrayMemory0 = null;
|
|
272
272
|
|
|
273
273
|
function getUint32ArrayMemory0() {
|
|
@@ -2465,6 +2465,10 @@ function __wbg_get_imports() {
|
|
|
2465
2465
|
const ret = new Array();
|
|
2466
2466
|
return ret;
|
|
2467
2467
|
};
|
|
2468
|
+
imports.wbg.__wbg_new_from_slice_28b392e73daecb5c = function(arg0, arg1) {
|
|
2469
|
+
const ret = new Int32Array(getArrayI32FromWasm0(arg0, arg1));
|
|
2470
|
+
return ret;
|
|
2471
|
+
};
|
|
2468
2472
|
imports.wbg.__wbg_now_793306c526e2e3b6 = function() {
|
|
2469
2473
|
const ret = Date.now();
|
|
2470
2474
|
return ret;
|
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;
|
|
3
4
|
export function debug_json_schematic(schematic: SchematicWrapper): string;
|
|
4
5
|
/**
|
|
5
6
|
* Initialize WASM module with panic hook for better error messages
|
|
6
7
|
*/
|
|
7
8
|
export function start(): void;
|
|
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
|