node-red-contrib-tak-registration 0.3.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/node_modules/@turf/along/package.json +41 -69
- package/node_modules/@turf/angle/package.json +44 -75
- package/node_modules/@turf/area/package.json +38 -68
- package/node_modules/@turf/bbox/package.json +37 -81
- package/node_modules/@turf/bbox-clip/package.json +44 -81
- package/node_modules/@turf/bbox-polygon/package.json +36 -66
- package/node_modules/@turf/bearing/package.json +36 -70
- package/node_modules/@turf/bezier-spline/package.json +39 -67
- package/node_modules/@turf/boolean-clockwise/package.json +42 -83
- package/node_modules/@turf/boolean-contains/package.json +46 -80
- package/node_modules/@turf/boolean-crosses/package.json +45 -79
- package/node_modules/@turf/boolean-disjoint/package.json +44 -79
- package/node_modules/@turf/boolean-equal/package.json +47 -84
- package/node_modules/@turf/boolean-intersects/package.json +42 -77
- package/node_modules/@turf/boolean-overlap/package.json +48 -82
- package/node_modules/@turf/boolean-parallel/package.json +42 -73
- package/node_modules/@turf/boolean-point-in-polygon/package.json +37 -77
- package/node_modules/@turf/boolean-point-on-line/package.json +39 -73
- package/node_modules/@turf/boolean-within/package.json +46 -79
- package/node_modules/@turf/buffer/package.json +47 -84
- package/node_modules/@turf/center/package.json +42 -73
- package/node_modules/@turf/center-mean/package.json +45 -78
- package/node_modules/@turf/center-median/package.json +45 -76
- package/node_modules/@turf/center-of-mass/package.json +40 -68
- package/node_modules/@turf/centroid/package.json +40 -74
- package/node_modules/@turf/circle/package.json +41 -71
- package/node_modules/@turf/clean-coords/package.json +40 -75
- package/node_modules/@turf/clone/package.json +36 -81
- package/node_modules/@turf/clusters/package.json +39 -70
- package/node_modules/@turf/clusters-dbscan/package.json +51 -88
- package/node_modules/@turf/clusters-kmeans/package.json +53 -90
- package/node_modules/@turf/collect/package.json +42 -73
- package/node_modules/@turf/combine/package.json +37 -65
- package/node_modules/@turf/concave/package.json +56 -111
- package/node_modules/@turf/convex/package.json +39 -68
- package/node_modules/@turf/destination/package.json +41 -75
- package/node_modules/@turf/difference/package.json +35 -63
- package/node_modules/@turf/dissolve/package.json +38 -66
- package/node_modules/@turf/distance/package.json +38 -83
- package/node_modules/@turf/distance-weight/package.json +40 -72
- package/node_modules/@turf/ellipse/package.json +43 -75
- package/node_modules/@turf/envelope/package.json +36 -65
- package/node_modules/@turf/explode/package.json +36 -67
- package/node_modules/@turf/flatten/package.json +39 -73
- package/node_modules/@turf/flip/package.json +36 -64
- package/node_modules/@turf/great-circle/package.json +41 -78
- package/node_modules/@turf/helpers/package.json +38 -184
- package/node_modules/@turf/hex-grid/package.json +50 -97
- package/node_modules/@turf/interpolate/package.json +47 -78
- package/node_modules/@turf/intersect/package.json +39 -69
- package/node_modules/@turf/invariant/package.json +36 -126
- package/node_modules/@turf/isobands/package.json +52 -83
- package/node_modules/@turf/isolines/package.json +48 -79
- package/node_modules/@turf/kinks/package.json +35 -63
- package/node_modules/@turf/length/package.json +43 -78
- package/node_modules/@turf/line-arc/package.json +36 -65
- package/node_modules/@turf/line-chunk/package.json +44 -84
- package/node_modules/@turf/line-intersect/package.json +46 -85
- package/node_modules/@turf/line-offset/package.json +41 -78
- package/node_modules/@turf/line-overlap/package.json +48 -80
- package/node_modules/@turf/line-segment/package.json +38 -70
- package/node_modules/@turf/line-slice/package.json +39 -67
- package/node_modules/@turf/line-slice-along/package.json +36 -65
- package/node_modules/@turf/line-split/package.json +46 -77
- package/node_modules/@turf/line-to-polygon/package.json +43 -74
- package/node_modules/@turf/mask/package.json +35 -63
- package/node_modules/@turf/meta/package.json +39 -128
- package/node_modules/@turf/midpoint/package.json +36 -64
- package/node_modules/@turf/moran-index/package.json +39 -70
- package/node_modules/@turf/nearest-point/package.json +39 -69
- package/node_modules/@turf/nearest-point-on-line/package.json +40 -71
- package/node_modules/@turf/nearest-point-to-line/package.json +47 -78
- package/node_modules/@turf/planepoint/package.json +34 -62
- package/node_modules/@turf/point-grid/package.json +45 -80
- package/node_modules/@turf/point-on-feature/package.json +40 -68
- package/node_modules/@turf/point-to-line-distance/package.json +46 -78
- package/node_modules/@turf/points-within-polygon/package.json +35 -64
- package/node_modules/@turf/polygon-smooth/package.json +37 -68
- package/node_modules/@turf/polygon-tangents/package.json +43 -77
- package/node_modules/@turf/polygon-to-line/package.json +39 -69
- package/node_modules/@turf/polygonize/package.json +43 -77
- package/node_modules/@turf/projection/package.json +44 -77
- package/node_modules/@turf/random/package.json +34 -62
- package/node_modules/@turf/rectangle-grid/package.json +43 -77
- package/node_modules/@turf/rewind/package.json +43 -83
- package/node_modules/@turf/rhumb-bearing/package.json +43 -85
- package/node_modules/@turf/rhumb-destination/package.json +44 -85
- package/node_modules/@turf/rhumb-distance/package.json +44 -84
- package/node_modules/@turf/sample/package.json +32 -60
- package/node_modules/@turf/sector/package.json +37 -65
- package/node_modules/@turf/shortest-path/package.json +45 -79
- package/node_modules/@turf/simplify/package.json +43 -77
- package/node_modules/@turf/square/package.json +33 -62
- package/node_modules/@turf/square-grid/package.json +40 -69
- package/node_modules/@turf/standard-deviational-ellipse/package.json +43 -74
- package/node_modules/@turf/tag/package.json +38 -66
- package/node_modules/@turf/tesselate/package.json +40 -80
- package/node_modules/@turf/tin/package.json +34 -63
- package/node_modules/@turf/transform-rotate/package.json +45 -80
- package/node_modules/@turf/transform-scale/package.json +51 -86
- package/node_modules/@turf/transform-translate/package.json +44 -78
- package/node_modules/@turf/triangle-grid/package.json +42 -71
- package/node_modules/@turf/truncate/package.json +40 -72
- package/node_modules/@turf/turf/package.json +74 -102
- package/node_modules/@turf/union/package.json +39 -67
- package/node_modules/@turf/unkink-polygon/package.json +40 -68
- package/node_modules/@turf/voronoi/package.json +43 -83
- package/node_modules/@types/geojson/package.json +42 -66
- package/node_modules/adm-zip/LICENSE +21 -21
- package/node_modules/adm-zip/adm-zip.js +25 -22
- package/node_modules/adm-zip/headers/mainHeader.js +2 -1
- package/node_modules/adm-zip/package.json +28 -57
- package/node_modules/adm-zip/util/utils.js +1 -0
- package/node_modules/asynckit/package.json +40 -68
- package/node_modules/axios/CHANGELOG.md +473 -837
- package/node_modules/axios/LICENSE +4 -16
- package/node_modules/axios/MIGRATION_GUIDE.md +3 -0
- package/node_modules/axios/README.md +518 -114
- package/node_modules/axios/SECURITY.md +4 -3
- package/node_modules/axios/dist/axios.js +2759 -2070
- package/node_modules/axios/dist/axios.js.map +1 -0
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -0
- package/node_modules/axios/dist/browser/axios.cjs +3210 -0
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -0
- package/node_modules/axios/dist/esm/axios.js +3232 -0
- package/node_modules/axios/dist/esm/axios.js.map +1 -0
- package/node_modules/axios/dist/esm/axios.min.js +2 -0
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -0
- package/node_modules/axios/dist/node/axios.cjs +4237 -0
- package/node_modules/axios/dist/node/axios.cjs.map +1 -0
- package/node_modules/axios/index.d.cts +532 -0
- package/node_modules/axios/index.d.ts +398 -72
- package/node_modules/axios/index.js +41 -1
- package/node_modules/axios/lib/adapters/adapters.js +59 -0
- package/node_modules/axios/lib/adapters/http.js +479 -217
- package/node_modules/axios/lib/adapters/xhr.js +95 -54
- package/node_modules/axios/lib/axios.js +49 -20
- package/node_modules/axios/lib/cancel/CancelToken.js +91 -89
- package/node_modules/axios/lib/cancel/CanceledError.js +25 -0
- package/node_modules/axios/lib/cancel/isCancel.js +2 -2
- package/node_modules/axios/lib/core/Axios.js +155 -100
- package/node_modules/axios/lib/core/AxiosError.js +100 -0
- package/node_modules/axios/lib/core/AxiosHeaders.js +288 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +62 -45
- package/node_modules/axios/lib/core/buildFullPath.js +5 -4
- package/node_modules/axios/lib/core/dispatchRequest.js +27 -33
- package/node_modules/axios/lib/core/mergeConfig.js +58 -52
- package/node_modules/axios/lib/core/settle.js +8 -6
- package/node_modules/axios/lib/core/transformData.js +15 -9
- package/node_modules/axios/lib/defaults/index.js +76 -41
- package/node_modules/axios/lib/defaults/transitional.js +1 -1
- package/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/node_modules/axios/lib/env/data.js +1 -3
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +191 -0
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
- package/node_modules/axios/lib/helpers/bind.js +3 -7
- package/node_modules/axios/lib/helpers/buildURL.js +26 -33
- package/node_modules/axios/lib/helpers/callbackify.js +16 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +3 -2
- package/node_modules/axios/lib/helpers/cookies.js +43 -44
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +4 -2
- package/node_modules/axios/lib/helpers/formDataToJSON.js +92 -0
- package/node_modules/axios/lib/helpers/formDataToStream.js +111 -0
- package/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -2
- package/node_modules/axios/lib/helpers/isAxiosError.js +4 -3
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +44 -45
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +24 -22
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/axios/lib/helpers/spread.js +3 -2
- package/node_modules/axios/lib/helpers/throttle.js +33 -0
- package/node_modules/axios/lib/helpers/toFormData.js +203 -39
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
- package/node_modules/axios/lib/helpers/validator.js +27 -18
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/browser/index.js +64 -0
- package/node_modules/axios/lib/platform/index.js +3 -0
- package/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/node_modules/axios/lib/platform/node/index.js +12 -0
- package/node_modules/axios/lib/utils.js +517 -144
- package/node_modules/axios/package.json +194 -93
- package/node_modules/call-bind/package.json +78 -109
- package/node_modules/combined-stream/package.json +14 -46
- package/node_modules/commander/package.json +20 -53
- package/node_modules/concaveman/node_modules/quickselect/package.json +43 -0
- package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/README.md +22 -95
- package/node_modules/{@turf/unkink-polygon → concaveman}/node_modules/rbush/index.js +131 -181
- package/node_modules/concaveman/node_modules/rbush/package.json +56 -0
- package/node_modules/concaveman/node_modules/rbush/rbush.js +574 -0
- package/node_modules/concaveman/node_modules/rbush/rbush.min.js +1 -0
- package/node_modules/concaveman/package.json +15 -46
- package/node_modules/d3-array/package.json +19 -47
- package/node_modules/d3-geo/package.json +24 -52
- package/node_modules/d3-voronoi/package.json +19 -47
- package/node_modules/deep-equal/package.json +34 -64
- package/node_modules/define-properties/.eslintrc +10 -3
- package/node_modules/define-properties/.github/FUNDING.yml +12 -0
- package/node_modules/define-properties/.nycrc +9 -0
- package/node_modules/define-properties/CHANGELOG.md +39 -0
- package/node_modules/define-properties/README.md +11 -13
- package/node_modules/define-properties/index.js +12 -17
- package/node_modules/define-properties/package.json +85 -95
- package/node_modules/delayed-stream/package.json +14 -49
- package/node_modules/density-clustering/package.json +46 -70
- package/node_modules/earcut/README.md +12 -3
- package/node_modules/earcut/dist/earcut.dev.js +47 -50
- package/node_modules/earcut/dist/earcut.min.js +1 -1
- package/node_modules/earcut/package.json +26 -60
- package/node_modules/earcut/src/earcut.js +46 -49
- package/node_modules/follow-redirects/README.md +8 -1
- package/node_modules/follow-redirects/index.js +83 -36
- package/node_modules/follow-redirects/package.json +38 -74
- package/node_modules/form-data/package.json +37 -70
- package/node_modules/function-bind/package.json +23 -56
- package/node_modules/functions-have-names/.editorconfig +20 -0
- package/node_modules/functions-have-names/.eslintrc +19 -0
- package/node_modules/functions-have-names/.github/FUNDING.yml +12 -0
- package/node_modules/functions-have-names/.nycrc +9 -0
- package/node_modules/functions-have-names/CHANGELOG.md +89 -0
- package/node_modules/functions-have-names/LICENSE +21 -0
- package/node_modules/functions-have-names/README.md +40 -0
- package/node_modules/functions-have-names/index.js +31 -0
- package/node_modules/functions-have-names/package.json +55 -0
- package/node_modules/functions-have-names/test/index.js +65 -0
- package/node_modules/geojson-equality/package.json +23 -55
- package/node_modules/geojson-rbush/node_modules/quickselect/package.json +43 -0
- package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/README.md +22 -95
- package/node_modules/{@turf/collect → geojson-rbush}/node_modules/rbush/index.js +131 -181
- package/node_modules/geojson-rbush/node_modules/rbush/package.json +56 -0
- package/node_modules/geojson-rbush/node_modules/rbush/rbush.js +574 -0
- package/node_modules/geojson-rbush/node_modules/rbush/rbush.min.js +1 -0
- package/node_modules/geojson-rbush/package.json +32 -71
- package/node_modules/get-intrinsic/.eslintrc +3 -8
- package/node_modules/get-intrinsic/.nycrc +0 -4
- package/node_modules/get-intrinsic/CHANGELOG.md +53 -0
- package/node_modules/get-intrinsic/README.md +7 -1
- package/node_modules/get-intrinsic/index.js +29 -8
- package/node_modules/get-intrinsic/package.json +91 -104
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +26 -12
- package/node_modules/has/package.json +21 -46
- package/node_modules/has-property-descriptors/.eslintrc +13 -0
- package/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
- package/node_modules/has-property-descriptors/.nycrc +9 -0
- package/node_modules/has-property-descriptors/CHANGELOG.md +16 -0
- package/node_modules/has-property-descriptors/LICENSE +21 -0
- package/node_modules/has-property-descriptors/README.md +43 -0
- package/node_modules/has-property-descriptors/index.js +33 -0
- package/node_modules/has-property-descriptors/package.json +70 -0
- package/node_modules/has-property-descriptors/test/index.js +57 -0
- package/node_modules/has-proto/.eslintrc +5 -0
- package/node_modules/has-proto/.github/FUNDING.yml +12 -0
- package/node_modules/has-proto/CHANGELOG.md +23 -0
- package/node_modules/has-proto/LICENSE +21 -0
- package/node_modules/has-proto/README.md +38 -0
- package/node_modules/has-proto/index.js +11 -0
- package/node_modules/has-proto/package.json +74 -0
- package/node_modules/has-proto/test/index.js +19 -0
- package/node_modules/has-symbols/package.json +99 -125
- package/node_modules/has-tostringtag/package.json +82 -109
- package/node_modules/is-arguments/package.json +89 -114
- package/node_modules/is-date-object/package.json +77 -108
- package/node_modules/is-regex/package.json +84 -112
- package/node_modules/mime-db/HISTORY.md +8 -0
- package/node_modules/mime-db/LICENSE +19 -18
- package/node_modules/mime-db/README.md +1 -1
- package/node_modules/mime-db/db.json +54 -6
- package/node_modules/mime-db/index.js +1 -0
- package/node_modules/mime-db/package.json +24 -66
- package/node_modules/mime-types/HISTORY.md +9 -0
- package/node_modules/mime-types/README.md +1 -1
- package/node_modules/mime-types/package.json +19 -62
- package/node_modules/object-assign/package.json +15 -49
- package/node_modules/object-is/package.json +85 -112
- package/node_modules/object-keys/package.json +86 -116
- package/node_modules/point-in-polygon/package.json +19 -48
- package/node_modules/polygon-clipping/package.json +41 -80
- package/node_modules/proxy-from-env/.eslintrc +29 -0
- package/node_modules/proxy-from-env/.travis.yml +10 -0
- package/node_modules/proxy-from-env/LICENSE +20 -0
- package/node_modules/proxy-from-env/README.md +131 -0
- package/node_modules/proxy-from-env/index.js +108 -0
- package/node_modules/proxy-from-env/package.json +34 -0
- package/node_modules/proxy-from-env/test.js +483 -0
- package/node_modules/quickselect/package.json +13 -41
- package/node_modules/rbush/README.md +95 -22
- package/node_modules/rbush/index.js +181 -131
- package/node_modules/rbush/package.json +39 -71
- package/node_modules/rbush/rbush.js +412 -360
- package/node_modules/rbush/rbush.min.js +1 -1
- package/node_modules/regexp.prototype.flags/.eslintrc +1 -0
- package/node_modules/regexp.prototype.flags/CHANGELOG.md +19 -0
- package/node_modules/regexp.prototype.flags/implementation.js +9 -0
- package/node_modules/regexp.prototype.flags/package.json +98 -122
- package/node_modules/regexp.prototype.flags/test/shimmed.js +2 -1
- package/node_modules/regexp.prototype.flags/test/tests.js +7 -5
- package/node_modules/robust-predicates/package.json +25 -52
- package/node_modules/skmeans/package.json +18 -53
- package/node_modules/splaytree/Readme.md +58 -57
- package/node_modules/splaytree/dist/splay.esm.js +21 -8
- package/node_modules/splaytree/dist/splay.esm.js.map +1 -1
- package/node_modules/splaytree/dist/splay.js +21 -8
- package/node_modules/splaytree/dist/splay.js.map +1 -1
- package/node_modules/splaytree/package.json +36 -68
- package/node_modules/splaytree/src/index.ts +16 -4
- package/node_modules/tinyqueue/package.json +34 -59
- package/node_modules/topojson-client/package.json +28 -56
- package/node_modules/topojson-server/package.json +27 -55
- package/node_modules/turf-jsts/package.json +33 -68
- package/node_modules/uuid/CHANGELOG.md +39 -0
- package/node_modules/uuid/README.md +30 -73
- package/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +23 -23
- package/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +2 -2
- package/node_modules/uuid/dist/esm-browser/rng.js +4 -5
- package/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
- package/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
- package/node_modules/uuid/dist/esm-browser/v1.js +17 -17
- package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v35.js +12 -10
- package/node_modules/uuid/dist/esm-browser/v4.js +9 -4
- package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/uuid/dist/esm-browser/version.js +1 -1
- package/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/node_modules/uuid/dist/esm-node/stringify.js +7 -3
- package/node_modules/uuid/dist/esm-node/v1.js +2 -2
- package/node_modules/uuid/dist/esm-node/v35.js +6 -4
- package/node_modules/uuid/dist/esm-node/v4.js +7 -2
- package/node_modules/uuid/dist/esm-node/version.js +1 -1
- package/node_modules/uuid/dist/index.js +18 -18
- package/node_modules/uuid/dist/native-browser.js +11 -0
- package/node_modules/uuid/dist/native.js +15 -0
- package/node_modules/uuid/dist/rng-browser.js +2 -3
- package/node_modules/uuid/dist/stringify.js +8 -3
- package/node_modules/uuid/dist/v1.js +2 -2
- package/node_modules/uuid/dist/v35.js +7 -5
- package/node_modules/uuid/dist/v4.js +8 -2
- package/node_modules/uuid/dist/version.js +1 -1
- package/node_modules/uuid/package.json +87 -120
- package/package.json +12 -8
- package/tak-ingest.html +40 -0
- package/tak-ingest.js +48 -0
- package/tak-registration.html +13 -2
- package/tak-registration.js +55 -7
- package/node_modules/@turf/collect/node_modules/quickselect/package.json +0 -69
- package/node_modules/@turf/collect/node_modules/rbush/package.json +0 -85
- package/node_modules/@turf/collect/node_modules/rbush/rbush.js +0 -626
- package/node_modules/@turf/collect/node_modules/rbush/rbush.min.js +0 -1
- package/node_modules/@turf/unkink-polygon/node_modules/quickselect/package.json +0 -69
- package/node_modules/@turf/unkink-polygon/node_modules/rbush/package.json +0 -85
- package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.js +0 -626
- package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.min.js +0 -1
- package/node_modules/axios/UPGRADE_GUIDE.md +0 -168
- package/node_modules/axios/dist/axios.map +0 -1
- package/node_modules/axios/dist/axios.min.map +0 -1
- package/node_modules/axios/lib/cancel/Cancel.js +0 -19
- package/node_modules/axios/lib/core/createError.js +0 -18
- package/node_modules/axios/lib/core/enhanceError.js +0 -43
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- package/node_modules/axios/tsconfig.json +0 -14
- package/node_modules/axios/tslint.json +0 -6
- package/node_modules/combined-stream/yarn.lock +0 -17
- package/node_modules/d3-array/yarn.lock +0 -939
- package/node_modules/define-properties/.jscs.json +0 -175
- package/node_modules/define-properties/.travis.yml +0 -233
- package/node_modules/define-properties/test/index.js +0 -125
- package/node_modules/get-intrinsic/.eslintignore +0 -1
- package/node_modules/uuid/dist/umd/uuid.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
- package/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
- /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/LICENSE +0 -0
- /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/README.md +0 -0
- /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/index.js +0 -0
- /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/quickselect.js +0 -0
- /package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/LICENSE +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/LICENSE +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/README.md +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/index.js +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/quickselect.js +0 -0
- /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/LICENSE +0 -0
|
@@ -1,30 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = rbush;
|
|
4
|
+
module.exports.default = rbush;
|
|
5
|
+
|
|
6
|
+
var quickselect = require('quickselect');
|
|
7
|
+
|
|
8
|
+
function rbush(maxEntries, format) {
|
|
9
|
+
if (!(this instanceof rbush)) return new rbush(maxEntries, format);
|
|
10
|
+
|
|
11
|
+
// max entries in a node is 9 by default; min node fill is 40% for best performance
|
|
12
|
+
this._maxEntries = Math.max(4, maxEntries || 9);
|
|
13
|
+
this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4));
|
|
14
|
+
|
|
15
|
+
if (format) {
|
|
16
|
+
this._initFormat(format);
|
|
9
17
|
}
|
|
10
18
|
|
|
11
|
-
|
|
19
|
+
this.clear();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
rbush.prototype = {
|
|
23
|
+
|
|
24
|
+
all: function () {
|
|
12
25
|
return this._all(this.data, []);
|
|
13
|
-
}
|
|
26
|
+
},
|
|
14
27
|
|
|
15
|
-
search(bbox) {
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
search: function (bbox) {
|
|
29
|
+
|
|
30
|
+
var node = this.data,
|
|
31
|
+
result = [],
|
|
32
|
+
toBBox = this.toBBox;
|
|
18
33
|
|
|
19
34
|
if (!intersects(bbox, node)) return result;
|
|
20
35
|
|
|
21
|
-
|
|
22
|
-
|
|
36
|
+
var nodesToSearch = [],
|
|
37
|
+
i, len, child, childBBox;
|
|
23
38
|
|
|
24
39
|
while (node) {
|
|
25
|
-
for (
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
for (i = 0, len = node.children.length; i < len; i++) {
|
|
41
|
+
|
|
42
|
+
child = node.children[i];
|
|
43
|
+
childBBox = node.leaf ? toBBox(child) : child;
|
|
28
44
|
|
|
29
45
|
if (intersects(bbox, childBBox)) {
|
|
30
46
|
if (node.leaf) result.push(child);
|
|
@@ -36,18 +52,23 @@ export default class RBush {
|
|
|
36
52
|
}
|
|
37
53
|
|
|
38
54
|
return result;
|
|
39
|
-
}
|
|
55
|
+
},
|
|
40
56
|
|
|
41
|
-
collides(bbox) {
|
|
42
|
-
|
|
57
|
+
collides: function (bbox) {
|
|
58
|
+
|
|
59
|
+
var node = this.data,
|
|
60
|
+
toBBox = this.toBBox;
|
|
43
61
|
|
|
44
62
|
if (!intersects(bbox, node)) return false;
|
|
45
63
|
|
|
46
|
-
|
|
64
|
+
var nodesToSearch = [],
|
|
65
|
+
i, len, child, childBBox;
|
|
66
|
+
|
|
47
67
|
while (node) {
|
|
48
|
-
for (
|
|
49
|
-
|
|
50
|
-
|
|
68
|
+
for (i = 0, len = node.children.length; i < len; i++) {
|
|
69
|
+
|
|
70
|
+
child = node.children[i];
|
|
71
|
+
childBBox = node.leaf ? toBBox(child) : child;
|
|
51
72
|
|
|
52
73
|
if (intersects(bbox, childBBox)) {
|
|
53
74
|
if (node.leaf || contains(bbox, childBBox)) return true;
|
|
@@ -58,20 +79,20 @@ export default class RBush {
|
|
|
58
79
|
}
|
|
59
80
|
|
|
60
81
|
return false;
|
|
61
|
-
}
|
|
82
|
+
},
|
|
62
83
|
|
|
63
|
-
load(data) {
|
|
84
|
+
load: function (data) {
|
|
64
85
|
if (!(data && data.length)) return this;
|
|
65
86
|
|
|
66
87
|
if (data.length < this._minEntries) {
|
|
67
|
-
for (
|
|
88
|
+
for (var i = 0, len = data.length; i < len; i++) {
|
|
68
89
|
this.insert(data[i]);
|
|
69
90
|
}
|
|
70
91
|
return this;
|
|
71
92
|
}
|
|
72
93
|
|
|
73
94
|
// recursively build the tree with the given data from scratch using OMT algorithm
|
|
74
|
-
|
|
95
|
+
var node = this._build(data.slice(), 0, data.length - 1, 0);
|
|
75
96
|
|
|
76
97
|
if (!this.data.children.length) {
|
|
77
98
|
// save as is if tree is empty
|
|
@@ -84,7 +105,7 @@ export default class RBush {
|
|
|
84
105
|
} else {
|
|
85
106
|
if (this.data.height < node.height) {
|
|
86
107
|
// swap trees if inserted one is bigger
|
|
87
|
-
|
|
108
|
+
var tmpNode = this.data;
|
|
88
109
|
this.data = node;
|
|
89
110
|
node = tmpNode;
|
|
90
111
|
}
|
|
@@ -94,26 +115,26 @@ export default class RBush {
|
|
|
94
115
|
}
|
|
95
116
|
|
|
96
117
|
return this;
|
|
97
|
-
}
|
|
118
|
+
},
|
|
98
119
|
|
|
99
|
-
insert(item) {
|
|
120
|
+
insert: function (item) {
|
|
100
121
|
if (item) this._insert(item, this.data.height - 1);
|
|
101
122
|
return this;
|
|
102
|
-
}
|
|
123
|
+
},
|
|
103
124
|
|
|
104
|
-
clear() {
|
|
125
|
+
clear: function () {
|
|
105
126
|
this.data = createNode([]);
|
|
106
127
|
return this;
|
|
107
|
-
}
|
|
128
|
+
},
|
|
108
129
|
|
|
109
|
-
remove(item, equalsFn) {
|
|
130
|
+
remove: function (item, equalsFn) {
|
|
110
131
|
if (!item) return this;
|
|
111
132
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
133
|
+
var node = this.data,
|
|
134
|
+
bbox = this.toBBox(item),
|
|
135
|
+
path = [],
|
|
136
|
+
indexes = [],
|
|
137
|
+
i, parent, index, goingUp;
|
|
117
138
|
|
|
118
139
|
// depth-first iterative tree traversal
|
|
119
140
|
while (node || path.length) {
|
|
@@ -126,7 +147,7 @@ export default class RBush {
|
|
|
126
147
|
}
|
|
127
148
|
|
|
128
149
|
if (node.leaf) { // check current node
|
|
129
|
-
|
|
150
|
+
index = findItem(item, node.children, equalsFn);
|
|
130
151
|
|
|
131
152
|
if (index !== -1) {
|
|
132
153
|
// item found, remove the item and condense tree upwards
|
|
@@ -153,36 +174,36 @@ export default class RBush {
|
|
|
153
174
|
}
|
|
154
175
|
|
|
155
176
|
return this;
|
|
156
|
-
}
|
|
177
|
+
},
|
|
157
178
|
|
|
158
|
-
toBBox(item) { return item; }
|
|
179
|
+
toBBox: function (item) { return item; },
|
|
159
180
|
|
|
160
|
-
compareMinX
|
|
161
|
-
compareMinY
|
|
181
|
+
compareMinX: compareNodeMinX,
|
|
182
|
+
compareMinY: compareNodeMinY,
|
|
162
183
|
|
|
163
|
-
toJSON() { return this.data; }
|
|
184
|
+
toJSON: function () { return this.data; },
|
|
164
185
|
|
|
165
|
-
fromJSON(data) {
|
|
186
|
+
fromJSON: function (data) {
|
|
166
187
|
this.data = data;
|
|
167
188
|
return this;
|
|
168
|
-
}
|
|
189
|
+
},
|
|
169
190
|
|
|
170
|
-
_all(node, result) {
|
|
171
|
-
|
|
191
|
+
_all: function (node, result) {
|
|
192
|
+
var nodesToSearch = [];
|
|
172
193
|
while (node) {
|
|
173
|
-
if (node.leaf) result.push(
|
|
174
|
-
else nodesToSearch.push(
|
|
194
|
+
if (node.leaf) result.push.apply(result, node.children);
|
|
195
|
+
else nodesToSearch.push.apply(nodesToSearch, node.children);
|
|
175
196
|
|
|
176
197
|
node = nodesToSearch.pop();
|
|
177
198
|
}
|
|
178
199
|
return result;
|
|
179
|
-
}
|
|
200
|
+
},
|
|
180
201
|
|
|
181
|
-
_build(items, left, right, height) {
|
|
202
|
+
_build: function (items, left, right, height) {
|
|
182
203
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
204
|
+
var N = right - left + 1,
|
|
205
|
+
M = this._maxEntries,
|
|
206
|
+
node;
|
|
186
207
|
|
|
187
208
|
if (N <= M) {
|
|
188
209
|
// reached leaf level; return leaf
|
|
@@ -205,20 +226,21 @@ export default class RBush {
|
|
|
205
226
|
|
|
206
227
|
// split the items into M mostly square tiles
|
|
207
228
|
|
|
208
|
-
|
|
209
|
-
|
|
229
|
+
var N2 = Math.ceil(N / M),
|
|
230
|
+
N1 = N2 * Math.ceil(Math.sqrt(M)),
|
|
231
|
+
i, j, right2, right3;
|
|
210
232
|
|
|
211
233
|
multiSelect(items, left, right, N1, this.compareMinX);
|
|
212
234
|
|
|
213
|
-
for (
|
|
235
|
+
for (i = left; i <= right; i += N1) {
|
|
214
236
|
|
|
215
|
-
|
|
237
|
+
right2 = Math.min(i + N1 - 1, right);
|
|
216
238
|
|
|
217
239
|
multiSelect(items, i, right2, N2, this.compareMinY);
|
|
218
240
|
|
|
219
|
-
for (
|
|
241
|
+
for (j = i; j <= right2; j += N2) {
|
|
220
242
|
|
|
221
|
-
|
|
243
|
+
right3 = Math.min(j + N2 - 1, right2);
|
|
222
244
|
|
|
223
245
|
// pack each entry recursively
|
|
224
246
|
node.children.push(this._build(items, j, right3, height - 1));
|
|
@@ -228,22 +250,23 @@ export default class RBush {
|
|
|
228
250
|
calcBBox(node, this.toBBox);
|
|
229
251
|
|
|
230
252
|
return node;
|
|
231
|
-
}
|
|
253
|
+
},
|
|
254
|
+
|
|
255
|
+
_chooseSubtree: function (bbox, node, level, path) {
|
|
256
|
+
|
|
257
|
+
var i, len, child, targetNode, area, enlargement, minArea, minEnlargement;
|
|
232
258
|
|
|
233
|
-
_chooseSubtree(bbox, node, level, path) {
|
|
234
259
|
while (true) {
|
|
235
260
|
path.push(node);
|
|
236
261
|
|
|
237
262
|
if (node.leaf || path.length - 1 === level) break;
|
|
238
263
|
|
|
239
|
-
|
|
240
|
-
let minEnlargement = Infinity;
|
|
241
|
-
let targetNode;
|
|
264
|
+
minArea = minEnlargement = Infinity;
|
|
242
265
|
|
|
243
|
-
for (
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
266
|
+
for (i = 0, len = node.children.length; i < len; i++) {
|
|
267
|
+
child = node.children[i];
|
|
268
|
+
area = bboxArea(child);
|
|
269
|
+
enlargement = enlargedArea(bbox, child) - area;
|
|
247
270
|
|
|
248
271
|
// choose entry with the least area enlargement
|
|
249
272
|
if (enlargement < minEnlargement) {
|
|
@@ -264,14 +287,16 @@ export default class RBush {
|
|
|
264
287
|
}
|
|
265
288
|
|
|
266
289
|
return node;
|
|
267
|
-
}
|
|
290
|
+
},
|
|
268
291
|
|
|
269
|
-
_insert(item, level, isNode) {
|
|
270
|
-
|
|
271
|
-
|
|
292
|
+
_insert: function (item, level, isNode) {
|
|
293
|
+
|
|
294
|
+
var toBBox = this.toBBox,
|
|
295
|
+
bbox = isNode ? item : toBBox(item),
|
|
296
|
+
insertPath = [];
|
|
272
297
|
|
|
273
298
|
// find the best node for accommodating the item, saving all nodes along the path too
|
|
274
|
-
|
|
299
|
+
var node = this._chooseSubtree(bbox, this.data, level, insertPath);
|
|
275
300
|
|
|
276
301
|
// put the item into the node
|
|
277
302
|
node.children.push(item);
|
|
@@ -287,19 +312,20 @@ export default class RBush {
|
|
|
287
312
|
|
|
288
313
|
// adjust bboxes along the insertion path
|
|
289
314
|
this._adjustParentBBoxes(bbox, insertPath, level);
|
|
290
|
-
}
|
|
315
|
+
},
|
|
291
316
|
|
|
292
317
|
// split overflowed node into two
|
|
293
|
-
_split(insertPath, level) {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
318
|
+
_split: function (insertPath, level) {
|
|
319
|
+
|
|
320
|
+
var node = insertPath[level],
|
|
321
|
+
M = node.children.length,
|
|
322
|
+
m = this._minEntries;
|
|
297
323
|
|
|
298
324
|
this._chooseSplitAxis(node, m, M);
|
|
299
325
|
|
|
300
|
-
|
|
326
|
+
var splitIndex = this._chooseSplitIndex(node, m, M);
|
|
301
327
|
|
|
302
|
-
|
|
328
|
+
var newNode = createNode(node.children.splice(splitIndex, node.children.length - splitIndex));
|
|
303
329
|
newNode.height = node.height;
|
|
304
330
|
newNode.leaf = node.leaf;
|
|
305
331
|
|
|
@@ -308,27 +334,28 @@ export default class RBush {
|
|
|
308
334
|
|
|
309
335
|
if (level) insertPath[level - 1].children.push(newNode);
|
|
310
336
|
else this._splitRoot(node, newNode);
|
|
311
|
-
}
|
|
337
|
+
},
|
|
312
338
|
|
|
313
|
-
_splitRoot(node, newNode) {
|
|
339
|
+
_splitRoot: function (node, newNode) {
|
|
314
340
|
// split root node
|
|
315
341
|
this.data = createNode([node, newNode]);
|
|
316
342
|
this.data.height = node.height + 1;
|
|
317
343
|
this.data.leaf = false;
|
|
318
344
|
calcBBox(this.data, this.toBBox);
|
|
319
|
-
}
|
|
345
|
+
},
|
|
346
|
+
|
|
347
|
+
_chooseSplitIndex: function (node, m, M) {
|
|
320
348
|
|
|
321
|
-
|
|
322
|
-
let index;
|
|
323
|
-
let minOverlap = Infinity;
|
|
324
|
-
let minArea = Infinity;
|
|
349
|
+
var i, bbox1, bbox2, overlap, area, minOverlap, minArea, index;
|
|
325
350
|
|
|
326
|
-
|
|
327
|
-
const bbox1 = distBBox(node, 0, i, this.toBBox);
|
|
328
|
-
const bbox2 = distBBox(node, i, M, this.toBBox);
|
|
351
|
+
minOverlap = minArea = Infinity;
|
|
329
352
|
|
|
330
|
-
|
|
331
|
-
|
|
353
|
+
for (i = m; i <= M - m; i++) {
|
|
354
|
+
bbox1 = distBBox(node, 0, i, this.toBBox);
|
|
355
|
+
bbox2 = distBBox(node, i, M, this.toBBox);
|
|
356
|
+
|
|
357
|
+
overlap = intersectionArea(bbox1, bbox2);
|
|
358
|
+
area = bboxArea(bbox1) + bboxArea(bbox2);
|
|
332
359
|
|
|
333
360
|
// choose distribution with minimum overlap
|
|
334
361
|
if (overlap < minOverlap) {
|
|
@@ -346,55 +373,58 @@ export default class RBush {
|
|
|
346
373
|
}
|
|
347
374
|
}
|
|
348
375
|
|
|
349
|
-
return index
|
|
350
|
-
}
|
|
376
|
+
return index;
|
|
377
|
+
},
|
|
351
378
|
|
|
352
379
|
// sorts node children by the best axis for split
|
|
353
|
-
_chooseSplitAxis(node, m, M) {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
380
|
+
_chooseSplitAxis: function (node, m, M) {
|
|
381
|
+
|
|
382
|
+
var compareMinX = node.leaf ? this.compareMinX : compareNodeMinX,
|
|
383
|
+
compareMinY = node.leaf ? this.compareMinY : compareNodeMinY,
|
|
384
|
+
xMargin = this._allDistMargin(node, m, M, compareMinX),
|
|
385
|
+
yMargin = this._allDistMargin(node, m, M, compareMinY);
|
|
358
386
|
|
|
359
387
|
// if total distributions margin value is minimal for x, sort by minX,
|
|
360
388
|
// otherwise it's already sorted by minY
|
|
361
389
|
if (xMargin < yMargin) node.children.sort(compareMinX);
|
|
362
|
-
}
|
|
390
|
+
},
|
|
363
391
|
|
|
364
392
|
// total margin of all possible split distributions where each node is at least m full
|
|
365
|
-
_allDistMargin(node, m, M, compare) {
|
|
393
|
+
_allDistMargin: function (node, m, M, compare) {
|
|
394
|
+
|
|
366
395
|
node.children.sort(compare);
|
|
367
396
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
397
|
+
var toBBox = this.toBBox,
|
|
398
|
+
leftBBox = distBBox(node, 0, m, toBBox),
|
|
399
|
+
rightBBox = distBBox(node, M - m, M, toBBox),
|
|
400
|
+
margin = bboxMargin(leftBBox) + bboxMargin(rightBBox),
|
|
401
|
+
i, child;
|
|
372
402
|
|
|
373
|
-
for (
|
|
374
|
-
|
|
403
|
+
for (i = m; i < M - m; i++) {
|
|
404
|
+
child = node.children[i];
|
|
375
405
|
extend(leftBBox, node.leaf ? toBBox(child) : child);
|
|
376
406
|
margin += bboxMargin(leftBBox);
|
|
377
407
|
}
|
|
378
408
|
|
|
379
|
-
for (
|
|
380
|
-
|
|
409
|
+
for (i = M - m - 1; i >= m; i--) {
|
|
410
|
+
child = node.children[i];
|
|
381
411
|
extend(rightBBox, node.leaf ? toBBox(child) : child);
|
|
382
412
|
margin += bboxMargin(rightBBox);
|
|
383
413
|
}
|
|
384
414
|
|
|
385
415
|
return margin;
|
|
386
|
-
}
|
|
416
|
+
},
|
|
387
417
|
|
|
388
|
-
_adjustParentBBoxes(bbox, path, level) {
|
|
418
|
+
_adjustParentBBoxes: function (bbox, path, level) {
|
|
389
419
|
// adjust bboxes along the given tree path
|
|
390
|
-
for (
|
|
420
|
+
for (var i = level; i >= 0; i--) {
|
|
391
421
|
extend(path[i], bbox);
|
|
392
422
|
}
|
|
393
|
-
}
|
|
423
|
+
},
|
|
394
424
|
|
|
395
|
-
_condense(path) {
|
|
425
|
+
_condense: function (path) {
|
|
396
426
|
// go through the path, removing empty nodes and updating bboxes
|
|
397
|
-
for (
|
|
427
|
+
for (var i = path.length - 1, siblings; i >= 0; i--) {
|
|
398
428
|
if (path[i].children.length === 0) {
|
|
399
429
|
if (i > 0) {
|
|
400
430
|
siblings = path[i - 1].children;
|
|
@@ -404,13 +434,32 @@ export default class RBush {
|
|
|
404
434
|
|
|
405
435
|
} else calcBBox(path[i], this.toBBox);
|
|
406
436
|
}
|
|
437
|
+
},
|
|
438
|
+
|
|
439
|
+
_initFormat: function (format) {
|
|
440
|
+
// data format (minX, minY, maxX, maxY accessors)
|
|
441
|
+
|
|
442
|
+
// uses eval-type function compilation instead of just accepting a toBBox function
|
|
443
|
+
// because the algorithms are very sensitive to sorting functions performance,
|
|
444
|
+
// so they should be dead simple and without inner calls
|
|
445
|
+
|
|
446
|
+
var compareArr = ['return a', ' - b', ';'];
|
|
447
|
+
|
|
448
|
+
this.compareMinX = new Function('a', 'b', compareArr.join(format[0]));
|
|
449
|
+
this.compareMinY = new Function('a', 'b', compareArr.join(format[1]));
|
|
450
|
+
|
|
451
|
+
this.toBBox = new Function('a',
|
|
452
|
+
'return {minX: a' + format[0] +
|
|
453
|
+
', minY: a' + format[1] +
|
|
454
|
+
', maxX: a' + format[2] +
|
|
455
|
+
', maxY: a' + format[3] + '};');
|
|
407
456
|
}
|
|
408
|
-
}
|
|
457
|
+
};
|
|
409
458
|
|
|
410
459
|
function findItem(item, items, equalsFn) {
|
|
411
460
|
if (!equalsFn) return items.indexOf(item);
|
|
412
461
|
|
|
413
|
-
for (
|
|
462
|
+
for (var i = 0; i < items.length; i++) {
|
|
414
463
|
if (equalsFn(item, items[i])) return i;
|
|
415
464
|
}
|
|
416
465
|
return -1;
|
|
@@ -429,8 +478,8 @@ function distBBox(node, k, p, toBBox, destNode) {
|
|
|
429
478
|
destNode.maxX = -Infinity;
|
|
430
479
|
destNode.maxY = -Infinity;
|
|
431
480
|
|
|
432
|
-
for (
|
|
433
|
-
|
|
481
|
+
for (var i = k, child; i < p; i++) {
|
|
482
|
+
child = node.children[i];
|
|
434
483
|
extend(destNode, node.leaf ? toBBox(child) : child);
|
|
435
484
|
}
|
|
436
485
|
|
|
@@ -457,10 +506,10 @@ function enlargedArea(a, b) {
|
|
|
457
506
|
}
|
|
458
507
|
|
|
459
508
|
function intersectionArea(a, b) {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
509
|
+
var minX = Math.max(a.minX, b.minX),
|
|
510
|
+
minY = Math.max(a.minY, b.minY),
|
|
511
|
+
maxX = Math.min(a.maxX, b.maxX),
|
|
512
|
+
maxY = Math.min(a.maxY, b.maxY);
|
|
464
513
|
|
|
465
514
|
return Math.max(0, maxX - minX) *
|
|
466
515
|
Math.max(0, maxY - minY);
|
|
@@ -482,7 +531,7 @@ function intersects(a, b) {
|
|
|
482
531
|
|
|
483
532
|
function createNode(children) {
|
|
484
533
|
return {
|
|
485
|
-
children,
|
|
534
|
+
children: children,
|
|
486
535
|
height: 1,
|
|
487
536
|
leaf: true,
|
|
488
537
|
minX: Infinity,
|
|
@@ -496,7 +545,8 @@ function createNode(children) {
|
|
|
496
545
|
// combines selection algorithm with binary divide & conquer approach
|
|
497
546
|
|
|
498
547
|
function multiSelect(arr, left, right, n, compare) {
|
|
499
|
-
|
|
548
|
+
var stack = [left, right],
|
|
549
|
+
mid;
|
|
500
550
|
|
|
501
551
|
while (stack.length) {
|
|
502
552
|
right = stack.pop();
|
|
@@ -504,7 +554,7 @@ function multiSelect(arr, left, right, n, compare) {
|
|
|
504
554
|
|
|
505
555
|
if (right - left <= n) continue;
|
|
506
556
|
|
|
507
|
-
|
|
557
|
+
mid = left + Math.ceil((right - left) / n / 2) * n;
|
|
508
558
|
quickselect(arr, mid, left, right, compare);
|
|
509
559
|
|
|
510
560
|
stack.push(left, mid, mid, right);
|
|
@@ -1,63 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-XRaVO0YecOpEuIvbhbpTrZgoiI6xBlz6hnlr6EHhd+0x9ase6EmeN+hdwwUaJvLcsFFQ8iWVF1GAK1yB0BWi0w==",
|
|
6
|
-
"_location": "/rbush",
|
|
7
|
-
"_phantomChildren": {},
|
|
8
|
-
"_requested": {
|
|
9
|
-
"type": "range",
|
|
10
|
-
"registry": true,
|
|
11
|
-
"raw": "rbush@^3.0.1",
|
|
12
|
-
"name": "rbush",
|
|
13
|
-
"escapedName": "rbush",
|
|
14
|
-
"rawSpec": "^3.0.1",
|
|
15
|
-
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^3.0.1"
|
|
17
|
-
},
|
|
18
|
-
"_requiredBy": [
|
|
19
|
-
"/concaveman",
|
|
20
|
-
"/geojson-rbush"
|
|
21
|
-
],
|
|
22
|
-
"_resolved": "https://registry.npmjs.org/rbush/-/rbush-3.0.1.tgz",
|
|
23
|
-
"_shasum": "5fafa8a79b3b9afdfe5008403a720cc1de882ecf",
|
|
24
|
-
"_spec": "rbush@^3.0.1",
|
|
25
|
-
"_where": "/Users/conway/Projects/TAKreg/node_modules/geojson-rbush",
|
|
26
|
-
"author": {
|
|
27
|
-
"name": "Vladimir Agafonkin"
|
|
28
|
-
},
|
|
29
|
-
"browser": "rbush.min.js",
|
|
30
|
-
"bugs": {
|
|
31
|
-
"url": "https://github.com/mourner/rbush/issues"
|
|
32
|
-
},
|
|
33
|
-
"bundleDependencies": false,
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"quickselect": "^2.0.0"
|
|
36
|
-
},
|
|
37
|
-
"deprecated": false,
|
|
2
|
+
"name": "rbush",
|
|
3
|
+
"version": "2.0.2",
|
|
38
4
|
"description": "High-performance 2D spatial index for rectangles (based on R*-tree with bulk loading and bulk insertion algorithms)",
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"benchmark": "^2.1.4",
|
|
41
|
-
"c8": "^5.0.1",
|
|
42
|
-
"eslint": "^6.1.0",
|
|
43
|
-
"eslint-config-mourner": "^3.0.0",
|
|
44
|
-
"esm": "^3.2.25",
|
|
45
|
-
"rollup": "^1.17.0",
|
|
46
|
-
"rollup-plugin-buble": "^0.19.8",
|
|
47
|
-
"rollup-plugin-node-resolve": "^5.2.0",
|
|
48
|
-
"rollup-plugin-terser": "^5.1.1",
|
|
49
|
-
"tape": "^4.11.0"
|
|
50
|
-
},
|
|
51
|
-
"eslintConfig": {
|
|
52
|
-
"extends": "mourner"
|
|
53
|
-
},
|
|
54
|
-
"files": [
|
|
55
|
-
"index.js",
|
|
56
|
-
"rbush.js",
|
|
57
|
-
"rbush.min.js"
|
|
58
|
-
],
|
|
59
5
|
"homepage": "https://github.com/mourner/rbush",
|
|
60
|
-
"
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git://github.com/mourner/rbush.git"
|
|
9
|
+
},
|
|
61
10
|
"keywords": [
|
|
62
11
|
"spatial",
|
|
63
12
|
"tree",
|
|
@@ -66,22 +15,41 @@
|
|
|
66
15
|
"index",
|
|
67
16
|
"math"
|
|
68
17
|
],
|
|
18
|
+
"author": "Vladimir Agafonkin",
|
|
69
19
|
"license": "MIT",
|
|
70
|
-
"main": "
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
20
|
+
"main": "index.js",
|
|
21
|
+
"jsdelivr": "rbush.js",
|
|
22
|
+
"unpkg": "rbush.js",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"benchmark": "^2.1.4",
|
|
25
|
+
"browserify": "^14.5.0",
|
|
26
|
+
"eslint": "^4.13.1",
|
|
27
|
+
"eslint-config-mourner": "^2.0.3",
|
|
28
|
+
"faucet": "0.0.1",
|
|
29
|
+
"istanbul": "~0.4.5",
|
|
30
|
+
"tape": "^4.8.0",
|
|
31
|
+
"uglify-js": "^3.2.2"
|
|
76
32
|
},
|
|
77
33
|
"scripts": {
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
34
|
+
"test": "eslint index.js test/test.js && node test/test.js | faucet",
|
|
35
|
+
"perf": "node ./bench/perf.js",
|
|
36
|
+
"cov": "istanbul cover test/test.js -x test/test.js",
|
|
37
|
+
"build": "browserify index.js -s rbush -o rbush.js",
|
|
38
|
+
"build-min": "browserify index.js -s rbush | uglifyjs -c warnings=false -m > rbush.min.js",
|
|
39
|
+
"prepare": "npm run build && npm run build-min"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"rbush.js",
|
|
43
|
+
"rbush.min.js"
|
|
44
|
+
],
|
|
45
|
+
"eslintConfig": {
|
|
46
|
+
"extends": "mourner",
|
|
47
|
+
"rules": {
|
|
48
|
+
"new-cap": 0,
|
|
49
|
+
"consistent-return": 0
|
|
50
|
+
}
|
|
84
51
|
},
|
|
85
|
-
"
|
|
86
|
-
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"quickselect": "^1.0.1"
|
|
54
|
+
}
|
|
87
55
|
}
|