nucleation 0.1.135 → 0.1.138

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/README.md CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  ### Core
18
18
 
19
- - **Multi-format support**: `.schematic`, `.litematic`, `.nbt`, and more
19
+ - **Multi-format support**: `.schematic`, `.litematic`, `.nbt`, `.mcstructure`, and more
20
20
  - **Memory-safe Rust core** with zero-copy deserialization
21
21
  - **Cross-platform**: Linux, macOS, Windows (x86_64 + ARM64)
22
22
  - **Multi-language**: Rust, JavaScript/TypeScript (WASM), Python, C/FFI
@@ -176,6 +176,9 @@ schematic-builder -i circuit.txt -o circuit.litematic
176
176
 
177
177
  # Choose format
178
178
  schematic-builder -i circuit.txt -o circuit.schem --format schem
179
+
180
+ # Export as mcstructure
181
+ schematic-builder -i circuit.txt -o circuit.mcstructure --format mcstructure
179
182
  ```
180
183
 
181
184
  ---
@@ -259,12 +259,12 @@ function passArray8ToWasm0(arg, malloc) {
259
259
  * @param {SchematicWrapper} schematic
260
260
  * @returns {string}
261
261
  */
262
- export function debug_json_schematic(schematic) {
262
+ export function debug_schematic(schematic) {
263
263
  let deferred1_0;
264
264
  let deferred1_1;
265
265
  try {
266
266
  _assertClass(schematic, SchematicWrapper);
267
- const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
267
+ const ret = wasm.debug_schematic(schematic.__wbg_ptr);
268
268
  deferred1_0 = ret[0];
269
269
  deferred1_1 = ret[1];
270
270
  return getStringFromWasm0(ret[0], ret[1]);
@@ -273,16 +273,23 @@ export function debug_json_schematic(schematic) {
273
273
  }
274
274
  }
275
275
 
276
+ /**
277
+ * Initialize WASM module with panic hook for better error messages
278
+ */
279
+ export function start() {
280
+ wasm.start();
281
+ }
282
+
276
283
  /**
277
284
  * @param {SchematicWrapper} schematic
278
285
  * @returns {string}
279
286
  */
280
- export function debug_schematic(schematic) {
287
+ export function debug_json_schematic(schematic) {
281
288
  let deferred1_0;
282
289
  let deferred1_1;
283
290
  try {
284
291
  _assertClass(schematic, SchematicWrapper);
285
- const ret = wasm.debug_schematic(schematic.__wbg_ptr);
292
+ const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
286
293
  deferred1_0 = ret[0];
287
294
  deferred1_1 = ret[1];
288
295
  return getStringFromWasm0(ret[0], ret[1]);
@@ -291,13 +298,6 @@ export function debug_schematic(schematic) {
291
298
  }
292
299
  }
293
300
 
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));
@@ -2771,6 +2771,16 @@ export class SchematicWrapper {
2771
2771
  throw takeFromExternrefTable0(ret[0]);
2772
2772
  }
2773
2773
  }
2774
+ /**
2775
+ * @param {string} format
2776
+ * @returns {Array<any>}
2777
+ */
2778
+ static get_format_versions(format) {
2779
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2780
+ const len0 = WASM_VECTOR_LEN;
2781
+ const ret = wasm.schematicwrapper_get_format_versions(ptr0, len0);
2782
+ return ret;
2783
+ }
2774
2784
  /**
2775
2785
  * @param {number} chunk_width
2776
2786
  * @param {number} chunk_height
@@ -3005,6 +3015,21 @@ export class SchematicWrapper {
3005
3015
  const ret = wasm.schematicwrapper_create_lazy_chunk_iterator(this.__wbg_ptr, chunk_width, chunk_height, chunk_length, ptr0, len0, camera_x, camera_y, camera_z);
3006
3016
  return LazyChunkIterator.__wrap(ret);
3007
3017
  }
3018
+ /**
3019
+ * @param {string} format
3020
+ * @returns {string | undefined}
3021
+ */
3022
+ static get_default_format_version(format) {
3023
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3024
+ const len0 = WASM_VECTOR_LEN;
3025
+ const ret = wasm.schematicwrapper_get_default_format_version(ptr0, len0);
3026
+ let v2;
3027
+ if (ret[0] !== 0) {
3028
+ v2 = getStringFromWasm0(ret[0], ret[1]).slice();
3029
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3030
+ }
3031
+ return v2;
3032
+ }
3008
3033
  /**
3009
3034
  * @returns {any}
3010
3035
  */
@@ -3067,6 +3092,20 @@ export class SchematicWrapper {
3067
3092
  throw takeFromExternrefTable0(ret[0]);
3068
3093
  }
3069
3094
  }
3095
+ /**
3096
+ * @returns {Array<any>}
3097
+ */
3098
+ static get_supported_export_formats() {
3099
+ const ret = wasm.schematicwrapper_get_supported_export_formats();
3100
+ return ret;
3101
+ }
3102
+ /**
3103
+ * @returns {Array<any>}
3104
+ */
3105
+ static get_supported_import_formats() {
3106
+ const ret = wasm.schematicwrapper_get_supported_import_formats();
3107
+ return ret;
3108
+ }
3070
3109
  /**
3071
3110
  * @param {string} name
3072
3111
  * @param {string} key
@@ -3157,6 +3196,24 @@ export class SchematicWrapper {
3157
3196
  flip_z() {
3158
3197
  wasm.schematicwrapper_flip_z(this.__wbg_ptr);
3159
3198
  }
3199
+ /**
3200
+ * @param {string} format
3201
+ * @param {string | null} [version]
3202
+ * @returns {Uint8Array}
3203
+ */
3204
+ save_as(format, version) {
3205
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3206
+ const len0 = WASM_VECTOR_LEN;
3207
+ var ptr1 = isLikeNone(version) ? 0 : passStringToWasm0(version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3208
+ var len1 = WASM_VECTOR_LEN;
3209
+ const ret = wasm.schematicwrapper_save_as(this.__wbg_ptr, ptr0, len0, ptr1, len1);
3210
+ if (ret[3]) {
3211
+ throw takeFromExternrefTable0(ret[2]);
3212
+ }
3213
+ var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
3214
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3215
+ return v3;
3216
+ }
3160
3217
  /**
3161
3218
  * Rotate the schematic around the X axis
3162
3219
  * Degrees must be 90, 180, or 270
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
3
  export function debug_schematic(schematic: SchematicWrapper): string;
5
4
  /**
6
5
  * Initialize WASM module with panic hook for better error messages
7
6
  */
8
7
  export function start(): void;
8
+ export function debug_json_schematic(schematic: SchematicWrapper): string;
9
9
  export class BlockPosition {
10
10
  free(): void;
11
11
  [Symbol.dispose](): void;
@@ -713,6 +713,7 @@ export class SchematicWrapper {
713
713
  get_chunk_blocks(offset_x: number, offset_y: number, offset_z: number, width: number, height: number, length: number): Array<any>;
714
714
  get_region_names(): string[];
715
715
  setBlockWithNbt(x: number, y: number, z: number, block_name: string, nbt_data: any): void;
716
+ static get_format_versions(format: string): Array<any>;
716
717
  chunks_with_strategy(chunk_width: number, chunk_height: number, chunk_length: number, strategy: string, camera_x: number, camera_y: number, camera_z: number): Array<any>;
717
718
  /**
718
719
  * Get the tight bounding box max coordinates [x, y, z]
@@ -756,6 +757,7 @@ export class SchematicWrapper {
756
757
  get_block_with_properties(x: number, y: number, z: number): BlockStateWrapper | undefined;
757
758
  set_block_with_properties(x: number, y: number, z: number, block_name: string, properties: any): void;
758
759
  create_lazy_chunk_iterator(chunk_width: number, chunk_height: number, chunk_length: number, strategy: string, camera_x: number, camera_y: number, camera_z: number): LazyChunkIterator;
760
+ static get_default_format_version(format: string): string | undefined;
759
761
  get_default_region_palette(): any;
760
762
  definitionRegionAddPoint(name: string, x: number, y: number, z: number): void;
761
763
  getDefinitionRegionNames(): Array<any>;
@@ -764,6 +766,8 @@ export class SchematicWrapper {
764
766
  */
765
767
  chunks_indices_with_strategy(chunk_width: number, chunk_height: number, chunk_length: number, strategy: string, camera_x: number, camera_y: number, camera_z: number): Array<any>;
766
768
  definitionRegionAddBounds(name: string, min: BlockPosition, max: BlockPosition): void;
769
+ static get_supported_export_formats(): Array<any>;
770
+ static get_supported_import_formats(): Array<any>;
767
771
  definitionRegionSetMetadata(name: string, key: string, value: string): void;
768
772
  get_available_schematic_versions(): Array<any>;
769
773
  createDefinitionRegionFromPoint(name: string, x: number, y: number, z: number): void;
@@ -783,6 +787,7 @@ export class SchematicWrapper {
783
787
  * Flip the schematic along the Z axis
784
788
  */
785
789
  flip_z(): void;
790
+ save_as(format: string, version?: string | null): Uint8Array;
786
791
  /**
787
792
  * Rotate the schematic around the X axis
788
793
  * Degrees must be 90, 180, or 270
@@ -1043,10 +1048,12 @@ export interface InitOutput {
1043
1048
  readonly __wbg_circuitbuilderwrapper_free: (a: number, b: number) => void;
1044
1049
  readonly __wbg_executionmodewrapper_free: (a: number, b: number) => void;
1045
1050
  readonly __wbg_iolayoutbuilderwrapper_free: (a: number, b: number) => void;
1051
+ readonly __wbg_iolayoutwrapper_free: (a: number, b: number) => void;
1046
1052
  readonly __wbg_iotypewrapper_free: (a: number, b: number) => void;
1047
1053
  readonly __wbg_layoutfunctionwrapper_free: (a: number, b: number) => void;
1048
1054
  readonly __wbg_mchprsworldwrapper_free: (a: number, b: number) => void;
1049
1055
  readonly __wbg_outputconditionwrapper_free: (a: number, b: number) => void;
1056
+ readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
1050
1057
  readonly __wbg_simulationoptionswrapper_free: (a: number, b: number) => void;
1051
1058
  readonly __wbg_sortstrategywrapper_free: (a: number, b: number) => void;
1052
1059
  readonly __wbg_statemodeconstants_free: (a: number, b: number) => void;
@@ -1125,6 +1132,11 @@ export interface InitOutput {
1125
1132
  readonly outputconditionwrapper_greaterThan: (a: number) => number;
1126
1133
  readonly outputconditionwrapper_lessThan: (a: number) => number;
1127
1134
  readonly outputconditionwrapper_notEquals: (a: number) => number;
1135
+ readonly schematicbuilderwrapper_build: (a: number) => [number, number, number];
1136
+ readonly schematicbuilderwrapper_fromTemplate: (a: number, b: number) => [number, number, number];
1137
+ readonly schematicbuilderwrapper_map: (a: number, b: number, c: number, d: number) => number;
1138
+ readonly schematicbuilderwrapper_name: (a: number, b: number, c: number) => number;
1139
+ readonly schematicbuilderwrapper_new: () => number;
1128
1140
  readonly simulationoptionswrapper_addCustomIo: (a: number, b: number, c: number, d: number) => void;
1129
1141
  readonly simulationoptionswrapper_clearCustomIo: (a: number) => void;
1130
1142
  readonly simulationoptionswrapper_io_only: (a: number) => number;
@@ -1173,66 +1185,8 @@ export interface InitOutput {
1173
1185
  readonly sortstrategywrapper_yDescXZ: () => number;
1174
1186
  readonly sortstrategywrapper_zyx: () => number;
1175
1187
  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;
1233
1188
  readonly __wbg_blockstatewrapper_free: (a: number, b: number) => void;
1234
1189
  readonly __wbg_lazychunkiterator_free: (a: number, b: number) => void;
1235
- readonly __wbg_schematicbuilderwrapper_free: (a: number, b: number) => void;
1236
1190
  readonly __wbg_schematicwrapper_free: (a: number, b: number) => void;
1237
1191
  readonly blockstatewrapper_name: (a: number) => [number, number];
1238
1192
  readonly blockstatewrapper_new: (a: number, b: number) => number;
@@ -1246,11 +1200,6 @@ export interface InitOutput {
1246
1200
  readonly lazychunkiterator_reset: (a: number) => void;
1247
1201
  readonly lazychunkiterator_skip_to: (a: number, b: number) => void;
1248
1202
  readonly lazychunkiterator_total_chunks: (a: number) => number;
1249
- readonly schematicbuilderwrapper_build: (a: number) => [number, number, number];
1250
- readonly schematicbuilderwrapper_fromTemplate: (a: number, b: number) => [number, number, number];
1251
- readonly schematicbuilderwrapper_map: (a: number, b: number, c: number, d: number) => number;
1252
- readonly schematicbuilderwrapper_name: (a: number, b: number, c: number) => number;
1253
- readonly schematicbuilderwrapper_new: () => number;
1254
1203
  readonly schematicwrapper_addDefinitionRegion: (a: number, b: number, c: number, d: number) => void;
1255
1204
  readonly schematicwrapper_blocks: (a: number) => any;
1256
1205
  readonly schematicwrapper_blocks_indices: (a: number) => any;
@@ -1298,13 +1247,17 @@ export interface InitOutput {
1298
1247
  readonly schematicwrapper_get_bounding_box: (a: number) => any;
1299
1248
  readonly schematicwrapper_get_chunk_blocks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
1300
1249
  readonly schematicwrapper_get_chunk_blocks_indices: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
1250
+ readonly schematicwrapper_get_default_format_version: (a: number, b: number) => [number, number];
1301
1251
  readonly schematicwrapper_get_default_region_palette: (a: number) => any;
1302
1252
  readonly schematicwrapper_get_dimensions: (a: number) => [number, number];
1253
+ readonly schematicwrapper_get_format_versions: (a: number, b: number) => any;
1303
1254
  readonly schematicwrapper_get_optimization_info: (a: number) => any;
1304
1255
  readonly schematicwrapper_get_palette: (a: number) => any;
1305
1256
  readonly schematicwrapper_get_palette_from_region: (a: number, b: number, c: number) => any;
1306
1257
  readonly schematicwrapper_get_region_bounding_box: (a: number, b: number, c: number) => any;
1307
1258
  readonly schematicwrapper_get_region_names: (a: number) => [number, number];
1259
+ readonly schematicwrapper_get_supported_export_formats: () => any;
1260
+ readonly schematicwrapper_get_supported_import_formats: () => any;
1308
1261
  readonly schematicwrapper_get_tight_bounds_max: (a: number) => [number, number];
1309
1262
  readonly schematicwrapper_get_tight_bounds_min: (a: number) => [number, number];
1310
1263
  readonly schematicwrapper_get_tight_dimensions: (a: number) => [number, number];
@@ -1318,6 +1271,7 @@ export interface InitOutput {
1318
1271
  readonly schematicwrapper_rotate_x: (a: number, b: number) => void;
1319
1272
  readonly schematicwrapper_rotate_y: (a: number, b: number) => void;
1320
1273
  readonly schematicwrapper_rotate_z: (a: number, b: number) => void;
1274
+ readonly schematicwrapper_save_as: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
1321
1275
  readonly schematicwrapper_setBlockWithNbt: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
1322
1276
  readonly schematicwrapper_set_block: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1323
1277
  readonly schematicwrapper_set_block_with_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
@@ -1326,6 +1280,62 @@ export interface InitOutput {
1326
1280
  readonly schematicwrapper_to_schematic_version: (a: number, b: number, c: number) => [number, number, number, number];
1327
1281
  readonly start: () => void;
1328
1282
  readonly schematicwrapper_updateRegion: (a: number, b: number, c: number, d: number) => void;
1283
+ readonly __wbg_blockposition_free: (a: number, b: number) => void;
1284
+ readonly __wbg_definitionregionwrapper_free: (a: number, b: number) => void;
1285
+ readonly __wbg_get_blockposition_x: (a: number) => number;
1286
+ readonly __wbg_get_blockposition_y: (a: number) => number;
1287
+ readonly __wbg_get_blockposition_z: (a: number) => number;
1288
+ readonly __wbg_set_blockposition_x: (a: number, b: number) => void;
1289
+ readonly __wbg_set_blockposition_y: (a: number, b: number) => void;
1290
+ readonly __wbg_set_blockposition_z: (a: number, b: number) => void;
1291
+ readonly blockposition_new: (a: number, b: number, c: number) => number;
1292
+ readonly definitionregionwrapper_addBounds: (a: number, b: any, c: any) => [number, number, number];
1293
+ readonly definitionregionwrapper_addFilter: (a: number, b: number, c: number) => [number, number, number];
1294
+ readonly definitionregionwrapper_addPoint: (a: number, b: number, c: number, d: number) => number;
1295
+ readonly definitionregionwrapper_boxCount: (a: number) => number;
1296
+ readonly definitionregionwrapper_center: (a: number) => any;
1297
+ readonly definitionregionwrapper_centerF32: (a: number) => any;
1298
+ readonly definitionregionwrapper_clone: (a: number) => number;
1299
+ readonly definitionregionwrapper_connectedComponents: (a: number) => number;
1300
+ readonly definitionregionwrapper_contains: (a: number, b: number, c: number, d: number) => number;
1301
+ readonly definitionregionwrapper_contract: (a: number, b: number) => number;
1302
+ readonly definitionregionwrapper_contracted: (a: number, b: number) => number;
1303
+ readonly definitionregionwrapper_copy: (a: number) => number;
1304
+ readonly definitionregionwrapper_dimensions: (a: number) => any;
1305
+ readonly definitionregionwrapper_excludeBlock: (a: number, b: number, c: number) => [number, number, number];
1306
+ readonly definitionregionwrapper_expand: (a: number, b: number, c: number, d: number) => number;
1307
+ readonly definitionregionwrapper_expanded: (a: number, b: number, c: number, d: number) => number;
1308
+ readonly definitionregionwrapper_filterByBlock: (a: number, b: number, c: number, d: number) => number;
1309
+ readonly definitionregionwrapper_filterByProperties: (a: number, b: number, c: any) => [number, number, number];
1310
+ readonly definitionregionwrapper_fromBoundingBoxes: (a: any) => [number, number, number];
1311
+ readonly definitionregionwrapper_fromBounds: (a: number, b: number) => number;
1312
+ readonly definitionregionwrapper_fromPositions: (a: any) => [number, number, number];
1313
+ readonly definitionregionwrapper_getAllMetadata: (a: number) => any;
1314
+ readonly definitionregionwrapper_getBlocks: (a: number) => [number, number, number];
1315
+ readonly definitionregionwrapper_getBounds: (a: number) => any;
1316
+ readonly definitionregionwrapper_getBox: (a: number, b: number) => any;
1317
+ readonly definitionregionwrapper_getBoxes: (a: number) => any;
1318
+ readonly definitionregionwrapper_getMetadata: (a: number, b: number, c: number) => any;
1319
+ readonly definitionregionwrapper_intersect: (a: number, b: number) => number;
1320
+ readonly definitionregionwrapper_intersected: (a: number, b: number) => number;
1321
+ readonly definitionregionwrapper_intersectsBounds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
1322
+ readonly definitionregionwrapper_isContiguous: (a: number) => number;
1323
+ readonly definitionregionwrapper_isEmpty: (a: number) => number;
1324
+ readonly definitionregionwrapper_merge: (a: number, b: number) => number;
1325
+ readonly definitionregionwrapper_metadataKeys: (a: number) => any;
1326
+ readonly definitionregionwrapper_new: () => number;
1327
+ readonly definitionregionwrapper_positions: (a: number) => any;
1328
+ readonly definitionregionwrapper_positionsSorted: (a: number) => any;
1329
+ readonly definitionregionwrapper_setColor: (a: number, b: number) => number;
1330
+ readonly definitionregionwrapper_setMetadata: (a: number, b: number, c: number, d: number, e: number) => number;
1331
+ readonly definitionregionwrapper_shift: (a: number, b: number, c: number, d: number) => number;
1332
+ readonly definitionregionwrapper_shifted: (a: number, b: number, c: number, d: number) => number;
1333
+ readonly definitionregionwrapper_simplify: (a: number) => number;
1334
+ readonly definitionregionwrapper_subtract: (a: number, b: number) => number;
1335
+ readonly definitionregionwrapper_subtracted: (a: number, b: number) => number;
1336
+ readonly definitionregionwrapper_union: (a: number, b: number) => number;
1337
+ readonly definitionregionwrapper_unionInto: (a: number, b: number) => number;
1338
+ readonly definitionregionwrapper_volume: (a: number) => number;
1329
1339
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1330
1340
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1331
1341
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Nano nano@schem.at"
6
6
  ],
7
7
  "description": "A high-performance Minecraft schematic parser and utility library",
8
- "version": "0.1.135",
8
+ "version": "0.1.138",
9
9
  "license": "AGPL-3.0-only",
10
10
  "repository": {
11
11
  "type": "git",