geo-polygonize 0.9.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
@@ -3,6 +3,71 @@
3
3
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
4
4
  let wasm$1;
5
5
 
6
+ function debugString$1(val) {
7
+ // primitive types
8
+ const type = typeof val;
9
+ if (type == 'number' || type == 'boolean' || val == null) {
10
+ return `${val}`;
11
+ }
12
+ if (type == 'string') {
13
+ return `"${val}"`;
14
+ }
15
+ if (type == 'symbol') {
16
+ const description = val.description;
17
+ if (description == null) {
18
+ return 'Symbol';
19
+ } else {
20
+ return `Symbol(${description})`;
21
+ }
22
+ }
23
+ if (type == 'function') {
24
+ const name = val.name;
25
+ if (typeof name == 'string' && name.length > 0) {
26
+ return `Function(${name})`;
27
+ } else {
28
+ return 'Function';
29
+ }
30
+ }
31
+ // objects
32
+ if (Array.isArray(val)) {
33
+ const length = val.length;
34
+ let debug = '[';
35
+ if (length > 0) {
36
+ debug += debugString$1(val[0]);
37
+ }
38
+ for(let i = 1; i < length; i++) {
39
+ debug += ', ' + debugString$1(val[i]);
40
+ }
41
+ debug += ']';
42
+ return debug;
43
+ }
44
+ // Test for built-in
45
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
46
+ let className;
47
+ if (builtInMatches && builtInMatches.length > 1) {
48
+ className = builtInMatches[1];
49
+ } else {
50
+ // Failed to match the standard '[object ClassName]'
51
+ return toString.call(val);
52
+ }
53
+ if (className == 'Object') {
54
+ // we're a user defined class or Object
55
+ // JSON.stringify avoids problems with cycles, and is generally much
56
+ // easier than looping through ownProperties of `val`.
57
+ try {
58
+ return 'Object(' + JSON.stringify(val) + ')';
59
+ } catch (_) {
60
+ return 'Object';
61
+ }
62
+ }
63
+ // errors
64
+ if (val instanceof Error) {
65
+ return `${val.name}: ${val.message}\n${val.stack}`;
66
+ }
67
+ // TODO we could test for more things here, like `Set`s and `Map`s.
68
+ return className;
69
+ }
70
+
6
71
  function getArrayU8FromWasm0$1(ptr, len) {
7
72
  ptr = ptr >>> 0;
8
73
  return getUint8ArrayMemory0$1().subarray(ptr / 1, ptr / 1 + len);
@@ -314,6 +379,68 @@ function polygonize$1(geojson_str, node_input, snap_grid_size, extract_only_poly
314
379
  }
315
380
  }
316
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
+
399
+ /**
400
+ * @param {string} geojson_str
401
+ * @param {any} options_val
402
+ * @returns {string}
403
+ */
404
+ function polygonizeWithOptions$1(geojson_str, options_val) {
405
+ let deferred3_0;
406
+ let deferred3_1;
407
+ try {
408
+ const ptr0 = passStringToWasm0$1(geojson_str, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
409
+ const len0 = WASM_VECTOR_LEN$1;
410
+ const ret = wasm$1.polygonizeWithOptions(ptr0, len0, options_val);
411
+ var ptr2 = ret[0];
412
+ var len2 = ret[1];
413
+ if (ret[3]) {
414
+ ptr2 = 0; len2 = 0;
415
+ throw takeFromExternrefTable0$1(ret[2]);
416
+ }
417
+ deferred3_0 = ptr2;
418
+ deferred3_1 = len2;
419
+ return getStringFromWasm0$1(ptr2, len2);
420
+ } finally {
421
+ wasm$1.__wbindgen_free(deferred3_0, deferred3_1, 1);
422
+ }
423
+ }
424
+
425
+ /**
426
+ * @param {Float64Array} coords
427
+ * @param {Uint32Array} offsets
428
+ * @param {number} stride
429
+ * @param {any} options_val
430
+ * @returns {WasmPolygonResult}
431
+ */
432
+ function polygonizeWithOptionsBuffer$1(coords, offsets, stride, options_val) {
433
+ const ptr0 = passArrayF64ToWasm0$1(coords, wasm$1.__wbindgen_malloc);
434
+ const len0 = WASM_VECTOR_LEN$1;
435
+ const ptr1 = passArray32ToWasm0$1(offsets, wasm$1.__wbindgen_malloc);
436
+ const len1 = WASM_VECTOR_LEN$1;
437
+ const ret = wasm$1.polygonizeWithOptionsBuffer(ptr0, len0, ptr1, len1, stride, options_val);
438
+ if (ret[2]) {
439
+ throw takeFromExternrefTable0$1(ret[1]);
440
+ }
441
+ return WasmPolygonResult$1.__wrap(ret[0]);
442
+ }
443
+
317
444
  /**
318
445
  * @param {Float64Array} coords
319
446
  * @param {Uint32Array} offsets
@@ -388,9 +515,71 @@ async function __wbg_load$1(module, imports) {
388
515
  function __wbg_get_imports$1() {
389
516
  const imports = {};
390
517
  imports.wbg = {};
518
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
519
+ const ret = Error(getStringFromWasm0$1(arg0, arg1));
520
+ return ret;
521
+ };
522
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
523
+ const ret = String(arg1);
524
+ const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
525
+ const len1 = WASM_VECTOR_LEN$1;
526
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
527
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
528
+ };
529
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
530
+ const v = arg0;
531
+ const ret = typeof(v) === 'boolean' ? v : undefined;
532
+ return isLikeNone$1(ret) ? 0xFFFFFF : ret ? 1 : 0;
533
+ };
534
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
535
+ const ret = debugString$1(arg1);
536
+ const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
537
+ const len1 = WASM_VECTOR_LEN$1;
538
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
539
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
540
+ };
541
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
542
+ const ret = arg0 in arg1;
543
+ return ret;
544
+ };
545
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
546
+ const val = arg0;
547
+ const ret = typeof(val) === 'object' && val !== null;
548
+ return ret;
549
+ };
550
+ imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
551
+ const ret = typeof(arg0) === 'string';
552
+ return ret;
553
+ };
554
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
555
+ const ret = arg0 === undefined;
556
+ return ret;
557
+ };
558
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
559
+ const ret = arg0 == arg1;
560
+ return ret;
561
+ };
562
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
563
+ const obj = arg1;
564
+ const ret = typeof(obj) === 'number' ? obj : undefined;
565
+ getDataViewMemory0$1().setFloat64(arg0 + 8 * 1, isLikeNone$1(ret) ? 0 : ret, true);
566
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 0, !isLikeNone$1(ret), true);
567
+ };
568
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
569
+ const obj = arg1;
570
+ const ret = typeof(obj) === 'string' ? obj : undefined;
571
+ var ptr1 = isLikeNone$1(ret) ? 0 : passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
572
+ var len1 = WASM_VECTOR_LEN$1;
573
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
574
+ getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
575
+ };
391
576
  imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
392
577
  throw new Error(getStringFromWasm0$1(arg0, arg1));
393
578
  };
579
+ imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
580
+ const ret = Object.entries(arg0);
581
+ return ret;
582
+ };
394
583
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
395
584
  let deferred0_0;
396
585
  let deferred0_1;
@@ -402,6 +591,46 @@ function __wbg_get_imports$1() {
402
591
  wasm$1.__wbindgen_free(deferred0_0, deferred0_1, 1);
403
592
  }
404
593
  };
594
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
595
+ const ret = arg0[arg1 >>> 0];
596
+ return ret;
597
+ };
598
+ imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
599
+ const ret = arg0[arg1];
600
+ return ret;
601
+ };
602
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
603
+ let result;
604
+ try {
605
+ result = arg0 instanceof ArrayBuffer;
606
+ } catch (_) {
607
+ result = false;
608
+ }
609
+ const ret = result;
610
+ return ret;
611
+ };
612
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
613
+ let result;
614
+ try {
615
+ result = arg0 instanceof Uint8Array;
616
+ } catch (_) {
617
+ result = false;
618
+ }
619
+ const ret = result;
620
+ return ret;
621
+ };
622
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
623
+ const ret = arg0.length;
624
+ return ret;
625
+ };
626
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
627
+ const ret = arg0.length;
628
+ return ret;
629
+ };
630
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
631
+ const ret = new Uint8Array(arg0);
632
+ return ret;
633
+ };
405
634
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
406
635
  const ret = new Error();
407
636
  return ret;
@@ -410,6 +639,9 @@ function __wbg_get_imports$1() {
410
639
  const ret = PolygonizerWasmError$1.__wrap(arg0);
411
640
  return ret;
412
641
  };
642
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
643
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0$1(arg0, arg1), arg2);
644
+ };
413
645
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
414
646
  const ret = arg1.stack;
415
647
  const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
@@ -417,6 +649,11 @@ function __wbg_get_imports$1() {
417
649
  getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
418
650
  getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
419
651
  };
652
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
653
+ // Cast intrinsic for `Ref(String) -> Externref`.
654
+ const ret = getStringFromWasm0$1(arg0, arg1);
655
+ return ret;
656
+ };
420
657
  imports.wbg.__wbindgen_init_externref_table = function() {
421
658
  const table = wasm$1.__wbindgen_externrefs;
422
659
  const offset = table.grow(4);
@@ -496,12 +733,80 @@ var scalarExports = /*#__PURE__*/Object.freeze({
496
733
  default: __wbg_init$1,
497
734
  initSync: initSync$1,
498
735
  polygonize: polygonize$1,
736
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions$1,
737
+ polygonizeWithOptions: polygonizeWithOptions$1,
738
+ polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer$1,
499
739
  polygonize_buffers: polygonize_buffers$1,
500
740
  polygonize_geoarrow: polygonize_geoarrow$1
501
741
  });
502
742
 
503
743
  let wasm;
504
744
 
745
+ function debugString(val) {
746
+ // primitive types
747
+ const type = typeof val;
748
+ if (type == 'number' || type == 'boolean' || val == null) {
749
+ return `${val}`;
750
+ }
751
+ if (type == 'string') {
752
+ return `"${val}"`;
753
+ }
754
+ if (type == 'symbol') {
755
+ const description = val.description;
756
+ if (description == null) {
757
+ return 'Symbol';
758
+ } else {
759
+ return `Symbol(${description})`;
760
+ }
761
+ }
762
+ if (type == 'function') {
763
+ const name = val.name;
764
+ if (typeof name == 'string' && name.length > 0) {
765
+ return `Function(${name})`;
766
+ } else {
767
+ return 'Function';
768
+ }
769
+ }
770
+ // objects
771
+ if (Array.isArray(val)) {
772
+ const length = val.length;
773
+ let debug = '[';
774
+ if (length > 0) {
775
+ debug += debugString(val[0]);
776
+ }
777
+ for(let i = 1; i < length; i++) {
778
+ debug += ', ' + debugString(val[i]);
779
+ }
780
+ debug += ']';
781
+ return debug;
782
+ }
783
+ // Test for built-in
784
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
785
+ let className;
786
+ if (builtInMatches && builtInMatches.length > 1) {
787
+ className = builtInMatches[1];
788
+ } else {
789
+ // Failed to match the standard '[object ClassName]'
790
+ return toString.call(val);
791
+ }
792
+ if (className == 'Object') {
793
+ // we're a user defined class or Object
794
+ // JSON.stringify avoids problems with cycles, and is generally much
795
+ // easier than looping through ownProperties of `val`.
796
+ try {
797
+ return 'Object(' + JSON.stringify(val) + ')';
798
+ } catch (_) {
799
+ return 'Object';
800
+ }
801
+ }
802
+ // errors
803
+ if (val instanceof Error) {
804
+ return `${val.name}: ${val.message}\n${val.stack}`;
805
+ }
806
+ // TODO we could test for more things here, like `Set`s and `Map`s.
807
+ return className;
808
+ }
809
+
505
810
  function getArrayU8FromWasm0(ptr, len) {
506
811
  ptr = ptr >>> 0;
507
812
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -813,6 +1118,68 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
813
1118
  }
814
1119
  }
815
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
+
1138
+ /**
1139
+ * @param {string} geojson_str
1140
+ * @param {any} options_val
1141
+ * @returns {string}
1142
+ */
1143
+ function polygonizeWithOptions(geojson_str, options_val) {
1144
+ let deferred3_0;
1145
+ let deferred3_1;
1146
+ try {
1147
+ const ptr0 = passStringToWasm0(geojson_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1148
+ const len0 = WASM_VECTOR_LEN;
1149
+ const ret = wasm.polygonizeWithOptions(ptr0, len0, options_val);
1150
+ var ptr2 = ret[0];
1151
+ var len2 = ret[1];
1152
+ if (ret[3]) {
1153
+ ptr2 = 0; len2 = 0;
1154
+ throw takeFromExternrefTable0(ret[2]);
1155
+ }
1156
+ deferred3_0 = ptr2;
1157
+ deferred3_1 = len2;
1158
+ return getStringFromWasm0(ptr2, len2);
1159
+ } finally {
1160
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1161
+ }
1162
+ }
1163
+
1164
+ /**
1165
+ * @param {Float64Array} coords
1166
+ * @param {Uint32Array} offsets
1167
+ * @param {number} stride
1168
+ * @param {any} options_val
1169
+ * @returns {WasmPolygonResult}
1170
+ */
1171
+ function polygonizeWithOptionsBuffer(coords, offsets, stride, options_val) {
1172
+ const ptr0 = passArrayF64ToWasm0(coords, wasm.__wbindgen_malloc);
1173
+ const len0 = WASM_VECTOR_LEN;
1174
+ const ptr1 = passArray32ToWasm0(offsets, wasm.__wbindgen_malloc);
1175
+ const len1 = WASM_VECTOR_LEN;
1176
+ const ret = wasm.polygonizeWithOptionsBuffer(ptr0, len0, ptr1, len1, stride, options_val);
1177
+ if (ret[2]) {
1178
+ throw takeFromExternrefTable0(ret[1]);
1179
+ }
1180
+ return WasmPolygonResult.__wrap(ret[0]);
1181
+ }
1182
+
816
1183
  /**
817
1184
  * @param {Float64Array} coords
818
1185
  * @param {Uint32Array} offsets
@@ -887,9 +1254,71 @@ async function __wbg_load(module, imports) {
887
1254
  function __wbg_get_imports() {
888
1255
  const imports = {};
889
1256
  imports.wbg = {};
1257
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
1258
+ const ret = Error(getStringFromWasm0(arg0, arg1));
1259
+ return ret;
1260
+ };
1261
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
1262
+ const ret = String(arg1);
1263
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1264
+ const len1 = WASM_VECTOR_LEN;
1265
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1266
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1267
+ };
1268
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
1269
+ const v = arg0;
1270
+ const ret = typeof(v) === 'boolean' ? v : undefined;
1271
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1272
+ };
1273
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
1274
+ const ret = debugString(arg1);
1275
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1276
+ const len1 = WASM_VECTOR_LEN;
1277
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1278
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1279
+ };
1280
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
1281
+ const ret = arg0 in arg1;
1282
+ return ret;
1283
+ };
1284
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
1285
+ const val = arg0;
1286
+ const ret = typeof(val) === 'object' && val !== null;
1287
+ return ret;
1288
+ };
1289
+ imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
1290
+ const ret = typeof(arg0) === 'string';
1291
+ return ret;
1292
+ };
1293
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
1294
+ const ret = arg0 === undefined;
1295
+ return ret;
1296
+ };
1297
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
1298
+ const ret = arg0 == arg1;
1299
+ return ret;
1300
+ };
1301
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
1302
+ const obj = arg1;
1303
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1304
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1305
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1306
+ };
1307
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
1308
+ const obj = arg1;
1309
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1310
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1311
+ var len1 = WASM_VECTOR_LEN;
1312
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1313
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1314
+ };
890
1315
  imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
891
1316
  throw new Error(getStringFromWasm0(arg0, arg1));
892
1317
  };
1318
+ imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
1319
+ const ret = Object.entries(arg0);
1320
+ return ret;
1321
+ };
893
1322
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
894
1323
  let deferred0_0;
895
1324
  let deferred0_1;
@@ -901,6 +1330,46 @@ function __wbg_get_imports() {
901
1330
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
902
1331
  }
903
1332
  };
1333
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
1334
+ const ret = arg0[arg1 >>> 0];
1335
+ return ret;
1336
+ };
1337
+ imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
1338
+ const ret = arg0[arg1];
1339
+ return ret;
1340
+ };
1341
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
1342
+ let result;
1343
+ try {
1344
+ result = arg0 instanceof ArrayBuffer;
1345
+ } catch (_) {
1346
+ result = false;
1347
+ }
1348
+ const ret = result;
1349
+ return ret;
1350
+ };
1351
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
1352
+ let result;
1353
+ try {
1354
+ result = arg0 instanceof Uint8Array;
1355
+ } catch (_) {
1356
+ result = false;
1357
+ }
1358
+ const ret = result;
1359
+ return ret;
1360
+ };
1361
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
1362
+ const ret = arg0.length;
1363
+ return ret;
1364
+ };
1365
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
1366
+ const ret = arg0.length;
1367
+ return ret;
1368
+ };
1369
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
1370
+ const ret = new Uint8Array(arg0);
1371
+ return ret;
1372
+ };
904
1373
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
905
1374
  const ret = new Error();
906
1375
  return ret;
@@ -909,6 +1378,9 @@ function __wbg_get_imports() {
909
1378
  const ret = PolygonizerWasmError.__wrap(arg0);
910
1379
  return ret;
911
1380
  };
1381
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
1382
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1383
+ };
912
1384
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
913
1385
  const ret = arg1.stack;
914
1386
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -916,6 +1388,11 @@ function __wbg_get_imports() {
916
1388
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
917
1389
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
918
1390
  };
1391
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1392
+ // Cast intrinsic for `Ref(String) -> Externref`.
1393
+ const ret = getStringFromWasm0(arg0, arg1);
1394
+ return ret;
1395
+ };
919
1396
  imports.wbg.__wbindgen_init_externref_table = function() {
920
1397
  const table = wasm.__wbindgen_externrefs;
921
1398
  const offset = table.grow(4);
@@ -995,6 +1472,9 @@ var simdExports = /*#__PURE__*/Object.freeze({
995
1472
  default: __wbg_init,
996
1473
  initSync: initSync,
997
1474
  polygonize: polygonize,
1475
+ polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
1476
+ polygonizeWithOptions: polygonizeWithOptions,
1477
+ polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
998
1478
  polygonize_buffers: polygonize_buffers,
999
1479
  polygonize_geoarrow: polygonize_geoarrow
1000
1480
  });
@@ -1026,5 +1506,8 @@ exports.WasmPolygonResult = WasmPolygonResult$1;
1026
1506
  exports.initBest = initBest;
1027
1507
  exports.initSync = initSync$1;
1028
1508
  exports.polygonize = polygonize$1;
1509
+ exports.polygonizeGeoArrowWithOptions = polygonizeGeoArrowWithOptions$1;
1510
+ exports.polygonizeWithOptions = polygonizeWithOptions$1;
1511
+ exports.polygonizeWithOptionsBuffer = polygonizeWithOptionsBuffer$1;
1029
1512
  exports.polygonize_buffers = polygonize_buffers$1;
1030
1513
  exports.polygonize_geoarrow = polygonize_geoarrow$1;