node-red-contrib-tak-registration 0.13.1 → 0.14.1
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/node_modules/@turf/along/README.md +3 -5
- package/node_modules/@turf/along/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/along/dist/cjs/index.d.cts +3 -3
- package/node_modules/@turf/along/dist/esm/index.d.ts +3 -3
- package/node_modules/@turf/along/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/along/package.json +13 -13
- package/node_modules/@turf/angle/dist/cjs/index.cjs +10 -7
- package/node_modules/@turf/angle/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/angle/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/angle/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/angle/dist/esm/index.js +10 -7
- package/node_modules/@turf/angle/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/angle/package.json +15 -15
- package/node_modules/@turf/area/dist/cjs/index.cjs +1 -2
- package/node_modules/@turf/area/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/area/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/area/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/area/dist/esm/index.js +1 -2
- package/node_modules/@turf/area/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/area/package.json +10 -10
- package/node_modules/@turf/bbox/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bbox/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/bbox/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/bbox/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/bbox/package.json +10 -10
- package/node_modules/@turf/bbox-clip/dist/cjs/index.cjs +9 -18
- package/node_modules/@turf/bbox-clip/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bbox-clip/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/bbox-clip/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/bbox-clip/dist/esm/index.js +9 -18
- package/node_modules/@turf/bbox-clip/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/bbox-clip/package.json +11 -11
- package/node_modules/@turf/bbox-polygon/README.md +6 -6
- package/node_modules/@turf/bbox-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bbox-polygon/dist/cjs/index.d.cts +2 -2
- package/node_modules/@turf/bbox-polygon/dist/esm/index.d.ts +2 -2
- package/node_modules/@turf/bbox-polygon/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/bbox-polygon/package.json +9 -9
- package/node_modules/@turf/bearing/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bearing/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/bearing/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/bearing/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/bearing/package.json +11 -11
- package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bezier-spline/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/bezier-spline/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/bezier-spline/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/bezier-spline/package.json +10 -10
- package/node_modules/@turf/boolean-clockwise/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-clockwise/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-clockwise/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-clockwise/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-clockwise/package.json +10 -10
- package/node_modules/@turf/boolean-concave/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-concave/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-concave/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-concave/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-concave/package.json +10 -10
- package/node_modules/@turf/boolean-contains/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-contains/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-contains/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-contains/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-contains/package.json +13 -13
- package/node_modules/@turf/boolean-crosses/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-crosses/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-crosses/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-crosses/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-crosses/package.json +13 -13
- package/node_modules/@turf/boolean-disjoint/README.md +1 -1
- package/node_modules/@turf/boolean-disjoint/dist/cjs/index.cjs +3 -3
- package/node_modules/@turf/boolean-disjoint/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-disjoint/dist/cjs/index.d.cts +3 -3
- package/node_modules/@turf/boolean-disjoint/dist/esm/index.d.ts +3 -3
- package/node_modules/@turf/boolean-disjoint/dist/esm/index.js +3 -3
- package/node_modules/@turf/boolean-disjoint/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-disjoint/package.json +13 -13
- package/node_modules/@turf/boolean-equal/dist/cjs/index.cjs +1 -2
- package/node_modules/@turf/boolean-equal/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-equal/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-equal/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-equal/dist/esm/index.js +1 -2
- package/node_modules/@turf/boolean-equal/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-equal/package.json +11 -11
- package/node_modules/@turf/boolean-intersects/dist/cjs/index.cjs +3 -3
- package/node_modules/@turf/boolean-intersects/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-intersects/dist/cjs/index.d.cts +3 -3
- package/node_modules/@turf/boolean-intersects/dist/esm/index.d.ts +3 -3
- package/node_modules/@turf/boolean-intersects/dist/esm/index.js +3 -3
- package/node_modules/@turf/boolean-intersects/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-intersects/package.json +11 -11
- package/node_modules/@turf/boolean-overlap/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/boolean-overlap/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-overlap/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-overlap/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-overlap/dist/esm/index.js +3 -6
- package/node_modules/@turf/boolean-overlap/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-overlap/package.json +13 -13
- package/node_modules/@turf/boolean-parallel/dist/cjs/index.cjs +7 -14
- package/node_modules/@turf/boolean-parallel/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-parallel/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-parallel/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-parallel/dist/esm/index.js +7 -14
- package/node_modules/@turf/boolean-parallel/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-parallel/package.json +12 -12
- package/node_modules/@turf/boolean-point-in-polygon/dist/cjs/index.cjs +2 -4
- package/node_modules/@turf/boolean-point-in-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-point-in-polygon/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js +2 -4
- package/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-point-in-polygon/package.json +10 -10
- package/node_modules/@turf/boolean-point-on-line/dist/cjs/index.cjs +10 -0
- package/node_modules/@turf/boolean-point-on-line/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-point-on-line/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-point-on-line/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-point-on-line/dist/esm/index.js +10 -0
- package/node_modules/@turf/boolean-point-on-line/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-point-on-line/package.json +10 -10
- package/node_modules/@turf/boolean-touches/dist/cjs/index.cjs +2 -4
- package/node_modules/@turf/boolean-touches/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-touches/dist/cjs/index.d.cts +2 -1
- package/node_modules/@turf/boolean-touches/dist/esm/index.d.ts +2 -1
- package/node_modules/@turf/boolean-touches/dist/esm/index.js +2 -4
- package/node_modules/@turf/boolean-touches/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-touches/package.json +12 -12
- package/node_modules/@turf/boolean-valid/dist/cjs/index.cjs +14 -28
- package/node_modules/@turf/boolean-valid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-valid/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-valid/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-valid/dist/esm/index.js +14 -28
- package/node_modules/@turf/boolean-valid/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-valid/package.json +17 -17
- package/node_modules/@turf/boolean-within/dist/cjs/index.cjs +4 -8
- package/node_modules/@turf/boolean-within/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-within/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/boolean-within/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/boolean-within/dist/esm/index.js +4 -8
- package/node_modules/@turf/boolean-within/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-within/package.json +13 -13
- package/node_modules/@turf/buffer/dist/cjs/index.cjs +12 -24
- package/node_modules/@turf/buffer/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/buffer/dist/esm/index.js +12 -24
- package/node_modules/@turf/buffer/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/buffer/package.json +12 -12
- package/node_modules/@turf/center/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/center/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/center/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/center/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/center/package.json +12 -12
- package/node_modules/@turf/center-mean/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/center-mean/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/center-mean/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/center-mean/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/center-mean/package.json +13 -13
- package/node_modules/@turf/center-median/dist/cjs/index.cjs +5 -10
- package/node_modules/@turf/center-median/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/center-median/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/center-median/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/center-median/dist/esm/index.js +5 -10
- package/node_modules/@turf/center-median/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/center-median/package.json +17 -17
- package/node_modules/@turf/center-of-mass/dist/cjs/index.cjs +2 -4
- package/node_modules/@turf/center-of-mass/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/center-of-mass/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/center-of-mass/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/center-of-mass/dist/esm/index.js +2 -4
- package/node_modules/@turf/center-of-mass/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/center-of-mass/package.json +13 -13
- package/node_modules/@turf/centroid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/centroid/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/centroid/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/centroid/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/centroid/package.json +10 -10
- package/node_modules/@turf/circle/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/circle/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/circle/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/circle/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/circle/package.json +11 -11
- package/node_modules/@turf/clean-coords/dist/cjs/index.cjs +4 -8
- package/node_modules/@turf/clean-coords/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/clean-coords/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/clean-coords/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/clean-coords/dist/esm/index.js +4 -8
- package/node_modules/@turf/clean-coords/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/clean-coords/package.json +11 -11
- package/node_modules/@turf/clone/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/clone/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/clone/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/clone/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/clone/package.json +10 -10
- package/node_modules/@turf/clusters/README.md +8 -2
- package/node_modules/@turf/clusters/dist/cjs/index.cjs +9 -18
- package/node_modules/@turf/clusters/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/clusters/dist/cjs/index.d.cts +9 -8
- package/node_modules/@turf/clusters/dist/esm/index.d.ts +9 -8
- package/node_modules/@turf/clusters/dist/esm/index.js +9 -18
- package/node_modules/@turf/clusters/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/clusters/package.json +10 -10
- package/node_modules/@turf/clusters-dbscan/README.md +38 -15
- package/node_modules/@turf/clusters-dbscan/dist/cjs/index.cjs +2 -4
- package/node_modules/@turf/clusters-dbscan/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/clusters-dbscan/dist/cjs/index.d.cts +16 -3
- package/node_modules/@turf/clusters-dbscan/dist/esm/index.d.ts +16 -3
- package/node_modules/@turf/clusters-dbscan/dist/esm/index.js +2 -4
- package/node_modules/@turf/clusters-dbscan/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/clusters-dbscan/package.json +14 -14
- package/node_modules/@turf/clusters-kmeans/dist/cjs/index.cjs +2 -4
- package/node_modules/@turf/clusters-kmeans/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/clusters-kmeans/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/clusters-kmeans/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/clusters-kmeans/dist/esm/index.js +2 -4
- package/node_modules/@turf/clusters-kmeans/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/clusters-kmeans/package.json +15 -15
- package/node_modules/@turf/collect/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/collect/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/collect/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/collect/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/collect/package.json +11 -11
- package/node_modules/@turf/combine/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/combine/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/combine/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/combine/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/combine/package.json +10 -10
- package/node_modules/@turf/concave/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/concave/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/concave/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/concave/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/concave/package.json +14 -14
- package/node_modules/@turf/convex/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/convex/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/convex/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/convex/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/convex/package.json +10 -10
- package/node_modules/@turf/destination/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/destination/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/destination/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/destination/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/destination/package.json +11 -11
- package/node_modules/@turf/difference/dist/cjs/index.cjs +8 -10
- package/node_modules/@turf/difference/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/difference/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/difference/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/difference/dist/esm/index.js +7 -9
- package/node_modules/@turf/difference/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/difference/package.json +11 -11
- package/node_modules/@turf/dissolve/README.md +11 -12
- package/node_modules/@turf/dissolve/dist/cjs/index.cjs +5 -6
- package/node_modules/@turf/dissolve/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/dissolve/dist/cjs/index.d.cts +3 -3
- package/node_modules/@turf/dissolve/dist/esm/index.d.ts +3 -3
- package/node_modules/@turf/dissolve/dist/esm/index.js +4 -5
- package/node_modules/@turf/dissolve/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/dissolve/package.json +13 -13
- package/node_modules/@turf/distance/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/distance/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/distance/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/distance/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/distance/package.json +10 -10
- package/node_modules/@turf/distance-weight/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/distance-weight/dist/cjs/index.d.cts +3 -1
- package/node_modules/@turf/distance-weight/dist/esm/index.d.ts +3 -1
- package/node_modules/@turf/distance-weight/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/distance-weight/package.json +12 -12
- package/node_modules/@turf/ellipse/dist/cjs/index.cjs +8 -16
- package/node_modules/@turf/ellipse/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/ellipse/dist/esm/index.js +8 -16
- package/node_modules/@turf/ellipse/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/ellipse/package.json +16 -16
- package/node_modules/@turf/envelope/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/envelope/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/envelope/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/envelope/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/envelope/package.json +11 -11
- package/node_modules/@turf/explode/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/explode/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/explode/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/explode/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/explode/package.json +10 -10
- package/node_modules/@turf/flatten/dist/cjs/index.cjs +1 -2
- package/node_modules/@turf/flatten/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/flatten/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/flatten/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/flatten/dist/esm/index.js +1 -2
- package/node_modules/@turf/flatten/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/flatten/package.json +10 -10
- package/node_modules/@turf/flip/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/flip/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/flip/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/flip/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/flip/dist/esm/index.js +3 -6
- package/node_modules/@turf/flip/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/flip/package.json +11 -11
- package/node_modules/@turf/geojson-rbush/dist/cjs/index.cjs +9 -18
- package/node_modules/@turf/geojson-rbush/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/geojson-rbush/dist/esm/index.js +9 -18
- package/node_modules/@turf/geojson-rbush/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/geojson-rbush/package.json +11 -11
- package/node_modules/@turf/great-circle/README.md +2 -1
- package/node_modules/@turf/great-circle/dist/cjs/index.cjs +7 -2
- package/node_modules/@turf/great-circle/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/great-circle/dist/esm/index.js +7 -2
- package/node_modules/@turf/great-circle/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/great-circle/package.json +9 -9
- package/node_modules/@turf/helpers/README.md +199 -154
- package/node_modules/@turf/helpers/dist/cjs/index.cjs +10 -7
- package/node_modules/@turf/helpers/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/helpers/dist/cjs/index.d.cts +149 -110
- package/node_modules/@turf/helpers/dist/esm/index.d.ts +149 -110
- package/node_modules/@turf/helpers/dist/esm/index.js +10 -7
- package/node_modules/@turf/helpers/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/helpers/package.json +8 -8
- package/node_modules/@turf/hex-grid/dist/cjs/index.cjs +2 -4
- package/node_modules/@turf/hex-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/hex-grid/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/hex-grid/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/hex-grid/dist/esm/index.js +2 -4
- package/node_modules/@turf/hex-grid/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/hex-grid/package.json +14 -14
- package/node_modules/@turf/interpolate/README.md +5 -2
- package/node_modules/@turf/interpolate/dist/cjs/index.cjs +10 -15
- package/node_modules/@turf/interpolate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/interpolate/dist/cjs/index.d.cts +3 -1
- package/node_modules/@turf/interpolate/dist/esm/index.d.ts +3 -1
- package/node_modules/@turf/interpolate/dist/esm/index.js +11 -16
- package/node_modules/@turf/interpolate/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/interpolate/package.json +18 -18
- package/node_modules/@turf/intersect/dist/cjs/index.cjs +7 -11
- package/node_modules/@turf/intersect/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/intersect/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/intersect/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/intersect/dist/esm/index.js +6 -10
- package/node_modules/@turf/intersect/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/intersect/package.json +11 -11
- package/node_modules/@turf/invariant/README.md +4 -0
- package/node_modules/@turf/invariant/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/invariant/dist/cjs/index.d.cts +6 -6
- package/node_modules/@turf/invariant/dist/esm/index.d.ts +6 -6
- package/node_modules/@turf/invariant/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/invariant/package.json +9 -9
- package/node_modules/@turf/isobands/dist/cjs/index.cjs +10 -20
- package/node_modules/@turf/isobands/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/isobands/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/isobands/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/isobands/dist/esm/index.js +10 -20
- package/node_modules/@turf/isobands/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/isobands/package.json +20 -20
- package/node_modules/@turf/isolines/dist/cjs/index.cjs +10 -20
- package/node_modules/@turf/isolines/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/isolines/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/isolines/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/isolines/dist/esm/index.js +10 -20
- package/node_modules/@turf/isolines/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/isolines/package.json +17 -17
- package/node_modules/@turf/kinks/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/kinks/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/kinks/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/kinks/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/kinks/package.json +10 -10
- package/node_modules/@turf/length/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/length/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/length/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/length/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/length/package.json +11 -11
- package/node_modules/@turf/line-arc/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-arc/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/line-arc/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/line-arc/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-arc/package.json +12 -12
- package/node_modules/@turf/line-chunk/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/line-chunk/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-chunk/dist/esm/index.js +3 -6
- package/node_modules/@turf/line-chunk/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-chunk/package.json +11 -11
- package/node_modules/@turf/line-intersect/README.md +1 -1
- package/node_modules/@turf/line-intersect/dist/cjs/index.cjs +3 -5
- package/node_modules/@turf/line-intersect/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-intersect/dist/cjs/index.d.cts +2 -2
- package/node_modules/@turf/line-intersect/dist/esm/index.d.ts +2 -2
- package/node_modules/@turf/line-intersect/dist/esm/index.js +3 -5
- package/node_modules/@turf/line-intersect/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-intersect/package.json +10 -10
- package/node_modules/@turf/line-offset/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/line-offset/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-offset/dist/esm/index.js +3 -6
- package/node_modules/@turf/line-offset/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-offset/package.json +10 -10
- package/node_modules/@turf/line-overlap/dist/cjs/index.cjs +10 -20
- package/node_modules/@turf/line-overlap/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-overlap/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/line-overlap/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/line-overlap/dist/esm/index.js +10 -20
- package/node_modules/@turf/line-overlap/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-overlap/package.json +15 -15
- package/node_modules/@turf/line-segment/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-segment/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/line-segment/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/line-segment/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-segment/package.json +11 -11
- package/node_modules/@turf/line-slice/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-slice/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-slice/package.json +10 -10
- package/node_modules/@turf/line-slice-along/dist/cjs/index.cjs +5 -10
- package/node_modules/@turf/line-slice-along/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-slice-along/dist/esm/index.js +5 -10
- package/node_modules/@turf/line-slice-along/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-slice-along/package.json +12 -12
- package/node_modules/@turf/line-split/dist/cjs/index.cjs +7 -14
- package/node_modules/@turf/line-split/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-split/dist/esm/index.js +7 -14
- package/node_modules/@turf/line-split/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-split/package.json +16 -16
- package/node_modules/@turf/line-to-polygon/dist/cjs/index.cjs +4 -8
- package/node_modules/@turf/line-to-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-to-polygon/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/line-to-polygon/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/line-to-polygon/dist/esm/index.js +4 -8
- package/node_modules/@turf/line-to-polygon/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-to-polygon/package.json +12 -12
- package/node_modules/@turf/mask/dist/cjs/index.cjs +7 -7
- package/node_modules/@turf/mask/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/mask/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/mask/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/mask/dist/esm/index.js +6 -6
- package/node_modules/@turf/mask/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/mask/package.json +11 -11
- package/node_modules/@turf/meta/README.md +145 -93
- package/node_modules/@turf/meta/dist/cjs/index.cjs +22 -44
- package/node_modules/@turf/meta/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/meta/dist/esm/index.js +22 -44
- package/node_modules/@turf/meta/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/meta/package.json +7 -7
- package/node_modules/@turf/midpoint/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/midpoint/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/midpoint/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/midpoint/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/midpoint/package.json +12 -12
- package/node_modules/@turf/moran-index/README.md +25 -47
- package/node_modules/@turf/moran-index/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/moran-index/dist/cjs/index.d.cts +16 -8
- package/node_modules/@turf/moran-index/dist/esm/index.d.ts +16 -8
- package/node_modules/@turf/moran-index/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/moran-index/package.json +11 -11
- package/node_modules/@turf/nearest-neighbor-analysis/README.md +50 -21
- package/node_modules/@turf/nearest-neighbor-analysis/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/nearest-neighbor-analysis/dist/cjs/index.d.cts +25 -6
- package/node_modules/@turf/nearest-neighbor-analysis/dist/esm/index.d.ts +25 -6
- package/node_modules/@turf/nearest-neighbor-analysis/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/nearest-neighbor-analysis/package.json +17 -17
- package/node_modules/@turf/nearest-point/dist/cjs/index.cjs +2 -4
- package/node_modules/@turf/nearest-point/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/nearest-point/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/nearest-point/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/nearest-point/dist/esm/index.js +2 -4
- package/node_modules/@turf/nearest-point/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/nearest-point/package.json +12 -12
- package/node_modules/@turf/nearest-point-on-line/README.md +9 -9
- package/node_modules/@turf/nearest-point-on-line/dist/cjs/index.cjs +97 -53
- package/node_modules/@turf/nearest-point-on-line/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/nearest-point-on-line/dist/cjs/index.d.cts +2 -2
- package/node_modules/@turf/nearest-point-on-line/dist/esm/index.d.ts +2 -2
- package/node_modules/@turf/nearest-point-on-line/dist/esm/index.js +99 -55
- package/node_modules/@turf/nearest-point-on-line/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/nearest-point-on-line/package.json +15 -18
- package/node_modules/@turf/nearest-point-to-line/README.md +1 -9
- package/node_modules/@turf/nearest-point-to-line/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/nearest-point-to-line/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/nearest-point-to-line/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/nearest-point-to-line/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/nearest-point-to-line/package.json +14 -14
- package/node_modules/@turf/planepoint/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/planepoint/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/planepoint/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/planepoint/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/planepoint/package.json +10 -10
- package/node_modules/@turf/point-grid/dist/cjs/index.cjs +2 -4
- package/node_modules/@turf/point-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/point-grid/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/point-grid/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/point-grid/dist/esm/index.js +2 -4
- package/node_modules/@turf/point-grid/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/point-grid/package.json +14 -14
- package/node_modules/@turf/point-on-feature/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/point-on-feature/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/point-on-feature/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/point-on-feature/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/point-on-feature/package.json +15 -15
- package/node_modules/@turf/point-to-line-distance/README.md +10 -10
- package/node_modules/@turf/point-to-line-distance/dist/cjs/index.cjs +21 -19
- package/node_modules/@turf/point-to-line-distance/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/point-to-line-distance/dist/cjs/index.d.cts +3 -3
- package/node_modules/@turf/point-to-line-distance/dist/esm/index.d.ts +3 -3
- package/node_modules/@turf/point-to-line-distance/dist/esm/index.js +22 -20
- package/node_modules/@turf/point-to-line-distance/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/point-to-line-distance/package.json +18 -17
- package/node_modules/@turf/point-to-polygon-distance/LICENSE +20 -0
- package/node_modules/@turf/point-to-polygon-distance/README.md +61 -0
- package/node_modules/@turf/point-to-polygon-distance/dist/cjs/index.cjs +49 -0
- package/node_modules/@turf/point-to-polygon-distance/dist/cjs/index.cjs.map +1 -0
- package/node_modules/@turf/point-to-polygon-distance/dist/cjs/index.d.cts +23 -0
- package/node_modules/@turf/point-to-polygon-distance/dist/esm/index.d.ts +23 -0
- package/node_modules/@turf/point-to-polygon-distance/dist/esm/index.js +49 -0
- package/node_modules/@turf/point-to-polygon-distance/dist/esm/index.js.map +1 -0
- package/node_modules/@turf/point-to-polygon-distance/package.json +80 -0
- package/node_modules/@turf/points-within-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/points-within-polygon/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/points-within-polygon/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/points-within-polygon/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/points-within-polygon/package.json +11 -11
- package/node_modules/@turf/polygon-smooth/dist/cjs/index.cjs +1 -2
- package/node_modules/@turf/polygon-smooth/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/polygon-smooth/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/polygon-smooth/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/polygon-smooth/dist/esm/index.js +1 -2
- package/node_modules/@turf/polygon-smooth/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/polygon-smooth/package.json +10 -10
- package/node_modules/@turf/polygon-tangents/dist/cjs/index.cjs +1 -2
- package/node_modules/@turf/polygon-tangents/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/polygon-tangents/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/polygon-tangents/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/polygon-tangents/dist/esm/index.js +1 -2
- package/node_modules/@turf/polygon-tangents/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/polygon-tangents/package.json +14 -14
- package/node_modules/@turf/polygon-to-line/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/polygon-to-line/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/polygon-to-line/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/polygon-to-line/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/polygon-to-line/package.json +10 -10
- package/node_modules/@turf/polygonize/dist/cjs/index.cjs +20 -40
- package/node_modules/@turf/polygonize/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/polygonize/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/polygonize/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/polygonize/dist/esm/index.js +20 -40
- package/node_modules/@turf/polygonize/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/polygonize/package.json +13 -13
- package/node_modules/@turf/projection/README.md +2 -2
- package/node_modules/@turf/projection/dist/cjs/index.cjs +6 -12
- package/node_modules/@turf/projection/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/projection/dist/cjs/index.d.cts +2 -2
- package/node_modules/@turf/projection/dist/esm/index.d.ts +2 -2
- package/node_modules/@turf/projection/dist/esm/index.js +6 -12
- package/node_modules/@turf/projection/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/projection/package.json +12 -12
- package/node_modules/@turf/quadrat-analysis/README.md +10 -10
- package/node_modules/@turf/quadrat-analysis/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/quadrat-analysis/dist/cjs/index.d.cts +4 -4
- package/node_modules/@turf/quadrat-analysis/dist/esm/index.d.ts +4 -4
- package/node_modules/@turf/quadrat-analysis/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/quadrat-analysis/package.json +18 -18
- package/node_modules/@turf/random/README.md +27 -29
- package/node_modules/@turf/random/dist/cjs/index.cjs +1 -3
- package/node_modules/@turf/random/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/random/dist/cjs/index.d.cts +11 -11
- package/node_modules/@turf/random/dist/esm/index.d.ts +11 -11
- package/node_modules/@turf/random/dist/esm/index.js +1 -3
- package/node_modules/@turf/random/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/random/package.json +9 -9
- package/node_modules/@turf/rectangle-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/rectangle-grid/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/rectangle-grid/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/rectangle-grid/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/rectangle-grid/package.json +13 -13
- package/node_modules/@turf/rewind/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/rewind/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/rewind/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/rewind/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/rewind/dist/esm/index.js +3 -6
- package/node_modules/@turf/rewind/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/rewind/package.json +13 -13
- package/node_modules/@turf/rhumb-bearing/README.md +1 -1
- package/node_modules/@turf/rhumb-bearing/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/rhumb-bearing/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/rhumb-bearing/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/rhumb-bearing/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/rhumb-bearing/package.json +11 -11
- package/node_modules/@turf/rhumb-destination/dist/cjs/index.cjs +1 -2
- package/node_modules/@turf/rhumb-destination/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/rhumb-destination/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/rhumb-destination/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/rhumb-destination/dist/esm/index.js +1 -2
- package/node_modules/@turf/rhumb-destination/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/rhumb-destination/package.json +11 -11
- package/node_modules/@turf/rhumb-distance/README.md +1 -1
- package/node_modules/@turf/rhumb-distance/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/rhumb-distance/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/rhumb-distance/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/rhumb-distance/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/rhumb-distance/package.json +11 -11
- package/node_modules/@turf/sample/README.md +2 -1
- package/node_modules/@turf/sample/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/sample/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/sample/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/sample/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/sample/dist/esm/index.js +3 -6
- package/node_modules/@turf/sample/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/sample/package.json +9 -9
- package/node_modules/@turf/sector/dist/cjs/index.cjs +4 -8
- package/node_modules/@turf/sector/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/sector/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/sector/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/sector/dist/esm/index.js +4 -8
- package/node_modules/@turf/sector/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/sector/package.json +14 -14
- package/node_modules/@turf/shortest-path/README.md +13 -19
- package/node_modules/@turf/shortest-path/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/shortest-path/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/shortest-path/dist/cjs/index.d.cts +5 -5
- package/node_modules/@turf/shortest-path/dist/esm/index.d.ts +5 -5
- package/node_modules/@turf/shortest-path/dist/esm/index.js +3 -6
- package/node_modules/@turf/shortest-path/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/shortest-path/package.json +18 -18
- package/node_modules/@turf/simplify/dist/cjs/index.cjs +8 -16
- package/node_modules/@turf/simplify/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/simplify/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/simplify/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/simplify/dist/esm/index.js +8 -16
- package/node_modules/@turf/simplify/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/simplify/package.json +13 -13
- package/node_modules/@turf/square/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/square/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/square/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/square/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/square/package.json +10 -10
- package/node_modules/@turf/square-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/square-grid/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/square-grid/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/square-grid/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/square-grid/package.json +12 -12
- package/node_modules/@turf/standard-deviational-ellipse/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/standard-deviational-ellipse/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/standard-deviational-ellipse/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/standard-deviational-ellipse/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/standard-deviational-ellipse/dist/esm/index.js +3 -6
- package/node_modules/@turf/standard-deviational-ellipse/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/standard-deviational-ellipse/package.json +16 -16
- package/node_modules/@turf/tag/dist/cjs/index.cjs +1 -2
- package/node_modules/@turf/tag/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/tag/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/tag/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/tag/dist/esm/index.js +1 -2
- package/node_modules/@turf/tag/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/tag/package.json +12 -12
- package/node_modules/@turf/tesselate/dist/cjs/index.cjs +1 -2
- package/node_modules/@turf/tesselate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/tesselate/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/tesselate/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/tesselate/dist/esm/index.js +1 -2
- package/node_modules/@turf/tesselate/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/tesselate/package.json +9 -9
- package/node_modules/@turf/tin/dist/cjs/index.cjs +13 -14
- package/node_modules/@turf/tin/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/tin/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/tin/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/tin/dist/esm/index.js +13 -14
- package/node_modules/@turf/tin/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/tin/package.json +9 -9
- package/node_modules/@turf/transform-rotate/dist/cjs/index.cjs +4 -8
- package/node_modules/@turf/transform-rotate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/transform-rotate/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/transform-rotate/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/transform-rotate/dist/esm/index.js +4 -8
- package/node_modules/@turf/transform-rotate/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/transform-rotate/package.json +17 -17
- package/node_modules/@turf/transform-scale/dist/cjs/index.cjs +18 -12
- package/node_modules/@turf/transform-scale/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/transform-scale/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/transform-scale/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/transform-scale/dist/esm/index.js +18 -12
- package/node_modules/@turf/transform-scale/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/transform-scale/package.json +21 -21
- package/node_modules/@turf/transform-translate/dist/cjs/index.cjs +4 -8
- package/node_modules/@turf/transform-translate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/transform-translate/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/transform-translate/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/transform-translate/dist/esm/index.js +4 -8
- package/node_modules/@turf/transform-translate/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/transform-translate/package.json +14 -14
- package/node_modules/@turf/triangle-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/triangle-grid/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/triangle-grid/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/triangle-grid/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/triangle-grid/package.json +13 -13
- package/node_modules/@turf/truncate/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/truncate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/truncate/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/truncate/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/truncate/dist/esm/index.js +3 -6
- package/node_modules/@turf/truncate/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/truncate/package.json +10 -10
- package/node_modules/@turf/turf/dist/cjs/index.cjs +3 -1
- package/node_modules/@turf/turf/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/turf/dist/cjs/index.d.cts +1 -0
- package/node_modules/@turf/turf/dist/esm/index.d.ts +1 -0
- package/node_modules/@turf/turf/dist/esm/index.js +2 -0
- package/node_modules/@turf/turf/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/turf/package.json +126 -125
- package/node_modules/@turf/turf/turf.min.js +3 -26
- package/node_modules/@turf/union/README.md +44 -24
- package/node_modules/@turf/union/dist/cjs/index.cjs +9 -12
- package/node_modules/@turf/union/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/union/dist/cjs/index.d.cts +40 -21
- package/node_modules/@turf/union/dist/esm/index.d.ts +40 -21
- package/node_modules/@turf/union/dist/esm/index.js +8 -11
- package/node_modules/@turf/union/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/union/package.json +11 -11
- package/node_modules/@turf/unkink-polygon/dist/cjs/index.cjs +14 -28
- package/node_modules/@turf/unkink-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/unkink-polygon/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/unkink-polygon/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/unkink-polygon/dist/esm/index.js +14 -28
- package/node_modules/@turf/unkink-polygon/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/unkink-polygon/package.json +13 -13
- package/node_modules/@turf/voronoi/dist/cjs/index.cjs +3 -6
- package/node_modules/@turf/voronoi/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/voronoi/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/voronoi/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/voronoi/dist/esm/index.js +3 -6
- package/node_modules/@turf/voronoi/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/voronoi/package.json +11 -11
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/node/globals.d.ts +8 -6
- package/node_modules/@types/node/module.d.ts +10 -3
- package/node_modules/@types/node/net.d.ts +3 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/process.d.ts +35 -2
- package/node_modules/@types/node/sqlite.d.ts +30 -9
- package/node_modules/bignumber.js/CHANGELOG.md +295 -0
- package/node_modules/bignumber.js/LICENCE.md +26 -0
- package/node_modules/bignumber.js/README.md +286 -0
- package/node_modules/bignumber.js/bignumber.d.ts +1831 -0
- package/node_modules/bignumber.js/bignumber.js +2922 -0
- package/node_modules/bignumber.js/bignumber.mjs +2907 -0
- package/node_modules/bignumber.js/doc/API.html +2249 -0
- package/node_modules/bignumber.js/package.json +50 -0
- package/node_modules/long/index.d.ts +1 -456
- package/node_modules/long/package.json +1 -1
- package/node_modules/long/umd/index.d.ts +456 -1
- package/node_modules/polyclip-ts/LICENSE +21 -0
- package/node_modules/{polygon-clipping → polyclip-ts}/README.md +35 -36
- package/node_modules/polyclip-ts/dist/cjs/index.cjs +1179 -0
- package/node_modules/polyclip-ts/dist/cjs/index.cjs.map +1 -0
- package/node_modules/polyclip-ts/dist/cjs/index.d.cts +12 -0
- package/node_modules/polyclip-ts/dist/esm/index.d.ts +12 -0
- package/node_modules/polyclip-ts/dist/esm/index.js +1138 -0
- package/node_modules/polyclip-ts/dist/esm/index.js.map +1 -0
- package/node_modules/polyclip-ts/dist/polyclip-ts.umd.js +4811 -0
- package/node_modules/polyclip-ts/dist/polyclip-ts.umd.min.js +2 -0
- package/node_modules/polyclip-ts/package.json +72 -0
- package/node_modules/splaytree-ts/LICENSE +29 -0
- package/node_modules/splaytree-ts/README.md +296 -0
- package/node_modules/splaytree-ts/dist/cjs/index.cjs +714 -0
- package/node_modules/splaytree-ts/dist/cjs/index.cjs.map +1 -0
- package/node_modules/splaytree-ts/dist/cjs/index.d.cts +105 -0
- package/node_modules/splaytree-ts/dist/esm/index.d.ts +105 -0
- package/node_modules/splaytree-ts/dist/esm/index.js +688 -0
- package/node_modules/splaytree-ts/dist/esm/index.js.map +1 -0
- package/node_modules/splaytree-ts/dist/splaytree-ts.umd.js +736 -0
- package/node_modules/splaytree-ts/dist/splaytree-ts.umd.min.js +2 -0
- package/node_modules/splaytree-ts/package.json +59 -0
- package/node_modules/uuid/README.md +29 -16
- package/node_modules/uuid/dist/cjs/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/native.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/rng.js +1 -1
- package/node_modules/uuid/dist/cjs/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/stringify.js +2 -1
- package/node_modules/uuid/dist/cjs/v1.js +10 -1
- package/node_modules/uuid/dist/cjs/v1ToV6.js +1 -1
- package/node_modules/uuid/dist/cjs/v35.js +3 -3
- package/node_modules/uuid/dist/cjs/v4.js +7 -1
- package/node_modules/uuid/dist/cjs/v6ToV1.js +1 -1
- package/node_modules/uuid/dist/cjs/v7.js +10 -1
- package/node_modules/uuid/dist/cjs-browser/rng.js +1 -1
- package/node_modules/uuid/dist/cjs-browser/stringify.js +2 -1
- package/node_modules/uuid/dist/cjs-browser/v1.js +10 -1
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +1 -1
- package/node_modules/uuid/dist/cjs-browser/v35.js +3 -3
- package/node_modules/uuid/dist/cjs-browser/v4.js +7 -1
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +1 -1
- package/node_modules/uuid/dist/cjs-browser/v7.js +10 -1
- package/node_modules/uuid/dist/esm/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm/native.d.ts +1 -0
- package/node_modules/uuid/dist/esm/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v1.js +8 -0
- package/node_modules/uuid/dist/esm/v4.js +7 -1
- package/node_modules/uuid/dist/esm/v7.js +8 -0
- package/node_modules/uuid/dist/esm-browser/v1.js +8 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +7 -1
- package/node_modules/uuid/dist/esm-browser/v7.js +8 -0
- package/node_modules/uuid/package.json +26 -28
- package/package.json +4 -4
- package/tak-registration.js +3 -1
- package/node_modules/polygon-clipping/LICENSE.md +0 -11
- package/node_modules/polygon-clipping/dist/polygon-clipping.cjs.js +0 -1803
- package/node_modules/polygon-clipping/dist/polygon-clipping.d.ts +0 -14
- package/node_modules/polygon-clipping/dist/polygon-clipping.esm.js +0 -1532
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.js +0 -2496
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js +0 -24
- package/node_modules/polygon-clipping/dist/polygon-clipping.umd.min.js.map +0 -1
- package/node_modules/polygon-clipping/node_modules/robust-predicates/LICENSE +0 -24
- package/node_modules/polygon-clipping/node_modules/robust-predicates/README.md +0 -82
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/incircle.js +0 -765
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/insphere.js +0 -766
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient2d.js +0 -184
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/orient3d.js +0 -462
- package/node_modules/polygon-clipping/node_modules/robust-predicates/esm/util.js +0 -138
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.d.ts +0 -49
- package/node_modules/polygon-clipping/node_modules/robust-predicates/index.js +0 -5
- package/node_modules/polygon-clipping/node_modules/robust-predicates/package.json +0 -75
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.js +0 -908
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/incircle.min.js +0 -1
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.js +0 -914
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/insphere.min.js +0 -1
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.js +0 -280
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient2d.min.js +0 -1
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.js +0 -601
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/orient3d.min.js +0 -1
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.js +0 -2328
- package/node_modules/polygon-clipping/node_modules/robust-predicates/umd/predicates.min.js +0 -1
- package/node_modules/polygon-clipping/package.json +0 -79
- package/node_modules/splaytree/Readme.md +0 -222
- package/node_modules/splaytree/dist/splay.esm.js +0 -686
- package/node_modules/splaytree/dist/splay.esm.js.map +0 -1
- package/node_modules/splaytree/dist/splay.js +0 -694
- package/node_modules/splaytree/dist/splay.js.map +0 -1
- package/node_modules/splaytree/package.json +0 -91
- package/node_modules/splaytree/src/index.ts +0 -679
- package/node_modules/splaytree/src/node.ts +0 -15
- package/node_modules/splaytree/src/types.ts +0 -2
- package/node_modules/splaytree/typings/index.d.ts +0 -82
- package/node_modules/splaytree/typings/node.d.ts +0 -8
- package/node_modules/splaytree/typings/types.d.ts +0 -2
- package/node_modules/uuid/CHANGELOG.md +0 -335
- package/node_modules/uuid/CONTRIBUTING.md +0 -18
- package/node_modules/uuid/dist/cjs/test/parse.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/parse.test.js +0 -50
- package/node_modules/uuid/dist/cjs/test/rng.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/rng.test.js +0 -14
- package/node_modules/uuid/dist/cjs/test/stringify.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/stringify.test.js +0 -23
- package/node_modules/uuid/dist/cjs/test/test_constants.d.ts +0 -33
- package/node_modules/uuid/dist/cjs/test/test_constants.js +0 -91
- package/node_modules/uuid/dist/cjs/test/v1.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v1.test.js +0 -127
- package/node_modules/uuid/dist/cjs/test/v35.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v35.test.js +0 -143
- package/node_modules/uuid/dist/cjs/test/v4.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v4.test.js +0 -60
- package/node_modules/uuid/dist/cjs/test/v6.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v6.test.js +0 -56
- package/node_modules/uuid/dist/cjs/test/v7.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v7.test.js +0 -194
- package/node_modules/uuid/dist/cjs/test/validate.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/validate.test.js +0 -13
- package/node_modules/uuid/dist/cjs/test/version.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/version.test.js +0 -20
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.js +0 -50
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.js +0 -23
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts +0 -33
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.js +0 -91
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.js +0 -127
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.js +0 -143
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.js +0 -60
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.js +0 -56
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.js +0 -194
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/version.test.js +0 -20
- package/node_modules/uuid/dist/esm/test/parse.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/parse.test.js +0 -48
- package/node_modules/uuid/dist/esm/test/rng.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/rng.test.js +0 -12
- package/node_modules/uuid/dist/esm/test/stringify.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/stringify.test.js +0 -21
- package/node_modules/uuid/dist/esm/test/test_constants.d.ts +0 -33
- package/node_modules/uuid/dist/esm/test/test_constants.js +0 -88
- package/node_modules/uuid/dist/esm/test/v1.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v1.test.js +0 -125
- package/node_modules/uuid/dist/esm/test/v35.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v35.test.js +0 -141
- package/node_modules/uuid/dist/esm/test/v4.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v4.test.js +0 -58
- package/node_modules/uuid/dist/esm/test/v6.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v6.test.js +0 -54
- package/node_modules/uuid/dist/esm/test/v7.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v7.test.js +0 -192
- package/node_modules/uuid/dist/esm/test/validate.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/validate.test.js +0 -11
- package/node_modules/uuid/dist/esm/test/version.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/version.test.js +0 -18
- package/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/parse.test.js +0 -48
- package/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/rng.test.js +0 -12
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.js +0 -21
- package/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts +0 -33
- package/node_modules/uuid/dist/esm-browser/test/test_constants.js +0 -88
- package/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v1.test.js +0 -125
- package/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v35.test.js +0 -141
- package/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v4.test.js +0 -58
- package/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v6.test.js +0 -54
- package/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v7.test.js +0 -192
- package/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/validate.test.js +0 -11
- package/node_modules/uuid/dist/esm-browser/test/version.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/version.test.js +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts"],"sourcesContent":["import { Feature, Geometry, LineString, Point } from \"geojson\";\nimport { booleanPointOnLine } from \"@turf/boolean-point-on-line\";\nimport { booleanPointInPolygon } from \"@turf/boolean-point-in-polygon\";\nimport { getGeom } from \"@turf/invariant\";\n\n/**\n * Boolean-touches true if none of the points common to both geometries\n * intersect the interiors of both geometries.\n * @name booleanTouches\n * @param {Geometry|Feature<any>} feature1 GeoJSON Feature or Geometry\n * @param {Geometry|Feature<any>} feature2 GeoJSON Feature or Geometry\n * @returns {boolean} true/false\n * @example\n * var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);\n * var point = turf.point([1, 1]);\n *\n * turf.booleanTouches(point, line);\n * //=true\n */\nfunction booleanTouches(\n feature1: Feature<any> | Geometry,\n feature2: Feature<any> | Geometry\n): boolean {\n var geom1 = getGeom(feature1);\n var geom2 = getGeom(feature2);\n var type1 = geom1.type;\n var type2 = geom2.type;\n\n switch (type1) {\n case \"Point\":\n switch (type2) {\n case \"LineString\":\n return isPointOnLineEnd(geom1, geom2);\n case \"MultiLineString\":\n var foundTouchingPoint = false;\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (\n isPointOnLineEnd(geom1, {\n type: \"LineString\",\n coordinates: geom2.coordinates[ii],\n })\n )\n foundTouchingPoint = true;\n }\n return foundTouchingPoint;\n case \"Polygon\":\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (\n booleanPointOnLine(geom1, {\n type: \"LineString\",\n coordinates: geom2.coordinates[i],\n })\n )\n return true;\n }\n return false;\n case \"MultiPolygon\":\n for (var i = 0; i < geom2.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates[i].length; ii++) {\n if (\n booleanPointOnLine(geom1, {\n type: \"LineString\",\n coordinates: geom2.coordinates[i][ii],\n })\n )\n return true;\n }\n }\n return false;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"MultiPoint\":\n switch (type2) {\n case \"LineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiLineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n {\n type: \"LineString\",\n coordinates: geom2.coordinates[ii][0],\n }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"Polygon\", coordinates: geom2.coordinates[ii] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"LineString\":\n switch (type2) {\n case \"Point\":\n return isPointOnLineEnd(geom2, geom1);\n case \"MultiPoint\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n geom1\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n geom1,\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"LineString\":\n var endMatch = false;\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[0] },\n geom2\n )\n )\n endMatch = true;\n if (\n isPointOnLineEnd(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[geom1.coordinates.length - 1],\n },\n geom2\n )\n )\n endMatch = true;\n if (endMatch === false) return false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n return endMatch;\n case \"MultiLineString\":\n var endMatch = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[0] },\n { type: \"LineString\", coordinates: geom2.coordinates[i] }\n )\n )\n endMatch = true;\n if (\n isPointOnLineEnd(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[geom1.coordinates.length - 1],\n },\n { type: \"LineString\", coordinates: geom2.coordinates[i] }\n )\n )\n endMatch = true;\n for (var ii = 0; ii < geom1.coordinates[i].length; ii++) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[ii] },\n { type: \"LineString\", coordinates: geom2.coordinates[i] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n return endMatch;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n {\n type: \"LineString\",\n coordinates: geom2.coordinates[ii][0],\n }\n )\n )\n foundTouchingPoint = true;\n }\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"MultiLineString\":\n switch (type2) {\n case \"Point\":\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (\n isPointOnLineEnd(geom2, {\n type: \"LineString\",\n coordinates: geom1.coordinates[i],\n })\n )\n return true;\n }\n return false;\n case \"MultiPoint\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[ii] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[ii] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"LineString\":\n var endMatch = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[i][0] },\n geom2\n )\n )\n endMatch = true;\n if (\n isPointOnLineEnd(\n {\n type: \"Point\",\n coordinates:\n geom1.coordinates[i][geom1.coordinates[i].length - 1],\n },\n geom2\n )\n )\n endMatch = true;\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[i] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n return endMatch;\n case \"MultiLineString\":\n var endMatch = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[i][0] },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] }\n )\n )\n endMatch = true;\n if (\n isPointOnLineEnd(\n {\n type: \"Point\",\n coordinates:\n geom1.coordinates[i][geom1.coordinates[i].length - 1],\n },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] }\n )\n )\n endMatch = true;\n for (var iii = 0; iii < geom1.coordinates[i].length; iii++) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i][iii] },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n }\n return endMatch;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom1.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i][ii] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i][ii] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom1.coordinates.length; ii++) {\n for (var iii = 0; iii < geom1.coordinates[ii].length; iii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[ii][iii],\n },\n {\n type: \"LineString\",\n coordinates: geom2.coordinates[0][i],\n }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[ii][iii] },\n { type: \"Polygon\", coordinates: [geom2.coordinates[0][i]] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"Polygon\":\n switch (type2) {\n case \"Point\":\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (\n booleanPointOnLine(geom2, {\n type: \"LineString\",\n coordinates: geom1.coordinates[i],\n })\n )\n return true;\n }\n return false;\n case \"MultiPoint\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n { type: \"LineString\", coordinates: geom1.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n geom1,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"LineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n { type: \"LineString\", coordinates: geom1.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n geom1,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiLineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates[i].length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[i][ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[i][ii] },\n geom1,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[0][i] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[0][i] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom1.coordinates[0].length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[0][ii] },\n { type: \"LineString\", coordinates: geom2.coordinates[0][i] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[0][ii] },\n { type: \"Polygon\", coordinates: geom2.coordinates[0][i] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"MultiPolygon\":\n switch (type2) {\n case \"Point\":\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n if (\n booleanPointOnLine(geom2, {\n type: \"LineString\",\n coordinates: geom1.coordinates[0][i],\n })\n )\n return true;\n }\n return false;\n case \"MultiPoint\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[0][i] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"Polygon\", coordinates: geom1.coordinates[0][i] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"LineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[0][i] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"Polygon\", coordinates: geom1.coordinates[0][i] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"MultiLineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n for (var iii = 0; iii < geom2.coordinates[ii].length; iii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n {\n type: \"Point\",\n coordinates: geom2.coordinates[ii][iii],\n },\n {\n type: \"LineString\",\n coordinates: geom1.coordinates[i][0],\n }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[ii][iii] },\n { type: \"Polygon\", coordinates: [geom1.coordinates[i][0]] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n }\n\n return foundTouchingPoint;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom1.coordinates[0][i].length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[0][i][ii] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[0][i][ii] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom2.coordinates[0].length; ii++) {\n for (var iii = 0; iii < geom1.coordinates[0].length; iii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[0][i][iii],\n },\n {\n type: \"LineString\",\n coordinates: geom2.coordinates[0][ii],\n }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[0][i][iii],\n },\n { type: \"Polygon\", coordinates: geom2.coordinates[0][ii] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n default:\n throw new Error(\"feature1 \" + type1 + \" geometry not supported\");\n }\n}\n\nfunction isPointOnLineEnd(point: Point, line: LineString) {\n if (compareCoords(line.coordinates[0], point.coordinates)) return true;\n if (\n compareCoords(\n line.coordinates[line.coordinates.length - 1],\n point.coordinates\n )\n )\n return true;\n return false;\n}\n\n/**\n * compareCoords\n *\n * @private\n * @param {Position} pair1 point [x,y]\n * @param {Position} pair2 point [x,y]\n * @returns {boolean} true/false if coord pairs match\n */\nfunction compareCoords(pair1: number[], pair2: number[]) {\n return pair1[0] === pair2[0] && pair1[1] === pair2[1];\n}\n\nexport { booleanTouches };\nexport default booleanTouches;\n"],"mappings":";AACA,SAAS,0BAA0B;AACnC,SAAS,6BAA6B;AACtC,SAAS,eAAe;AAgBxB,SAAS,eACP,UACA,UACS;AACT,MAAI,QAAQ,QAAQ,QAAQ;AAC5B,MAAI,QAAQ,QAAQ,QAAQ;AAC5B,MAAI,QAAQ,MAAM;AAClB,MAAI,QAAQ,MAAM;AAElB,UAAQ,OAAO;A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aAAa,MAAM,YAAY,CAAC,EAAE,EAAE,EAAE;AAAA,kBACzD,EAAE,gBAAgB,KAAK;AAAA,gBACzB;AAEA,yBAAO;AAAA,cACX;AAAA,YACF;AAAA,UACF;AACA,iBAAO;AAAA,QACT;AACE,gBAAM,IAAI,MAAM,cAAc,QAAQ,yBAAyB;AAAA,MACnE;AAAA,IACF;AACE,YAAM,IAAI,MAAM,cAAc,QAAQ,yBAAyB;AAAA,EACnE;AACF;AAEA,SAAS,iBAAiB,OAAc,MAAkB;AACxD,MAAI,cAAc,KAAK,YAAY,CAAC,GAAG,MAAM,WAAW;AAAG,WAAO;AAClE,MACE;AAAA,IACE,KAAK,YAAY,KAAK,YAAY,SAAS,CAAC;AAAA,IAC5C,MAAM;AAAA,EACR;AAEA,WAAO;AACT,SAAO;AACT;AAUA,SAAS,cAAc,OAAiB,OAAiB;AACvD,SAAO,MAAM,CAAC,MAAM,MAAM,CAAC,KAAK,MAAM,CAAC,MAAM,MAAM,CAAC;AACtD;AAGA,IAAO,+BAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts"],"sourcesContent":["import { Feature, Geometry, LineString, Point } from \"geojson\";\nimport { booleanPointOnLine } from \"@turf/boolean-point-on-line\";\nimport { booleanPointInPolygon } from \"@turf/boolean-point-in-polygon\";\nimport { getGeom } from \"@turf/invariant\";\n\n/**\n * Boolean-touches true if none of the points common to both geometries\n * intersect the interiors of both geometries.\n *\n * @function\n * @param {Geometry|Feature<any>} feature1 GeoJSON Feature or Geometry\n * @param {Geometry|Feature<any>} feature2 GeoJSON Feature or Geometry\n * @returns {boolean} true/false\n * @example\n * var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);\n * var point = turf.point([1, 1]);\n *\n * turf.booleanTouches(point, line);\n * //=true\n */\nfunction booleanTouches(\n feature1: Feature<any> | Geometry,\n feature2: Feature<any> | Geometry\n): boolean {\n var geom1 = getGeom(feature1);\n var geom2 = getGeom(feature2);\n var type1 = geom1.type;\n var type2 = geom2.type;\n\n switch (type1) {\n case \"Point\":\n switch (type2) {\n case \"LineString\":\n return isPointOnLineEnd(geom1, geom2);\n case \"MultiLineString\":\n var foundTouchingPoint = false;\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (\n isPointOnLineEnd(geom1, {\n type: \"LineString\",\n coordinates: geom2.coordinates[ii],\n })\n )\n foundTouchingPoint = true;\n }\n return foundTouchingPoint;\n case \"Polygon\":\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (\n booleanPointOnLine(geom1, {\n type: \"LineString\",\n coordinates: geom2.coordinates[i],\n })\n )\n return true;\n }\n return false;\n case \"MultiPolygon\":\n for (var i = 0; i < geom2.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates[i].length; ii++) {\n if (\n booleanPointOnLine(geom1, {\n type: \"LineString\",\n coordinates: geom2.coordinates[i][ii],\n })\n )\n return true;\n }\n }\n return false;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"MultiPoint\":\n switch (type2) {\n case \"LineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiLineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n {\n type: \"LineString\",\n coordinates: geom2.coordinates[ii][0],\n }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"Polygon\", coordinates: geom2.coordinates[ii] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"LineString\":\n switch (type2) {\n case \"Point\":\n return isPointOnLineEnd(geom2, geom1);\n case \"MultiPoint\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n geom1\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n geom1,\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"LineString\":\n var endMatch = false;\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[0] },\n geom2\n )\n )\n endMatch = true;\n if (\n isPointOnLineEnd(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[geom1.coordinates.length - 1],\n },\n geom2\n )\n )\n endMatch = true;\n if (endMatch === false) return false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n return endMatch;\n case \"MultiLineString\":\n var endMatch = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[0] },\n { type: \"LineString\", coordinates: geom2.coordinates[i] }\n )\n )\n endMatch = true;\n if (\n isPointOnLineEnd(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[geom1.coordinates.length - 1],\n },\n { type: \"LineString\", coordinates: geom2.coordinates[i] }\n )\n )\n endMatch = true;\n for (var ii = 0; ii < geom1.coordinates[i].length; ii++) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[ii] },\n { type: \"LineString\", coordinates: geom2.coordinates[i] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n return endMatch;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n {\n type: \"LineString\",\n coordinates: geom2.coordinates[ii][0],\n }\n )\n )\n foundTouchingPoint = true;\n }\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"MultiLineString\":\n switch (type2) {\n case \"Point\":\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (\n isPointOnLineEnd(geom2, {\n type: \"LineString\",\n coordinates: geom1.coordinates[i],\n })\n )\n return true;\n }\n return false;\n case \"MultiPoint\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[ii] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[ii] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"LineString\":\n var endMatch = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[i][0] },\n geom2\n )\n )\n endMatch = true;\n if (\n isPointOnLineEnd(\n {\n type: \"Point\",\n coordinates:\n geom1.coordinates[i][geom1.coordinates[i].length - 1],\n },\n geom2\n )\n )\n endMatch = true;\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[i] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n return endMatch;\n case \"MultiLineString\":\n var endMatch = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (\n isPointOnLineEnd(\n { type: \"Point\", coordinates: geom1.coordinates[i][0] },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] }\n )\n )\n endMatch = true;\n if (\n isPointOnLineEnd(\n {\n type: \"Point\",\n coordinates:\n geom1.coordinates[i][geom1.coordinates[i].length - 1],\n },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] }\n )\n )\n endMatch = true;\n for (var iii = 0; iii < geom1.coordinates[i].length; iii++) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i][iii] },\n { type: \"LineString\", coordinates: geom2.coordinates[ii] },\n { ignoreEndVertices: true }\n )\n )\n return false;\n }\n }\n }\n return endMatch;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom1.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[i][ii] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[i][ii] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom1.coordinates.length; ii++) {\n for (var iii = 0; iii < geom1.coordinates[ii].length; iii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[ii][iii],\n },\n {\n type: \"LineString\",\n coordinates: geom2.coordinates[0][i],\n }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[ii][iii] },\n { type: \"Polygon\", coordinates: [geom2.coordinates[0][i]] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"Polygon\":\n switch (type2) {\n case \"Point\":\n for (var i = 0; i < geom1.coordinates.length; i++) {\n if (\n booleanPointOnLine(geom2, {\n type: \"LineString\",\n coordinates: geom1.coordinates[i],\n })\n )\n return true;\n }\n return false;\n case \"MultiPoint\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n { type: \"LineString\", coordinates: geom1.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n geom1,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"LineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n { type: \"LineString\", coordinates: geom1.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[i] },\n geom1,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiLineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates[i].length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[i][ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[i][ii] },\n geom1,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[0][i] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[0][i] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom2.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom1.coordinates[0].length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[0][ii] },\n { type: \"LineString\", coordinates: geom2.coordinates[0][i] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[0][ii] },\n { type: \"Polygon\", coordinates: geom2.coordinates[0][i] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n case \"MultiPolygon\":\n switch (type2) {\n case \"Point\":\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n if (\n booleanPointOnLine(geom2, {\n type: \"LineString\",\n coordinates: geom1.coordinates[0][i],\n })\n )\n return true;\n }\n return false;\n case \"MultiPoint\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[0][i] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"Polygon\", coordinates: geom1.coordinates[0][i] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"LineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"LineString\", coordinates: geom1.coordinates[0][i] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[ii] },\n { type: \"Polygon\", coordinates: geom1.coordinates[0][i] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"MultiLineString\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates.length; i++) {\n for (var ii = 0; ii < geom2.coordinates.length; ii++) {\n for (var iii = 0; iii < geom2.coordinates[ii].length; iii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n {\n type: \"Point\",\n coordinates: geom2.coordinates[ii][iii],\n },\n {\n type: \"LineString\",\n coordinates: geom1.coordinates[i][0],\n }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom2.coordinates[ii][iii] },\n { type: \"Polygon\", coordinates: [geom1.coordinates[i][0]] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n }\n\n return foundTouchingPoint;\n case \"Polygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom1.coordinates[0][i].length; ii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n { type: \"Point\", coordinates: geom1.coordinates[0][i][ii] },\n { type: \"LineString\", coordinates: geom2.coordinates[0] }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n { type: \"Point\", coordinates: geom1.coordinates[0][i][ii] },\n geom2,\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n return foundTouchingPoint;\n case \"MultiPolygon\":\n var foundTouchingPoint = false;\n for (var i = 0; i < geom1.coordinates[0].length; i++) {\n for (var ii = 0; ii < geom2.coordinates[0].length; ii++) {\n for (var iii = 0; iii < geom1.coordinates[0].length; iii++) {\n if (!foundTouchingPoint) {\n if (\n booleanPointOnLine(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[0][i][iii],\n },\n {\n type: \"LineString\",\n coordinates: geom2.coordinates[0][ii],\n }\n )\n )\n foundTouchingPoint = true;\n }\n if (\n booleanPointInPolygon(\n {\n type: \"Point\",\n coordinates: geom1.coordinates[0][i][iii],\n },\n { type: \"Polygon\", coordinates: geom2.coordinates[0][ii] },\n { ignoreBoundary: true }\n )\n )\n return false;\n }\n }\n }\n return foundTouchingPoint;\n default:\n throw new Error(\"feature2 \" + type2 + \" geometry not supported\");\n }\n default:\n throw new Error(\"feature1 \" + type1 + \" geometry not supported\");\n }\n}\n\nfunction isPointOnLineEnd(point: Point, line: LineString) {\n if (compareCoords(line.coordinates[0], point.coordinates)) return true;\n if (\n compareCoords(\n line.coordinates[line.coordinates.length - 1],\n point.coordinates\n )\n )\n return true;\n return false;\n}\n\n/**\n * compareCoords\n *\n * @private\n * @param {Position} pair1 point [x,y]\n * @param {Position} pair2 point [x,y]\n * @returns {boolean} true/false if coord pairs match\n */\nfunction compareCoords(pair1: number[], pair2: number[]) {\n return pair1[0] === pair2[0] && pair1[1] === pair2[1];\n}\n\nexport { booleanTouches };\nexport default booleanTouches;\n"],"mappings":";AACA,SAAS,0BAA0B;AACnC,SAAS,6BAA6B;AACtC,SAAS,eAAe;AAiBxB,SAAS,eACP,UACA,UACS;AACT,MAAI,QAAQ,QAAQ,QAAQ;AAC5B,MAAI,QAAQ,QAAQ,QAAQ;AAC5B,MAAI,QAAQ,MAAM;AAClB,MAAI,QAAQ,MAAM;AAElB,UAAQ,OAAO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,aAAa,MAAM,YAAY,CAAC,EAAE,EAAE,EAAE;AAAA,kBACzD,EAAE,gBAAgB,KAAK;AAAA,gBACzB;AAEA,yBAAO;AAAA,cACX;AAAA,YACF;AAAA,UACF;AACA,iBAAO;AAAA,QACT;AACE,gBAAM,IAAI,MAAM,cAAc,QAAQ,yBAAyB;AAAA,MACnE;AAAA,IACF;AACE,YAAM,IAAI,MAAM,cAAc,QAAQ,yBAAyB;AAAA,EACnE;AACF;AAEA,SAAS,iBAAiB,OAAc,MAAkB;AACxD,MAAI,cAAc,KAAK,YAAY,CAAC,GAAG,MAAM,WAAW,EAAG,QAAO;AAClE,MACE;AAAA,IACE,KAAK,YAAY,KAAK,YAAY,SAAS,CAAC;AAAA,IAC5C,MAAM;AAAA,EACR;AAEA,WAAO;AACT,SAAO;AACT;AAUA,SAAS,cAAc,OAAiB,OAAiB;AACvD,SAAO,MAAM,CAAC,MAAM,MAAM,CAAC,KAAK,MAAM,CAAC,MAAM,MAAM,CAAC;AACtD;AAGA,IAAO,+BAAQ;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/boolean-touches",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "turf boolean-touches module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -58,25 +58,25 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/benchmark": "^2.1.5",
|
|
61
|
-
"@types/tape": "^4.
|
|
61
|
+
"@types/tape": "^4.13.4",
|
|
62
62
|
"benchmark": "^2.1.4",
|
|
63
63
|
"boolean-jsts": "*",
|
|
64
64
|
"boolean-shapely": "*",
|
|
65
65
|
"glob": "^10.3.10",
|
|
66
66
|
"load-json-file": "^7.0.1",
|
|
67
67
|
"npm-run-all": "^4.1.5",
|
|
68
|
-
"tape": "^5.
|
|
69
|
-
"tsup": "^8.
|
|
70
|
-
"tsx": "^4.
|
|
71
|
-
"typescript": "^5.
|
|
68
|
+
"tape": "^5.9.0",
|
|
69
|
+
"tsup": "^8.3.5",
|
|
70
|
+
"tsx": "^4.19.2",
|
|
71
|
+
"typescript": "^5.5.4"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@turf/boolean-point-in-polygon": "^7.
|
|
75
|
-
"@turf/boolean-point-on-line": "^7.
|
|
76
|
-
"@turf/helpers": "^7.
|
|
77
|
-
"@turf/invariant": "^7.
|
|
74
|
+
"@turf/boolean-point-in-polygon": "^7.2.0",
|
|
75
|
+
"@turf/boolean-point-on-line": "^7.2.0",
|
|
76
|
+
"@turf/helpers": "^7.2.0",
|
|
77
|
+
"@turf/invariant": "^7.2.0",
|
|
78
78
|
"@types/geojson": "^7946.0.10",
|
|
79
|
-
"tslib": "^2.
|
|
79
|
+
"tslib": "^2.8.1"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "7b0f0374c4668cd569f8904c71e2ae7d941be867"
|
|
82
82
|
}
|
|
@@ -6,8 +6,7 @@ var _booleancrosses = require('@turf/boolean-crosses');
|
|
|
6
6
|
var _lineintersect = require('@turf/line-intersect');
|
|
7
7
|
var _booleanpointonline = require('@turf/boolean-point-on-line');
|
|
8
8
|
function booleanValid(feature) {
|
|
9
|
-
if (!feature.type)
|
|
10
|
-
return false;
|
|
9
|
+
if (!feature.type) return false;
|
|
11
10
|
const geom = _invariant.getGeom.call(void 0, feature);
|
|
12
11
|
const type = geom.type;
|
|
13
12
|
const coords = geom.coordinates;
|
|
@@ -16,34 +15,26 @@ function booleanValid(feature) {
|
|
|
16
15
|
return coords.length > 1;
|
|
17
16
|
case "MultiPoint":
|
|
18
17
|
for (var i = 0; i < coords.length; i++) {
|
|
19
|
-
if (coords[i].length < 2)
|
|
20
|
-
return false;
|
|
18
|
+
if (coords[i].length < 2) return false;
|
|
21
19
|
}
|
|
22
20
|
return true;
|
|
23
21
|
case "LineString":
|
|
24
|
-
if (coords.length < 2)
|
|
25
|
-
return false;
|
|
22
|
+
if (coords.length < 2) return false;
|
|
26
23
|
for (var i = 0; i < coords.length; i++) {
|
|
27
|
-
if (coords[i].length < 2)
|
|
28
|
-
return false;
|
|
24
|
+
if (coords[i].length < 2) return false;
|
|
29
25
|
}
|
|
30
26
|
return true;
|
|
31
27
|
case "MultiLineString":
|
|
32
|
-
if (coords.length < 2)
|
|
33
|
-
return false;
|
|
28
|
+
if (coords.length < 2) return false;
|
|
34
29
|
for (var i = 0; i < coords.length; i++) {
|
|
35
|
-
if (coords[i].length < 2)
|
|
36
|
-
return false;
|
|
30
|
+
if (coords[i].length < 2) return false;
|
|
37
31
|
}
|
|
38
32
|
return true;
|
|
39
33
|
case "Polygon":
|
|
40
34
|
for (var i = 0; i < geom.coordinates.length; i++) {
|
|
41
|
-
if (coords[i].length < 4)
|
|
42
|
-
|
|
43
|
-
if (
|
|
44
|
-
return false;
|
|
45
|
-
if (checkRingsForSpikesPunctures(coords[i]))
|
|
46
|
-
return false;
|
|
35
|
+
if (coords[i].length < 4) return false;
|
|
36
|
+
if (!checkRingsClose(coords[i])) return false;
|
|
37
|
+
if (checkRingsForSpikesPunctures(coords[i])) return false;
|
|
47
38
|
if (i > 0) {
|
|
48
39
|
if (_lineintersect.lineIntersect.call(void 0, _helpers.polygon.call(void 0, [coords[0]]), _helpers.polygon.call(void 0, [coords[i]])).features.length > 1)
|
|
49
40
|
return false;
|
|
@@ -54,12 +45,9 @@ function booleanValid(feature) {
|
|
|
54
45
|
for (var i = 0; i < geom.coordinates.length; i++) {
|
|
55
46
|
var poly = geom.coordinates[i];
|
|
56
47
|
for (var ii = 0; ii < poly.length; ii++) {
|
|
57
|
-
if (poly[ii].length < 4)
|
|
58
|
-
|
|
59
|
-
if (
|
|
60
|
-
return false;
|
|
61
|
-
if (checkRingsForSpikesPunctures(poly[ii]))
|
|
62
|
-
return false;
|
|
48
|
+
if (poly[ii].length < 4) return false;
|
|
49
|
+
if (!checkRingsClose(poly[ii])) return false;
|
|
50
|
+
if (checkRingsForSpikesPunctures(poly[ii])) return false;
|
|
63
51
|
if (ii === 0) {
|
|
64
52
|
if (!checkPolygonAgainstOthers(poly, geom.coordinates, i))
|
|
65
53
|
return false;
|
|
@@ -83,8 +71,7 @@ function checkRingsForSpikesPunctures(geom) {
|
|
|
83
71
|
var point = geom[i];
|
|
84
72
|
for (var ii = i + 1; ii < geom.length - 2; ii++) {
|
|
85
73
|
var seg = [geom[ii], geom[ii + 1]];
|
|
86
|
-
if (_booleanpointonline.booleanPointOnLine.call(void 0, point, _helpers.lineString.call(void 0, seg)))
|
|
87
|
-
return true;
|
|
74
|
+
if (_booleanpointonline.booleanPointOnLine.call(void 0, point, _helpers.lineString.call(void 0, seg))) return true;
|
|
88
75
|
}
|
|
89
76
|
}
|
|
90
77
|
return false;
|
|
@@ -93,8 +80,7 @@ function checkPolygonAgainstOthers(poly, geom, index) {
|
|
|
93
80
|
var polyToCheck = _helpers.polygon.call(void 0, poly);
|
|
94
81
|
for (var i = index + 1; i < geom.length; i++) {
|
|
95
82
|
if (!_booleandisjoint.booleanDisjoint.call(void 0, polyToCheck, _helpers.polygon.call(void 0, geom[i]))) {
|
|
96
|
-
if (_booleancrosses.booleanCrosses.call(void 0, polyToCheck, _helpers.lineString.call(void 0, geom[i][0])))
|
|
97
|
-
return false;
|
|
83
|
+
if (_booleancrosses.booleanCrosses.call(void 0, polyToCheck, _helpers.lineString.call(void 0, geom[i][0]))) return false;
|
|
98
84
|
}
|
|
99
85
|
}
|
|
100
86
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/turf/turf/packages/turf-boolean-valid/dist/cjs/index.cjs","../../index.ts"],"names":[],"mappings":"AAAA;ACCA,4CAAwB;AACxB,wCAAoC;AACpC,yDAAgC;AAChC,uDAA+B;AAC/B,qDAA8B;AAC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AG,GAAA,EAAK,IAAA,CAAK,OAAA,EAAS,CAAA,EAAG,EAAA,EAAA,EAAM;AAC/C,MAAA,IAAI,IAAA,EAAM,CAAC,IAAA,CAAK,EAAE,CAAA,EAAG,IAAA,CAAK,GAAA,EAAK,CAAC,CAAC,CAAA;AACjC,MAAA,GAAA,CAAI,oDAAA,KAAc,EAAO,iCAAA,GAAc,CAAC,CAAA,EAAG,OAAO,IAAA;AAAA,IACpD;AAAA,EACF;AACA,EAAA,OAAO,KAAA;AACT;AAEA,SAAS,yBAAA,CACP,IAAA,EACA,IAAA,EACA,KAAA,EACA;AACA,EAAA,IAAI,YAAA,EAAc,8BAAA,IAAY,CAAA;AAC9B,EAAA,IAAA,CAAA,IAAS,EAAA,EAAI,MAAA,EAAQ,CAAA,EAAG,EAAA,EAAI,IAAA,CAAK,MAAA,EAAQ,CAAA,EAAA,EAAK;AAC5C,IAAA,GAAA,CAAI,CAAC,8CAAA,WAAgB,EAAa,8BAAA,IAAQ,CAAK,CAAC,CAAC,CAAC,CAAA,EAAG;AACnD,MAAA,GAAA,CAAI,4CAAA,WAAe,EAAa,iCAAA,IAAW,CAAK,CAAC,CAAA,CAAE,CAAC,CAAC,CAAC,CAAA,EAAG,OAAO,KAAA;AAAA,IAClE;AAAA,EACF;AACA,EAAA,OAAO,IAAA;AACT;AAGA,IAAO,2BAAA,EAAQ,YAAA;ADnCf;AACE;AACA;AACF,kFAAC","file":"/home/runner/work/turf/turf/packages/turf-boolean-valid/dist/cjs/index.cjs","sourcesContent":[null,"import { Feature, Geometry, Position } from \"geojson\";\nimport { getGeom } from \"@turf/invariant\";\nimport { polygon, lineString } from \"@turf/helpers\";\nimport { booleanDisjoint } from \"@turf/boolean-disjoint\";\nimport { booleanCrosses } from \"@turf/boolean-crosses\";\nimport { lineIntersect } from \"@turf/line-intersect\";\nimport { booleanPointOnLine as isPointOnLine } from \"@turf/boolean-point-on-line\";\n\n/**\n * booleanValid checks if the geometry is a valid according to the OGC Simple Feature Specification.\n *\n * @function\n * @param {Geometry|Feature<any>} feature GeoJSON Feature or Geometry\n * @returns {boolean} true/false\n * @example\n * var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);\n *\n * turf.booleanValid(line); // => true\n * turf.booleanValid({foo: \"bar\"}); // => false\n */\nfunction booleanValid(feature: Feature<any> | Geometry) {\n // Automatic False\n if (!feature.type) return false;\n\n // Parse GeoJSON\n const geom = getGeom(feature);\n const type = geom.type;\n const coords = geom.coordinates;\n\n switch (type) {\n case \"Point\":\n return coords.length > 1;\n case \"MultiPoint\":\n for (var i = 0; i < coords.length; i++) {\n if (coords[i].length < 2) return false;\n }\n return true;\n case \"LineString\":\n if (coords.length < 2) return false;\n for (var i = 0; i < coords.length; i++) {\n if (coords[i].length < 2) return false;\n }\n return true;\n case \"MultiLineString\":\n if (coords.length < 2) return false;\n for (var i = 0; i < coords.length; i++) {\n if (coords[i].length < 2) return false;\n }\n return true;\n case \"Polygon\":\n for (var i = 0; i < geom.coordinates.length; i++) {\n if (coords[i].length < 4) return false;\n if (!checkRingsClose(coords[i])) return false;\n if (checkRingsForSpikesPunctures(coords[i])) return false;\n if (i > 0) {\n if (\n lineIntersect(polygon([coords[0]]), polygon([coords[i]])).features\n .length > 1\n )\n return false;\n }\n }\n return true;\n case \"MultiPolygon\":\n for (var i = 0; i < geom.coordinates.length; i++) {\n var poly: any = geom.coordinates[i];\n\n for (var ii = 0; ii < poly.length; ii++) {\n if (poly[ii].length < 4) return false;\n if (!checkRingsClose(poly[ii])) return false;\n if (checkRingsForSpikesPunctures(poly[ii])) return false;\n if (ii === 0) {\n if (!checkPolygonAgainstOthers(poly, geom.coordinates, i))\n return false;\n }\n if (ii > 0) {\n if (\n lineIntersect(polygon([poly[0]]), polygon([poly[ii]])).features\n .length > 1\n )\n return false;\n }\n }\n }\n return true;\n default:\n return false;\n }\n}\n\nfunction checkRingsClose(geom: Position[]) {\n return (\n geom[0][0] === geom[geom.length - 1][0] &&\n geom[0][1] === geom[geom.length - 1][1]\n );\n}\n\nfunction checkRingsForSpikesPunctures(geom: Position[]) {\n for (var i = 0; i < geom.length - 1; i++) {\n var point = geom[i];\n for (var ii = i + 1; ii < geom.length - 2; ii++) {\n var seg = [geom[ii], geom[ii + 1]];\n if (isPointOnLine(point, lineString(seg))) return true;\n }\n }\n return false;\n}\n\nfunction checkPolygonAgainstOthers(\n poly: Position[][],\n geom: Position[][][],\n index: number\n) {\n var polyToCheck = polygon(poly);\n for (var i = index + 1; i < geom.length; i++) {\n if (!booleanDisjoint(polyToCheck, polygon(geom[i]))) {\n if (booleanCrosses(polyToCheck, lineString(geom[i][0]))) return false;\n }\n }\n return true;\n}\n\nexport { booleanValid };\nexport default booleanValid;\n"]}
|
|
@@ -3,7 +3,7 @@ import { Feature, Geometry } from 'geojson';
|
|
|
3
3
|
/**
|
|
4
4
|
* booleanValid checks if the geometry is a valid according to the OGC Simple Feature Specification.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @function
|
|
7
7
|
* @param {Geometry|Feature<any>} feature GeoJSON Feature or Geometry
|
|
8
8
|
* @returns {boolean} true/false
|
|
9
9
|
* @example
|
|
@@ -3,7 +3,7 @@ import { Feature, Geometry } from 'geojson';
|
|
|
3
3
|
/**
|
|
4
4
|
* booleanValid checks if the geometry is a valid according to the OGC Simple Feature Specification.
|
|
5
5
|
*
|
|
6
|
-
* @
|
|
6
|
+
* @function
|
|
7
7
|
* @param {Geometry|Feature<any>} feature GeoJSON Feature or Geometry
|
|
8
8
|
* @returns {boolean} true/false
|
|
9
9
|
* @example
|
|
@@ -6,8 +6,7 @@ import { booleanCrosses } from "@turf/boolean-crosses";
|
|
|
6
6
|
import { lineIntersect } from "@turf/line-intersect";
|
|
7
7
|
import { booleanPointOnLine as isPointOnLine } from "@turf/boolean-point-on-line";
|
|
8
8
|
function booleanValid(feature) {
|
|
9
|
-
if (!feature.type)
|
|
10
|
-
return false;
|
|
9
|
+
if (!feature.type) return false;
|
|
11
10
|
const geom = getGeom(feature);
|
|
12
11
|
const type = geom.type;
|
|
13
12
|
const coords = geom.coordinates;
|
|
@@ -16,34 +15,26 @@ function booleanValid(feature) {
|
|
|
16
15
|
return coords.length > 1;
|
|
17
16
|
case "MultiPoint":
|
|
18
17
|
for (var i = 0; i < coords.length; i++) {
|
|
19
|
-
if (coords[i].length < 2)
|
|
20
|
-
return false;
|
|
18
|
+
if (coords[i].length < 2) return false;
|
|
21
19
|
}
|
|
22
20
|
return true;
|
|
23
21
|
case "LineString":
|
|
24
|
-
if (coords.length < 2)
|
|
25
|
-
return false;
|
|
22
|
+
if (coords.length < 2) return false;
|
|
26
23
|
for (var i = 0; i < coords.length; i++) {
|
|
27
|
-
if (coords[i].length < 2)
|
|
28
|
-
return false;
|
|
24
|
+
if (coords[i].length < 2) return false;
|
|
29
25
|
}
|
|
30
26
|
return true;
|
|
31
27
|
case "MultiLineString":
|
|
32
|
-
if (coords.length < 2)
|
|
33
|
-
return false;
|
|
28
|
+
if (coords.length < 2) return false;
|
|
34
29
|
for (var i = 0; i < coords.length; i++) {
|
|
35
|
-
if (coords[i].length < 2)
|
|
36
|
-
return false;
|
|
30
|
+
if (coords[i].length < 2) return false;
|
|
37
31
|
}
|
|
38
32
|
return true;
|
|
39
33
|
case "Polygon":
|
|
40
34
|
for (var i = 0; i < geom.coordinates.length; i++) {
|
|
41
|
-
if (coords[i].length < 4)
|
|
42
|
-
|
|
43
|
-
if (
|
|
44
|
-
return false;
|
|
45
|
-
if (checkRingsForSpikesPunctures(coords[i]))
|
|
46
|
-
return false;
|
|
35
|
+
if (coords[i].length < 4) return false;
|
|
36
|
+
if (!checkRingsClose(coords[i])) return false;
|
|
37
|
+
if (checkRingsForSpikesPunctures(coords[i])) return false;
|
|
47
38
|
if (i > 0) {
|
|
48
39
|
if (lineIntersect(polygon([coords[0]]), polygon([coords[i]])).features.length > 1)
|
|
49
40
|
return false;
|
|
@@ -54,12 +45,9 @@ function booleanValid(feature) {
|
|
|
54
45
|
for (var i = 0; i < geom.coordinates.length; i++) {
|
|
55
46
|
var poly = geom.coordinates[i];
|
|
56
47
|
for (var ii = 0; ii < poly.length; ii++) {
|
|
57
|
-
if (poly[ii].length < 4)
|
|
58
|
-
|
|
59
|
-
if (
|
|
60
|
-
return false;
|
|
61
|
-
if (checkRingsForSpikesPunctures(poly[ii]))
|
|
62
|
-
return false;
|
|
48
|
+
if (poly[ii].length < 4) return false;
|
|
49
|
+
if (!checkRingsClose(poly[ii])) return false;
|
|
50
|
+
if (checkRingsForSpikesPunctures(poly[ii])) return false;
|
|
63
51
|
if (ii === 0) {
|
|
64
52
|
if (!checkPolygonAgainstOthers(poly, geom.coordinates, i))
|
|
65
53
|
return false;
|
|
@@ -83,8 +71,7 @@ function checkRingsForSpikesPunctures(geom) {
|
|
|
83
71
|
var point = geom[i];
|
|
84
72
|
for (var ii = i + 1; ii < geom.length - 2; ii++) {
|
|
85
73
|
var seg = [geom[ii], geom[ii + 1]];
|
|
86
|
-
if (isPointOnLine(point, lineString(seg)))
|
|
87
|
-
return true;
|
|
74
|
+
if (isPointOnLine(point, lineString(seg))) return true;
|
|
88
75
|
}
|
|
89
76
|
}
|
|
90
77
|
return false;
|
|
@@ -93,8 +80,7 @@ function checkPolygonAgainstOthers(poly, geom, index) {
|
|
|
93
80
|
var polyToCheck = polygon(poly);
|
|
94
81
|
for (var i = index + 1; i < geom.length; i++) {
|
|
95
82
|
if (!booleanDisjoint(polyToCheck, polygon(geom[i]))) {
|
|
96
|
-
if (booleanCrosses(polyToCheck, lineString(geom[i][0])))
|
|
97
|
-
return false;
|
|
83
|
+
if (booleanCrosses(polyToCheck, lineString(geom[i][0]))) return false;
|
|
98
84
|
}
|
|
99
85
|
}
|
|
100
86
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts"],"sourcesContent":["import { Feature, Geometry, Position } from \"geojson\";\nimport { getGeom } from \"@turf/invariant\";\nimport { polygon, lineString } from \"@turf/helpers\";\nimport { booleanDisjoint } from \"@turf/boolean-disjoint\";\nimport { booleanCrosses } from \"@turf/boolean-crosses\";\nimport { lineIntersect } from \"@turf/line-intersect\";\nimport { booleanPointOnLine as isPointOnLine } from \"@turf/boolean-point-on-line\";\n\n/**\n * booleanValid checks if the geometry is a valid according to the OGC Simple Feature Specification.\n *\n * @
|
|
1
|
+
{"version":3,"sources":["../../index.ts"],"sourcesContent":["import { Feature, Geometry, Position } from \"geojson\";\nimport { getGeom } from \"@turf/invariant\";\nimport { polygon, lineString } from \"@turf/helpers\";\nimport { booleanDisjoint } from \"@turf/boolean-disjoint\";\nimport { booleanCrosses } from \"@turf/boolean-crosses\";\nimport { lineIntersect } from \"@turf/line-intersect\";\nimport { booleanPointOnLine as isPointOnLine } from \"@turf/boolean-point-on-line\";\n\n/**\n * booleanValid checks if the geometry is a valid according to the OGC Simple Feature Specification.\n *\n * @function\n * @param {Geometry|Feature<any>} feature GeoJSON Feature or Geometry\n * @returns {boolean} true/false\n * @example\n * var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);\n *\n * turf.booleanValid(line); // => true\n * turf.booleanValid({foo: \"bar\"}); // => false\n */\nfunction booleanValid(feature: Feature<any> | Geometry) {\n // Automatic False\n if (!feature.type) return false;\n\n // Parse GeoJSON\n const geom = getGeom(feature);\n const type = geom.type;\n const coords = geom.coordinates;\n\n switch (type) {\n case \"Point\":\n return coords.length > 1;\n case \"MultiPoint\":\n for (var i = 0; i < coords.length; i++) {\n if (coords[i].length < 2) return false;\n }\n return true;\n case \"LineString\":\n if (coords.length < 2) return false;\n for (var i = 0; i < coords.length; i++) {\n if (coords[i].length < 2) return false;\n }\n return true;\n case \"MultiLineString\":\n if (coords.length < 2) return false;\n for (var i = 0; i < coords.length; i++) {\n if (coords[i].length < 2) return false;\n }\n return true;\n case \"Polygon\":\n for (var i = 0; i < geom.coordinates.length; i++) {\n if (coords[i].length < 4) return false;\n if (!checkRingsClose(coords[i])) return false;\n if (checkRingsForSpikesPunctures(coords[i])) return false;\n if (i > 0) {\n if (\n lineIntersect(polygon([coords[0]]), polygon([coords[i]])).features\n .length > 1\n )\n return false;\n }\n }\n return true;\n case \"MultiPolygon\":\n for (var i = 0; i < geom.coordinates.length; i++) {\n var poly: any = geom.coordinates[i];\n\n for (var ii = 0; ii < poly.length; ii++) {\n if (poly[ii].length < 4) return false;\n if (!checkRingsClose(poly[ii])) return false;\n if (checkRingsForSpikesPunctures(poly[ii])) return false;\n if (ii === 0) {\n if (!checkPolygonAgainstOthers(poly, geom.coordinates, i))\n return false;\n }\n if (ii > 0) {\n if (\n lineIntersect(polygon([poly[0]]), polygon([poly[ii]])).features\n .length > 1\n )\n return false;\n }\n }\n }\n return true;\n default:\n return false;\n }\n}\n\nfunction checkRingsClose(geom: Position[]) {\n return (\n geom[0][0] === geom[geom.length - 1][0] &&\n geom[0][1] === geom[geom.length - 1][1]\n );\n}\n\nfunction checkRingsForSpikesPunctures(geom: Position[]) {\n for (var i = 0; i < geom.length - 1; i++) {\n var point = geom[i];\n for (var ii = i + 1; ii < geom.length - 2; ii++) {\n var seg = [geom[ii], geom[ii + 1]];\n if (isPointOnLine(point, lineString(seg))) return true;\n }\n }\n return false;\n}\n\nfunction checkPolygonAgainstOthers(\n poly: Position[][],\n geom: Position[][][],\n index: number\n) {\n var polyToCheck = polygon(poly);\n for (var i = index + 1; i < geom.length; i++) {\n if (!booleanDisjoint(polyToCheck, polygon(geom[i]))) {\n if (booleanCrosses(polyToCheck, lineString(geom[i][0]))) return false;\n }\n }\n return true;\n}\n\nexport { booleanValid };\nexport default booleanValid;\n"],"mappings":";AACA,SAAS,eAAe;AACxB,SAAS,SAAS,kBAAkB;AACpC,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB,qBAAqB;AAcpD,SAAS,aAAa,SAAkC;AAEtD,MAAI,CAAC,QAAQ,KAAM,QAAO;AAG1B,QAAM,OAAO,QAAQ,OAAO;AAC5B,QAAM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A,SAAO;AACT;AAGA,IAAO,6BAAQ;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/boolean-valid",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "turf boolean-valid module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -56,31 +56,31 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/benchmark": "^2.1.5",
|
|
59
|
-
"@types/tape": "^4.
|
|
59
|
+
"@types/tape": "^4.13.4",
|
|
60
60
|
"benchmark": "^2.1.4",
|
|
61
61
|
"boolean-jsts": "*",
|
|
62
62
|
"boolean-shapely": "*",
|
|
63
63
|
"glob": "^10.3.10",
|
|
64
64
|
"load-json-file": "^7.0.1",
|
|
65
65
|
"npm-run-all": "^4.1.5",
|
|
66
|
-
"tape": "^5.
|
|
67
|
-
"tsup": "^8.
|
|
68
|
-
"tsx": "^4.
|
|
69
|
-
"typescript": "^5.
|
|
66
|
+
"tape": "^5.9.0",
|
|
67
|
+
"tsup": "^8.3.5",
|
|
68
|
+
"tsx": "^4.19.2",
|
|
69
|
+
"typescript": "^5.5.4"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@turf/bbox": "^7.
|
|
73
|
-
"@turf/boolean-crosses": "^7.
|
|
74
|
-
"@turf/boolean-disjoint": "^7.
|
|
75
|
-
"@turf/boolean-overlap": "^7.
|
|
76
|
-
"@turf/boolean-point-in-polygon": "^7.
|
|
77
|
-
"@turf/boolean-point-on-line": "^7.
|
|
78
|
-
"@turf/helpers": "^7.
|
|
79
|
-
"@turf/invariant": "^7.
|
|
80
|
-
"@turf/line-intersect": "^7.
|
|
72
|
+
"@turf/bbox": "^7.2.0",
|
|
73
|
+
"@turf/boolean-crosses": "^7.2.0",
|
|
74
|
+
"@turf/boolean-disjoint": "^7.2.0",
|
|
75
|
+
"@turf/boolean-overlap": "^7.2.0",
|
|
76
|
+
"@turf/boolean-point-in-polygon": "^7.2.0",
|
|
77
|
+
"@turf/boolean-point-on-line": "^7.2.0",
|
|
78
|
+
"@turf/helpers": "^7.2.0",
|
|
79
|
+
"@turf/invariant": "^7.2.0",
|
|
80
|
+
"@turf/line-intersect": "^7.2.0",
|
|
81
81
|
"@types/geojson": "^7946.0.10",
|
|
82
82
|
"geojson-polygon-self-intersections": "^1.2.1",
|
|
83
|
-
"tslib": "^2.
|
|
83
|
+
"tslib": "^2.8.1"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "7b0f0374c4668cd569f8904c71e2ae7d941be867"
|
|
86
86
|
}
|
|
@@ -166,14 +166,10 @@ function isPolyInPoly(geometry1, geometry2) {
|
|
|
166
166
|
return true;
|
|
167
167
|
}
|
|
168
168
|
function doBBoxOverlap(bbox1, bbox2) {
|
|
169
|
-
if (bbox1[0] > bbox2[0])
|
|
170
|
-
|
|
171
|
-
if (bbox1[
|
|
172
|
-
|
|
173
|
-
if (bbox1[1] > bbox2[1])
|
|
174
|
-
return false;
|
|
175
|
-
if (bbox1[3] < bbox2[3])
|
|
176
|
-
return false;
|
|
169
|
+
if (bbox1[0] > bbox2[0]) return false;
|
|
170
|
+
if (bbox1[2] < bbox2[2]) return false;
|
|
171
|
+
if (bbox1[1] > bbox2[1]) return false;
|
|
172
|
+
if (bbox1[3] < bbox2[3]) return false;
|
|
177
173
|
return true;
|
|
178
174
|
}
|
|
179
175
|
function compareCoords(pair1, pair2) {
|