geo-polygonize 0.10.0 → 0.12.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.
@@ -427,6 +427,13 @@ class WasmPolygonResult {
427
427
  const ret = wasm.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
428
428
  return ret >>> 0;
429
429
  }
430
+ /**
431
+ * @returns {any}
432
+ */
433
+ provenance() {
434
+ const ret = wasm.wasmpolygonresult_provenance(this.__wbg_ptr);
435
+ return ret;
436
+ }
430
437
  /**
431
438
  * @returns {number}
432
439
  */
@@ -503,6 +510,23 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
503
510
  }
504
511
  }
505
512
 
513
+ /**
514
+ * @param {Uint8Array} ipc_bytes
515
+ * @param {any} options_val
516
+ * @returns {Uint8Array}
517
+ */
518
+ function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
519
+ const ptr0 = passArray8ToWasm0(ipc_bytes, wasm.__wbindgen_malloc);
520
+ const len0 = WASM_VECTOR_LEN;
521
+ const ret = wasm.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
522
+ if (ret[3]) {
523
+ throw takeFromExternrefTable0(ret[2]);
524
+ }
525
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
526
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
527
+ return v2;
528
+ }
529
+
506
530
  /**
507
531
  * @param {string} geojson_str
508
532
  * @param {any} options_val
@@ -801,6 +825,14 @@ function __wbg_get_imports() {
801
825
  const ret = arg0.length;
802
826
  return ret;
803
827
  };
828
+ imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
829
+ const ret = new Object();
830
+ return ret;
831
+ };
832
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
833
+ const ret = new Array();
834
+ return ret;
835
+ };
804
836
  imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
805
837
  const ret = new Uint8Array(arg0);
806
838
  return ret;
@@ -820,6 +852,12 @@ function __wbg_get_imports() {
820
852
  imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
821
853
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
822
854
  };
855
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
856
+ arg0[arg1] = arg2;
857
+ };
858
+ imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
859
+ arg0[arg1 >>> 0] = arg2;
860
+ };
823
861
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
824
862
  const ret = arg1.stack;
825
863
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -852,6 +890,11 @@ function __wbg_get_imports() {
852
890
  const ret = getStringFromWasm0(arg0, arg1);
853
891
  return ret;
854
892
  };
893
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
894
+ // Cast intrinsic for `F64 -> Externref`.
895
+ const ret = arg0;
896
+ return ret;
897
+ };
855
898
  imports.wbg.__wbindgen_init_externref_table = function() {
856
899
  const table = wasm.__wbindgen_externrefs;
857
900
  const offset = table.grow(4);
@@ -932,6 +975,7 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
932
975
  initSync: initSync,
933
976
  initThreadPool: initThreadPool,
934
977
  polygonize: polygonize,
978
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
935
979
  polygonizeWithOptions: polygonizeWithOptions,
936
980
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
937
981
  polygonize_buffers: polygonize_buffers,
@@ -940,4 +984,4 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
940
984
  wbg_rayon_start_worker: wbg_rayon_start_worker
941
985
  });
942
986
 
943
- export { PolygonizerWasmError, WasmPolygonResult, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
987
+ export { PolygonizerWasmError, WasmPolygonResult, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geo-polygonize",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "A native Rust port of the JTS/GEOS polygonization algorithm (Wasm)",
5
5
  "type": "module",
6
6
  "scripts": {