node-red-contrib-tak-registration 0.16.1 → 0.16.3
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 -1
- package/node_modules/@turf/along/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/along/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/along/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/along/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/along/dist/esm/index.js +2 -2
- package/node_modules/@turf/along/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/along/package.json +12 -12
- package/node_modules/@turf/angle/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/angle/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/angle/dist/esm/index.js +2 -2
- package/node_modules/@turf/angle/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/angle/package.json +16 -16
- package/node_modules/@turf/area/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/area/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/area/dist/esm/index.js +2 -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 +2 -2
- package/node_modules/@turf/bbox/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bbox/dist/esm/index.js +2 -2
- package/node_modules/@turf/bbox/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/bbox/package.json +9 -9
- package/node_modules/@turf/bbox-clip/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/bbox-clip/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bbox-clip/dist/esm/index.js +2 -2
- 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/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/bbox-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bbox-polygon/dist/esm/index.js +2 -2
- package/node_modules/@turf/bbox-polygon/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/bbox-polygon/package.json +8 -8
- package/node_modules/@turf/bearing/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/bearing/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bearing/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/bezier-spline/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/boolean-clockwise/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-clockwise/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/boolean-concave/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-concave/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/boolean-contains/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-contains/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/boolean-crosses/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-crosses/dist/esm/index.js +2 -2
- 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/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/boolean-disjoint/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-disjoint/dist/esm/index.js +2 -2
- package/node_modules/@turf/boolean-disjoint/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-disjoint/package.json +12 -12
- package/node_modules/@turf/boolean-equal/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/boolean-equal/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-equal/dist/esm/index.js +2 -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/README.md +1 -1
- package/node_modules/@turf/boolean-intersects/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/boolean-intersects/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-intersects/dist/esm/index.js +2 -2
- package/node_modules/@turf/boolean-intersects/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/boolean-intersects/package.json +10 -10
- package/node_modules/@turf/boolean-overlap/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/boolean-overlap/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-overlap/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/boolean-parallel/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-parallel/dist/esm/index.js +2 -2
- 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 -2
- package/node_modules/@turf/boolean-point-in-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js +2 -2
- 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 +9 -9
- package/node_modules/@turf/boolean-point-on-line/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/boolean-point-on-line/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-point-on-line/dist/esm/index.js +2 -2
- 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 +11 -11
- package/node_modules/@turf/boolean-touches/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/boolean-touches/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-touches/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/boolean-valid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-valid/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/boolean-within/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/boolean-within/dist/esm/index.js +2 -2
- 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/README.md +3 -3
- package/node_modules/@turf/buffer/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/buffer/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/buffer/dist/esm/index.js +2 -2
- package/node_modules/@turf/buffer/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/buffer/package.json +13 -13
- package/node_modules/@turf/center/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/center/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/center/dist/esm/index.js +2 -2
- package/node_modules/@turf/center/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/center/package.json +13 -13
- package/node_modules/@turf/center-mean/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/center-mean/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/center-mean/dist/esm/index.js +2 -2
- package/node_modules/@turf/center-mean/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/center-mean/package.json +14 -14
- package/node_modules/@turf/center-median/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/center-median/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/center-median/dist/esm/index.js +2 -2
- 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 -2
- package/node_modules/@turf/center-of-mass/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/center-of-mass/dist/esm/index.js +2 -2
- package/node_modules/@turf/center-of-mass/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/center-of-mass/package.json +14 -14
- package/node_modules/@turf/centroid/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/centroid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/centroid/dist/esm/index.js +2 -2
- package/node_modules/@turf/centroid/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/centroid/package.json +11 -11
- package/node_modules/@turf/circle/README.md +13 -13
- package/node_modules/@turf/circle/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/circle/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/circle/dist/cjs/index.d.cts +2 -2
- package/node_modules/@turf/circle/dist/esm/index.d.ts +2 -2
- package/node_modules/@turf/circle/dist/esm/index.js +2 -2
- 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 +33 -49
- package/node_modules/@turf/clean-coords/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/clean-coords/dist/esm/index.js +33 -49
- package/node_modules/@turf/clean-coords/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/clean-coords/package.json +15 -12
- package/node_modules/@turf/clone/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/clone/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/clone/dist/esm/index.js +2 -2
- package/node_modules/@turf/clone/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/clone/package.json +9 -9
- package/node_modules/@turf/clusters/package.json +9 -9
- package/node_modules/@turf/clusters-dbscan/README.md +2 -2
- package/node_modules/@turf/clusters-dbscan/dist/cjs/index.cjs +3 -8
- package/node_modules/@turf/clusters-dbscan/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/clusters-dbscan/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/clusters-dbscan/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/clusters-dbscan/dist/esm/index.js +4 -9
- package/node_modules/@turf/clusters-dbscan/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/clusters-dbscan/package.json +15 -15
- package/node_modules/@turf/clusters-kmeans/dist/cjs/index.cjs +2 -2
- 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 -2
- 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 +3 -8
- package/node_modules/@turf/collect/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/collect/dist/esm/index.js +3 -8
- 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 +2 -2
- package/node_modules/@turf/combine/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/combine/dist/esm/index.js +2 -2
- package/node_modules/@turf/combine/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/combine/package.json +9 -9
- package/node_modules/@turf/concave/README.md +2 -2
- package/node_modules/@turf/concave/dist/cjs/index.cjs +2 -2
- 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 +2 -2
- 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 +2 -2
- package/node_modules/@turf/convex/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/convex/dist/esm/index.js +2 -2
- package/node_modules/@turf/convex/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/convex/package.json +11 -11
- package/node_modules/@turf/destination/README.md +2 -2
- package/node_modules/@turf/destination/dist/cjs/index.cjs +5 -2
- 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 +5 -2
- package/node_modules/@turf/destination/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/destination/package.json +14 -11
- package/node_modules/@turf/difference/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/difference/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/difference/dist/esm/index.js +2 -2
- 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/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/dissolve/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/dissolve/dist/esm/index.js +2 -2
- package/node_modules/@turf/dissolve/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/dissolve/package.json +12 -12
- package/node_modules/@turf/distance/README.md +2 -2
- package/node_modules/@turf/distance/dist/cjs/index.cjs +2 -2
- 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 +2 -2
- 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 +2 -2
- package/node_modules/@turf/distance-weight/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/distance-weight/dist/esm/index.js +2 -2
- 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/README.md +2 -2
- package/node_modules/@turf/ellipse/dist/cjs/index.cjs +62 -39
- package/node_modules/@turf/ellipse/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/ellipse/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/ellipse/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/ellipse/dist/esm/index.js +64 -41
- package/node_modules/@turf/ellipse/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/ellipse/package.json +21 -18
- package/node_modules/@turf/envelope/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/envelope/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/envelope/dist/esm/index.js +2 -2
- package/node_modules/@turf/envelope/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/envelope/package.json +10 -10
- package/node_modules/@turf/explode/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/explode/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/explode/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/flatten/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/flatten/dist/esm/index.js +2 -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 +2 -2
- package/node_modules/@turf/flip/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/flip/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/geojson-rbush/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/geojson-rbush/dist/esm/index.js +2 -2
- package/node_modules/@turf/geojson-rbush/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/geojson-rbush/package.json +12 -12
- package/node_modules/@turf/great-circle/dist/cjs/index.cjs +3 -3
- package/node_modules/@turf/great-circle/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/great-circle/dist/esm/index.js +3 -3
- package/node_modules/@turf/great-circle/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/great-circle/package.json +10 -10
- package/node_modules/@turf/helpers/README.md +1 -1
- package/node_modules/@turf/helpers/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/helpers/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/helpers/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/helpers/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/helpers/package.json +7 -7
- package/node_modules/@turf/hex-grid/README.md +7 -5
- package/node_modules/@turf/hex-grid/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/hex-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/hex-grid/dist/cjs/index.d.cts +4 -4
- package/node_modules/@turf/hex-grid/dist/esm/index.d.ts +4 -4
- package/node_modules/@turf/hex-grid/dist/esm/index.js +2 -2
- 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 +7 -5
- package/node_modules/@turf/interpolate/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/interpolate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/interpolate/dist/esm/index.js +2 -2
- package/node_modules/@turf/interpolate/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/interpolate/package.json +19 -19
- package/node_modules/@turf/intersect/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/intersect/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/intersect/dist/esm/index.js +2 -2
- 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/package.json +8 -8
- package/node_modules/@turf/isobands/README.md +1 -1
- package/node_modules/@turf/isobands/dist/cjs/index.cjs +313 -9
- 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 +313 -9
- package/node_modules/@turf/isobands/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/isobands/package.json +22 -22
- package/node_modules/@turf/isolines/README.md +1 -1
- package/node_modules/@turf/isolines/dist/cjs/index.cjs +192 -7
- 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 +192 -7
- package/node_modules/@turf/isolines/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/isolines/package.json +19 -19
- package/node_modules/@turf/kinks/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/kinks/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/kinks/dist/esm/index.js +2 -2
- 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/README.md +2 -2
- package/node_modules/@turf/length/dist/cjs/index.cjs +2 -2
- 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 +2 -2
- 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/README.md +2 -2
- package/node_modules/@turf/line-arc/dist/cjs/index.cjs +2 -2
- 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 +2 -2
- 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/README.md +2 -2
- package/node_modules/@turf/line-chunk/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/line-chunk/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-chunk/dist/esm/index.js +2 -2
- package/node_modules/@turf/line-chunk/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-chunk/package.json +12 -12
- package/node_modules/@turf/line-intersect/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/line-intersect/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-intersect/dist/esm/index.js +2 -2
- 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/README.md +2 -2
- package/node_modules/@turf/line-offset/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/line-offset/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-offset/dist/esm/index.js +2 -2
- package/node_modules/@turf/line-offset/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-offset/package.json +11 -11
- package/node_modules/@turf/line-overlap/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/line-overlap/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-overlap/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/line-segment/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-segment/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/line-slice/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-slice/dist/esm/index.js +2 -2
- package/node_modules/@turf/line-slice/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-slice/package.json +11 -11
- package/node_modules/@turf/line-slice-along/README.md +2 -2
- package/node_modules/@turf/line-slice-along/dist/cjs/index.cjs +2 -2
- 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 +2 -2
- 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/README.md +4 -1
- package/node_modules/@turf/line-split/dist/cjs/index.cjs +2 -7
- package/node_modules/@turf/line-split/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-split/dist/esm/index.js +2 -7
- package/node_modules/@turf/line-split/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/line-split/package.json +16 -17
- package/node_modules/@turf/line-to-polygon/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/line-to-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/line-to-polygon/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/mask/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/mask/dist/esm/index.js +2 -2
- package/node_modules/@turf/mask/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/mask/package.json +10 -10
- package/node_modules/@turf/meta/package.json +7 -7
- package/node_modules/@turf/midpoint/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/midpoint/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/midpoint/dist/esm/index.js +2 -2
- package/node_modules/@turf/midpoint/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/midpoint/package.json +11 -11
- package/node_modules/@turf/moran-index/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/moran-index/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/moran-index/dist/esm/index.js +2 -2
- 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 +1 -1
- package/node_modules/@turf/nearest-neighbor-analysis/dist/cjs/index.cjs +2 -2
- 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 +2 -2
- package/node_modules/@turf/nearest-neighbor-analysis/dist/esm/index.d.ts +2 -2
- package/node_modules/@turf/nearest-neighbor-analysis/dist/esm/index.js +2 -2
- 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/README.md +2 -2
- package/node_modules/@turf/nearest-point/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/nearest-point/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/nearest-point/dist/cjs/index.d.cts +6 -7
- package/node_modules/@turf/nearest-point/dist/esm/index.d.ts +6 -7
- package/node_modules/@turf/nearest-point/dist/esm/index.js +2 -2
- 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 +6 -2
- package/node_modules/@turf/nearest-point-on-line/dist/cjs/index.cjs +45 -52
- 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 +5 -1
- package/node_modules/@turf/nearest-point-on-line/dist/esm/index.d.ts +5 -1
- package/node_modules/@turf/nearest-point-on-line/dist/esm/index.js +45 -52
- 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 +20 -15
- package/node_modules/@turf/nearest-point-to-line/README.md +2 -2
- package/node_modules/@turf/nearest-point-to-line/dist/cjs/index.cjs +2 -2
- 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 +2 -2
- 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 +2 -2
- package/node_modules/@turf/planepoint/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/planepoint/dist/esm/index.js +2 -2
- package/node_modules/@turf/planepoint/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/planepoint/package.json +9 -9
- package/node_modules/@turf/point-grid/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/point-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/point-grid/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/point-on-feature/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/point-on-feature/dist/esm/index.js +2 -2
- 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 +5 -4
- package/node_modules/@turf/point-to-line-distance/dist/cjs/index.cjs +2 -2
- 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 +1 -2
- package/node_modules/@turf/point-to-line-distance/dist/esm/index.d.ts +1 -2
- package/node_modules/@turf/point-to-line-distance/dist/esm/index.js +2 -2
- 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 -18
- package/node_modules/@turf/point-to-polygon-distance/dist/cjs/index.cjs +3 -3
- package/node_modules/@turf/point-to-polygon-distance/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/point-to-polygon-distance/dist/esm/index.js +3 -3
- package/node_modules/@turf/point-to-polygon-distance/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/point-to-polygon-distance/package.json +14 -14
- package/node_modules/@turf/points-within-polygon/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/points-within-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/points-within-polygon/dist/esm/index.js +2 -2
- package/node_modules/@turf/points-within-polygon/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/points-within-polygon/package.json +10 -10
- package/node_modules/@turf/polygon-smooth/README.md +1 -1
- package/node_modules/@turf/polygon-smooth/dist/cjs/index.cjs +2 -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 +2 -2
- package/node_modules/@turf/polygon-smooth/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/polygon-smooth/package.json +11 -11
- package/node_modules/@turf/polygon-tangents/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/polygon-tangents/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/polygon-tangents/dist/esm/index.js +2 -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 +2 -2
- package/node_modules/@turf/polygon-to-line/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/polygon-to-line/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/polygonize/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/polygonize/dist/esm/index.js +2 -2
- 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/package.json +12 -12
- package/node_modules/@turf/quadrat-analysis/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/quadrat-analysis/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/quadrat-analysis/dist/esm/index.js +2 -2
- 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/package.json +9 -9
- package/node_modules/@turf/rectangle-grid/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/rectangle-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/rectangle-grid/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/rewind/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/rewind/dist/esm/index.js +2 -2
- 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/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/rhumb-bearing/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/rhumb-bearing/dist/esm/index.js +2 -2
- 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/README.md +2 -2
- package/node_modules/@turf/rhumb-destination/dist/cjs/index.cjs +2 -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 +2 -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 +8 -9
- package/node_modules/@turf/rhumb-distance/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/rhumb-distance/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/rhumb-distance/dist/cjs/index.d.cts +2 -3
- package/node_modules/@turf/rhumb-distance/dist/esm/index.d.ts +2 -3
- package/node_modules/@turf/rhumb-distance/dist/esm/index.js +2 -2
- 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/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/sample/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/sample/dist/esm/index.js +2 -2
- package/node_modules/@turf/sample/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/sample/package.json +8 -8
- package/node_modules/@turf/sector/README.md +2 -2
- package/node_modules/@turf/sector/dist/cjs/index.cjs +2 -2
- 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 +2 -2
- 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 +5 -3
- package/node_modules/@turf/shortest-path/dist/cjs/index.cjs +10 -14
- package/node_modules/@turf/shortest-path/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/shortest-path/dist/cjs/index.d.cts +1 -1
- package/node_modules/@turf/shortest-path/dist/esm/index.d.ts +1 -1
- package/node_modules/@turf/shortest-path/dist/esm/index.js +10 -14
- package/node_modules/@turf/shortest-path/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/shortest-path/package.json +20 -19
- package/node_modules/@turf/simplify/README.md +13 -13
- package/node_modules/@turf/simplify/dist/cjs/index.cjs +6 -3
- package/node_modules/@turf/simplify/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/simplify/dist/cjs/index.d.cts +11 -12
- package/node_modules/@turf/simplify/dist/esm/index.d.ts +11 -12
- package/node_modules/@turf/simplify/dist/esm/index.js +6 -3
- 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 +2 -2
- package/node_modules/@turf/square/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/square/dist/esm/index.js +2 -2
- package/node_modules/@turf/square/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/square/package.json +9 -9
- package/node_modules/@turf/square-grid/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/square-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/square-grid/dist/esm/index.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/node_modules/@turf/tag/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/tag/dist/esm/index.js +2 -2
- package/node_modules/@turf/tag/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/tag/package.json +11 -11
- package/node_modules/@turf/tesselate/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/tesselate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/tesselate/dist/esm/index.js +2 -2
- package/node_modules/@turf/tesselate/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/tesselate/package.json +8 -8
- package/node_modules/@turf/tin/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/tin/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/tin/dist/esm/index.js +2 -2
- package/node_modules/@turf/tin/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/tin/package.json +8 -8
- package/node_modules/@turf/transform-rotate/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/transform-rotate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/transform-rotate/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/transform-scale/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/transform-scale/dist/esm/index.js +2 -2
- 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/README.md +8 -3
- package/node_modules/@turf/transform-translate/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/transform-translate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/transform-translate/dist/cjs/index.d.cts +4 -1
- package/node_modules/@turf/transform-translate/dist/esm/index.d.ts +4 -1
- package/node_modules/@turf/transform-translate/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/triangle-grid/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/triangle-grid/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/truncate/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/truncate/dist/esm/index.js +2 -2
- 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/package.json +125 -125
- package/node_modules/@turf/turf/turf.min.js +2 -11
- package/node_modules/@turf/union/dist/cjs/index.cjs +2 -2
- package/node_modules/@turf/union/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/union/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/unkink-polygon/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/unkink-polygon/dist/esm/index.js +2 -2
- 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 +2 -2
- package/node_modules/@turf/voronoi/dist/cjs/index.cjs.map +1 -1
- package/node_modules/@turf/voronoi/dist/esm/index.js +2 -2
- package/node_modules/@turf/voronoi/dist/esm/index.js.map +1 -1
- package/node_modules/@turf/voronoi/package.json +12 -12
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/node_modules/@types/node/assert.d.ts +154 -95
- package/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/node/child_process.d.ts +65 -42
- package/node_modules/@types/node/cluster.d.ts +4 -5
- package/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/node/crypto.d.ts +1173 -322
- package/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/node/diagnostics_channel.d.ts +0 -2
- package/node_modules/@types/node/dns.d.ts +6 -1
- package/node_modules/@types/node/events.d.ts +80 -34
- package/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/node/fs.d.ts +328 -87
- package/node_modules/@types/node/globals.d.ts +2 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/node/http.d.ts +119 -31
- package/node_modules/@types/node/http2.d.ts +178 -52
- package/node_modules/@types/node/https.d.ts +96 -62
- package/node_modules/@types/node/index.d.ts +3 -1
- package/node_modules/@types/node/inspector.d.ts +205 -4139
- package/node_modules/@types/node/inspector.generated.d.ts +4233 -0
- package/node_modules/@types/node/net.d.ts +33 -11
- package/node_modules/@types/node/os.d.ts +14 -3
- package/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@types/node/process.d.ts +19 -23
- package/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/node/sea.d.ts +9 -0
- package/node_modules/@types/node/sqlite.d.ts +233 -10
- package/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/node/stream/web.d.ts +6 -55
- package/node_modules/@types/node/stream.d.ts +38 -23
- package/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/node/test.d.ts +31 -26
- package/node_modules/@types/node/tls.d.ts +122 -66
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +3 -1
- package/node_modules/@types/node/ts5.7/index.d.ts +3 -1
- package/node_modules/@types/node/url.d.ts +48 -16
- package/node_modules/@types/node/util.d.ts +23 -7
- package/node_modules/@types/node/v8.d.ts +38 -5
- package/node_modules/@types/node/vm.d.ts +169 -88
- package/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@types/node/web-globals/events.d.ts +3 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +3 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/node/worker_threads.d.ts +142 -51
- package/node_modules/@types/node/zlib.d.ts +31 -24
- package/node_modules/axios/CHANGELOG.md +410 -346
- package/node_modules/axios/README.md +79 -51
- package/node_modules/axios/dist/axios.js +121 -46
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +126 -57
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +126 -57
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +351 -97
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +4 -0
- package/node_modules/axios/index.d.ts +4 -0
- package/node_modules/axios/lib/adapters/adapters.js +85 -40
- package/node_modules/axios/lib/adapters/fetch.js +1 -1
- package/node_modules/axios/lib/adapters/http.js +224 -42
- package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +4 -4
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
- package/node_modules/axios/lib/helpers/bind.js +7 -0
- package/node_modules/axios/lib/helpers/cookies.js +24 -13
- package/node_modules/axios/package.json +9 -4
- package/node_modules/fast-xml-parser/CHANGELOG.md +9 -0
- package/node_modules/fast-xml-parser/README.md +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/package.json +1 -1
- package/node_modules/fast-xml-parser/src/fxp.d.ts +2 -2
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +1 -1
- package/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +4 -4
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +297 -287
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +24 -12
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +4 -4
- package/node_modules/form-data/CHANGELOG.md +60 -2
- package/node_modules/form-data/README.md +4 -4
- package/node_modules/form-data/lib/form_data.js +2 -2
- package/node_modules/form-data/package.json +4 -4
- package/node_modules/undici-types/agent.d.ts +1 -4
- package/node_modules/undici-types/client.d.ts +0 -2
- package/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/undici-types/dispatcher.d.ts +0 -6
- package/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/undici-types/eventsource.d.ts +6 -1
- package/node_modules/undici-types/h2c-client.d.ts +0 -2
- package/node_modules/undici-types/index.d.ts +6 -1
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +0 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici-types/webidl.d.ts +92 -21
- package/node_modules/undici-types/websocket.d.ts +2 -0
- package/package.json +5 -5
- package/tak-registration.js +11 -11
- package/node_modules/marchingsquares/.eslintrc.json +0 -81
- package/node_modules/marchingsquares/Changelog.md +0 -81
- package/node_modules/marchingsquares/LICENSE.md +0 -37
- package/node_modules/marchingsquares/README.md +0 -312
- package/node_modules/marchingsquares/VERSION +0 -1
- package/node_modules/marchingsquares/agpl-3.0.txt +0 -661
- package/node_modules/marchingsquares/dist/marchingsquares-esm.js +0 -3410
- package/node_modules/marchingsquares/dist/marchingsquares-isobands.js +0 -2513
- package/node_modules/marchingsquares/dist/marchingsquares-isobands.min.js +0 -9
- package/node_modules/marchingsquares/dist/marchingsquares-isocontours.js +0 -1209
- package/node_modules/marchingsquares/dist/marchingsquares-isocontours.min.js +0 -9
- package/node_modules/marchingsquares/dist/marchingsquares-isolines.js +0 -1209
- package/node_modules/marchingsquares/dist/marchingsquares-isolines.min.js +0 -9
- package/node_modules/marchingsquares/dist/marchingsquares.js +0 -3424
- package/node_modules/marchingsquares/dist/marchingsquares.min.js +0 -9
- package/node_modules/marchingsquares/examples/contour/index.html +0 -117
- package/node_modules/marchingsquares/examples/editor/draw-lines.js +0 -60
- package/node_modules/marchingsquares/examples/editor/index.html +0 -39
- package/node_modules/marchingsquares/examples/editor/script.js +0 -110
- package/node_modules/marchingsquares/examples/editor/styles.css +0 -37
- package/node_modules/marchingsquares/examples/require/app.js +0 -9
- package/node_modules/marchingsquares/examples/require/index.html +0 -14
- package/node_modules/marchingsquares/examples/require/main.js +0 -98
- package/node_modules/marchingsquares/examples/require/require.js +0 -5
- package/node_modules/marchingsquares/examples/simple/index.html +0 -115
- package/node_modules/marchingsquares/examples/vienna/index.html +0 -229
- package/node_modules/marchingsquares/examples/vienna/vienna_basin.png +0 -0
- package/node_modules/marchingsquares/examples/vienna/vienna_data.js +0 -514
- package/node_modules/marchingsquares/package.json +0 -47
- package/node_modules/marchingsquares/rollup.config.js +0 -122
- package/node_modules/marchingsquares/rollup.config.test.js +0 -14
- package/node_modules/marchingsquares/src/interpolation.js +0 -84
- package/node_modules/marchingsquares/src/isobands.js +0 -1883
- package/node_modules/marchingsquares/src/isolines.js +0 -638
- package/node_modules/marchingsquares/src/main.js +0 -4
- package/node_modules/marchingsquares/src/options.js +0 -80
- package/node_modules/marchingsquares/src/polygons.js +0 -531
- package/node_modules/marchingsquares/src/quadtree.js +0 -228
- package/node_modules/marchingsquares/test/data/in/isoBands-example-case.json +0 -14
- package/node_modules/marchingsquares/test/data/in/isoBands-issue#6-0_3.json +0 -12
- package/node_modules/marchingsquares/test/data/in/isoBands-issue#6-3_5.json +0 -12
- package/node_modules/marchingsquares/test/data/in/isoBands-issue#6-5_7.json +0 -12
- package/node_modules/marchingsquares/test/data/in/isoBands-minimal.json +0 -8
- package/node_modules/marchingsquares/test/data/in/isoBands-simple.json +0 -9
- package/node_modules/marchingsquares/test/data/in/isoLines-example-case.json +0 -13
- package/node_modules/marchingsquares/test/data/in/isoLines-simple.json +0 -8
- package/node_modules/marchingsquares/test/data/out/isoBands-example-case.json +0 -72
- package/node_modules/marchingsquares/test/data/out/isoBands-issue#6-0_3.json +0 -9
- package/node_modules/marchingsquares/test/data/out/isoBands-issue#6-3_5.json +0 -36
- package/node_modules/marchingsquares/test/data/out/isoBands-issue#6-5_7.json +0 -8
- package/node_modules/marchingsquares/test/data/out/isoBands-minimal.json +0 -10
- package/node_modules/marchingsquares/test/data/out/isoBands-simple.json +0 -25
- package/node_modules/marchingsquares/test/data/out/isoLines-example-case.json +0 -481
- package/node_modules/marchingsquares/test/data/out/isoLines-simple.json +0 -8
- package/node_modules/marchingsquares/test/test.js +0 -152
|
@@ -1,1209 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* MarchingSquaresJS
|
|
3
|
-
* version 1.3.3
|
|
4
|
-
* https://github.com/RaumZeit/MarchingSquares.js
|
|
5
|
-
*
|
|
6
|
-
* @license GNU Affero General Public License.
|
|
7
|
-
* Copyright (c) 2015-2019 Ronny Lorenz <ronny@tbi.univie.ac.at>
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
(function (global, factory) {
|
|
12
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
13
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
14
|
-
(factory((global.MarchingSquaresJS = global.MarchingSquaresJS || {})));
|
|
15
|
-
}(this, (function (exports) { 'use strict';
|
|
16
|
-
|
|
17
|
-
/*
|
|
18
|
-
* Compute the distance of a value 'v' from 'a' through linear interpolation
|
|
19
|
-
* between the values of 'a' and 'b'
|
|
20
|
-
*
|
|
21
|
-
* Note, that we assume that 'a' and 'b' have unit distance (i.e. 1)
|
|
22
|
-
*/
|
|
23
|
-
function linear(a, b, v) {
|
|
24
|
-
if (a < b)
|
|
25
|
-
return (v - a) / (b - a);
|
|
26
|
-
|
|
27
|
-
return (a - v) / (a - b);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function Options() {
|
|
31
|
-
/* Settings common to all implemented algorithms */
|
|
32
|
-
this.successCallback = null;
|
|
33
|
-
this.verbose = false;
|
|
34
|
-
this.polygons = false;
|
|
35
|
-
this.polygons_full = false;
|
|
36
|
-
this.linearRing = true;
|
|
37
|
-
this.noQuadTree = false;
|
|
38
|
-
this.noFrame = false;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/* Compose settings specific to IsoLines algorithm */
|
|
43
|
-
function isoLineOptions(userSettings) {
|
|
44
|
-
var i,
|
|
45
|
-
key,
|
|
46
|
-
val,
|
|
47
|
-
lineOptions,
|
|
48
|
-
optionKeys;
|
|
49
|
-
|
|
50
|
-
lineOptions = new Options();
|
|
51
|
-
userSettings = userSettings ? userSettings : {};
|
|
52
|
-
optionKeys = Object.keys(lineOptions);
|
|
53
|
-
|
|
54
|
-
for(i = 0; i < optionKeys.length; i++) {
|
|
55
|
-
key = optionKeys[i];
|
|
56
|
-
val = userSettings[key];
|
|
57
|
-
if ((typeof val !== 'undefined') && (val !== null))
|
|
58
|
-
lineOptions[key] = val;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* restore compatibility */
|
|
62
|
-
lineOptions.polygons_full = !lineOptions.polygons;
|
|
63
|
-
|
|
64
|
-
/* add interpolation functions (not yet user customizable) */
|
|
65
|
-
lineOptions.interpolate = linear;
|
|
66
|
-
|
|
67
|
-
return lineOptions;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function cell2Polygons(cell, x, y, settings) {
|
|
71
|
-
var polygons = [];
|
|
72
|
-
|
|
73
|
-
cell.polygons.forEach(function(p) {
|
|
74
|
-
p.forEach(function(pp) {
|
|
75
|
-
pp[0] += x;
|
|
76
|
-
pp[1] += y;
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
if (settings.linearRing)
|
|
80
|
-
p.push(p[0]);
|
|
81
|
-
|
|
82
|
-
polygons.push(p);
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
return polygons;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function entry_coordinate(x, y, mode, path) {
|
|
89
|
-
if (mode === 0) { /* down */
|
|
90
|
-
x += 1;
|
|
91
|
-
y += path[0][1];
|
|
92
|
-
} else if (mode === 1) { /* left */
|
|
93
|
-
x += path[0][0];
|
|
94
|
-
} else if (mode === 2) { /* up */
|
|
95
|
-
y += path[0][1];
|
|
96
|
-
} else if (mode === 3) { /* right */
|
|
97
|
-
x += path[0][0];
|
|
98
|
-
y += 1;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return [ x, y ];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
function skip_coordinate(x, y, mode) {
|
|
106
|
-
if (mode === 0) { /* down */
|
|
107
|
-
x++;
|
|
108
|
-
} else if (mode === 1) ; else if (mode === 2) { /* up */
|
|
109
|
-
y++;
|
|
110
|
-
} else if (mode === 3) { /* right */
|
|
111
|
-
x++;
|
|
112
|
-
y++;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return [ x, y ];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
function requireLineFrame(data, threshold) {
|
|
120
|
-
var frameRequired,
|
|
121
|
-
cols,
|
|
122
|
-
rows,
|
|
123
|
-
i,
|
|
124
|
-
j;
|
|
125
|
-
|
|
126
|
-
frameRequired = true;
|
|
127
|
-
cols = data[0].length;
|
|
128
|
-
rows = data.length;
|
|
129
|
-
|
|
130
|
-
for (j = 0; j < rows; j++) {
|
|
131
|
-
if ((data[j][0] >= threshold) ||
|
|
132
|
-
(data[j][cols - 1] >= threshold)) {
|
|
133
|
-
frameRequired = false;
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if ((frameRequired) &&
|
|
139
|
-
((data[rows - 1][0] >= threshold) ||
|
|
140
|
-
(data[rows - 1][cols - 1] >= threshold))) {
|
|
141
|
-
frameRequired = false;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
if (frameRequired)
|
|
145
|
-
for (i = 0; i < cols - 1; i++) {
|
|
146
|
-
if ((data[0][i] >= threshold) ||
|
|
147
|
-
(data[rows - 1][i] > threshold)) {
|
|
148
|
-
frameRequired = false;
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
return frameRequired;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
function traceLinePaths(data, cellGrid, settings) {
|
|
158
|
-
var nextedge,
|
|
159
|
-
e,
|
|
160
|
-
ee,
|
|
161
|
-
cc,
|
|
162
|
-
path,
|
|
163
|
-
enter,
|
|
164
|
-
x,
|
|
165
|
-
y,
|
|
166
|
-
finalized,
|
|
167
|
-
origin,
|
|
168
|
-
point,
|
|
169
|
-
dir,
|
|
170
|
-
count,
|
|
171
|
-
found_entry,
|
|
172
|
-
ve;
|
|
173
|
-
|
|
174
|
-
var polygons = [];
|
|
175
|
-
var rows = data.length - 1;
|
|
176
|
-
var cols = data[0].length - 1;
|
|
177
|
-
|
|
178
|
-
/*
|
|
179
|
-
* directions for out-of-grid moves are:
|
|
180
|
-
* 0 ... "down",
|
|
181
|
-
* 1 ... "left",
|
|
182
|
-
* 2 ... "up",
|
|
183
|
-
* 3 ... "right"
|
|
184
|
-
*/
|
|
185
|
-
var valid_entries = [ 'right', /* down */
|
|
186
|
-
'bottom', /* left */
|
|
187
|
-
'left', /* up */
|
|
188
|
-
'top' /* right */
|
|
189
|
-
];
|
|
190
|
-
var add_x = [ 0, -1, 0, 1 ];
|
|
191
|
-
var add_y = [ -1, 0, 1, 0 ];
|
|
192
|
-
var entry_dir = {
|
|
193
|
-
bottom: 1,
|
|
194
|
-
left: 2,
|
|
195
|
-
top: 3,
|
|
196
|
-
right: 0
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
/* first, detect whether we need any outer frame */
|
|
200
|
-
if (!settings.noFrame)
|
|
201
|
-
if (requireLineFrame(data, settings.threshold)) {
|
|
202
|
-
if (settings.linearRing)
|
|
203
|
-
polygons.push([ [0, 0], [0, rows], [cols, rows], [cols, 0], [0, 0] ]);
|
|
204
|
-
else
|
|
205
|
-
polygons.push([ [0, 0], [0, rows], [cols, rows], [cols, 0] ]);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/* finally, start tracing back first polygon(s) */
|
|
209
|
-
|
|
210
|
-
cellGrid.forEach(function(a, i) {
|
|
211
|
-
a.forEach(function(cell, j) {
|
|
212
|
-
nextedge = null;
|
|
213
|
-
|
|
214
|
-
/* trace paths for all available edges that go through this cell */
|
|
215
|
-
for (e = 0; e < 4; e++) {
|
|
216
|
-
nextedge = valid_entries[e];
|
|
217
|
-
|
|
218
|
-
if (typeof cell.edges[nextedge] !== 'object')
|
|
219
|
-
continue;
|
|
220
|
-
|
|
221
|
-
/* start a new, full path */
|
|
222
|
-
path = [];
|
|
223
|
-
ee = cell.edges[nextedge];
|
|
224
|
-
enter = nextedge;
|
|
225
|
-
x = i;
|
|
226
|
-
y = j;
|
|
227
|
-
finalized = false;
|
|
228
|
-
origin = [ i + ee.path[0][0], j + ee.path[0][1] ];
|
|
229
|
-
|
|
230
|
-
/* add start coordinate */
|
|
231
|
-
path.push(origin);
|
|
232
|
-
|
|
233
|
-
/* start traceback */
|
|
234
|
-
while (!finalized) {
|
|
235
|
-
cc = cellGrid[x][y];
|
|
236
|
-
|
|
237
|
-
if (typeof cc.edges[enter] !== 'object')
|
|
238
|
-
break;
|
|
239
|
-
|
|
240
|
-
ee = cc.edges[enter];
|
|
241
|
-
|
|
242
|
-
/* remove edge from cell */
|
|
243
|
-
delete cc.edges[enter];
|
|
244
|
-
|
|
245
|
-
/* add last point of edge to path arra, since we extend a polygon */
|
|
246
|
-
point = ee.path[1];
|
|
247
|
-
point[0] += x;
|
|
248
|
-
point[1] += y;
|
|
249
|
-
path.push(point);
|
|
250
|
-
|
|
251
|
-
enter = ee.move.enter;
|
|
252
|
-
x = x + ee.move.x;
|
|
253
|
-
y = y + ee.move.y;
|
|
254
|
-
|
|
255
|
-
/* handle out-of-grid moves */
|
|
256
|
-
if ((typeof cellGrid[x] === 'undefined') ||
|
|
257
|
-
(typeof cellGrid[x][y] === 'undefined')) {
|
|
258
|
-
|
|
259
|
-
if (!settings.linearRing)
|
|
260
|
-
break;
|
|
261
|
-
|
|
262
|
-
dir = 0;
|
|
263
|
-
count = 0;
|
|
264
|
-
|
|
265
|
-
if (x === cols) {
|
|
266
|
-
x--;
|
|
267
|
-
dir = 0; /* move downwards */
|
|
268
|
-
} else if (x < 0) {
|
|
269
|
-
x++;
|
|
270
|
-
dir = 2; /* move upwards */
|
|
271
|
-
} else if (y === rows) {
|
|
272
|
-
y--;
|
|
273
|
-
dir = 3; /* move right */
|
|
274
|
-
} else if (y < 0) {
|
|
275
|
-
y++;
|
|
276
|
-
dir = 1; /* move left */
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
if ((x === i) && (y === j) && (dir === entry_dir[nextedge])) {
|
|
280
|
-
finalized = true;
|
|
281
|
-
enter = nextedge;
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
while (1) {
|
|
286
|
-
found_entry = false;
|
|
287
|
-
|
|
288
|
-
if (count > 4)
|
|
289
|
-
throw new Error('Direction change counter overflow! This should never happen!');
|
|
290
|
-
|
|
291
|
-
if (!((typeof cellGrid[x] === 'undefined') ||
|
|
292
|
-
(typeof cellGrid[x][y] === 'undefined'))) {
|
|
293
|
-
cc = cellGrid[x][y];
|
|
294
|
-
|
|
295
|
-
/* check for re-entry */
|
|
296
|
-
ve = valid_entries[dir];
|
|
297
|
-
if (typeof cc.edges[ve] === 'object') {
|
|
298
|
-
/* found re-entry */
|
|
299
|
-
ee = cc.edges[ve];
|
|
300
|
-
path.push(entry_coordinate(x, y, dir, ee.path));
|
|
301
|
-
enter = ve;
|
|
302
|
-
found_entry = true;
|
|
303
|
-
break;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
if (found_entry) {
|
|
308
|
-
break;
|
|
309
|
-
} else {
|
|
310
|
-
path.push(skip_coordinate(x, y, dir));
|
|
311
|
-
|
|
312
|
-
x += add_x[dir];
|
|
313
|
-
y += add_y[dir];
|
|
314
|
-
|
|
315
|
-
/* change direction if we'e moved out of grid again */
|
|
316
|
-
if ((typeof cellGrid[x] === 'undefined') ||
|
|
317
|
-
(typeof cellGrid[x][y] === 'undefined')) {
|
|
318
|
-
if (((dir === 0) && (y < 0)) ||
|
|
319
|
-
((dir === 1) && (x < 0)) ||
|
|
320
|
-
((dir === 2) && (y === rows)) ||
|
|
321
|
-
((dir === 3) && (x === cols))) {
|
|
322
|
-
x -= add_x[dir];
|
|
323
|
-
y -= add_y[dir];
|
|
324
|
-
|
|
325
|
-
dir = (dir + 1) % 4;
|
|
326
|
-
count++;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
if ((x === i) && (y === j) && (dir === entry_dir[nextedge])) {
|
|
331
|
-
/* we are back where we started off, so finalize the polygon */
|
|
332
|
-
finalized = true;
|
|
333
|
-
enter = nextedge;
|
|
334
|
-
break;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
if ((settings.linearRing) &&
|
|
342
|
-
((path[path.length - 1][0] !== origin[0]) ||
|
|
343
|
-
(path[path.length - 1][1] !== origin[1])))
|
|
344
|
-
path.push(origin);
|
|
345
|
-
|
|
346
|
-
polygons.push(path);
|
|
347
|
-
} /* end forall entry sites */
|
|
348
|
-
}); /* end foreach i */
|
|
349
|
-
}); /* end foreach j */
|
|
350
|
-
|
|
351
|
-
return polygons;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
/* quadTree node constructor */
|
|
355
|
-
function TreeNode(data, x, y, dx, dy) {
|
|
356
|
-
var dx_tmp = dx,
|
|
357
|
-
dy_tmp = dy,
|
|
358
|
-
msb_x = 0,
|
|
359
|
-
msb_y = 0;
|
|
360
|
-
|
|
361
|
-
/* left-bottom corner of current quadrant */
|
|
362
|
-
this.x = x;
|
|
363
|
-
this.y = y;
|
|
364
|
-
|
|
365
|
-
/* minimum value in subtree under this node */
|
|
366
|
-
this.lowerBound = null;
|
|
367
|
-
/* maximum value in subtree under this node */
|
|
368
|
-
this.upperBound = null;
|
|
369
|
-
|
|
370
|
-
/*
|
|
371
|
-
* child nodes are layed out in the following way:
|
|
372
|
-
*
|
|
373
|
-
* (x, y + 1) ---- (x + 1, y + 1)
|
|
374
|
-
* | | |
|
|
375
|
-
* | D | C |
|
|
376
|
-
* | | |
|
|
377
|
-
* |----------------------------|
|
|
378
|
-
* | | |
|
|
379
|
-
* | A | B |
|
|
380
|
-
* | | |
|
|
381
|
-
* (x, y) ------------ (x + 1, y)
|
|
382
|
-
*/
|
|
383
|
-
this.childA = null;
|
|
384
|
-
this.childB = null;
|
|
385
|
-
this.childC = null;
|
|
386
|
-
this.childD = null;
|
|
387
|
-
|
|
388
|
-
if ((dx === 1) && (dy === 1)) {
|
|
389
|
-
/* do not further subdivision */
|
|
390
|
-
this.lowerBound = Math.min(
|
|
391
|
-
data[y][x],
|
|
392
|
-
data[y][x + 1],
|
|
393
|
-
data[y + 1][x + 1],
|
|
394
|
-
data[y + 1][x]
|
|
395
|
-
);
|
|
396
|
-
this.upperBound = Math.max(
|
|
397
|
-
data[y][x],
|
|
398
|
-
data[y][x + 1],
|
|
399
|
-
data[y + 1][x + 1],
|
|
400
|
-
data[y + 1][x]
|
|
401
|
-
);
|
|
402
|
-
} else {
|
|
403
|
-
/* get most significant bit from dx */
|
|
404
|
-
if (dx > 1) {
|
|
405
|
-
while (dx_tmp !== 0) {
|
|
406
|
-
dx_tmp = dx_tmp >> 1;
|
|
407
|
-
msb_x++;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
if (dx === (1 << (msb_x - 1)))
|
|
411
|
-
msb_x--;
|
|
412
|
-
|
|
413
|
-
dx_tmp = 1 << (msb_x - 1);
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/* get most significant bit from dx */
|
|
417
|
-
if (dy > 1) {
|
|
418
|
-
while (dy_tmp !== 0) {
|
|
419
|
-
dy_tmp = dy_tmp >> 1;
|
|
420
|
-
msb_y++;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
if (dy === (1 << (msb_y - 1)))
|
|
424
|
-
msb_y--;
|
|
425
|
-
|
|
426
|
-
dy_tmp = 1 << (msb_y - 1);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
this.childA = new TreeNode(data, x, y, dx_tmp, dy_tmp);
|
|
430
|
-
this.lowerBound = this.childA.lowerBound;
|
|
431
|
-
this.upperBound = this.childA.upperBound;
|
|
432
|
-
|
|
433
|
-
if (dx - dx_tmp > 0) {
|
|
434
|
-
this.childB = new TreeNode(data, x + dx_tmp, y, dx - dx_tmp, dy_tmp);
|
|
435
|
-
this.lowerBound = Math.min(this.lowerBound, this.childB.lowerBound);
|
|
436
|
-
this.upperBound = Math.max(this.upperBound, this.childB.upperBound);
|
|
437
|
-
|
|
438
|
-
if (dy - dy_tmp > 0) {
|
|
439
|
-
this.childC = new TreeNode(data, x + dx_tmp, y + dy_tmp, dx - dx_tmp, dy - dy_tmp);
|
|
440
|
-
this.lowerBound = Math.min(this.lowerBound, this.childC.lowerBound);
|
|
441
|
-
this.upperBound = Math.max(this.upperBound, this.childC.upperBound);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
if (dy - dy_tmp > 0) {
|
|
446
|
-
this.childD = new TreeNode(data, x, y + dy_tmp, dx_tmp, dy - dy_tmp);
|
|
447
|
-
this.lowerBound = Math.min(this.lowerBound, this.childD.lowerBound);
|
|
448
|
-
this.upperBound = Math.max(this.upperBound, this.childD.upperBound);
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* Retrieve a list of cells within a particular range of values by
|
|
456
|
-
* recursivly traversing the quad tree to it's leaves.
|
|
457
|
-
*
|
|
458
|
-
* @param subsumed If 'true' include all cells that are completely
|
|
459
|
-
* subsumed within the specified range. Otherwise,
|
|
460
|
-
* return only cells where at least one corner is
|
|
461
|
-
* outside the specified range.
|
|
462
|
-
*
|
|
463
|
-
* @return An array of objects 'o' where each object has exactly two
|
|
464
|
-
* properties: 'o.x' and 'o.y' denoting the left-bottom corner
|
|
465
|
-
* of the corresponding cell.
|
|
466
|
-
*/
|
|
467
|
-
TreeNode.prototype.cellsInBand = function(lowerBound, upperBound, subsumed) {
|
|
468
|
-
var cells = [];
|
|
469
|
-
|
|
470
|
-
subsumed = (typeof subsumed === 'undefined') ? true : subsumed;
|
|
471
|
-
|
|
472
|
-
if ((this.lowerBound > upperBound) || (this.upperBound < lowerBound))
|
|
473
|
-
return cells;
|
|
474
|
-
|
|
475
|
-
if (!(this.childA || this.childB || this.childC || this.childD)) {
|
|
476
|
-
if ((subsumed) ||
|
|
477
|
-
(this.lowerBound <= lowerBound) ||
|
|
478
|
-
(this.upperBound >= upperBound)) {
|
|
479
|
-
cells.push({
|
|
480
|
-
x: this.x,
|
|
481
|
-
y: this.y
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
} else {
|
|
485
|
-
if (this.childA)
|
|
486
|
-
cells = cells.concat(this.childA.cellsInBand(lowerBound, upperBound, subsumed));
|
|
487
|
-
|
|
488
|
-
if (this.childB)
|
|
489
|
-
cells = cells.concat(this.childB.cellsInBand(lowerBound, upperBound, subsumed));
|
|
490
|
-
|
|
491
|
-
if (this.childD)
|
|
492
|
-
cells = cells.concat(this.childD.cellsInBand(lowerBound, upperBound, subsumed));
|
|
493
|
-
|
|
494
|
-
if (this.childC)
|
|
495
|
-
cells = cells.concat(this.childC.cellsInBand(lowerBound, upperBound, subsumed));
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
return cells;
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
TreeNode.prototype.cellsBelowThreshold = function(threshold, subsumed) {
|
|
503
|
-
var cells = [];
|
|
504
|
-
|
|
505
|
-
subsumed = (typeof subsumed === 'undefined') ? true : subsumed;
|
|
506
|
-
|
|
507
|
-
if (this.lowerBound > threshold)
|
|
508
|
-
return cells;
|
|
509
|
-
|
|
510
|
-
if (!(this.childA || this.childB || this.childC || this.childD)) {
|
|
511
|
-
if ((subsumed) ||
|
|
512
|
-
(this.upperBound >= threshold)) {
|
|
513
|
-
cells.push({
|
|
514
|
-
x: this.x,
|
|
515
|
-
y: this.y
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
} else {
|
|
519
|
-
if (this.childA)
|
|
520
|
-
cells = cells.concat(this.childA.cellsBelowThreshold(threshold, subsumed));
|
|
521
|
-
|
|
522
|
-
if (this.childB)
|
|
523
|
-
cells = cells.concat(this.childB.cellsBelowThreshold(threshold, subsumed));
|
|
524
|
-
|
|
525
|
-
if (this.childD)
|
|
526
|
-
cells = cells.concat(this.childD.cellsBelowThreshold(threshold, subsumed));
|
|
527
|
-
|
|
528
|
-
if (this.childC)
|
|
529
|
-
cells = cells.concat(this.childC.cellsBelowThreshold(threshold, subsumed));
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
return cells;
|
|
533
|
-
};
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
/*
|
|
537
|
-
* Given a scalar field `data` construct a QuadTree
|
|
538
|
-
* to efficiently lookup those parts of the scalar
|
|
539
|
-
* field where values are within a particular
|
|
540
|
-
* range of [lowerbound, upperbound] limits.
|
|
541
|
-
*/
|
|
542
|
-
function QuadTree(data) {
|
|
543
|
-
var i, cols;
|
|
544
|
-
|
|
545
|
-
/* do some input checking */
|
|
546
|
-
if (!data)
|
|
547
|
-
throw new Error('data is required');
|
|
548
|
-
|
|
549
|
-
if (!Array.isArray(data) ||
|
|
550
|
-
!Array.isArray(data[0]))
|
|
551
|
-
throw new Error('data must be scalar field, i.e. array of arrays');
|
|
552
|
-
|
|
553
|
-
if (data.length < 2)
|
|
554
|
-
throw new Error('data must contain at least two rows');
|
|
555
|
-
|
|
556
|
-
/* check if we've got a regular grid */
|
|
557
|
-
cols = data[0].length;
|
|
558
|
-
|
|
559
|
-
if (cols < 2)
|
|
560
|
-
throw new Error('data must contain at least two columns');
|
|
561
|
-
|
|
562
|
-
for (i = 1; i < data.length; i++) {
|
|
563
|
-
if (!Array.isArray(data[i]))
|
|
564
|
-
throw new Error('Row ' + i + ' is not an array');
|
|
565
|
-
|
|
566
|
-
if (data[i].length != cols)
|
|
567
|
-
throw new Error('unequal row lengths detected, please provide a regular grid');
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
/* create pre-processing object */
|
|
571
|
-
this.data = data;
|
|
572
|
-
/* root node, i.e. entry to the data */
|
|
573
|
-
this.root = new TreeNode(data, 0, 0, data[0].length - 1, data.length - 1);
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
/* eslint no-console: ["error", { allow: ["log"] }] */
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
/*
|
|
580
|
-
* Compute the iso lines for a scalar 2D field given
|
|
581
|
-
* a certain threshold by applying the Marching Squares
|
|
582
|
-
* Algorithm. The function returns a list of path coordinates
|
|
583
|
-
*/
|
|
584
|
-
|
|
585
|
-
function isoLines(input, threshold, options) {
|
|
586
|
-
var settings,
|
|
587
|
-
i,
|
|
588
|
-
j,
|
|
589
|
-
useQuadTree = false,
|
|
590
|
-
multiLine = false,
|
|
591
|
-
tree = null,
|
|
592
|
-
root = null,
|
|
593
|
-
data = null,
|
|
594
|
-
cellGrid = null,
|
|
595
|
-
linePolygons = null,
|
|
596
|
-
ret = [];
|
|
597
|
-
|
|
598
|
-
/* validation */
|
|
599
|
-
if (!input) throw new Error('data is required');
|
|
600
|
-
if (threshold === undefined || threshold === null) throw new Error('threshold is required');
|
|
601
|
-
if ((!!options) && (typeof options !== 'object')) throw new Error('options must be an object');
|
|
602
|
-
|
|
603
|
-
/* process options */
|
|
604
|
-
settings = isoLineOptions(options);
|
|
605
|
-
|
|
606
|
-
/* check for input data */
|
|
607
|
-
if (input instanceof QuadTree) {
|
|
608
|
-
tree = input;
|
|
609
|
-
root = input.root;
|
|
610
|
-
data = input.data;
|
|
611
|
-
if (!settings.noQuadTree)
|
|
612
|
-
useQuadTree = true;
|
|
613
|
-
} else if (Array.isArray(input) && Array.isArray(input[0])) {
|
|
614
|
-
data = input;
|
|
615
|
-
} else {
|
|
616
|
-
throw new Error('input is neither array of arrays nor object retrieved from \'QuadTree()\'');
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
/* check and prepare input threshold(s) */
|
|
620
|
-
if (Array.isArray(threshold)) {
|
|
621
|
-
multiLine = true;
|
|
622
|
-
|
|
623
|
-
/* activate QuadTree optimization if not explicitly forbidden by user settings */
|
|
624
|
-
if (!settings.noQuadTree)
|
|
625
|
-
useQuadTree = true;
|
|
626
|
-
|
|
627
|
-
/* check if all minV are numbers */
|
|
628
|
-
for (i = 0; i < threshold.length; i++)
|
|
629
|
-
if (isNaN(+threshold[i]))
|
|
630
|
-
throw new Error('threshold[' + i + '] is not a number');
|
|
631
|
-
} else {
|
|
632
|
-
if (isNaN(+threshold))
|
|
633
|
-
throw new Error('threshold must be a number or array of numbers');
|
|
634
|
-
|
|
635
|
-
threshold = [ threshold ];
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/* create QuadTree root node if not already present */
|
|
639
|
-
if ((useQuadTree) && (!root)) {
|
|
640
|
-
tree = new QuadTree(data);
|
|
641
|
-
root = tree.root;
|
|
642
|
-
data = tree.data;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
if (settings.verbose) {
|
|
646
|
-
if(settings.polygons)
|
|
647
|
-
console.log('MarchingSquaresJS-isoLines: returning single lines (polygons) for each grid cell');
|
|
648
|
-
else
|
|
649
|
-
console.log('MarchingSquaresJS-isoLines: returning line paths (polygons) for entire data grid');
|
|
650
|
-
|
|
651
|
-
if (multiLine)
|
|
652
|
-
console.log('MarchingSquaresJS-isoLines: multiple lines requested, returning array of line paths instead of lines for a single threshold');
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
/* Done with all input validation, now let's start computing stuff */
|
|
656
|
-
|
|
657
|
-
/* loop over all threhsold values */
|
|
658
|
-
threshold.forEach(function(t, i) {
|
|
659
|
-
linePolygons = [];
|
|
660
|
-
|
|
661
|
-
/* store bounds for current computation in settings object */
|
|
662
|
-
settings.threshold = t;
|
|
663
|
-
|
|
664
|
-
if(settings.verbose)
|
|
665
|
-
console.log('MarchingSquaresJS-isoLines: computing iso lines for threshold ' + t);
|
|
666
|
-
|
|
667
|
-
if (settings.polygons) {
|
|
668
|
-
/* compose list of polygons for each single cell */
|
|
669
|
-
if (useQuadTree) {
|
|
670
|
-
/* go through list of cells retrieved from QuadTree */
|
|
671
|
-
root
|
|
672
|
-
.cellsBelowThreshold(settings.threshold, true)
|
|
673
|
-
.forEach(function(c) {
|
|
674
|
-
linePolygons = linePolygons.concat(
|
|
675
|
-
cell2Polygons(
|
|
676
|
-
prepareCell(data,
|
|
677
|
-
c.x,
|
|
678
|
-
c.y,
|
|
679
|
-
settings),
|
|
680
|
-
c.x,
|
|
681
|
-
c.y,
|
|
682
|
-
settings
|
|
683
|
-
));
|
|
684
|
-
});
|
|
685
|
-
} else {
|
|
686
|
-
/* go through entire array of input data */
|
|
687
|
-
for (j = 0; j < data.length - 1; ++j) {
|
|
688
|
-
for (i = 0; i < data[0].length - 1; ++i)
|
|
689
|
-
linePolygons = linePolygons.concat(
|
|
690
|
-
cell2Polygons(
|
|
691
|
-
prepareCell(data,
|
|
692
|
-
i,
|
|
693
|
-
j,
|
|
694
|
-
settings),
|
|
695
|
-
i,
|
|
696
|
-
j,
|
|
697
|
-
settings
|
|
698
|
-
));
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
} else {
|
|
702
|
-
/* sparse grid of input data cells */
|
|
703
|
-
cellGrid = [];
|
|
704
|
-
for (i = 0; i < data[0].length - 1; ++i)
|
|
705
|
-
cellGrid[i] = [];
|
|
706
|
-
|
|
707
|
-
/* compose list of polygons for entire input grid */
|
|
708
|
-
if (useQuadTree) {
|
|
709
|
-
/* collect the cells */
|
|
710
|
-
root
|
|
711
|
-
.cellsBelowThreshold(settings.threshold, false)
|
|
712
|
-
.forEach(function(c) {
|
|
713
|
-
cellGrid[c.x][c.y] = prepareCell(data,
|
|
714
|
-
c.x,
|
|
715
|
-
c.y,
|
|
716
|
-
settings);
|
|
717
|
-
});
|
|
718
|
-
} else {
|
|
719
|
-
/* prepare cells */
|
|
720
|
-
for (i = 0; i < data[0].length - 1; ++i) {
|
|
721
|
-
for (j = 0; j < data.length - 1; ++j) {
|
|
722
|
-
cellGrid[i][j] = prepareCell(data,
|
|
723
|
-
i,
|
|
724
|
-
j,
|
|
725
|
-
settings);
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
linePolygons = traceLinePaths(data, cellGrid, settings);
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
/* finally, add polygons to output array */
|
|
734
|
-
if (multiLine)
|
|
735
|
-
ret.push(linePolygons);
|
|
736
|
-
else
|
|
737
|
-
ret = linePolygons;
|
|
738
|
-
|
|
739
|
-
if(typeof settings.successCallback === 'function')
|
|
740
|
-
settings.successCallback(ret, t);
|
|
741
|
-
|
|
742
|
-
});
|
|
743
|
-
|
|
744
|
-
return ret;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
/*
|
|
748
|
-
* Thats all for the public interface, below follows the actual
|
|
749
|
-
* implementation
|
|
750
|
-
*/
|
|
751
|
-
|
|
752
|
-
/*
|
|
753
|
-
* ################################
|
|
754
|
-
* Isocontour implementation below
|
|
755
|
-
* ################################
|
|
756
|
-
*/
|
|
757
|
-
|
|
758
|
-
function prepareCell(grid, x, y, settings) {
|
|
759
|
-
var left,
|
|
760
|
-
right,
|
|
761
|
-
top,
|
|
762
|
-
bottom,
|
|
763
|
-
average,
|
|
764
|
-
cell;
|
|
765
|
-
|
|
766
|
-
var cval = 0;
|
|
767
|
-
var x3 = grid[y + 1][x];
|
|
768
|
-
var x2 = grid[y + 1][x + 1];
|
|
769
|
-
var x1 = grid[y][x + 1];
|
|
770
|
-
var x0 = grid[y][x];
|
|
771
|
-
var threshold = settings.threshold;
|
|
772
|
-
|
|
773
|
-
/*
|
|
774
|
-
* Note that missing data within the grid will result
|
|
775
|
-
* in horribly failing to trace full polygon paths
|
|
776
|
-
*/
|
|
777
|
-
if(isNaN(x0) || isNaN(x1) || isNaN(x2) || isNaN(x3)) {
|
|
778
|
-
return;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
/*
|
|
782
|
-
* Here we detect the type of the cell
|
|
783
|
-
*
|
|
784
|
-
* x3 ---- x2
|
|
785
|
-
* | |
|
|
786
|
-
* | |
|
|
787
|
-
* x0 ---- x1
|
|
788
|
-
*
|
|
789
|
-
* with edge points
|
|
790
|
-
*
|
|
791
|
-
* x0 = (x,y),
|
|
792
|
-
* x1 = (x + 1, y),
|
|
793
|
-
* x2 = (x + 1, y + 1), and
|
|
794
|
-
* x3 = (x, y + 1)
|
|
795
|
-
*
|
|
796
|
-
* and compute the polygon intersections with the edges
|
|
797
|
-
* of the cell. Each edge value may be (i) smaller, or (ii)
|
|
798
|
-
* greater or equal to the iso line threshold. We encode
|
|
799
|
-
* this property using 1 bit of information, where
|
|
800
|
-
*
|
|
801
|
-
* 0 ... below,
|
|
802
|
-
* 1 ... above or equal
|
|
803
|
-
*
|
|
804
|
-
* Then we store the cells value as vector
|
|
805
|
-
*
|
|
806
|
-
* cval = (x0, x1, x2, x3)
|
|
807
|
-
*
|
|
808
|
-
* where x0 is the least significant bit (0th),
|
|
809
|
-
* x1 the 2nd bit, and so on. This essentially
|
|
810
|
-
* enables us to work with a single integer number
|
|
811
|
-
*/
|
|
812
|
-
|
|
813
|
-
cval |= ((x3 >= threshold) ? 8 : 0);
|
|
814
|
-
cval |= ((x2 >= threshold) ? 4 : 0);
|
|
815
|
-
cval |= ((x1 >= threshold) ? 2 : 0);
|
|
816
|
-
cval |= ((x0 >= threshold) ? 1 : 0);
|
|
817
|
-
|
|
818
|
-
/* make sure cval is a number */
|
|
819
|
-
cval = +cval;
|
|
820
|
-
|
|
821
|
-
/* compose the cell object */
|
|
822
|
-
cell = {
|
|
823
|
-
cval: cval,
|
|
824
|
-
polygons: [],
|
|
825
|
-
edges: {},
|
|
826
|
-
x0: x0,
|
|
827
|
-
x1: x1,
|
|
828
|
-
x2: x2,
|
|
829
|
-
x3: x3
|
|
830
|
-
};
|
|
831
|
-
|
|
832
|
-
/*
|
|
833
|
-
* Compute interpolated intersections of the polygon(s)
|
|
834
|
-
* with the cell borders and (i) add edges for polygon
|
|
835
|
-
* trace-back, or (ii) a list of small closed polygons
|
|
836
|
-
*/
|
|
837
|
-
switch (cval) {
|
|
838
|
-
case 0:
|
|
839
|
-
if (settings.polygons)
|
|
840
|
-
cell.polygons.push([ [0, 0], [0, 1], [1, 1], [1, 0] ]);
|
|
841
|
-
|
|
842
|
-
break;
|
|
843
|
-
|
|
844
|
-
case 15:
|
|
845
|
-
/* cell is outside (above) threshold, no polygons */
|
|
846
|
-
break;
|
|
847
|
-
|
|
848
|
-
case 14: /* 1110 */
|
|
849
|
-
left = settings.interpolate(x0, x3, threshold);
|
|
850
|
-
bottom = settings.interpolate(x0, x1, threshold);
|
|
851
|
-
|
|
852
|
-
if (settings.polygons_full) {
|
|
853
|
-
cell.edges.left = {
|
|
854
|
-
path: [ [0, left], [bottom, 0] ],
|
|
855
|
-
move: {
|
|
856
|
-
x: 0,
|
|
857
|
-
y: -1,
|
|
858
|
-
enter: 'top'
|
|
859
|
-
}
|
|
860
|
-
};
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
if (settings.polygons)
|
|
864
|
-
cell.polygons.push([ [0, 0], [0, left], [bottom, 0] ]);
|
|
865
|
-
|
|
866
|
-
break;
|
|
867
|
-
|
|
868
|
-
case 13: /* 1101 */
|
|
869
|
-
bottom = settings.interpolate(x0, x1, threshold);
|
|
870
|
-
right = settings.interpolate(x1, x2, threshold);
|
|
871
|
-
|
|
872
|
-
if (settings.polygons_full) {
|
|
873
|
-
cell.edges.bottom = {
|
|
874
|
-
path: [ [bottom, 0], [1, right] ],
|
|
875
|
-
move: {
|
|
876
|
-
x: 1,
|
|
877
|
-
y: 0,
|
|
878
|
-
enter: 'left'
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
if (settings.polygons)
|
|
884
|
-
cell.polygons.push([ [bottom, 0], [1, right], [1, 0] ]);
|
|
885
|
-
|
|
886
|
-
break;
|
|
887
|
-
|
|
888
|
-
case 11: /* 1011 */
|
|
889
|
-
right = settings.interpolate(x1, x2, threshold);
|
|
890
|
-
top = settings.interpolate(x3, x2, threshold);
|
|
891
|
-
|
|
892
|
-
if (settings.polygons_full) {
|
|
893
|
-
cell.edges.right = {
|
|
894
|
-
path: [ [1, right], [top, 1] ],
|
|
895
|
-
move: {
|
|
896
|
-
x: 0,
|
|
897
|
-
y: 1,
|
|
898
|
-
enter: 'bottom'
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
if (settings.polygons)
|
|
904
|
-
cell.polygons.push([ [1, right], [top, 1], [1, 1] ]);
|
|
905
|
-
|
|
906
|
-
break;
|
|
907
|
-
|
|
908
|
-
case 7: /* 0111 */
|
|
909
|
-
left = settings.interpolate(x0, x3, threshold);
|
|
910
|
-
top = settings.interpolate(x3, x2, threshold);
|
|
911
|
-
|
|
912
|
-
if (settings.polygons_full) {
|
|
913
|
-
cell.edges.top = {
|
|
914
|
-
path: [ [top, 1], [0, left] ],
|
|
915
|
-
move: {
|
|
916
|
-
x: -1,
|
|
917
|
-
y: 0,
|
|
918
|
-
enter: 'right'
|
|
919
|
-
}
|
|
920
|
-
};
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
if (settings.polygons)
|
|
924
|
-
cell.polygons.push([ [top, 1], [0, left], [0, 1] ]);
|
|
925
|
-
|
|
926
|
-
break;
|
|
927
|
-
|
|
928
|
-
case 1: /* 0001 */
|
|
929
|
-
left = settings.interpolate(x0, x3, threshold);
|
|
930
|
-
bottom = settings.interpolate(x0, x1, threshold);
|
|
931
|
-
|
|
932
|
-
if (settings.polygons_full) {
|
|
933
|
-
cell.edges.bottom = {
|
|
934
|
-
path: [ [bottom, 0], [0, left] ],
|
|
935
|
-
move: {
|
|
936
|
-
x: -1,
|
|
937
|
-
y: 0,
|
|
938
|
-
enter: 'right'
|
|
939
|
-
}
|
|
940
|
-
};
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
if (settings.polygons)
|
|
944
|
-
cell.polygons.push([ [bottom, 0], [0, left], [0, 1], [1, 1], [1, 0] ]);
|
|
945
|
-
|
|
946
|
-
break;
|
|
947
|
-
|
|
948
|
-
case 2: /* 0010 */
|
|
949
|
-
bottom = settings.interpolate(x0, x1, threshold);
|
|
950
|
-
right = settings.interpolate(x1, x2, threshold);
|
|
951
|
-
|
|
952
|
-
if (settings.polygons_full) {
|
|
953
|
-
cell.edges.right = {
|
|
954
|
-
path: [ [1, right], [bottom, 0] ],
|
|
955
|
-
move: {
|
|
956
|
-
x: 0,
|
|
957
|
-
y: -1,
|
|
958
|
-
enter: 'top'
|
|
959
|
-
}
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
if (settings.polygons)
|
|
964
|
-
cell.polygons.push([ [0, 0], [0, 1], [1, 1], [1, right], [bottom, 0] ]);
|
|
965
|
-
|
|
966
|
-
break;
|
|
967
|
-
|
|
968
|
-
case 4: /* 0100 */
|
|
969
|
-
right = settings.interpolate(x1, x2, threshold);
|
|
970
|
-
top = settings.interpolate(x3, x2, threshold);
|
|
971
|
-
|
|
972
|
-
if (settings.polygons_full) {
|
|
973
|
-
cell.edges.top = {
|
|
974
|
-
path: [ [top, 1], [1, right] ],
|
|
975
|
-
move: {
|
|
976
|
-
x: 1,
|
|
977
|
-
y: 0,
|
|
978
|
-
enter: 'left'
|
|
979
|
-
}
|
|
980
|
-
};
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
if (settings.polygons)
|
|
984
|
-
cell.polygons.push([ [0, 0], [0, 1], [top, 1], [1, right], [1, 0] ]);
|
|
985
|
-
|
|
986
|
-
break;
|
|
987
|
-
|
|
988
|
-
case 8: /* 1000 */
|
|
989
|
-
left = settings.interpolate(x0, x3, threshold);
|
|
990
|
-
top = settings.interpolate(x3, x2, threshold);
|
|
991
|
-
|
|
992
|
-
if (settings.polygons_full) {
|
|
993
|
-
cell.edges.left = {
|
|
994
|
-
path: [ [0, left], [top, 1] ],
|
|
995
|
-
move: {
|
|
996
|
-
x: 0,
|
|
997
|
-
y: 1,
|
|
998
|
-
enter: 'bottom'
|
|
999
|
-
}
|
|
1000
|
-
};
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
if (settings.polygons)
|
|
1004
|
-
cell.polygons.push([ [0, 0], [0, left], [top, 1], [1, 1], [1, 0] ]);
|
|
1005
|
-
|
|
1006
|
-
break;
|
|
1007
|
-
|
|
1008
|
-
case 12: /* 1100 */
|
|
1009
|
-
left = settings.interpolate(x0, x3, threshold);
|
|
1010
|
-
right = settings.interpolate(x1, x2, threshold);
|
|
1011
|
-
|
|
1012
|
-
if (settings.polygons_full) {
|
|
1013
|
-
cell.edges.left = {
|
|
1014
|
-
path: [ [0, left], [1, right] ],
|
|
1015
|
-
move: {
|
|
1016
|
-
x: 1,
|
|
1017
|
-
y: 0,
|
|
1018
|
-
enter: 'left'
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
if (settings.polygons)
|
|
1024
|
-
cell.polygons.push([ [0, 0], [0, left], [1, right], [1, 0] ]);
|
|
1025
|
-
|
|
1026
|
-
break;
|
|
1027
|
-
|
|
1028
|
-
case 9: /* 1001 */
|
|
1029
|
-
bottom = settings.interpolate(x0, x1, threshold);
|
|
1030
|
-
top = settings.interpolate(x3, x2, threshold);
|
|
1031
|
-
|
|
1032
|
-
if (settings.polygons_full) {
|
|
1033
|
-
cell.edges.bottom = {
|
|
1034
|
-
path: [ [bottom, 0], [top, 1] ],
|
|
1035
|
-
move: {
|
|
1036
|
-
x: 0,
|
|
1037
|
-
y: 1,
|
|
1038
|
-
enter: 'bottom'
|
|
1039
|
-
}
|
|
1040
|
-
};
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
if (settings.polygons)
|
|
1044
|
-
cell.polygons.push([ [bottom, 0], [top, 1], [1, 1], [1, 0] ]);
|
|
1045
|
-
|
|
1046
|
-
break;
|
|
1047
|
-
|
|
1048
|
-
case 3: /* 0011 */
|
|
1049
|
-
left = settings.interpolate(x0, x3, threshold);
|
|
1050
|
-
right = settings.interpolate(x1, x2, threshold);
|
|
1051
|
-
|
|
1052
|
-
if (settings.polygons_full) {
|
|
1053
|
-
cell.edges.right = {
|
|
1054
|
-
path: [ [1, right], [0, left] ],
|
|
1055
|
-
move: {
|
|
1056
|
-
x: -1,
|
|
1057
|
-
y: 0,
|
|
1058
|
-
enter: 'right'
|
|
1059
|
-
}
|
|
1060
|
-
};
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
if (settings.polygons)
|
|
1064
|
-
cell.polygons.push([ [0, left], [0, 1], [1, 1], [1, right] ]);
|
|
1065
|
-
|
|
1066
|
-
break;
|
|
1067
|
-
|
|
1068
|
-
case 6: /* 0110 */
|
|
1069
|
-
bottom = settings.interpolate(x0, x1, threshold);
|
|
1070
|
-
top = settings.interpolate(x3, x2, threshold);
|
|
1071
|
-
|
|
1072
|
-
if (settings.polygons_full) {
|
|
1073
|
-
cell.edges.top = {
|
|
1074
|
-
path: [ [top, 1], [bottom, 0] ],
|
|
1075
|
-
move: {
|
|
1076
|
-
x: 0,
|
|
1077
|
-
y: -1,
|
|
1078
|
-
enter: 'top'
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
if (settings.polygons)
|
|
1084
|
-
cell.polygons.push([ [0, 0], [0, 1], [top, 1], [bottom, 0] ]);
|
|
1085
|
-
|
|
1086
|
-
break;
|
|
1087
|
-
|
|
1088
|
-
case 10: /* 1010 */
|
|
1089
|
-
left = settings.interpolate(x0, x3, threshold);
|
|
1090
|
-
right = settings.interpolate(x1, x2, threshold);
|
|
1091
|
-
bottom = settings.interpolate(x0, x1, threshold);
|
|
1092
|
-
top = settings.interpolate(x3, x2, threshold);
|
|
1093
|
-
average = (x0 + x1 + x2 + x3) / 4;
|
|
1094
|
-
|
|
1095
|
-
if (settings.polygons_full) {
|
|
1096
|
-
if (average < threshold) {
|
|
1097
|
-
cell.edges.left = {
|
|
1098
|
-
path: [ [0, left], [top, 1] ],
|
|
1099
|
-
move: {
|
|
1100
|
-
x: 0,
|
|
1101
|
-
y: 1,
|
|
1102
|
-
enter: 'bottom'
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
|
-
cell.edges.right = {
|
|
1106
|
-
path: [ [1, right], [bottom, 0] ],
|
|
1107
|
-
move: {
|
|
1108
|
-
x: 0,
|
|
1109
|
-
y: -1,
|
|
1110
|
-
enter: 'top'
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
} else {
|
|
1114
|
-
cell.edges.right = {
|
|
1115
|
-
path: [ [1, right], [top, 1] ],
|
|
1116
|
-
move: {
|
|
1117
|
-
x: 0,
|
|
1118
|
-
y: 1,
|
|
1119
|
-
enter: 'bottom'
|
|
1120
|
-
}
|
|
1121
|
-
};
|
|
1122
|
-
cell.edges.left = {
|
|
1123
|
-
path: [ [0, left], [bottom, 0] ],
|
|
1124
|
-
move: {
|
|
1125
|
-
x: 0,
|
|
1126
|
-
y: -1,
|
|
1127
|
-
enter: 'top'
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
if (settings.polygons) {
|
|
1134
|
-
if (average < threshold) {
|
|
1135
|
-
cell.polygons.push([ [0, 0], [0, left], [top, 1], [1, 1], [1, right], [bottom, 0] ]);
|
|
1136
|
-
} else {
|
|
1137
|
-
cell.polygons.push([ [0, 0], [0, left], [bottom, 0] ]);
|
|
1138
|
-
cell.polygons.push([ [top, 1], [1, 1], [1, right] ]);
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
break;
|
|
1143
|
-
|
|
1144
|
-
case 5: /* 0101 */
|
|
1145
|
-
left = settings.interpolate(x0, x3, threshold);
|
|
1146
|
-
right = settings.interpolate(x1, x2, threshold);
|
|
1147
|
-
bottom = settings.interpolate(x0, x1, threshold);
|
|
1148
|
-
top = settings.interpolate(x3, x2, threshold);
|
|
1149
|
-
average = (x0 + x1 + x2 + x3) / 4;
|
|
1150
|
-
|
|
1151
|
-
if (settings.polygons_full) {
|
|
1152
|
-
if (average < threshold) {
|
|
1153
|
-
cell.edges.bottom = {
|
|
1154
|
-
path: [ [bottom, 0], [0, left] ],
|
|
1155
|
-
move: {
|
|
1156
|
-
x: -1,
|
|
1157
|
-
y: 0,
|
|
1158
|
-
enter: 'right'
|
|
1159
|
-
}
|
|
1160
|
-
};
|
|
1161
|
-
cell.edges.top = {
|
|
1162
|
-
path: [ [top, 1], [1, right] ],
|
|
1163
|
-
move: {
|
|
1164
|
-
x: 1,
|
|
1165
|
-
y: 0,
|
|
1166
|
-
enter: 'left'
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
} else {
|
|
1170
|
-
cell.edges.top = {
|
|
1171
|
-
path: [ [top, 1], [0, left] ],
|
|
1172
|
-
move: {
|
|
1173
|
-
x: -1,
|
|
1174
|
-
y: 0,
|
|
1175
|
-
enter: 'right'
|
|
1176
|
-
}
|
|
1177
|
-
};
|
|
1178
|
-
cell.edges.bottom = {
|
|
1179
|
-
path: [ [bottom, 0], [1, right] ],
|
|
1180
|
-
move: {
|
|
1181
|
-
x: 1,
|
|
1182
|
-
y: 0,
|
|
1183
|
-
enter: 'left'
|
|
1184
|
-
}
|
|
1185
|
-
};
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
if (settings.polygons) {
|
|
1190
|
-
if (average < threshold) {
|
|
1191
|
-
cell.polygons.push([ [0, left], [0, 1], [top, 1], [1, right], [1, 0], [bottom, 0] ]);
|
|
1192
|
-
} else {
|
|
1193
|
-
cell.polygons.push([ [0, left], [0, 1], [top, 1] ]);
|
|
1194
|
-
cell.polygons.push([ [bottom, 0], [1, right], [1, 0] ]);
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
break;
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
return cell;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
exports.isoLines = isoLines;
|
|
1205
|
-
exports.isoContours = isoLines;
|
|
1206
|
-
|
|
1207
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1208
|
-
|
|
1209
|
-
})));
|