geo-polygonize 0.52.0 → 0.53.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.
@@ -28,6 +28,7 @@ export class WasmPolygonResult {
28
28
  readonly diagnostics: any;
29
29
  readonly invalid_rings: any;
30
30
  readonly provenance: any;
31
+ readonly topology_fingerprint: any;
31
32
  }
32
33
 
33
34
  export function polygonize(geojson_str: string, node_input?: boolean | null, snap_grid_size?: number | null, extract_only_polygonal?: boolean | null, report_mode?: boolean | null): string;
@@ -85,6 +86,7 @@ export interface InitOutput {
85
86
  readonly wasmpolygonresult_ring_offsets_len: (a: number) => number;
86
87
  readonly wasmpolygonresult_ring_offsets_ptr: (a: number) => number;
87
88
  readonly wasmpolygonresult_stride: (a: number) => number;
89
+ readonly wasmpolygonresult_topology_fingerprint: (a: number) => any;
88
90
  readonly polygonize_ffi: (a: number, b: number, c: number, d: number, e: number) => number;
89
91
  readonly polygonize_with_options_ffi: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
90
92
  readonly polygonize_result_free: () => void;
@@ -26,6 +26,7 @@ export const wasmpolygonresult_provenance: (a: number) => any;
26
26
  export const wasmpolygonresult_ring_offsets_len: (a: number) => number;
27
27
  export const wasmpolygonresult_ring_offsets_ptr: (a: number) => number;
28
28
  export const wasmpolygonresult_stride: (a: number) => number;
29
+ export const wasmpolygonresult_topology_fingerprint: (a: number) => any;
29
30
  export const polygonize_ffi: (a: number, b: number, c: number, d: number, e: number) => number;
30
31
  export const polygonize_with_options_ffi: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
31
32
  export const polygonize_result_free: () => void;
@@ -280,6 +280,13 @@ class WasmPolygonResult {
280
280
  const ret = wasm.wasmpolygonresult_stride(this.__wbg_ptr);
281
281
  return ret;
282
282
  }
283
+ /**
284
+ * @returns {any}
285
+ */
286
+ get topology_fingerprint() {
287
+ const ret = wasm.wasmpolygonresult_topology_fingerprint(this.__wbg_ptr);
288
+ return ret;
289
+ }
283
290
  }
284
291
  if (Symbol.dispose) WasmPolygonResult.prototype[Symbol.dispose] = WasmPolygonResult.prototype.free;
285
292
 
@@ -676,6 +683,10 @@ function __wbg_get_imports(memory) {
676
683
  const ret = new Error();
677
684
  return ret;
678
685
  },
686
+ __wbg_new_49d5571bd3f0c4d4: function() {
687
+ const ret = new Map();
688
+ return ret;
689
+ },
679
690
  __wbg_new_5f486cdf45a04d78: function(arg0) {
680
691
  const ret = new Uint8Array(arg0);
681
692
  return ret;
@@ -721,6 +732,10 @@ function __wbg_get_imports(memory) {
721
732
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
722
733
  arg0[arg1] = arg2;
723
734
  },
735
+ __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
736
+ const ret = arg0.set(arg1, arg2);
737
+ return ret;
738
+ },
724
739
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
725
740
  const ret = arg1.stack;
726
741
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -28,6 +28,7 @@ export class WasmPolygonResult {
28
28
  readonly diagnostics: any;
29
29
  readonly invalid_rings: any;
30
30
  readonly provenance: any;
31
+ readonly topology_fingerprint: any;
31
32
  }
32
33
 
33
34
  export function initThreadPool(num_threads: number): Promise<any>;
@@ -97,6 +98,7 @@ export interface InitOutput {
97
98
  readonly wasmpolygonresult_ring_offsets_len: (a: number) => number;
98
99
  readonly wasmpolygonresult_ring_offsets_ptr: (a: number) => number;
99
100
  readonly wasmpolygonresult_stride: (a: number) => number;
101
+ readonly wasmpolygonresult_topology_fingerprint: (a: number) => any;
100
102
  readonly polygonize_ffi: (a: number, b: number, c: number, d: number, e: number) => number;
101
103
  readonly polygonize_with_options_ffi: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
102
104
  readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
@@ -25,6 +25,7 @@ export const wasmpolygonresult_provenance: (a: number) => any;
25
25
  export const wasmpolygonresult_ring_offsets_len: (a: number) => number;
26
26
  export const wasmpolygonresult_ring_offsets_ptr: (a: number) => number;
27
27
  export const wasmpolygonresult_stride: (a: number) => number;
28
+ export const wasmpolygonresult_topology_fingerprint: (a: number) => any;
28
29
  export const polygonize_ffi: (a: number, b: number, c: number, d: number, e: number) => number;
29
30
  export const polygonize_with_options_ffi: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
30
31
  export const __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geo-polygonize",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "A native Rust port of the JTS/GEOS polygonization algorithm (Wasm)",
5
5
  "type": "module",
6
6
  "scripts": {