nucleation 0.1.134 → 0.1.135
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 +7 -7
- package/nucleation.d.ts +59 -59
- package/nucleation_bg.wasm +0 -0
- package/package.json +1 -1
package/nucleation-original.js
CHANGED
|
@@ -255,13 +255,6 @@ 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
|
-
|
|
265
258
|
/**
|
|
266
259
|
* @param {SchematicWrapper} schematic
|
|
267
260
|
* @returns {string}
|
|
@@ -298,6 +291,13 @@ export function debug_schematic(schematic) {
|
|
|
298
291
|
}
|
|
299
292
|
}
|
|
300
293
|
|
|
294
|
+
/**
|
|
295
|
+
* Initialize WASM module with panic hook for better error messages
|
|
296
|
+
*/
|
|
297
|
+
export function start() {
|
|
298
|
+
wasm.start();
|
|
299
|
+
}
|
|
300
|
+
|
|
301
301
|
const BlockPositionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
302
302
|
? { register: () => {}, unregister: () => {} }
|
|
303
303
|
: new FinalizationRegistry(ptr => wasm.__wbg_blockposition_free(ptr >>> 0, 1));
|
package/nucleation.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function debug_json_schematic(schematic: SchematicWrapper): string;
|
|
4
|
+
export function debug_schematic(schematic: SchematicWrapper): string;
|
|
3
5
|
/**
|
|
4
6
|
* Initialize WASM module with panic hook for better error messages
|
|
5
7
|
*/
|
|
6
8
|
export function start(): void;
|
|
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;
|
|
@@ -1040,18 +1040,9 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
1040
1040
|
|
|
1041
1041
|
export interface InitOutput {
|
|
1042
1042
|
readonly memory: WebAssembly.Memory;
|
|
1043
|
-
readonly __wbg_blockposition_free: (a: number, b: number) => void;
|
|
1044
|
-
readonly __wbg_get_blockposition_x: (a: number) => number;
|
|
1045
|
-
readonly __wbg_get_blockposition_y: (a: number) => number;
|
|
1046
|
-
readonly __wbg_get_blockposition_z: (a: number) => number;
|
|
1047
|
-
readonly __wbg_set_blockposition_x: (a: number, b: number) => void;
|
|
1048
|
-
readonly __wbg_set_blockposition_y: (a: number, b: number) => void;
|
|
1049
|
-
readonly __wbg_set_blockposition_z: (a: number, b: number) => void;
|
|
1050
|
-
readonly blockposition_new: (a: number, b: number, c: number) => number;
|
|
1051
1043
|
readonly __wbg_circuitbuilderwrapper_free: (a: number, b: number) => void;
|
|
1052
1044
|
readonly __wbg_executionmodewrapper_free: (a: number, b: number) => void;
|
|
1053
1045
|
readonly __wbg_iolayoutbuilderwrapper_free: (a: number, b: number) => void;
|
|
1054
|
-
readonly __wbg_iolayoutwrapper_free: (a: number, b: number) => void;
|
|
1055
1046
|
readonly __wbg_iotypewrapper_free: (a: number, b: number) => void;
|
|
1056
1047
|
readonly __wbg_layoutfunctionwrapper_free: (a: number, b: number) => void;
|
|
1057
1048
|
readonly __wbg_mchprsworldwrapper_free: (a: number, b: number) => void;
|
|
@@ -1182,6 +1173,63 @@ export interface InitOutput {
|
|
|
1182
1173
|
readonly sortstrategywrapper_yDescXZ: () => number;
|
|
1183
1174
|
readonly sortstrategywrapper_zyx: () => number;
|
|
1184
1175
|
readonly schematicwrapper_create_simulation_world: (a: number) => [number, number, number];
|
|
1176
|
+
readonly __wbg_iolayoutwrapper_free: (a: number, b: number) => void;
|
|
1177
|
+
readonly __wbg_blockposition_free: (a: number, b: number) => void;
|
|
1178
|
+
readonly __wbg_get_blockposition_x: (a: number) => number;
|
|
1179
|
+
readonly __wbg_get_blockposition_y: (a: number) => number;
|
|
1180
|
+
readonly __wbg_get_blockposition_z: (a: number) => number;
|
|
1181
|
+
readonly __wbg_set_blockposition_x: (a: number, b: number) => void;
|
|
1182
|
+
readonly __wbg_set_blockposition_y: (a: number, b: number) => void;
|
|
1183
|
+
readonly __wbg_set_blockposition_z: (a: number, b: number) => void;
|
|
1184
|
+
readonly blockposition_new: (a: number, b: number, c: number) => number;
|
|
1185
|
+
readonly __wbg_definitionregionwrapper_free: (a: number, b: number) => void;
|
|
1186
|
+
readonly definitionregionwrapper_addBounds: (a: number, b: any, c: any) => [number, number, number];
|
|
1187
|
+
readonly definitionregionwrapper_addFilter: (a: number, b: number, c: number) => [number, number, number];
|
|
1188
|
+
readonly definitionregionwrapper_addPoint: (a: number, b: number, c: number, d: number) => number;
|
|
1189
|
+
readonly definitionregionwrapper_boxCount: (a: number) => number;
|
|
1190
|
+
readonly definitionregionwrapper_center: (a: number) => any;
|
|
1191
|
+
readonly definitionregionwrapper_centerF32: (a: number) => any;
|
|
1192
|
+
readonly definitionregionwrapper_clone: (a: number) => number;
|
|
1193
|
+
readonly definitionregionwrapper_connectedComponents: (a: number) => number;
|
|
1194
|
+
readonly definitionregionwrapper_contains: (a: number, b: number, c: number, d: number) => number;
|
|
1195
|
+
readonly definitionregionwrapper_contract: (a: number, b: number) => number;
|
|
1196
|
+
readonly definitionregionwrapper_contracted: (a: number, b: number) => number;
|
|
1197
|
+
readonly definitionregionwrapper_copy: (a: number) => number;
|
|
1198
|
+
readonly definitionregionwrapper_dimensions: (a: number) => any;
|
|
1199
|
+
readonly definitionregionwrapper_excludeBlock: (a: number, b: number, c: number) => [number, number, number];
|
|
1200
|
+
readonly definitionregionwrapper_expand: (a: number, b: number, c: number, d: number) => number;
|
|
1201
|
+
readonly definitionregionwrapper_expanded: (a: number, b: number, c: number, d: number) => number;
|
|
1202
|
+
readonly definitionregionwrapper_filterByBlock: (a: number, b: number, c: number, d: number) => number;
|
|
1203
|
+
readonly definitionregionwrapper_filterByProperties: (a: number, b: number, c: any) => [number, number, number];
|
|
1204
|
+
readonly definitionregionwrapper_fromBoundingBoxes: (a: any) => [number, number, number];
|
|
1205
|
+
readonly definitionregionwrapper_fromBounds: (a: number, b: number) => number;
|
|
1206
|
+
readonly definitionregionwrapper_fromPositions: (a: any) => [number, number, number];
|
|
1207
|
+
readonly definitionregionwrapper_getAllMetadata: (a: number) => any;
|
|
1208
|
+
readonly definitionregionwrapper_getBlocks: (a: number) => [number, number, number];
|
|
1209
|
+
readonly definitionregionwrapper_getBounds: (a: number) => any;
|
|
1210
|
+
readonly definitionregionwrapper_getBox: (a: number, b: number) => any;
|
|
1211
|
+
readonly definitionregionwrapper_getBoxes: (a: number) => any;
|
|
1212
|
+
readonly definitionregionwrapper_getMetadata: (a: number, b: number, c: number) => any;
|
|
1213
|
+
readonly definitionregionwrapper_intersect: (a: number, b: number) => number;
|
|
1214
|
+
readonly definitionregionwrapper_intersected: (a: number, b: number) => number;
|
|
1215
|
+
readonly definitionregionwrapper_intersectsBounds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
1216
|
+
readonly definitionregionwrapper_isContiguous: (a: number) => number;
|
|
1217
|
+
readonly definitionregionwrapper_isEmpty: (a: number) => number;
|
|
1218
|
+
readonly definitionregionwrapper_merge: (a: number, b: number) => number;
|
|
1219
|
+
readonly definitionregionwrapper_metadataKeys: (a: number) => any;
|
|
1220
|
+
readonly definitionregionwrapper_new: () => number;
|
|
1221
|
+
readonly definitionregionwrapper_positions: (a: number) => any;
|
|
1222
|
+
readonly definitionregionwrapper_positionsSorted: (a: number) => any;
|
|
1223
|
+
readonly definitionregionwrapper_setColor: (a: number, b: number) => number;
|
|
1224
|
+
readonly definitionregionwrapper_setMetadata: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1225
|
+
readonly definitionregionwrapper_shift: (a: number, b: number, c: number, d: number) => number;
|
|
1226
|
+
readonly definitionregionwrapper_shifted: (a: number, b: number, c: number, d: number) => number;
|
|
1227
|
+
readonly definitionregionwrapper_simplify: (a: number) => number;
|
|
1228
|
+
readonly definitionregionwrapper_subtract: (a: number, b: number) => number;
|
|
1229
|
+
readonly definitionregionwrapper_subtracted: (a: number, b: number) => number;
|
|
1230
|
+
readonly definitionregionwrapper_union: (a: number, b: number) => number;
|
|
1231
|
+
readonly definitionregionwrapper_unionInto: (a: number, b: number) => number;
|
|
1232
|
+
readonly definitionregionwrapper_volume: (a: number) => number;
|
|
1185
1233
|
readonly __wbg_blockstatewrapper_free: (a: number, b: number) => void;
|
|
1186
1234
|
readonly __wbg_lazychunkiterator_free: (a: number, b: number) => void;
|
|
1187
1235
|
readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
|
|
@@ -1278,54 +1326,6 @@ export interface InitOutput {
|
|
|
1278
1326
|
readonly schematicwrapper_to_schematic_version: (a: number, b: number, c: number) => [number, number, number, number];
|
|
1279
1327
|
readonly start: () => void;
|
|
1280
1328
|
readonly schematicwrapper_updateRegion: (a: number, b: number, c: number, d: number) => void;
|
|
1281
|
-
readonly __wbg_definitionregionwrapper_free: (a: number, b: number) => void;
|
|
1282
|
-
readonly definitionregionwrapper_addBounds: (a: number, b: any, c: any) => [number, number, number];
|
|
1283
|
-
readonly definitionregionwrapper_addFilter: (a: number, b: number, c: number) => [number, number, number];
|
|
1284
|
-
readonly definitionregionwrapper_addPoint: (a: number, b: number, c: number, d: number) => number;
|
|
1285
|
-
readonly definitionregionwrapper_boxCount: (a: number) => number;
|
|
1286
|
-
readonly definitionregionwrapper_center: (a: number) => any;
|
|
1287
|
-
readonly definitionregionwrapper_centerF32: (a: number) => any;
|
|
1288
|
-
readonly definitionregionwrapper_clone: (a: number) => number;
|
|
1289
|
-
readonly definitionregionwrapper_connectedComponents: (a: number) => number;
|
|
1290
|
-
readonly definitionregionwrapper_contains: (a: number, b: number, c: number, d: number) => number;
|
|
1291
|
-
readonly definitionregionwrapper_contract: (a: number, b: number) => number;
|
|
1292
|
-
readonly definitionregionwrapper_contracted: (a: number, b: number) => number;
|
|
1293
|
-
readonly definitionregionwrapper_copy: (a: number) => number;
|
|
1294
|
-
readonly definitionregionwrapper_dimensions: (a: number) => any;
|
|
1295
|
-
readonly definitionregionwrapper_excludeBlock: (a: number, b: number, c: number) => [number, number, number];
|
|
1296
|
-
readonly definitionregionwrapper_expand: (a: number, b: number, c: number, d: number) => number;
|
|
1297
|
-
readonly definitionregionwrapper_expanded: (a: number, b: number, c: number, d: number) => number;
|
|
1298
|
-
readonly definitionregionwrapper_filterByBlock: (a: number, b: number, c: number, d: number) => number;
|
|
1299
|
-
readonly definitionregionwrapper_filterByProperties: (a: number, b: number, c: any) => [number, number, number];
|
|
1300
|
-
readonly definitionregionwrapper_fromBoundingBoxes: (a: any) => [number, number, number];
|
|
1301
|
-
readonly definitionregionwrapper_fromBounds: (a: number, b: number) => number;
|
|
1302
|
-
readonly definitionregionwrapper_fromPositions: (a: any) => [number, number, number];
|
|
1303
|
-
readonly definitionregionwrapper_getAllMetadata: (a: number) => any;
|
|
1304
|
-
readonly definitionregionwrapper_getBlocks: (a: number) => [number, number, number];
|
|
1305
|
-
readonly definitionregionwrapper_getBounds: (a: number) => any;
|
|
1306
|
-
readonly definitionregionwrapper_getBox: (a: number, b: number) => any;
|
|
1307
|
-
readonly definitionregionwrapper_getBoxes: (a: number) => any;
|
|
1308
|
-
readonly definitionregionwrapper_getMetadata: (a: number, b: number, c: number) => any;
|
|
1309
|
-
readonly definitionregionwrapper_intersect: (a: number, b: number) => number;
|
|
1310
|
-
readonly definitionregionwrapper_intersected: (a: number, b: number) => number;
|
|
1311
|
-
readonly definitionregionwrapper_intersectsBounds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
1312
|
-
readonly definitionregionwrapper_isContiguous: (a: number) => number;
|
|
1313
|
-
readonly definitionregionwrapper_isEmpty: (a: number) => number;
|
|
1314
|
-
readonly definitionregionwrapper_merge: (a: number, b: number) => number;
|
|
1315
|
-
readonly definitionregionwrapper_metadataKeys: (a: number) => any;
|
|
1316
|
-
readonly definitionregionwrapper_new: () => number;
|
|
1317
|
-
readonly definitionregionwrapper_positions: (a: number) => any;
|
|
1318
|
-
readonly definitionregionwrapper_positionsSorted: (a: number) => any;
|
|
1319
|
-
readonly definitionregionwrapper_setColor: (a: number, b: number) => number;
|
|
1320
|
-
readonly definitionregionwrapper_setMetadata: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1321
|
-
readonly definitionregionwrapper_shift: (a: number, b: number, c: number, d: number) => number;
|
|
1322
|
-
readonly definitionregionwrapper_shifted: (a: number, b: number, c: number, d: number) => number;
|
|
1323
|
-
readonly definitionregionwrapper_simplify: (a: number) => number;
|
|
1324
|
-
readonly definitionregionwrapper_subtract: (a: number, b: number) => number;
|
|
1325
|
-
readonly definitionregionwrapper_subtracted: (a: number, b: number) => number;
|
|
1326
|
-
readonly definitionregionwrapper_union: (a: number, b: number) => number;
|
|
1327
|
-
readonly definitionregionwrapper_unionInto: (a: number, b: number) => number;
|
|
1328
|
-
readonly definitionregionwrapper_volume: (a: number) => number;
|
|
1329
1329
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1330
1330
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1331
1331
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
package/nucleation_bg.wasm
CHANGED
|
Binary file
|