nucleation 0.1.67 → 0.1.68

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.
@@ -514,6 +514,23 @@ export class SchematicWrapper {
514
514
  const ret = wasm.schematicwrapper_get_palette_from_region(this.__wbg_ptr, ptr0, len0);
515
515
  return ret;
516
516
  }
517
+ /**
518
+ * @returns {any}
519
+ */
520
+ get_bounding_box() {
521
+ const ret = wasm.schematicwrapper_get_bounding_box(this.__wbg_ptr);
522
+ return ret;
523
+ }
524
+ /**
525
+ * @param {string} region_name
526
+ * @returns {any}
527
+ */
528
+ get_region_bounding_box(region_name) {
529
+ const ptr0 = passStringToWasm0(region_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
530
+ const len0 = WASM_VECTOR_LEN;
531
+ const ret = wasm.schematicwrapper_get_region_bounding_box(this.__wbg_ptr, ptr0, len0);
532
+ return ret;
533
+ }
517
534
  /**
518
535
  * @param {number} x
519
536
  * @param {number} y
@@ -791,6 +808,10 @@ function __wbg_get_imports() {
791
808
  const ret = Date.now();
792
809
  return ret;
793
810
  };
811
+ imports.wbg.__wbg_of_4a05197bfc89556f = function(arg0, arg1, arg2) {
812
+ const ret = Array.of(arg0, arg1, arg2);
813
+ return ret;
814
+ };
794
815
  imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
795
816
  const ret = arg0.push(arg1);
796
817
  return ret;
package/nucleation.d.ts CHANGED
@@ -29,6 +29,8 @@ export class SchematicWrapper {
29
29
  get_available_schematic_versions(): Array<any>;
30
30
  get_palette(): any;
31
31
  get_palette_from_region(region_name: string): any;
32
+ get_bounding_box(): any;
33
+ get_region_bounding_box(region_name: string): any;
32
34
  set_block(x: number, y: number, z: number, block_name: string): void;
33
35
  copy_region(from_schematic: SchematicWrapper, min_x: number, min_y: number, min_z: number, max_x: number, max_y: number, max_z: number, target_x: number, target_y: number, target_z: number, excluded_blocks: any): void;
34
36
  set_block_with_properties(x: number, y: number, z: number, block_name: string, properties: any): void;
@@ -72,6 +74,8 @@ export interface InitOutput {
72
74
  readonly schematicwrapper_get_available_schematic_versions: (a: number) => any;
73
75
  readonly schematicwrapper_get_palette: (a: number) => any;
74
76
  readonly schematicwrapper_get_palette_from_region: (a: number, b: number, c: number) => any;
77
+ readonly schematicwrapper_get_bounding_box: (a: number) => any;
78
+ readonly schematicwrapper_get_region_bounding_box: (a: number, b: number, c: number) => any;
75
79
  readonly schematicwrapper_set_block: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
76
80
  readonly schematicwrapper_copy_region: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: any) => [number, number];
77
81
  readonly schematicwrapper_set_block_with_properties: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number];
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.67",
8
+ "version": "0.1.68",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",