geo-polygonize 0.9.0 → 0.10.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.
@@ -1,5 +1,70 @@
1
1
  let wasm$1;
2
2
 
3
+ function debugString$1(val) {
4
+ // primitive types
5
+ const type = typeof val;
6
+ if (type == 'number' || type == 'boolean' || val == null) {
7
+ return `${val}`;
8
+ }
9
+ if (type == 'string') {
10
+ return `"${val}"`;
11
+ }
12
+ if (type == 'symbol') {
13
+ const description = val.description;
14
+ if (description == null) {
15
+ return 'Symbol';
16
+ } else {
17
+ return `Symbol(${description})`;
18
+ }
19
+ }
20
+ if (type == 'function') {
21
+ const name = val.name;
22
+ if (typeof name == 'string' && name.length > 0) {
23
+ return `Function(${name})`;
24
+ } else {
25
+ return 'Function';
26
+ }
27
+ }
28
+ // objects
29
+ if (Array.isArray(val)) {
30
+ const length = val.length;
31
+ let debug = '[';
32
+ if (length > 0) {
33
+ debug += debugString$1(val[0]);
34
+ }
35
+ for(let i = 1; i < length; i++) {
36
+ debug += ', ' + debugString$1(val[i]);
37
+ }
38
+ debug += ']';
39
+ return debug;
40
+ }
41
+ // Test for built-in
42
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
43
+ let className;
44
+ if (builtInMatches && builtInMatches.length > 1) {
45
+ className = builtInMatches[1];
46
+ } else {
47
+ // Failed to match the standard '[object ClassName]'
48
+ return toString.call(val);
49
+ }
50
+ if (className == 'Object') {
51
+ // we're a user defined class or Object
52
+ // JSON.stringify avoids problems with cycles, and is generally much
53
+ // easier than looping through ownProperties of `val`.
54
+ try {
55
+ return 'Object(' + JSON.stringify(val) + ')';
56
+ } catch (_) {
57
+ return 'Object';
58
+ }
59
+ }
60
+ // errors
61
+ if (val instanceof Error) {
62
+ return `${val.name}: ${val.message}\n${val.stack}`;
63
+ }
64
+ // TODO we could test for more things here, like `Set`s and `Map`s.
65
+ return className;
66
+ }
67
+
3
68
  function getArrayU8FromWasm0$1(ptr, len) {
4
69
  ptr = ptr >>> 0;
5
70
  return getUint8ArrayMemory0$1().subarray(ptr / 1, ptr / 1 + len);
@@ -311,6 +376,51 @@ function polygonize$1(geojson_str, node_input, snap_grid_size, extract_only_poly
311
376
  }
312
377
  }
313
378
 
379
+ /**
380
+ * @param {string} geojson_str
381
+ * @param {any} options_val
382
+ * @returns {string}
383
+ */
384
+ function polygonizeWithOptions$1(geojson_str, options_val) {
385
+ let deferred3_0;
386
+ let deferred3_1;
387
+ try {
388
+ const ptr0 = passStringToWasm0$1(geojson_str, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
389
+ const len0 = WASM_VECTOR_LEN$1;
390
+ const ret = wasm$1.polygonizeWithOptions(ptr0, len0, options_val);
391
+ var ptr2 = ret[0];
392
+ var len2 = ret[1];
393
+ if (ret[3]) {
394
+ ptr2 = 0; len2 = 0;
395
+ throw takeFromExternrefTable0$1(ret[2]);
396
+ }
397
+ deferred3_0 = ptr2;
398
+ deferred3_1 = len2;
399
+ return getStringFromWasm0$1(ptr2, len2);
400
+ } finally {
401
+ wasm$1.__wbindgen_free(deferred3_0, deferred3_1, 1);
402
+ }
403
+ }
404
+
405
+ /**
406
+ * @param {Float64Array} coords
407
+ * @param {Uint32Array} offsets
408
+ * @param {number} stride
409
+ * @param {any} options_val
410
+ * @returns {WasmPolygonResult}
411
+ */
412
+ function polygonizeWithOptionsBuffer$1(coords, offsets, stride, options_val) {
413
+ const ptr0 = passArrayF64ToWasm0$1(coords, wasm$1.__wbindgen_malloc);
414
+ const len0 = WASM_VECTOR_LEN$1;
415
+ const ptr1 = passArray32ToWasm0$1(offsets, wasm$1.__wbindgen_malloc);
416
+ const len1 = WASM_VECTOR_LEN$1;
417
+ const ret = wasm$1.polygonizeWithOptionsBuffer(ptr0, len0, ptr1, len1, stride, options_val);
418
+ if (ret[2]) {
419
+ throw takeFromExternrefTable0$1(ret[1]);
420
+ }
421
+ return WasmPolygonResult$1.__wrap(ret[0]);
422
+ }
423
+
314
424
  /**
315
425
  * @param {Float64Array} coords
316
426
  * @param {Uint32Array} offsets
@@ -385,9 +495,71 @@ async function __wbg_load$1(module, imports) {
385
495
  function __wbg_get_imports$1() {
386
496
  const imports = {};
387
497
  imports.wbg = {};
498
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
499
+ const ret = Error(getStringFromWasm0$1(arg0, arg1));
500
+ return ret;
501
+ };
502
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
503
+ const ret = String(arg1);
504
+ const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
505
+ const len1 = WASM_VECTOR_LEN$1;
506
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
507
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
508
+ };
509
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
510
+ const v = arg0;
511
+ const ret = typeof(v) === 'boolean' ? v : undefined;
512
+ return isLikeNone$1(ret) ? 0xFFFFFF : ret ? 1 : 0;
513
+ };
514
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
515
+ const ret = debugString$1(arg1);
516
+ const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
517
+ const len1 = WASM_VECTOR_LEN$1;
518
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
519
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
520
+ };
521
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
522
+ const ret = arg0 in arg1;
523
+ return ret;
524
+ };
525
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
526
+ const val = arg0;
527
+ const ret = typeof(val) === 'object' && val !== null;
528
+ return ret;
529
+ };
530
+ imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
531
+ const ret = typeof(arg0) === 'string';
532
+ return ret;
533
+ };
534
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
535
+ const ret = arg0 === undefined;
536
+ return ret;
537
+ };
538
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
539
+ const ret = arg0 == arg1;
540
+ return ret;
541
+ };
542
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
543
+ const obj = arg1;
544
+ const ret = typeof(obj) === 'number' ? obj : undefined;
545
+ getDataViewMemory0$1().setFloat64(arg0 + 8 * 1, isLikeNone$1(ret) ? 0 : ret, true);
546
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 0, !isLikeNone$1(ret), true);
547
+ };
548
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
549
+ const obj = arg1;
550
+ const ret = typeof(obj) === 'string' ? obj : undefined;
551
+ var ptr1 = isLikeNone$1(ret) ? 0 : passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
552
+ var len1 = WASM_VECTOR_LEN$1;
553
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
554
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
555
+ };
388
556
  imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
389
557
  throw new Error(getStringFromWasm0$1(arg0, arg1));
390
558
  };
559
+ imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
560
+ const ret = Object.entries(arg0);
561
+ return ret;
562
+ };
391
563
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
392
564
  let deferred0_0;
393
565
  let deferred0_1;
@@ -399,6 +571,46 @@ function __wbg_get_imports$1() {
399
571
  wasm$1.__wbindgen_free(deferred0_0, deferred0_1, 1);
400
572
  }
401
573
  };
574
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
575
+ const ret = arg0[arg1 >>> 0];
576
+ return ret;
577
+ };
578
+ imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
579
+ const ret = arg0[arg1];
580
+ return ret;
581
+ };
582
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
583
+ let result;
584
+ try {
585
+ result = arg0 instanceof ArrayBuffer;
586
+ } catch (_) {
587
+ result = false;
588
+ }
589
+ const ret = result;
590
+ return ret;
591
+ };
592
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
593
+ let result;
594
+ try {
595
+ result = arg0 instanceof Uint8Array;
596
+ } catch (_) {
597
+ result = false;
598
+ }
599
+ const ret = result;
600
+ return ret;
601
+ };
602
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
603
+ const ret = arg0.length;
604
+ return ret;
605
+ };
606
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
607
+ const ret = arg0.length;
608
+ return ret;
609
+ };
610
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
611
+ const ret = new Uint8Array(arg0);
612
+ return ret;
613
+ };
402
614
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
403
615
  const ret = new Error();
404
616
  return ret;
@@ -407,6 +619,9 @@ function __wbg_get_imports$1() {
407
619
  const ret = PolygonizerWasmError$1.__wrap(arg0);
408
620
  return ret;
409
621
  };
622
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
623
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0$1(arg0, arg1), arg2);
624
+ };
410
625
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
411
626
  const ret = arg1.stack;
412
627
  const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
@@ -414,6 +629,11 @@ function __wbg_get_imports$1() {
414
629
  getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
415
630
  getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
416
631
  };
632
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
633
+ // Cast intrinsic for `Ref(String) -> Externref`.
634
+ const ret = getStringFromWasm0$1(arg0, arg1);
635
+ return ret;
636
+ };
417
637
  imports.wbg.__wbindgen_init_externref_table = function() {
418
638
  const table = wasm$1.__wbindgen_externrefs;
419
639
  const offset = table.grow(4);
@@ -493,12 +713,79 @@ var scalarExports = /*#__PURE__*/Object.freeze({
493
713
  default: __wbg_init$1,
494
714
  initSync: initSync$1,
495
715
  polygonize: polygonize$1,
716
+ polygonizeWithOptions: polygonizeWithOptions$1,
717
+ polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer$1,
496
718
  polygonize_buffers: polygonize_buffers$1,
497
719
  polygonize_geoarrow: polygonize_geoarrow$1
498
720
  });
499
721
 
500
722
  let wasm;
501
723
 
724
+ function debugString(val) {
725
+ // primitive types
726
+ const type = typeof val;
727
+ if (type == 'number' || type == 'boolean' || val == null) {
728
+ return `${val}`;
729
+ }
730
+ if (type == 'string') {
731
+ return `"${val}"`;
732
+ }
733
+ if (type == 'symbol') {
734
+ const description = val.description;
735
+ if (description == null) {
736
+ return 'Symbol';
737
+ } else {
738
+ return `Symbol(${description})`;
739
+ }
740
+ }
741
+ if (type == 'function') {
742
+ const name = val.name;
743
+ if (typeof name == 'string' && name.length > 0) {
744
+ return `Function(${name})`;
745
+ } else {
746
+ return 'Function';
747
+ }
748
+ }
749
+ // objects
750
+ if (Array.isArray(val)) {
751
+ const length = val.length;
752
+ let debug = '[';
753
+ if (length > 0) {
754
+ debug += debugString(val[0]);
755
+ }
756
+ for(let i = 1; i < length; i++) {
757
+ debug += ', ' + debugString(val[i]);
758
+ }
759
+ debug += ']';
760
+ return debug;
761
+ }
762
+ // Test for built-in
763
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
764
+ let className;
765
+ if (builtInMatches && builtInMatches.length > 1) {
766
+ className = builtInMatches[1];
767
+ } else {
768
+ // Failed to match the standard '[object ClassName]'
769
+ return toString.call(val);
770
+ }
771
+ if (className == 'Object') {
772
+ // we're a user defined class or Object
773
+ // JSON.stringify avoids problems with cycles, and is generally much
774
+ // easier than looping through ownProperties of `val`.
775
+ try {
776
+ return 'Object(' + JSON.stringify(val) + ')';
777
+ } catch (_) {
778
+ return 'Object';
779
+ }
780
+ }
781
+ // errors
782
+ if (val instanceof Error) {
783
+ return `${val.name}: ${val.message}\n${val.stack}`;
784
+ }
785
+ // TODO we could test for more things here, like `Set`s and `Map`s.
786
+ return className;
787
+ }
788
+
502
789
  function getArrayU8FromWasm0(ptr, len) {
503
790
  ptr = ptr >>> 0;
504
791
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -810,6 +1097,51 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
810
1097
  }
811
1098
  }
812
1099
 
1100
+ /**
1101
+ * @param {string} geojson_str
1102
+ * @param {any} options_val
1103
+ * @returns {string}
1104
+ */
1105
+ function polygonizeWithOptions(geojson_str, options_val) {
1106
+ let deferred3_0;
1107
+ let deferred3_1;
1108
+ try {
1109
+ const ptr0 = passStringToWasm0(geojson_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1110
+ const len0 = WASM_VECTOR_LEN;
1111
+ const ret = wasm.polygonizeWithOptions(ptr0, len0, options_val);
1112
+ var ptr2 = ret[0];
1113
+ var len2 = ret[1];
1114
+ if (ret[3]) {
1115
+ ptr2 = 0; len2 = 0;
1116
+ throw takeFromExternrefTable0(ret[2]);
1117
+ }
1118
+ deferred3_0 = ptr2;
1119
+ deferred3_1 = len2;
1120
+ return getStringFromWasm0(ptr2, len2);
1121
+ } finally {
1122
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1123
+ }
1124
+ }
1125
+
1126
+ /**
1127
+ * @param {Float64Array} coords
1128
+ * @param {Uint32Array} offsets
1129
+ * @param {number} stride
1130
+ * @param {any} options_val
1131
+ * @returns {WasmPolygonResult}
1132
+ */
1133
+ function polygonizeWithOptionsBuffer(coords, offsets, stride, options_val) {
1134
+ const ptr0 = passArrayF64ToWasm0(coords, wasm.__wbindgen_malloc);
1135
+ const len0 = WASM_VECTOR_LEN;
1136
+ const ptr1 = passArray32ToWasm0(offsets, wasm.__wbindgen_malloc);
1137
+ const len1 = WASM_VECTOR_LEN;
1138
+ const ret = wasm.polygonizeWithOptionsBuffer(ptr0, len0, ptr1, len1, stride, options_val);
1139
+ if (ret[2]) {
1140
+ throw takeFromExternrefTable0(ret[1]);
1141
+ }
1142
+ return WasmPolygonResult.__wrap(ret[0]);
1143
+ }
1144
+
813
1145
  /**
814
1146
  * @param {Float64Array} coords
815
1147
  * @param {Uint32Array} offsets
@@ -884,9 +1216,71 @@ async function __wbg_load(module, imports) {
884
1216
  function __wbg_get_imports() {
885
1217
  const imports = {};
886
1218
  imports.wbg = {};
1219
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
1220
+ const ret = Error(getStringFromWasm0(arg0, arg1));
1221
+ return ret;
1222
+ };
1223
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
1224
+ const ret = String(arg1);
1225
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1226
+ const len1 = WASM_VECTOR_LEN;
1227
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1228
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1229
+ };
1230
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
1231
+ const v = arg0;
1232
+ const ret = typeof(v) === 'boolean' ? v : undefined;
1233
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1234
+ };
1235
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
1236
+ const ret = debugString(arg1);
1237
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1238
+ const len1 = WASM_VECTOR_LEN;
1239
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1240
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1241
+ };
1242
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
1243
+ const ret = arg0 in arg1;
1244
+ return ret;
1245
+ };
1246
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
1247
+ const val = arg0;
1248
+ const ret = typeof(val) === 'object' && val !== null;
1249
+ return ret;
1250
+ };
1251
+ imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
1252
+ const ret = typeof(arg0) === 'string';
1253
+ return ret;
1254
+ };
1255
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
1256
+ const ret = arg0 === undefined;
1257
+ return ret;
1258
+ };
1259
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
1260
+ const ret = arg0 == arg1;
1261
+ return ret;
1262
+ };
1263
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
1264
+ const obj = arg1;
1265
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1266
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1267
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1268
+ };
1269
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
1270
+ const obj = arg1;
1271
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1272
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1273
+ var len1 = WASM_VECTOR_LEN;
1274
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1275
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1276
+ };
887
1277
  imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
888
1278
  throw new Error(getStringFromWasm0(arg0, arg1));
889
1279
  };
1280
+ imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
1281
+ const ret = Object.entries(arg0);
1282
+ return ret;
1283
+ };
890
1284
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
891
1285
  let deferred0_0;
892
1286
  let deferred0_1;
@@ -898,6 +1292,46 @@ function __wbg_get_imports() {
898
1292
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
899
1293
  }
900
1294
  };
1295
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
1296
+ const ret = arg0[arg1 >>> 0];
1297
+ return ret;
1298
+ };
1299
+ imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
1300
+ const ret = arg0[arg1];
1301
+ return ret;
1302
+ };
1303
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
1304
+ let result;
1305
+ try {
1306
+ result = arg0 instanceof ArrayBuffer;
1307
+ } catch (_) {
1308
+ result = false;
1309
+ }
1310
+ const ret = result;
1311
+ return ret;
1312
+ };
1313
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
1314
+ let result;
1315
+ try {
1316
+ result = arg0 instanceof Uint8Array;
1317
+ } catch (_) {
1318
+ result = false;
1319
+ }
1320
+ const ret = result;
1321
+ return ret;
1322
+ };
1323
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
1324
+ const ret = arg0.length;
1325
+ return ret;
1326
+ };
1327
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
1328
+ const ret = arg0.length;
1329
+ return ret;
1330
+ };
1331
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
1332
+ const ret = new Uint8Array(arg0);
1333
+ return ret;
1334
+ };
901
1335
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
902
1336
  const ret = new Error();
903
1337
  return ret;
@@ -906,6 +1340,9 @@ function __wbg_get_imports() {
906
1340
  const ret = PolygonizerWasmError.__wrap(arg0);
907
1341
  return ret;
908
1342
  };
1343
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
1344
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1345
+ };
909
1346
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
910
1347
  const ret = arg1.stack;
911
1348
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -913,6 +1350,11 @@ function __wbg_get_imports() {
913
1350
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
914
1351
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
915
1352
  };
1353
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1354
+ // Cast intrinsic for `Ref(String) -> Externref`.
1355
+ const ret = getStringFromWasm0(arg0, arg1);
1356
+ return ret;
1357
+ };
916
1358
  imports.wbg.__wbindgen_init_externref_table = function() {
917
1359
  const table = wasm.__wbindgen_externrefs;
918
1360
  const offset = table.grow(4);
@@ -992,6 +1434,8 @@ var simdExports = /*#__PURE__*/Object.freeze({
992
1434
  default: __wbg_init,
993
1435
  initSync: initSync,
994
1436
  polygonize: polygonize,
1437
+ polygonizeWithOptions: polygonizeWithOptions,
1438
+ polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
995
1439
  polygonize_buffers: polygonize_buffers,
996
1440
  polygonize_geoarrow: polygonize_geoarrow
997
1441
  });
@@ -1018,4 +1462,4 @@ async function initBest(scalarModule, simdModule) {
1018
1462
  }
1019
1463
  }
1020
1464
 
1021
- export { PolygonizerWasmError$1 as PolygonizerWasmError, WasmPolygonResult$1 as WasmPolygonResult, initBest, initSync$1 as initSync, polygonize$1 as polygonize, polygonize_buffers$1 as polygonize_buffers, polygonize_geoarrow$1 as polygonize_geoarrow };
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 };