geo-polygonize 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/geo_polygonize.wasm +0 -0
- package/dist/geo_polygonize_simd.wasm +0 -0
- package/dist/slim/cjs/index_slim.js +37 -0
- package/dist/slim/es/index_slim.js +37 -1
- package/dist/standard/cjs/index.js +21 -2
- package/dist/standard/es/index.js +21 -3
- package/dist/threads/es/index.js +19 -1
- package/package.json +1 -1
package/dist/threads/es/index.js
CHANGED
|
@@ -503,6 +503,23 @@ function polygonize(geojson_str, node_input, snap_grid_size, extract_only_polygo
|
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
+
/**
|
|
507
|
+
* @param {Uint8Array} ipc_bytes
|
|
508
|
+
* @param {any} options_val
|
|
509
|
+
* @returns {Uint8Array}
|
|
510
|
+
*/
|
|
511
|
+
function polygonizeGeoArrowWithOptions(ipc_bytes, options_val) {
|
|
512
|
+
const ptr0 = passArray8ToWasm0(ipc_bytes, wasm.__wbindgen_malloc);
|
|
513
|
+
const len0 = WASM_VECTOR_LEN;
|
|
514
|
+
const ret = wasm.polygonizeGeoArrowWithOptions(ptr0, len0, options_val);
|
|
515
|
+
if (ret[3]) {
|
|
516
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
517
|
+
}
|
|
518
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
519
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
520
|
+
return v2;
|
|
521
|
+
}
|
|
522
|
+
|
|
506
523
|
/**
|
|
507
524
|
* @param {string} geojson_str
|
|
508
525
|
* @param {any} options_val
|
|
@@ -932,6 +949,7 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
|
|
|
932
949
|
initSync: initSync,
|
|
933
950
|
initThreadPool: initThreadPool,
|
|
934
951
|
polygonize: polygonize,
|
|
952
|
+
polygonizeGeoArrowWithOptions: polygonizeGeoArrowWithOptions,
|
|
935
953
|
polygonizeWithOptions: polygonizeWithOptions,
|
|
936
954
|
polygonizeWithOptionsBuffer: polygonizeWithOptionsBuffer,
|
|
937
955
|
polygonize_buffers: polygonize_buffers,
|
|
@@ -940,4 +958,4 @@ var geo_polygonize = /*#__PURE__*/Object.freeze({
|
|
|
940
958
|
wbg_rayon_start_worker: wbg_rayon_start_worker
|
|
941
959
|
});
|
|
942
960
|
|
|
943
|
-
export { PolygonizerWasmError, WasmPolygonResult, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
|
|
961
|
+
export { PolygonizerWasmError, WasmPolygonResult, __wbg_init as default, initSync, initThreadPool, polygonize, polygonizeGeoArrowWithOptions, polygonizeWithOptions, polygonizeWithOptionsBuffer, polygonize_buffers, polygonize_geoarrow, wbg_rayon_PoolBuilder, wbg_rayon_start_worker };
|