geo-polygonize 0.33.1 → 0.35.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.
Files changed (86) hide show
  1. package/README.md +68 -18
  2. package/dist/geo_polygonize.wasm +0 -0
  3. package/dist/geo_polygonize_simd.wasm +0 -0
  4. package/dist/slim/cjs/cfb.d.ts +2 -0
  5. package/dist/slim/cjs/index.d.ts +1 -0
  6. package/dist/slim/cjs/index_slim.d.ts +2 -1
  7. package/dist/slim/cjs/index_slim.js +74 -829
  8. package/dist/slim/cjs/index_threads.d.ts +1 -0
  9. package/dist/slim/es/cfb.d.ts +2 -0
  10. package/dist/slim/es/index.d.ts +1 -0
  11. package/dist/slim/es/index_slim.d.ts +2 -1
  12. package/dist/slim/es/index_slim.js +65 -821
  13. package/dist/slim/es/index_threads.d.ts +1 -0
  14. package/dist/slim/pkg-scalar/geo_polygonize.d.ts +119 -0
  15. package/dist/slim/pkg-scalar/geo_polygonize_bg.wasm.d.ts +37 -0
  16. package/dist/slim/pkg-wrapper/bindings/ContainmentOptions.d.ts +6 -0
  17. package/dist/slim/pkg-wrapper/bindings/DedupPolicy.d.ts +1 -0
  18. package/dist/slim/pkg-wrapper/bindings/DeterminismOptions.d.ts +5 -0
  19. package/dist/slim/pkg-wrapper/bindings/DiagnosticsOptions.d.ts +4 -0
  20. package/dist/slim/pkg-wrapper/bindings/IndexBackend.d.ts +1 -0
  21. package/dist/slim/pkg-wrapper/bindings/NodingBackend.d.ts +1 -0
  22. package/dist/slim/pkg-wrapper/bindings/NodingOptions.d.ts +6 -0
  23. package/dist/slim/pkg-wrapper/bindings/PolygonizerOptions.d.ts +92 -0
  24. package/dist/slim/pkg-wrapper/bindings/ProvenanceOptions.d.ts +4 -0
  25. package/dist/slim/pkg-wrapper/bindings/SnapMode.d.ts +1 -0
  26. package/dist/slim/pkg-wrapper/bindings/SnapStrategy.d.ts +25 -0
  27. package/dist/slim/pkg-wrapper/bindings/TargetProfile.d.ts +1 -0
  28. package/dist/slim/pkg-wrapper/bindings/TileOwnershipPolicy.d.ts +1 -0
  29. package/dist/slim/pkg-wrapper/bindings/TilingOptions.d.ts +6 -0
  30. package/dist/slim/pkg-wrapper/bindings/TouchPolicy.d.ts +1 -0
  31. package/dist/slim/pkg-wrapper/bindings/ZOptions.d.ts +4 -0
  32. package/dist/slim/pkg-wrapper/bindings/ZPolicy.d.ts +5 -0
  33. package/dist/standard/cjs/cfb.d.ts +2 -0
  34. package/dist/standard/cjs/index.d.ts +1 -0
  35. package/dist/standard/cjs/index.js +59 -4
  36. package/dist/standard/cjs/index_slim.d.ts +2 -1
  37. package/dist/standard/cjs/index_threads.d.ts +1 -0
  38. package/dist/standard/es/cfb.d.ts +2 -0
  39. package/dist/standard/es/index.d.ts +1 -0
  40. package/dist/standard/es/index.js +59 -5
  41. package/dist/standard/es/index_slim.d.ts +2 -1
  42. package/dist/standard/es/index_threads.d.ts +1 -0
  43. package/dist/standard/pkg-scalar/geo_polygonize.d.ts +119 -0
  44. package/dist/standard/pkg-scalar/geo_polygonize_bg.wasm.d.ts +37 -0
  45. package/dist/standard/pkg-wrapper/bindings/ContainmentOptions.d.ts +6 -0
  46. package/dist/standard/pkg-wrapper/bindings/DedupPolicy.d.ts +1 -0
  47. package/dist/standard/pkg-wrapper/bindings/DeterminismOptions.d.ts +5 -0
  48. package/dist/standard/pkg-wrapper/bindings/DiagnosticsOptions.d.ts +4 -0
  49. package/dist/standard/pkg-wrapper/bindings/IndexBackend.d.ts +1 -0
  50. package/dist/standard/pkg-wrapper/bindings/NodingBackend.d.ts +1 -0
  51. package/dist/standard/pkg-wrapper/bindings/NodingOptions.d.ts +6 -0
  52. package/dist/standard/pkg-wrapper/bindings/PolygonizerOptions.d.ts +92 -0
  53. package/dist/standard/pkg-wrapper/bindings/ProvenanceOptions.d.ts +4 -0
  54. package/dist/standard/pkg-wrapper/bindings/SnapMode.d.ts +1 -0
  55. package/dist/standard/pkg-wrapper/bindings/SnapStrategy.d.ts +25 -0
  56. package/dist/standard/pkg-wrapper/bindings/TargetProfile.d.ts +1 -0
  57. package/dist/standard/pkg-wrapper/bindings/TileOwnershipPolicy.d.ts +1 -0
  58. package/dist/standard/pkg-wrapper/bindings/TilingOptions.d.ts +6 -0
  59. package/dist/standard/pkg-wrapper/bindings/TouchPolicy.d.ts +1 -0
  60. package/dist/standard/pkg-wrapper/bindings/ZOptions.d.ts +4 -0
  61. package/dist/standard/pkg-wrapper/bindings/ZPolicy.d.ts +5 -0
  62. package/dist/threads/es/cfb.d.ts +2 -0
  63. package/dist/threads/es/index.d.ts +1 -0
  64. package/dist/threads/es/index.js +56 -2
  65. package/dist/threads/es/index_slim.d.ts +2 -1
  66. package/dist/threads/es/index_threads.d.ts +1 -0
  67. package/dist/threads/pkg-threads/geo_polygonize.d.ts +139 -0
  68. package/dist/threads/pkg-threads/geo_polygonize_bg.wasm.d.ts +44 -0
  69. package/dist/threads/pkg-wrapper/bindings/ContainmentOptions.d.ts +6 -0
  70. package/dist/threads/pkg-wrapper/bindings/DedupPolicy.d.ts +1 -0
  71. package/dist/threads/pkg-wrapper/bindings/DeterminismOptions.d.ts +5 -0
  72. package/dist/threads/pkg-wrapper/bindings/DiagnosticsOptions.d.ts +4 -0
  73. package/dist/threads/pkg-wrapper/bindings/IndexBackend.d.ts +1 -0
  74. package/dist/threads/pkg-wrapper/bindings/NodingBackend.d.ts +1 -0
  75. package/dist/threads/pkg-wrapper/bindings/NodingOptions.d.ts +6 -0
  76. package/dist/threads/pkg-wrapper/bindings/PolygonizerOptions.d.ts +92 -0
  77. package/dist/threads/pkg-wrapper/bindings/ProvenanceOptions.d.ts +4 -0
  78. package/dist/threads/pkg-wrapper/bindings/SnapMode.d.ts +1 -0
  79. package/dist/threads/pkg-wrapper/bindings/SnapStrategy.d.ts +25 -0
  80. package/dist/threads/pkg-wrapper/bindings/TargetProfile.d.ts +1 -0
  81. package/dist/threads/pkg-wrapper/bindings/TileOwnershipPolicy.d.ts +1 -0
  82. package/dist/threads/pkg-wrapper/bindings/TilingOptions.d.ts +6 -0
  83. package/dist/threads/pkg-wrapper/bindings/TouchPolicy.d.ts +1 -0
  84. package/dist/threads/pkg-wrapper/bindings/ZOptions.d.ts +4 -0
  85. package/dist/threads/pkg-wrapper/bindings/ZPolicy.d.ts +5 -0
  86. package/package.json +1 -1
@@ -3,816 +3,6 @@
3
3
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
4
4
  /* @ts-self-types="./geo_polygonize.d.ts" */
5
5
 
6
- let PolygonizerWasmError$1 = class PolygonizerWasmError {
7
- static __wrap(ptr) {
8
- ptr = ptr >>> 0;
9
- const obj = Object.create(PolygonizerWasmError.prototype);
10
- obj.__wbg_ptr = ptr;
11
- PolygonizerWasmErrorFinalization$1.register(obj, obj.__wbg_ptr, obj);
12
- return obj;
13
- }
14
- __destroy_into_raw() {
15
- const ptr = this.__wbg_ptr;
16
- this.__wbg_ptr = 0;
17
- PolygonizerWasmErrorFinalization$1.unregister(this);
18
- return ptr;
19
- }
20
- free() {
21
- const ptr = this.__destroy_into_raw();
22
- wasm$1.__wbg_polygonizerwasmerror_free(ptr, 0);
23
- }
24
- /**
25
- * @returns {string}
26
- */
27
- get message() {
28
- let deferred1_0;
29
- let deferred1_1;
30
- try {
31
- const ret = wasm$1.polygonizerwasmerror_message(this.__wbg_ptr);
32
- deferred1_0 = ret[0];
33
- deferred1_1 = ret[1];
34
- return getStringFromWasm0$1(ret[0], ret[1]);
35
- } finally {
36
- wasm$1.__wbindgen_free(deferred1_0, deferred1_1, 1);
37
- }
38
- }
39
- /**
40
- * @returns {string}
41
- */
42
- get name() {
43
- let deferred1_0;
44
- let deferred1_1;
45
- try {
46
- const ret = wasm$1.polygonizerwasmerror_name(this.__wbg_ptr);
47
- deferred1_0 = ret[0];
48
- deferred1_1 = ret[1];
49
- return getStringFromWasm0$1(ret[0], ret[1]);
50
- } finally {
51
- wasm$1.__wbindgen_free(deferred1_0, deferred1_1, 1);
52
- }
53
- }
54
- /**
55
- * @param {string} name
56
- * @param {string} message
57
- */
58
- constructor(name, message) {
59
- const ptr0 = passStringToWasm0$1(name, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
60
- const len0 = WASM_VECTOR_LEN$1;
61
- const ptr1 = passStringToWasm0$1(message, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
62
- const len1 = WASM_VECTOR_LEN$1;
63
- const ret = wasm$1.polygonizerwasmerror_new(ptr0, len0, ptr1, len1);
64
- this.__wbg_ptr = ret >>> 0;
65
- PolygonizerWasmErrorFinalization$1.register(this, this.__wbg_ptr, this);
66
- return this;
67
- }
68
- };
69
- if (Symbol.dispose) PolygonizerWasmError$1.prototype[Symbol.dispose] = PolygonizerWasmError$1.prototype.free;
70
-
71
- let WasmPolygonResult$1 = class WasmPolygonResult {
72
- static __wrap(ptr) {
73
- ptr = ptr >>> 0;
74
- const obj = Object.create(WasmPolygonResult.prototype);
75
- obj.__wbg_ptr = ptr;
76
- WasmPolygonResultFinalization$1.register(obj, obj.__wbg_ptr, obj);
77
- return obj;
78
- }
79
- __destroy_into_raw() {
80
- const ptr = this.__wbg_ptr;
81
- this.__wbg_ptr = 0;
82
- WasmPolygonResultFinalization$1.unregister(this);
83
- return ptr;
84
- }
85
- free() {
86
- const ptr = this.__destroy_into_raw();
87
- wasm$1.__wbg_wasmpolygonresult_free(ptr, 0);
88
- }
89
- /**
90
- * @returns {number}
91
- */
92
- coords_len() {
93
- const ret = wasm$1.wasmpolygonresult_coords_len(this.__wbg_ptr);
94
- return ret >>> 0;
95
- }
96
- /**
97
- * @returns {number}
98
- */
99
- coords_ptr() {
100
- const ret = wasm$1.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
101
- return ret >>> 0;
102
- }
103
- /**
104
- * @returns {any}
105
- */
106
- get diagnostics() {
107
- const ret = wasm$1.wasmpolygonresult_diagnostics(this.__wbg_ptr);
108
- return ret;
109
- }
110
- /**
111
- * @returns {number}
112
- */
113
- flat_line_ids_len() {
114
- const ret = wasm$1.wasmpolygonresult_flat_line_ids_len(this.__wbg_ptr);
115
- return ret >>> 0;
116
- }
117
- /**
118
- * @returns {number}
119
- */
120
- flat_line_ids_ptr() {
121
- const ret = wasm$1.wasmpolygonresult_flat_line_ids_ptr(this.__wbg_ptr);
122
- return ret >>> 0;
123
- }
124
- /**
125
- * @returns {number}
126
- */
127
- polygon_offsets_len() {
128
- const ret = wasm$1.wasmpolygonresult_polygon_offsets_len(this.__wbg_ptr);
129
- return ret >>> 0;
130
- }
131
- /**
132
- * @returns {number}
133
- */
134
- polygon_offsets_ptr() {
135
- const ret = wasm$1.wasmpolygonresult_polygon_offsets_ptr(this.__wbg_ptr);
136
- return ret >>> 0;
137
- }
138
- /**
139
- * @returns {any}
140
- */
141
- get provenance() {
142
- const ret = wasm$1.wasmpolygonresult_provenance(this.__wbg_ptr);
143
- return ret;
144
- }
145
- /**
146
- * @returns {number}
147
- */
148
- ring_offsets_len() {
149
- const ret = wasm$1.wasmpolygonresult_ring_offsets_len(this.__wbg_ptr);
150
- return ret >>> 0;
151
- }
152
- /**
153
- * @returns {number}
154
- */
155
- ring_offsets_ptr() {
156
- const ret = wasm$1.wasmpolygonresult_ring_offsets_ptr(this.__wbg_ptr);
157
- return ret >>> 0;
158
- }
159
- /**
160
- * @returns {number}
161
- */
162
- stride() {
163
- const ret = wasm$1.wasmpolygonresult_stride(this.__wbg_ptr);
164
- return ret;
165
- }
166
- };
167
- if (Symbol.dispose) WasmPolygonResult$1.prototype[Symbol.dispose] = WasmPolygonResult$1.prototype.free;
168
-
169
- /**
170
- * @param {string} geojson_str
171
- * @param {boolean | null} [node_input]
172
- * @param {number | null} [snap_grid_size]
173
- * @param {boolean | null} [extract_only_polygonal]
174
- * @param {boolean | null} [report_mode]
175
- * @returns {string}
176
- */
177
- function polygonize$1(geojson_str, node_input, snap_grid_size, extract_only_polygonal, report_mode) {
178
- let deferred3_0;
179
- let deferred3_1;
180
- try {
181
- const ptr0 = passStringToWasm0$1(geojson_str, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
182
- const len0 = WASM_VECTOR_LEN$1;
183
- const ret = wasm$1.polygonize(ptr0, len0, isLikeNone$1(node_input) ? 0xFFFFFF : node_input ? 1 : 0, !isLikeNone$1(snap_grid_size), isLikeNone$1(snap_grid_size) ? 0 : snap_grid_size, isLikeNone$1(extract_only_polygonal) ? 0xFFFFFF : extract_only_polygonal ? 1 : 0, isLikeNone$1(report_mode) ? 0xFFFFFF : report_mode ? 1 : 0);
184
- var ptr2 = ret[0];
185
- var len2 = ret[1];
186
- if (ret[3]) {
187
- ptr2 = 0; len2 = 0;
188
- throw takeFromExternrefTable0$1(ret[2]);
189
- }
190
- deferred3_0 = ptr2;
191
- deferred3_1 = len2;
192
- return getStringFromWasm0$1(ptr2, len2);
193
- } finally {
194
- wasm$1.__wbindgen_free(deferred3_0, deferred3_1, 1);
195
- }
196
- }
197
-
198
- /**
199
- * Polygonizes an Arrow IPC stream containing a GeoArrow LineString array.
200
- *
201
- * This zero-copy path avoids JSON serialization overhead and returns a binary
202
- * Arrow IPC stream containing a GeoArrow Polygon array. Requires the options
203
- * to be passed as a parsed JS object.
204
- * @param {Uint8Array} ipc_bytes
205
- * @param {any} options_val
206
- * @returns {Uint8Array}
207
- */
208
- function polygonizeGeoArrowWithOptions$1(ipc_bytes, options_val) {
209
- const ptr0 = passArray8ToWasm0$1(ipc_bytes, wasm$1.__wbindgen_malloc);
210
- const len0 = WASM_VECTOR_LEN$1;
211
- const ret = wasm$1.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
212
- if (ret[3]) {
213
- throw takeFromExternrefTable0$1(ret[2]);
214
- }
215
- var v2 = getArrayU8FromWasm0$1(ret[0], ret[1]).slice();
216
- wasm$1.__wbindgen_free(ret[0], ret[1] * 1, 1);
217
- return v2;
218
- }
219
-
220
- /**
221
- * Polygonizes a GeoJSON FeatureCollection using the canonical `PolygonizerOptions`.
222
- *
223
- * This is the primary entry point for JavaScript users. It accepts a JSON string
224
- * of options and returns a JSON string representing the result, including faces,
225
- * dangles, cut-lines, and (optionally) provenance/diagnostics.
226
- * @param {string} geojson_str
227
- * @param {any} options_val
228
- * @returns {string}
229
- */
230
- function polygonizeWithOptions$1(geojson_str, options_val) {
231
- let deferred3_0;
232
- let deferred3_1;
233
- try {
234
- const ptr0 = passStringToWasm0$1(geojson_str, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
235
- const len0 = WASM_VECTOR_LEN$1;
236
- const ret = wasm$1.polygonizeWithOptions(ptr0, len0, options_val);
237
- var ptr2 = ret[0];
238
- var len2 = ret[1];
239
- if (ret[3]) {
240
- ptr2 = 0; len2 = 0;
241
- throw takeFromExternrefTable0$1(ret[2]);
242
- }
243
- deferred3_0 = ptr2;
244
- deferred3_1 = len2;
245
- return getStringFromWasm0$1(ptr2, len2);
246
- } finally {
247
- wasm$1.__wbindgen_free(deferred3_0, deferred3_1, 1);
248
- }
249
- }
250
-
251
- /**
252
- * @param {Float64Array} coords
253
- * @param {Uint32Array} offsets
254
- * @param {number} stride
255
- * @param {any} options_val
256
- * @param {Uint32Array | null} [line_ids]
257
- * @returns {WasmPolygonResult}
258
- */
259
- function polygonizeWithOptionsBuffer$1(coords, offsets, stride, options_val, line_ids) {
260
- const ptr0 = passArrayF64ToWasm0$1(coords, wasm$1.__wbindgen_malloc);
261
- const len0 = WASM_VECTOR_LEN$1;
262
- const ptr1 = passArray32ToWasm0$1(offsets, wasm$1.__wbindgen_malloc);
263
- const len1 = WASM_VECTOR_LEN$1;
264
- var ptr2 = isLikeNone$1(line_ids) ? 0 : passArray32ToWasm0$1(line_ids, wasm$1.__wbindgen_malloc);
265
- var len2 = WASM_VECTOR_LEN$1;
266
- const ret = wasm$1.polygonizeWithOptionsBuffer(ptr0, len0, ptr1, len1, stride, options_val, ptr2, len2);
267
- if (ret[2]) {
268
- throw takeFromExternrefTable0$1(ret[1]);
269
- }
270
- return WasmPolygonResult$1.__wrap(ret[0]);
271
- }
272
-
273
- /**
274
- * @param {Float64Array} coords
275
- * @param {Uint32Array} offsets
276
- * @param {number} stride
277
- * @param {boolean} node_input
278
- * @param {number} snap_grid_size
279
- * @param {Uint32Array | null} [line_ids]
280
- * @returns {WasmPolygonResult}
281
- */
282
- function polygonize_buffers$1(coords, offsets, stride, node_input, snap_grid_size, line_ids) {
283
- const ptr0 = passArrayF64ToWasm0$1(coords, wasm$1.__wbindgen_malloc);
284
- const len0 = WASM_VECTOR_LEN$1;
285
- const ptr1 = passArray32ToWasm0$1(offsets, wasm$1.__wbindgen_malloc);
286
- const len1 = WASM_VECTOR_LEN$1;
287
- var ptr2 = isLikeNone$1(line_ids) ? 0 : passArray32ToWasm0$1(line_ids, wasm$1.__wbindgen_malloc);
288
- var len2 = WASM_VECTOR_LEN$1;
289
- const ret = wasm$1.polygonize_buffers(ptr0, len0, ptr1, len1, stride, node_input, snap_grid_size, ptr2, len2);
290
- if (ret[2]) {
291
- throw takeFromExternrefTable0$1(ret[1]);
292
- }
293
- return WasmPolygonResult$1.__wrap(ret[0]);
294
- }
295
-
296
- /**
297
- * @param {Uint8Array} ipc_bytes
298
- * @param {boolean} node_input
299
- * @param {number} snap_grid_size
300
- * @param {boolean} extract_only_polygonal
301
- * @returns {Uint8Array}
302
- */
303
- function polygonize_geoarrow$1(ipc_bytes, node_input, snap_grid_size, extract_only_polygonal) {
304
- const ptr0 = passArray8ToWasm0$1(ipc_bytes, wasm$1.__wbindgen_malloc);
305
- const len0 = WASM_VECTOR_LEN$1;
306
- const ret = wasm$1.polygonize_geoarrow(ptr0, len0, node_input, snap_grid_size, extract_only_polygonal);
307
- if (ret[3]) {
308
- throw takeFromExternrefTable0$1(ret[2]);
309
- }
310
- var v2 = getArrayU8FromWasm0$1(ret[0], ret[1]).slice();
311
- wasm$1.__wbindgen_free(ret[0], ret[1] * 1, 1);
312
- return v2;
313
- }
314
-
315
- function __wbg_get_imports$1() {
316
- const import0 = {
317
- __proto__: null,
318
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
319
- const ret = Error(getStringFromWasm0$1(arg0, arg1));
320
- return ret;
321
- },
322
- __wbg_String_8564e559799eccda: function(arg0, arg1) {
323
- const ret = String(arg1);
324
- const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
325
- const len1 = WASM_VECTOR_LEN$1;
326
- getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
327
- getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
328
- },
329
- __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
330
- const v = arg0;
331
- const ret = typeof(v) === 'boolean' ? v : undefined;
332
- return isLikeNone$1(ret) ? 0xFFFFFF : ret ? 1 : 0;
333
- },
334
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
335
- const ret = debugString$1(arg1);
336
- const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
337
- const len1 = WASM_VECTOR_LEN$1;
338
- getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
339
- getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
340
- },
341
- __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
342
- const ret = arg0 in arg1;
343
- return ret;
344
- },
345
- __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
346
- const val = arg0;
347
- const ret = typeof(val) === 'object' && val !== null;
348
- return ret;
349
- },
350
- __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
351
- const ret = typeof(arg0) === 'string';
352
- return ret;
353
- },
354
- __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
355
- const ret = arg0 === undefined;
356
- return ret;
357
- },
358
- __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
359
- const ret = arg0 == arg1;
360
- return ret;
361
- },
362
- __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
363
- const obj = arg1;
364
- const ret = typeof(obj) === 'number' ? obj : undefined;
365
- getDataViewMemory0$1().setFloat64(arg0 + 8 * 1, isLikeNone$1(ret) ? 0 : ret, true);
366
- getDataViewMemory0$1().setInt32(arg0 + 4 * 0, !isLikeNone$1(ret), true);
367
- },
368
- __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
369
- const obj = arg1;
370
- const ret = typeof(obj) === 'string' ? obj : undefined;
371
- var ptr1 = isLikeNone$1(ret) ? 0 : passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
372
- var len1 = WASM_VECTOR_LEN$1;
373
- getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
374
- getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
375
- },
376
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
377
- throw new Error(getStringFromWasm0$1(arg0, arg1));
378
- },
379
- __wbg_entries_e8a20ff8c9757101: function(arg0) {
380
- const ret = Object.entries(arg0);
381
- return ret;
382
- },
383
- __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
384
- let deferred0_0;
385
- let deferred0_1;
386
- try {
387
- deferred0_0 = arg0;
388
- deferred0_1 = arg1;
389
- console.error(getStringFromWasm0$1(arg0, arg1));
390
- } finally {
391
- wasm$1.__wbindgen_free(deferred0_0, deferred0_1, 1);
392
- }
393
- },
394
- __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
395
- const ret = arg0[arg1 >>> 0];
396
- return ret;
397
- },
398
- __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
399
- const ret = arg0[arg1];
400
- return ret;
401
- },
402
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
403
- let result;
404
- try {
405
- result = arg0 instanceof ArrayBuffer;
406
- } catch (_) {
407
- result = false;
408
- }
409
- const ret = result;
410
- return ret;
411
- },
412
- __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
413
- let result;
414
- try {
415
- result = arg0 instanceof Uint8Array;
416
- } catch (_) {
417
- result = false;
418
- }
419
- const ret = result;
420
- return ret;
421
- },
422
- __wbg_length_b3416cf66a5452c8: function(arg0) {
423
- const ret = arg0.length;
424
- return ret;
425
- },
426
- __wbg_length_ea16607d7b61445b: function(arg0) {
427
- const ret = arg0.length;
428
- return ret;
429
- },
430
- __wbg_new_227d7c05414eb861: function() {
431
- const ret = new Error();
432
- return ret;
433
- },
434
- __wbg_new_5f486cdf45a04d78: function(arg0) {
435
- const ret = new Uint8Array(arg0);
436
- return ret;
437
- },
438
- __wbg_new_a70fbab9066b301f: function() {
439
- const ret = new Array();
440
- return ret;
441
- },
442
- __wbg_new_ab79df5bd7c26067: function() {
443
- const ret = new Object();
444
- return ret;
445
- },
446
- __wbg_polygonizerwasmerror_new: function(arg0) {
447
- const ret = PolygonizerWasmError$1.__wrap(arg0);
448
- return ret;
449
- },
450
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
451
- Uint8Array.prototype.set.call(getArrayU8FromWasm0$1(arg0, arg1), arg2);
452
- },
453
- __wbg_set_282384002438957f: function(arg0, arg1, arg2) {
454
- arg0[arg1 >>> 0] = arg2;
455
- },
456
- __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
457
- arg0[arg1] = arg2;
458
- },
459
- __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
460
- const ret = arg1.stack;
461
- const ptr1 = passStringToWasm0$1(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
462
- const len1 = WASM_VECTOR_LEN$1;
463
- getDataViewMemory0$1().setInt32(arg0 + 4 * 1, len1, true);
464
- getDataViewMemory0$1().setInt32(arg0 + 4 * 0, ptr1, true);
465
- },
466
- __wbindgen_cast_0000000000000001: function(arg0) {
467
- // Cast intrinsic for `F64 -> Externref`.
468
- const ret = arg0;
469
- return ret;
470
- },
471
- __wbindgen_cast_0000000000000002: function(arg0, arg1) {
472
- // Cast intrinsic for `Ref(String) -> Externref`.
473
- const ret = getStringFromWasm0$1(arg0, arg1);
474
- return ret;
475
- },
476
- __wbindgen_cast_0000000000000003: function(arg0) {
477
- // Cast intrinsic for `U64 -> Externref`.
478
- const ret = BigInt.asUintN(64, arg0);
479
- return ret;
480
- },
481
- __wbindgen_init_externref_table: function() {
482
- const table = wasm$1.__wbindgen_externrefs;
483
- const offset = table.grow(4);
484
- table.set(0, undefined);
485
- table.set(offset + 0, undefined);
486
- table.set(offset + 1, null);
487
- table.set(offset + 2, true);
488
- table.set(offset + 3, false);
489
- },
490
- };
491
- return {
492
- __proto__: null,
493
- "./geo_polygonize_bg.js": import0,
494
- };
495
- }
496
-
497
- const PolygonizerWasmErrorFinalization$1 = (typeof FinalizationRegistry === 'undefined')
498
- ? { register: () => {}, unregister: () => {} }
499
- : new FinalizationRegistry(ptr => wasm$1.__wbg_polygonizerwasmerror_free(ptr >>> 0, 1));
500
- const WasmPolygonResultFinalization$1 = (typeof FinalizationRegistry === 'undefined')
501
- ? { register: () => {}, unregister: () => {} }
502
- : new FinalizationRegistry(ptr => wasm$1.__wbg_wasmpolygonresult_free(ptr >>> 0, 1));
503
-
504
- function debugString$1(val) {
505
- // primitive types
506
- const type = typeof val;
507
- if (type == 'number' || type == 'boolean' || val == null) {
508
- return `${val}`;
509
- }
510
- if (type == 'string') {
511
- return `"${val}"`;
512
- }
513
- if (type == 'symbol') {
514
- const description = val.description;
515
- if (description == null) {
516
- return 'Symbol';
517
- } else {
518
- return `Symbol(${description})`;
519
- }
520
- }
521
- if (type == 'function') {
522
- const name = val.name;
523
- if (typeof name == 'string' && name.length > 0) {
524
- return `Function(${name})`;
525
- } else {
526
- return 'Function';
527
- }
528
- }
529
- // objects
530
- if (Array.isArray(val)) {
531
- const length = val.length;
532
- let debug = '[';
533
- if (length > 0) {
534
- debug += debugString$1(val[0]);
535
- }
536
- for(let i = 1; i < length; i++) {
537
- debug += ', ' + debugString$1(val[i]);
538
- }
539
- debug += ']';
540
- return debug;
541
- }
542
- // Test for built-in
543
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
544
- let className;
545
- if (builtInMatches && builtInMatches.length > 1) {
546
- className = builtInMatches[1];
547
- } else {
548
- // Failed to match the standard '[object ClassName]'
549
- return toString.call(val);
550
- }
551
- if (className == 'Object') {
552
- // we're a user defined class or Object
553
- // JSON.stringify avoids problems with cycles, and is generally much
554
- // easier than looping through ownProperties of `val`.
555
- try {
556
- return 'Object(' + JSON.stringify(val) + ')';
557
- } catch (_) {
558
- return 'Object';
559
- }
560
- }
561
- // errors
562
- if (val instanceof Error) {
563
- return `${val.name}: ${val.message}\n${val.stack}`;
564
- }
565
- // TODO we could test for more things here, like `Set`s and `Map`s.
566
- return className;
567
- }
568
-
569
- function getArrayU8FromWasm0$1(ptr, len) {
570
- ptr = ptr >>> 0;
571
- return getUint8ArrayMemory0$1().subarray(ptr / 1, ptr / 1 + len);
572
- }
573
-
574
- let cachedDataViewMemory0$1 = null;
575
- function getDataViewMemory0$1() {
576
- if (cachedDataViewMemory0$1 === null || cachedDataViewMemory0$1.buffer.detached === true || (cachedDataViewMemory0$1.buffer.detached === undefined && cachedDataViewMemory0$1.buffer !== wasm$1.memory.buffer)) {
577
- cachedDataViewMemory0$1 = new DataView(wasm$1.memory.buffer);
578
- }
579
- return cachedDataViewMemory0$1;
580
- }
581
-
582
- let cachedFloat64ArrayMemory0$1 = null;
583
- function getFloat64ArrayMemory0$1() {
584
- if (cachedFloat64ArrayMemory0$1 === null || cachedFloat64ArrayMemory0$1.byteLength === 0) {
585
- cachedFloat64ArrayMemory0$1 = new Float64Array(wasm$1.memory.buffer);
586
- }
587
- return cachedFloat64ArrayMemory0$1;
588
- }
589
-
590
- function getStringFromWasm0$1(ptr, len) {
591
- ptr = ptr >>> 0;
592
- return decodeText$1(ptr, len);
593
- }
594
-
595
- let cachedUint32ArrayMemory0$1 = null;
596
- function getUint32ArrayMemory0$1() {
597
- if (cachedUint32ArrayMemory0$1 === null || cachedUint32ArrayMemory0$1.byteLength === 0) {
598
- cachedUint32ArrayMemory0$1 = new Uint32Array(wasm$1.memory.buffer);
599
- }
600
- return cachedUint32ArrayMemory0$1;
601
- }
602
-
603
- let cachedUint8ArrayMemory0$1 = null;
604
- function getUint8ArrayMemory0$1() {
605
- if (cachedUint8ArrayMemory0$1 === null || cachedUint8ArrayMemory0$1.byteLength === 0) {
606
- cachedUint8ArrayMemory0$1 = new Uint8Array(wasm$1.memory.buffer);
607
- }
608
- return cachedUint8ArrayMemory0$1;
609
- }
610
-
611
- function isLikeNone$1(x) {
612
- return x === undefined || x === null;
613
- }
614
-
615
- function passArray32ToWasm0$1(arg, malloc) {
616
- const ptr = malloc(arg.length * 4, 4) >>> 0;
617
- getUint32ArrayMemory0$1().set(arg, ptr / 4);
618
- WASM_VECTOR_LEN$1 = arg.length;
619
- return ptr;
620
- }
621
-
622
- function passArray8ToWasm0$1(arg, malloc) {
623
- const ptr = malloc(arg.length * 1, 1) >>> 0;
624
- getUint8ArrayMemory0$1().set(arg, ptr / 1);
625
- WASM_VECTOR_LEN$1 = arg.length;
626
- return ptr;
627
- }
628
-
629
- function passArrayF64ToWasm0$1(arg, malloc) {
630
- const ptr = malloc(arg.length * 8, 8) >>> 0;
631
- getFloat64ArrayMemory0$1().set(arg, ptr / 8);
632
- WASM_VECTOR_LEN$1 = arg.length;
633
- return ptr;
634
- }
635
-
636
- function passStringToWasm0$1(arg, malloc, realloc) {
637
- if (realloc === undefined) {
638
- const buf = cachedTextEncoder$1.encode(arg);
639
- const ptr = malloc(buf.length, 1) >>> 0;
640
- getUint8ArrayMemory0$1().subarray(ptr, ptr + buf.length).set(buf);
641
- WASM_VECTOR_LEN$1 = buf.length;
642
- return ptr;
643
- }
644
-
645
- let len = arg.length;
646
- let ptr = malloc(len, 1) >>> 0;
647
-
648
- const mem = getUint8ArrayMemory0$1();
649
-
650
- let offset = 0;
651
-
652
- for (; offset < len; offset++) {
653
- const code = arg.charCodeAt(offset);
654
- if (code > 0x7F) break;
655
- mem[ptr + offset] = code;
656
- }
657
- if (offset !== len) {
658
- if (offset !== 0) {
659
- arg = arg.slice(offset);
660
- }
661
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
662
- const view = getUint8ArrayMemory0$1().subarray(ptr + offset, ptr + len);
663
- const ret = cachedTextEncoder$1.encodeInto(arg, view);
664
-
665
- offset += ret.written;
666
- ptr = realloc(ptr, len, offset, 1) >>> 0;
667
- }
668
-
669
- WASM_VECTOR_LEN$1 = offset;
670
- return ptr;
671
- }
672
-
673
- function takeFromExternrefTable0$1(idx) {
674
- const value = wasm$1.__wbindgen_externrefs.get(idx);
675
- wasm$1.__externref_table_dealloc(idx);
676
- return value;
677
- }
678
-
679
- let cachedTextDecoder$1 = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
680
- cachedTextDecoder$1.decode();
681
- const MAX_SAFARI_DECODE_BYTES$1 = 2146435072;
682
- let numBytesDecoded$1 = 0;
683
- function decodeText$1(ptr, len) {
684
- numBytesDecoded$1 += len;
685
- if (numBytesDecoded$1 >= MAX_SAFARI_DECODE_BYTES$1) {
686
- cachedTextDecoder$1 = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
687
- cachedTextDecoder$1.decode();
688
- numBytesDecoded$1 = len;
689
- }
690
- return cachedTextDecoder$1.decode(getUint8ArrayMemory0$1().subarray(ptr, ptr + len));
691
- }
692
-
693
- const cachedTextEncoder$1 = new TextEncoder();
694
-
695
- if (!('encodeInto' in cachedTextEncoder$1)) {
696
- cachedTextEncoder$1.encodeInto = function (arg, view) {
697
- const buf = cachedTextEncoder$1.encode(arg);
698
- view.set(buf);
699
- return {
700
- read: arg.length,
701
- written: buf.length
702
- };
703
- };
704
- }
705
-
706
- let WASM_VECTOR_LEN$1 = 0;
707
-
708
- let wasm$1;
709
- function __wbg_finalize_init$1(instance, module) {
710
- wasm$1 = instance.exports;
711
- cachedDataViewMemory0$1 = null;
712
- cachedFloat64ArrayMemory0$1 = null;
713
- cachedUint32ArrayMemory0$1 = null;
714
- cachedUint8ArrayMemory0$1 = null;
715
- wasm$1.__wbindgen_start();
716
- return wasm$1;
717
- }
718
-
719
- async function __wbg_load$1(module, imports) {
720
- if (typeof Response === 'function' && module instanceof Response) {
721
- if (typeof WebAssembly.instantiateStreaming === 'function') {
722
- try {
723
- return await WebAssembly.instantiateStreaming(module, imports);
724
- } catch (e) {
725
- const validResponse = module.ok && expectedResponseType(module.type);
726
-
727
- if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
728
- console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
729
-
730
- } else { throw e; }
731
- }
732
- }
733
-
734
- const bytes = await module.arrayBuffer();
735
- return await WebAssembly.instantiate(bytes, imports);
736
- } else {
737
- const instance = await WebAssembly.instantiate(module, imports);
738
-
739
- if (instance instanceof WebAssembly.Instance) {
740
- return { instance, module };
741
- } else {
742
- return instance;
743
- }
744
- }
745
-
746
- function expectedResponseType(type) {
747
- switch (type) {
748
- case 'basic': case 'cors': case 'default': return true;
749
- }
750
- return false;
751
- }
752
- }
753
-
754
- function initSync$1(module) {
755
- if (wasm$1 !== undefined) return wasm$1;
756
-
757
-
758
- if (module !== undefined) {
759
- if (Object.getPrototypeOf(module) === Object.prototype) {
760
- ({module} = module);
761
- } else {
762
- console.warn('using deprecated parameters for `initSync()`; pass a single object instead');
763
- }
764
- }
765
-
766
- const imports = __wbg_get_imports$1();
767
- if (!(module instanceof WebAssembly.Module)) {
768
- module = new WebAssembly.Module(module);
769
- }
770
- const instance = new WebAssembly.Instance(module, imports);
771
- return __wbg_finalize_init$1(instance);
772
- }
773
-
774
- async function __wbg_init$1(module_or_path) {
775
- if (wasm$1 !== undefined) return wasm$1;
776
-
777
-
778
- if (module_or_path !== undefined) {
779
- if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
780
- ({module_or_path} = module_or_path);
781
- } else {
782
- console.warn('using deprecated parameters for the initialization function; pass a single object instead');
783
- }
784
- }
785
-
786
- if (module_or_path === undefined) {
787
- module_or_path = new URL('geo_polygonize_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index_slim.js', document.baseURI).href)));
788
- }
789
- const imports = __wbg_get_imports$1();
790
-
791
- if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
792
- module_or_path = fetch(module_or_path);
793
- }
794
-
795
- const { instance, module } = await __wbg_load$1(await module_or_path, imports);
796
-
797
- return __wbg_finalize_init$1(instance);
798
- }
799
-
800
- var scalarExports = /*#__PURE__*/Object.freeze({
801
- __proto__: null,
802
- PolygonizerWasmError: PolygonizerWasmError$1,
803
- WasmPolygonResult: WasmPolygonResult$1,
804
- default: __wbg_init$1,
805
- initSync: initSync$1,
806
- polygonize: polygonize$1,
807
- polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions$1,
808
- polygonizeWithOptions: polygonizeWithOptions$1,
809
- polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer$1,
810
- polygonize_buffers: polygonize_buffers$1,
811
- polygonize_geoarrow: polygonize_geoarrow$1
812
- });
813
-
814
- /* @ts-self-types="./geo_polygonize.d.ts" */
815
-
816
6
  class PolygonizerWasmError {
817
7
  static __wrap(ptr) {
818
8
  ptr = ptr >>> 0;
@@ -910,6 +100,20 @@ class WasmPolygonResult {
910
100
  const ret = wasm.wasmpolygonresult_coords_ptr(this.__wbg_ptr);
911
101
  return ret >>> 0;
912
102
  }
103
+ /**
104
+ * @returns {any}
105
+ */
106
+ get cut_edges() {
107
+ const ret = wasm.wasmpolygonresult_cut_edges(this.__wbg_ptr);
108
+ return ret;
109
+ }
110
+ /**
111
+ * @returns {any}
112
+ */
113
+ get dangles() {
114
+ const ret = wasm.wasmpolygonresult_dangles(this.__wbg_ptr);
115
+ return ret;
116
+ }
913
117
  /**
914
118
  * @returns {any}
915
119
  */
@@ -931,6 +135,13 @@ class WasmPolygonResult {
931
135
  const ret = wasm.wasmpolygonresult_flat_line_ids_ptr(this.__wbg_ptr);
932
136
  return ret >>> 0;
933
137
  }
138
+ /**
139
+ * @returns {any}
140
+ */
141
+ get invalid_rings() {
142
+ const ret = wasm.wasmpolygonresult_invalid_rings(this.__wbg_ptr);
143
+ return ret;
144
+ }
934
145
  /**
935
146
  * @returns {number}
936
147
  */
@@ -1594,7 +805,7 @@ async function __wbg_init(module_or_path) {
1594
805
  }
1595
806
 
1596
807
  if (module_or_path === undefined) {
1597
- module_or_path = new URL('geo_polygonize_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index_slim.js', document.baseURI).href)));
808
+ module_or_path = new URL(/* @vite-ignore */ 'geo_polygonize_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index_slim.js', document.baseURI).href)));
1598
809
  }
1599
810
  const imports = __wbg_get_imports();
1600
811
 
@@ -1607,7 +818,7 @@ async function __wbg_init(module_or_path) {
1607
818
  return __wbg_finalize_init(instance);
1608
819
  }
1609
820
 
1610
- var simdExports = /*#__PURE__*/Object.freeze({
821
+ var scalarExports = /*#__PURE__*/Object.freeze({
1611
822
  __proto__: null,
1612
823
  PolygonizerWasmError: PolygonizerWasmError,
1613
824
  WasmPolygonResult: WasmPolygonResult,
@@ -1621,9 +832,48 @@ var simdExports = /*#__PURE__*/Object.freeze({
1621
832
  polygonize_geoarrow: polygonize_geoarrow
1622
833
  });
1623
834
 
835
+ const cfbRobustOptions = {
836
+ target: "Native",
837
+ node_input: true,
838
+ snap_grid_size: 0.5,
839
+ extract_only_polygonal: false,
840
+ snap_strategy: "GeosCompat",
841
+ noding: {
842
+ backend: "Snap",
843
+ snap_mode: "FloatEpsilonDedup",
844
+ },
845
+ containment: {
846
+ touch_policy: "AllowPointTouchDisallowEdgeShare",
847
+ index_backend: "RStar",
848
+ },
849
+ z: {
850
+ policy: "InterpolateAlongEdge",
851
+ },
852
+ determinism: {
853
+ canonical_sort: true,
854
+ canonical_ring_rotation: true,
855
+ stable_tie_breaks: true,
856
+ },
857
+ diagnostics: {
858
+ enabled: true,
859
+ report_mode: true,
860
+ },
861
+ provenance: {
862
+ enabled: true,
863
+ include_boundary_line_ids: true,
864
+ },
865
+ input_profile_id: "cfb_robust_v1",
866
+ };
867
+
1624
868
  // We provide a helper to choose based on feature detection if the user wants to use it
1625
869
  let isSimdSupported;
1626
870
  const SIMD_TEST_BYTES = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]);
871
+ function normalizeInitInput(input) {
872
+ if (input && typeof input === "object" && "module" in input && !("module_or_path" in input)) {
873
+ return { ...input, module_or_path: input.module };
874
+ }
875
+ return input;
876
+ }
1627
877
  async function initBest(scalarModule, simdModule) {
1628
878
  if (isSimdSupported === undefined) {
1629
879
  try {
@@ -1633,23 +883,18 @@ async function initBest(scalarModule, simdModule) {
1633
883
  isSimdSupported = false;
1634
884
  }
1635
885
  }
1636
- if (isSimdSupported && simdModule) {
1637
- await __wbg_init(simdModule);
1638
- return simdExports;
1639
- }
1640
- else {
1641
- await __wbg_init$1(scalarModule);
1642
- return scalarExports;
1643
- }
886
+ await __wbg_init(normalizeInitInput(isSimdSupported && simdModule ? simdModule : scalarModule));
887
+ return scalarExports;
1644
888
  }
1645
889
 
1646
- exports.PolygonizerWasmError = PolygonizerWasmError$1;
1647
- exports.WasmPolygonResult = WasmPolygonResult$1;
890
+ exports.PolygonizerWasmError = PolygonizerWasmError;
891
+ exports.WasmPolygonResult = WasmPolygonResult;
892
+ exports.cfbRobustOptions = cfbRobustOptions;
1648
893
  exports.initBest = initBest;
1649
- exports.initSync = initSync$1;
1650
- exports.polygonize = polygonize$1;
1651
- exports.polygonizeGeoArrowWithOptions = polygonizeGeoArrowWithOptions$1;
1652
- exports.polygonizeWithOptions = polygonizeWithOptions$1;
1653
- exports.polygonizeWithOptionsBuffer = polygonizeWithOptionsBuffer$1;
1654
- exports.polygonize_buffers = polygonize_buffers$1;
1655
- exports.polygonize_geoarrow = polygonize_geoarrow$1;
894
+ exports.initSync = initSync;
895
+ exports.polygonize = polygonize;
896
+ exports.polygonizeGeoArrowWithOptions = polygonizeGeoArrowWithOptions;
897
+ exports.polygonizeWithOptions = polygonizeWithOptions;
898
+ exports.polygonizeWithOptionsBuffer = polygonizeWithOptionsBuffer;
899
+ exports.polygonize_buffers = polygonize_buffers;
900
+ exports.polygonize_geoarrow = polygonize_geoarrow;