geo-polygonize 0.56.0 → 0.58.0

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.
@@ -8,6 +8,7 @@ export class PolygonizerWasmError {
8
8
  constructor(name: string, message: string);
9
9
  readonly message: string;
10
10
  readonly name: string;
11
+ readonly normalized: any;
11
12
  }
12
13
 
13
14
  export class WasmPolygonResult {
@@ -87,6 +88,7 @@ export interface InitOutput {
87
88
  readonly polygonizerwasmerror_message: (a: number) => [number, number];
88
89
  readonly polygonizerwasmerror_name: (a: number) => [number, number];
89
90
  readonly polygonizerwasmerror_new: (a: number, b: number, c: number, d: number) => number;
91
+ readonly polygonizerwasmerror_normalized: (a: number) => any;
90
92
  readonly wasmpolygonresult_coords_len: (a: number) => number;
91
93
  readonly wasmpolygonresult_coords_ptr: (a: number) => number;
92
94
  readonly wasmpolygonresult_cut_edges: (a: number) => any;
@@ -14,6 +14,7 @@ export const polygonize_geoarrow: (a: number, b: number, c: number, d: number, e
14
14
  export const polygonizerwasmerror_message: (a: number) => [number, number];
15
15
  export const polygonizerwasmerror_name: (a: number) => [number, number];
16
16
  export const polygonizerwasmerror_new: (a: number, b: number, c: number, d: number) => number;
17
+ export const polygonizerwasmerror_normalized: (a: number) => any;
17
18
  export const wasmpolygonresult_coords_len: (a: number) => number;
18
19
  export const wasmpolygonresult_coords_ptr: (a: number) => number;
19
20
  export const wasmpolygonresult_cut_edges: (a: number) => any;
@@ -161,6 +161,13 @@ class PolygonizerWasmError {
161
161
  PolygonizerWasmErrorFinalization.register(this, this.__wbg_ptr, this);
162
162
  return this;
163
163
  }
164
+ /**
165
+ * @returns {any}
166
+ */
167
+ get normalized() {
168
+ const ret = wasm.polygonizerwasmerror_normalized(this.__wbg_ptr);
169
+ return ret;
170
+ }
164
171
  }
165
172
  if (Symbol.dispose) PolygonizerWasmError.prototype[Symbol.dispose] = PolygonizerWasmError.prototype.free;
166
173
 
@@ -740,10 +747,6 @@ function __wbg_get_imports(memory) {
740
747
  const ret = new Error();
741
748
  return ret;
742
749
  },
743
- __wbg_new_49d5571bd3f0c4d4: function() {
744
- const ret = new Map();
745
- return ret;
746
- },
747
750
  __wbg_new_5f486cdf45a04d78: function(arg0) {
748
751
  const ret = new Uint8Array(arg0);
749
752
  return ret;
@@ -772,6 +775,10 @@ function __wbg_get_imports(memory) {
772
775
  const ret = arg0.now();
773
776
  return ret;
774
777
  },
778
+ __wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
779
+ const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
780
+ return ret;
781
+ }, arguments); },
775
782
  __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
776
783
  const ret = arg0.performance;
777
784
  return ret;
@@ -789,10 +796,6 @@ function __wbg_get_imports(memory) {
789
796
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
790
797
  arg0[arg1] = arg2;
791
798
  },
792
- __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
793
- const ret = arg0.set(arg1, arg2);
794
- return ret;
795
- },
796
799
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
797
800
  const ret = arg1.stack;
798
801
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -8,6 +8,7 @@ export class PolygonizerWasmError {
8
8
  constructor(name: string, message: string);
9
9
  readonly message: string;
10
10
  readonly name: string;
11
+ readonly normalized: any;
11
12
  }
12
13
 
13
14
  export class WasmPolygonResult {
@@ -99,6 +100,7 @@ export interface InitOutput {
99
100
  readonly polygonizerwasmerror_message: (a: number) => [number, number];
100
101
  readonly polygonizerwasmerror_name: (a: number) => [number, number];
101
102
  readonly polygonizerwasmerror_new: (a: number, b: number, c: number, d: number) => number;
103
+ readonly polygonizerwasmerror_normalized: (a: number) => any;
102
104
  readonly wasmpolygonresult_coords_len: (a: number) => number;
103
105
  readonly wasmpolygonresult_coords_ptr: (a: number) => number;
104
106
  readonly wasmpolygonresult_cut_edges: (a: number) => any;
@@ -13,6 +13,7 @@ export const polygonize_geoarrow: (a: number, b: number, c: number, d: number, e
13
13
  export const polygonizerwasmerror_message: (a: number) => [number, number];
14
14
  export const polygonizerwasmerror_name: (a: number) => [number, number];
15
15
  export const polygonizerwasmerror_new: (a: number, b: number, c: number, d: number) => number;
16
+ export const polygonizerwasmerror_normalized: (a: number) => any;
16
17
  export const wasmpolygonresult_coords_len: (a: number) => number;
17
18
  export const wasmpolygonresult_coords_ptr: (a: number) => number;
18
19
  export const wasmpolygonresult_cut_edges: (a: number) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geo-polygonize",
3
- "version": "0.56.0",
3
+ "version": "0.58.0",
4
4
  "description": "A native Rust port of the JTS/GEOS polygonization algorithm (Wasm)",
5
5
  "type": "module",
6
6
  "scripts": {