geo-polygonize 0.10.0 → 0.11.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.
Binary file
Binary file
@@ -379,6 +379,23 @@ function polygonize$1(geojson_str, node_input, snap_grid_size, extract_only_poly
379
379
  }
380
380
  }
381
381
 
382
+ /**
383
+ * @param {Uint8Array} ipc_bytes
384
+ * @param {any} options_val
385
+ * @returns {Uint8Array}
386
+ */
387
+ function polygonizeGeoArrowWithOptions$1(ipc_bytes, options_val) {
388
+ const ptr0 = passArray8ToWasm0$1(ipc_bytes, wasm$1.__wbindgen_malloc);
389
+ const len0 = WASM_VECTOR_LEN$1;
390
+ const ret = wasm$1.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
391
+ if (ret[3]) {
392
+ throw takeFromExternrefTable0$1(ret[2]);
393
+ }
394
+ var v2 = getArrayU8FromWasm0$1(ret[0], ret[1]).slice();
395
+ wasm$1.__wbindgen_free(ret[0], ret[1] * 1, 1);
396
+ return v2;
397
+ }
398
+
382
399
  /**
383
400
  * @param {string} geojson_str
384
401
  * @param {any} options_val
@@ -716,6 +733,7 @@ var scalarExports = /*#__PURE__*/Object.freeze({
716
733
  default: __wbg_init$1,
717
734
  initSync: initSync$1,
718
735
  polygonize: polygonize$1,
736
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions$1,
719
737
  polygonizeWithOptions: polygonizeWithOptions$1,
720
738
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer$1,
721
739
  polygonize_buffers: polygonize_buffers$1,
@@ -1100,6 +1118,23 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
1100
1118
  }
1101
1119
  }
1102
1120
 
1121
+ /**
1122
+ * @param {Uint8Array} ipc_bytes
1123
+ * @param {any} options_val
1124
+ * @returns {Uint8Array}
1125
+ */
1126
+ function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
1127
+ const ptr0 = passArray8ToWasm0(ipc_bytes, wasm.__wbindgen_malloc);
1128
+ const len0 = WASM_VECTOR_LEN;
1129
+ const ret = wasm.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
1130
+ if (ret[3]) {
1131
+ throw takeFromExternrefTable0(ret[2]);
1132
+ }
1133
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1134
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1135
+ return v2;
1136
+ }
1137
+
1103
1138
  /**
1104
1139
  * @param {string} geojson_str
1105
1140
  * @param {any} options_val
@@ -1437,6 +1472,7 @@ var simdExports = /*#__PURE__*/Object.freeze({
1437
1472
  default: __wbg_init,
1438
1473
  initSync: initSync,
1439
1474
  polygonize: polygonize,
1475
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
1440
1476
  polygonizeWithOptions: polygonizeWithOptions,
1441
1477
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
1442
1478
  polygonize_buffers: polygonize_buffers,
@@ -1470,6 +1506,7 @@ exports.WasmPolygonResult = WasmPolygonResult$1;
1470
1506
  exports.initBest = initBest;
1471
1507
  exports.initSync = initSync$1;
1472
1508
  exports.polygonize = polygonize$1;
1509
+ exports.polygonizeGeoArrowWithOptions = polygonizeGeoArrowWithOptions$1;
1473
1510
  exports.polygonizeWithOptions = polygonizeWithOptions$1;
1474
1511
  exports.polygonizeWithOptionsBuffer = polygonizeWithOptionsBuffer$1;
1475
1512
  exports.polygonize_buffers = polygonize_buffers$1;
@@ -376,6 +376,23 @@ function polygonize$1(geojson_str, node_input, snap_grid_size, extract_only_poly
376
376
  }
377
377
  }
378
378
 
379
+ /**
380
+ * @param {Uint8Array} ipc_bytes
381
+ * @param {any} options_val
382
+ * @returns {Uint8Array}
383
+ */
384
+ function polygonizeGeoArrowWithOptions$1(ipc_bytes, options_val) {
385
+ const ptr0 = passArray8ToWasm0$1(ipc_bytes, wasm$1.__wbindgen_malloc);
386
+ const len0 = WASM_VECTOR_LEN$1;
387
+ const ret = wasm$1.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
388
+ if (ret[3]) {
389
+ throw takeFromExternrefTable0$1(ret[2]);
390
+ }
391
+ var v2 = getArrayU8FromWasm0$1(ret[0], ret[1]).slice();
392
+ wasm$1.__wbindgen_free(ret[0], ret[1] * 1, 1);
393
+ return v2;
394
+ }
395
+
379
396
  /**
380
397
  * @param {string} geojson_str
381
398
  * @param {any} options_val
@@ -713,6 +730,7 @@ var scalarExports = /*#__PURE__*/Object.freeze({
713
730
  default: __wbg_init$1,
714
731
  initSync: initSync$1,
715
732
  polygonize: polygonize$1,
733
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions$1,
716
734
  polygonizeWithOptions: polygonizeWithOptions$1,
717
735
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer$1,
718
736
  polygonize_buffers: polygonize_buffers$1,
@@ -1097,6 +1115,23 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
1097
1115
  }
1098
1116
  }
1099
1117
 
1118
+ /**
1119
+ * @param {Uint8Array} ipc_bytes
1120
+ * @param {any} options_val
1121
+ * @returns {Uint8Array}
1122
+ */
1123
+ function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
1124
+ const ptr0 = passArray8ToWasm0(ipc_bytes, wasm.__wbindgen_malloc);
1125
+ const len0 = WASM_VECTOR_LEN;
1126
+ const ret = wasm.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
1127
+ if (ret[3]) {
1128
+ throw takeFromExternrefTable0(ret[2]);
1129
+ }
1130
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1131
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1132
+ return v2;
1133
+ }
1134
+
1100
1135
  /**
1101
1136
  * @param {string} geojson_str
1102
1137
  * @param {any} options_val
@@ -1434,6 +1469,7 @@ var simdExports = /*#__PURE__*/Object.freeze({
1434
1469
  default: __wbg_init,
1435
1470
  initSync: initSync,
1436
1471
  polygonize: polygonize,
1472
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
1437
1473
  polygonizeWithOptions: polygonizeWithOptions,
1438
1474
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
1439
1475
  polygonize_buffers: polygonize_buffers,
@@ -1462,4 +1498,4 @@ async function initBest(scalarModule, simdModule) {
1462
1498
  }
1463
1499
  }
1464
1500
 
1465
- export { PolygonizerWasmError$1 as PolygonizerWasmError, WasmPolygonResult$1 as WasmPolygonResult, initBest, initSync$1 as initSync, polygonize$1 as polygonize, polygonizeWithOptions$1 as polygonizeWithOptions, polygonizeWithOptionsBuffer$1 as polygonizeWithOptionsBuffer, polygonize_buffers$1 as polygonize_buffers, polygonize_geoarrow$1 as polygonize_geoarrow };
1501
+ export { PolygonizerWasmError$1 as PolygonizerWasmError, WasmPolygonResult$1 as WasmPolygonResult, initBest, initSync$1 as initSync, polygonize$1 as polygonize, polygonizeGeoArrowWithOptions$1 as polygonizeGeoArrowWithOptions, polygonizeWithOptions$1 as polygonizeWithOptions, polygonizeWithOptionsBuffer$1 as polygonizeWithOptionsBuffer, polygonize_buffers$1 as polygonize_buffers, polygonize_geoarrow$1 as polygonize_geoarrow };