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.
Binary file
Binary file
@@ -312,6 +312,13 @@ let WasmPolygonResult$1 = class WasmPolygonResult {
312
312
  const ret = wasm$1.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
313
313
  return ret >>> 0;
314
314
  }
315
+ /**
316
+ * @returns {any}
317
+ */
318
+ provenance() {
319
+ const ret = wasm$1.wasmpolygonresult_provenance(this.__wbg_ptr);
320
+ return ret;
321
+ }
315
322
  /**
316
323
  * @returns {number}
317
324
  */
@@ -379,6 +386,23 @@ function polygonize$1(geojson_str, node_input, snap_grid_size, extract_only_poly
379
386
  }
380
387
  }
381
388
 
389
+ /**
390
+ * @param {Uint8Array} ipc_bytes
391
+ * @param {any} options_val
392
+ * @returns {Uint8Array}
393
+ */
394
+ function polygonizeGeoArrowWithOptions$1(ipc_bytes, options_val) {
395
+ const ptr0 = passArray8ToWasm0$1(ipc_bytes, wasm$1.__wbindgen_malloc);
396
+ const len0 = WASM_VECTOR_LEN$1;
397
+ const ret = wasm$1.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
398
+ if (ret[3]) {
399
+ throw takeFromExternrefTable0$1(ret[2]);
400
+ }
401
+ var v2 = getArrayU8FromWasm0$1(ret[0], ret[1]).slice();
402
+ wasm$1.__wbindgen_free(ret[0], ret[1] * 1, 1);
403
+ return v2;
404
+ }
405
+
382
406
  /**
383
407
  * @param {string} geojson_str
384
408
  * @param {any} options_val
@@ -610,6 +634,14 @@ function __wbg_get_imports$1() {
610
634
  const ret = arg0.length;
611
635
  return ret;
612
636
  };
637
+ imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
638
+ const ret = new Object();
639
+ return ret;
640
+ };
641
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
642
+ const ret = new Array();
643
+ return ret;
644
+ };
613
645
  imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
614
646
  const ret = new Uint8Array(arg0);
615
647
  return ret;
@@ -625,6 +657,12 @@ function __wbg_get_imports$1() {
625
657
  imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
626
658
  Uint8Array.prototype.set.call(getArrayU8FromWasm0$1(arg0, arg1), arg2);
627
659
  };
660
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
661
+ arg0[arg1] = arg2;
662
+ };
663
+ imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
664
+ arg0[arg1 >>> 0] = arg2;
665
+ };
628
666
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
629
667
  const ret = arg1.stack;
630
668
  const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
@@ -637,6 +675,11 @@ function __wbg_get_imports$1() {
637
675
  const ret = getStringFromWasm0$1(arg0, arg1);
638
676
  return ret;
639
677
  };
678
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
679
+ // Cast intrinsic for `F64 -> Externref`.
680
+ const ret = arg0;
681
+ return ret;
682
+ };
640
683
  imports.wbg.__wbindgen_init_externref_table = function() {
641
684
  const table = wasm$1.__wbindgen_externrefs;
642
685
  const offset = table.grow(4);
@@ -716,6 +759,7 @@ var scalarExports = /*#__PURE__*/Object.freeze({
716
759
  default: __wbg_init$1,
717
760
  initSync: initSync$1,
718
761
  polygonize: polygonize$1,
762
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions$1,
719
763
  polygonizeWithOptions: polygonizeWithOptions$1,
720
764
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer$1,
721
765
  polygonize_buffers: polygonize_buffers$1,
@@ -1033,6 +1077,13 @@ class WasmPolygonResult {
1033
1077
  const ret = wasm.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
1034
1078
  return ret >>> 0;
1035
1079
  }
1080
+ /**
1081
+ * @returns {any}
1082
+ */
1083
+ provenance() {
1084
+ const ret = wasm.wasmpolygonresult_provenance(this.__wbg_ptr);
1085
+ return ret;
1086
+ }
1036
1087
  /**
1037
1088
  * @returns {number}
1038
1089
  */
@@ -1100,6 +1151,23 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
1100
1151
  }
1101
1152
  }
1102
1153
 
1154
+ /**
1155
+ * @param {Uint8Array} ipc_bytes
1156
+ * @param {any} options_val
1157
+ * @returns {Uint8Array}
1158
+ */
1159
+ function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
1160
+ const ptr0 = passArray8ToWasm0(ipc_bytes, wasm.__wbindgen_malloc);
1161
+ const len0 = WASM_VECTOR_LEN;
1162
+ const ret = wasm.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
1163
+ if (ret[3]) {
1164
+ throw takeFromExternrefTable0(ret[2]);
1165
+ }
1166
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1167
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1168
+ return v2;
1169
+ }
1170
+
1103
1171
  /**
1104
1172
  * @param {string} geojson_str
1105
1173
  * @param {any} options_val
@@ -1331,6 +1399,14 @@ function __wbg_get_imports() {
1331
1399
  const ret = arg0.length;
1332
1400
  return ret;
1333
1401
  };
1402
+ imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
1403
+ const ret = new Object();
1404
+ return ret;
1405
+ };
1406
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
1407
+ const ret = new Array();
1408
+ return ret;
1409
+ };
1334
1410
  imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
1335
1411
  const ret = new Uint8Array(arg0);
1336
1412
  return ret;
@@ -1346,6 +1422,12 @@ function __wbg_get_imports() {
1346
1422
  imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
1347
1423
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1348
1424
  };
1425
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1426
+ arg0[arg1] = arg2;
1427
+ };
1428
+ imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
1429
+ arg0[arg1 >>> 0] = arg2;
1430
+ };
1349
1431
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
1350
1432
  const ret = arg1.stack;
1351
1433
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1358,6 +1440,11 @@ function __wbg_get_imports() {
1358
1440
  const ret = getStringFromWasm0(arg0, arg1);
1359
1441
  return ret;
1360
1442
  };
1443
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1444
+ // Cast intrinsic for `F64 -> Externref`.
1445
+ const ret = arg0;
1446
+ return ret;
1447
+ };
1361
1448
  imports.wbg.__wbindgen_init_externref_table = function() {
1362
1449
  const table = wasm.__wbindgen_externrefs;
1363
1450
  const offset = table.grow(4);
@@ -1437,6 +1524,7 @@ var simdExports = /*#__PURE__*/Object.freeze({
1437
1524
  default: __wbg_init,
1438
1525
  initSync: initSync,
1439
1526
  polygonize: polygonize,
1527
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
1440
1528
  polygonizeWithOptions: polygonizeWithOptions,
1441
1529
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
1442
1530
  polygonize_buffers: polygonize_buffers,
@@ -1470,6 +1558,7 @@ exports.WasmPolygonResult = WasmPolygonResult$1;
1470
1558
  exports.initBest = initBest;
1471
1559
  exports.initSync = initSync$1;
1472
1560
  exports.polygonize = polygonize$1;
1561
+ exports.polygonizeGeoArrowWithOptions = polygonizeGeoArrowWithOptions$1;
1473
1562
  exports.polygonizeWithOptions = polygonizeWithOptions$1;
1474
1563
  exports.polygonizeWithOptionsBuffer = polygonizeWithOptionsBuffer$1;
1475
1564
  exports.polygonize_buffers = polygonize_buffers$1;
@@ -309,6 +309,13 @@ let WasmPolygonResult$1 = class WasmPolygonResult {
309
309
  const ret = wasm$1.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
310
310
  return ret >>> 0;
311
311
  }
312
+ /**
313
+ * @returns {any}
314
+ */
315
+ provenance() {
316
+ const ret = wasm$1.wasmpolygonresult_provenance(this.__wbg_ptr);
317
+ return ret;
318
+ }
312
319
  /**
313
320
  * @returns {number}
314
321
  */
@@ -376,6 +383,23 @@ function polygonize$1(geojson_str, node_input, snap_grid_size, extract_only_poly
376
383
  }
377
384
  }
378
385
 
386
+ /**
387
+ * @param {Uint8Array} ipc_bytes
388
+ * @param {any} options_val
389
+ * @returns {Uint8Array}
390
+ */
391
+ function polygonizeGeoArrowWithOptions$1(ipc_bytes, options_val) {
392
+ const ptr0 = passArray8ToWasm0$1(ipc_bytes, wasm$1.__wbindgen_malloc);
393
+ const len0 = WASM_VECTOR_LEN$1;
394
+ const ret = wasm$1.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
395
+ if (ret[3]) {
396
+ throw takeFromExternrefTable0$1(ret[2]);
397
+ }
398
+ var v2 = getArrayU8FromWasm0$1(ret[0], ret[1]).slice();
399
+ wasm$1.__wbindgen_free(ret[0], ret[1] * 1, 1);
400
+ return v2;
401
+ }
402
+
379
403
  /**
380
404
  * @param {string} geojson_str
381
405
  * @param {any} options_val
@@ -607,6 +631,14 @@ function __wbg_get_imports$1() {
607
631
  const ret = arg0.length;
608
632
  return ret;
609
633
  };
634
+ imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
635
+ const ret = new Object();
636
+ return ret;
637
+ };
638
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
639
+ const ret = new Array();
640
+ return ret;
641
+ };
610
642
  imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
611
643
  const ret = new Uint8Array(arg0);
612
644
  return ret;
@@ -622,6 +654,12 @@ function __wbg_get_imports$1() {
622
654
  imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
623
655
  Uint8Array.prototype.set.call(getArrayU8FromWasm0$1(arg0, arg1), arg2);
624
656
  };
657
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
658
+ arg0[arg1] = arg2;
659
+ };
660
+ imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
661
+ arg0[arg1 >>> 0] = arg2;
662
+ };
625
663
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
626
664
  const ret = arg1.stack;
627
665
  const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
@@ -634,6 +672,11 @@ function __wbg_get_imports$1() {
634
672
  const ret = getStringFromWasm0$1(arg0, arg1);
635
673
  return ret;
636
674
  };
675
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
676
+ // Cast intrinsic for `F64 -> Externref`.
677
+ const ret = arg0;
678
+ return ret;
679
+ };
637
680
  imports.wbg.__wbindgen_init_externref_table = function() {
638
681
  const table = wasm$1.__wbindgen_externrefs;
639
682
  const offset = table.grow(4);
@@ -713,6 +756,7 @@ var scalarExports = /*#__PURE__*/Object.freeze({
713
756
  default: __wbg_init$1,
714
757
  initSync: initSync$1,
715
758
  polygonize: polygonize$1,
759
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions$1,
716
760
  polygonizeWithOptions: polygonizeWithOptions$1,
717
761
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer$1,
718
762
  polygonize_buffers: polygonize_buffers$1,
@@ -1030,6 +1074,13 @@ class WasmPolygonResult {
1030
1074
  const ret = wasm.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
1031
1075
  return ret >>> 0;
1032
1076
  }
1077
+ /**
1078
+ * @returns {any}
1079
+ */
1080
+ provenance() {
1081
+ const ret = wasm.wasmpolygonresult_provenance(this.__wbg_ptr);
1082
+ return ret;
1083
+ }
1033
1084
  /**
1034
1085
  * @returns {number}
1035
1086
  */
@@ -1097,6 +1148,23 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
1097
1148
  }
1098
1149
  }
1099
1150
 
1151
+ /**
1152
+ * @param {Uint8Array} ipc_bytes
1153
+ * @param {any} options_val
1154
+ * @returns {Uint8Array}
1155
+ */
1156
+ function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
1157
+ const ptr0 = passArray8ToWasm0(ipc_bytes, wasm.__wbindgen_malloc);
1158
+ const len0 = WASM_VECTOR_LEN;
1159
+ const ret = wasm.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
1160
+ if (ret[3]) {
1161
+ throw takeFromExternrefTable0(ret[2]);
1162
+ }
1163
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1164
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1165
+ return v2;
1166
+ }
1167
+
1100
1168
  /**
1101
1169
  * @param {string} geojson_str
1102
1170
  * @param {any} options_val
@@ -1328,6 +1396,14 @@ function __wbg_get_imports() {
1328
1396
  const ret = arg0.length;
1329
1397
  return ret;
1330
1398
  };
1399
+ imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
1400
+ const ret = new Object();
1401
+ return ret;
1402
+ };
1403
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
1404
+ const ret = new Array();
1405
+ return ret;
1406
+ };
1331
1407
  imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
1332
1408
  const ret = new Uint8Array(arg0);
1333
1409
  return ret;
@@ -1343,6 +1419,12 @@ function __wbg_get_imports() {
1343
1419
  imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
1344
1420
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1345
1421
  };
1422
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1423
+ arg0[arg1] = arg2;
1424
+ };
1425
+ imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
1426
+ arg0[arg1 >>> 0] = arg2;
1427
+ };
1346
1428
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
1347
1429
  const ret = arg1.stack;
1348
1430
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1355,6 +1437,11 @@ function __wbg_get_imports() {
1355
1437
  const ret = getStringFromWasm0(arg0, arg1);
1356
1438
  return ret;
1357
1439
  };
1440
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1441
+ // Cast intrinsic for `F64 -> Externref`.
1442
+ const ret = arg0;
1443
+ return ret;
1444
+ };
1358
1445
  imports.wbg.__wbindgen_init_externref_table = function() {
1359
1446
  const table = wasm.__wbindgen_externrefs;
1360
1447
  const offset = table.grow(4);
@@ -1434,6 +1521,7 @@ var simdExports = /*#__PURE__*/Object.freeze({
1434
1521
  default: __wbg_init,
1435
1522
  initSync: initSync,
1436
1523
  polygonize: polygonize,
1524
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
1437
1525
  polygonizeWithOptions: polygonizeWithOptions,
1438
1526
  polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
1439
1527
  polygonize_buffers: polygonize_buffers,
@@ -1462,4 +1550,4 @@ async function initBest(scalarModule, simdModule) {
1462
1550
  }
1463
1551
  }
1464
1552
 
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 };
1553
+ 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 };