mirage2d 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MirageHttp.es.js +5268 -0
- package/dist/MirageHttp.es.js.map +1 -0
- package/dist/MirageHttp.umd.js +2 -0
- package/dist/MirageHttp.umd.js.map +1 -0
- package/dist/assets/js/basedecoder-fa2b8e8d.js +107 -0
- package/dist/assets/js/decoder-f19e05cf.js +6 -0
- package/dist/assets/js/deflate-adb9a67b.js +8 -0
- package/dist/{js/dist/_html2canvas@1.4.1@html2canvas.e8006fee.js → assets/js/html2canvas.esm-3dd231c5.js} +0 -0
- package/dist/assets/js/index-3263db85.js +1 -0
- package/dist/assets/js/index-a9db46a5.js +212968 -0
- package/dist/{js/lib/_canvg@3.0.10@canvg.bd557ac8.js → assets/js/index.es-38f73a27.js} +2179 -351
- package/dist/assets/js/jpeg-3bf23728.js +835 -0
- package/dist/{js/_lerc@3.0.0@lerc/_lerc@3.0.0@lerc.dc2ff398.js → assets/js/lerc-4c39f39b.js} +26 -1
- package/dist/assets/js/lzw-d0cad8af.js +123 -0
- package/dist/assets/js/packbits-d75b4cce.js +25 -0
- package/dist/{js/_pako@2.0.4@pako/_pako@2.0.4@pako.52d6b320.js → assets/js/pako.esm-49deb4d7.js} +0 -0
- package/dist/{js/dist/_dompurify@2.4.0@dompurify.e7ba523e.js → assets/js/purify.es-1915dfae.js} +0 -0
- package/dist/assets/js/raw-9656f9cc.js +7 -0
- package/dist/assets/js/webimage-edb7156c.js +27 -0
- package/package.json +1 -1
- package/dist/js/_@babel_runtime@7.18.9@@babel/_@babel_runtime@7.18.9@@babel.e0126ca2.js +0 -51
- package/dist/js/_@petamoriken_float16@3.6.6@@petamoriken/_@petamoriken_float16@3.6.6@@petamoriken.c5188241.js +0 -217
- package/dist/js/_@turf_along@6.5.0@@turf/_@turf_along@6.5.0@@turf.18dbc1a3.js +0 -31
- package/dist/js/_@turf_angle@6.5.0@@turf/_@turf_angle@6.5.0@@turf.554ac9bf.js +0 -1
- package/dist/js/_@turf_area@6.5.0@@turf/_@turf_area@6.5.0@@turf.6cbf0cc1.js +0 -74
- package/dist/js/_@turf_bbox-clip@6.5.0@@turf/_@turf_bbox-clip@6.5.0@@turf.e491cb90.js +0 -1
- package/dist/js/_@turf_bbox-polygon@6.5.0@@turf/_@turf_bbox-polygon@6.5.0@@turf.523f1c20.js +0 -19
- package/dist/js/_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js +0 -48
- package/dist/js/_@turf_bearing@6.5.0@@turf/_@turf_bearing@6.5.0@@turf.f2555a09.js +0 -25
- package/dist/js/_@turf_bezier-spline@6.5.0@@turf/_@turf_bezier-spline@6.5.0@@turf.fa7991dd.js +0 -137
- package/dist/js/_@turf_boolean-clockwise@6.5.0@@turf/_@turf_boolean-clockwise@6.5.0@@turf.4031f280.js +0 -1
- package/dist/js/_@turf_boolean-contains@6.5.0@@turf/_@turf_boolean-contains@6.5.0@@turf.836d55d8.js +0 -191
- package/dist/js/_@turf_boolean-crosses@6.5.0@@turf/_@turf_boolean-crosses@6.5.0@@turf.c5f65a28.js +0 -125
- package/dist/js/_@turf_boolean-disjoint@6.5.0@@turf/_@turf_boolean-disjoint@6.5.0@@turf.bbd60872.js +0 -122
- package/dist/js/_@turf_boolean-equal@6.5.0@@turf/_@turf_boolean-equal@6.5.0@@turf.341ffa01.js +0 -1
- package/dist/js/_@turf_boolean-intersects@6.5.0@@turf/_@turf_boolean-intersects@6.5.0@@turf.05fc28b3.js +0 -15
- package/dist/js/_@turf_boolean-overlap@6.5.0@@turf/_@turf_boolean-overlap@6.5.0@@turf.a519db25.js +0 -53
- package/dist/js/_@turf_boolean-parallel@6.5.0@@turf/_@turf_boolean-parallel@6.5.0@@turf.dbf2bc2d.js +0 -1
- package/dist/js/_@turf_boolean-point-in-polygon@6.5.0@@turf/_@turf_boolean-point-in-polygon@6.5.0@@turf.62a2d48a.js +0 -65
- package/dist/js/_@turf_boolean-point-on-line@6.5.0@@turf/_@turf_boolean-point-on-line@6.5.0@@turf.3cf3aaa1.js +0 -69
- package/dist/js/_@turf_boolean-within@6.5.0@@turf/_@turf_boolean-within@6.5.0@@turf.d70d6bfc.js +0 -172
- package/dist/js/_@turf_buffer@6.5.0@@turf/_@turf_buffer@6.5.0@@turf.88330dfe.js +0 -99
- package/dist/js/_@turf_center-mean@6.5.0@@turf/_@turf_center-mean@6.5.0@@turf.b3d7c917.js +0 -1
- package/dist/js/_@turf_center-median@6.5.0@@turf/_@turf_center-median@6.5.0@@turf.44c4669e.js +0 -1
- package/dist/js/_@turf_center-of-mass@6.5.0@@turf/_@turf_center-of-mass@6.5.0@@turf.63ce279e.js +0 -1
- package/dist/js/_@turf_center@6.5.0@@turf/_@turf_center@6.5.0@@turf.a45495b5.js +0 -12
- package/dist/js/_@turf_centroid@6.5.0@@turf/_@turf_centroid@6.5.0@@turf.0a5be869.js +0 -17
- package/dist/js/_@turf_circle@6.5.0@@turf/_@turf_circle@6.5.0@@turf.0166b8c2.js +0 -16
- package/dist/js/_@turf_clean-coords@6.5.0@@turf/_@turf_clean-coords@6.5.0@@turf.8c76bd63.js +0 -111
- package/dist/js/_@turf_clone@6.5.0@@turf/_@turf_clone@6.5.0@@turf.cd05b1f8.js +0 -100
- package/dist/js/_@turf_clusters-dbscan@6.5.0@@turf/_@turf_clusters-dbscan@6.5.0@@turf.6bbee7e9.js +0 -1
- package/dist/js/_@turf_clusters-kmeans@6.5.0@@turf/_@turf_clusters-kmeans@6.5.0@@turf.505415df.js +0 -1
- package/dist/js/_@turf_clusters@6.5.0@@turf/_@turf_clusters@6.5.0@@turf.84cb9680.js +0 -1
- package/dist/js/_@turf_collect@6.5.0@@turf/_@turf_collect@6.5.0@@turf.93e41b5f.js +0 -1
- package/dist/js/_@turf_combine@6.5.0@@turf/_@turf_combine@6.5.0@@turf.33ee6336.js +0 -1
- package/dist/js/_@turf_concave@6.5.0@@turf/_@turf_concave@6.5.0@@turf.6fb6a8be.js +0 -179
- package/dist/js/_@turf_convex@6.5.0@@turf/_@turf_convex@6.5.0@@turf.24600ac2.js +0 -1
- package/dist/js/_@turf_destination@6.5.0@@turf/_@turf_destination@6.5.0@@turf.2621651e.js +0 -18
- package/dist/js/_@turf_difference@6.5.0@@turf/_@turf_difference@6.5.0@@turf.70df5e79.js +0 -18
- package/dist/js/_@turf_dissolve@6.5.0@@turf/_@turf_dissolve@6.5.0@@turf.edb28fc1.js +0 -1
- package/dist/js/_@turf_distance-weight@6.5.0@@turf/_@turf_distance-weight@6.5.0@@turf.e168af7f.js +0 -1
- package/dist/js/_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js +0 -22
- package/dist/js/_@turf_ellipse@6.5.0@@turf/_@turf_ellipse@6.5.0@@turf.37986056.js +0 -1
- package/dist/js/_@turf_envelope@6.5.0@@turf/_@turf_envelope@6.5.0@@turf.599c5772.js +0 -1
- package/dist/js/_@turf_explode@6.5.0@@turf/_@turf_explode@6.5.0@@turf.5c768db5.js +0 -24
- package/dist/js/_@turf_flatten@6.5.0@@turf/_@turf_flatten@6.5.0@@turf.57e9114c.js +0 -1
- package/dist/js/_@turf_flip@6.5.0@@turf/_@turf_flip@6.5.0@@turf.1f02101f.js +0 -1
- package/dist/js/_@turf_great-circle@6.5.0@@turf/_@turf_great-circle@6.5.0@@turf.2ca021a8.js +0 -1
- package/dist/js/_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js +0 -364
- package/dist/js/_@turf_hex-grid@6.5.0@@turf/_@turf_hex-grid@6.5.0@@turf.a6a45778.js +0 -99
- package/dist/js/_@turf_interpolate@6.5.0@@turf/_@turf_interpolate@6.5.0@@turf.4d39bd8c.js +0 -1
- package/dist/js/_@turf_intersect@6.5.0@@turf/_@turf_intersect@6.5.0@@turf.34082cdf.js +0 -17
- package/dist/js/_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js +0 -71
- package/dist/js/_@turf_isobands@6.5.0@@turf/_@turf_isobands@6.5.0@@turf.def019df.js +0 -3109
- package/dist/js/_@turf_isolines@6.5.0@@turf/_@turf_isolines@6.5.0@@turf.da623b25.js +0 -1
- package/dist/js/_@turf_kinks@6.5.0@@turf/_@turf_kinks@6.5.0@@turf.ee61685b.js +0 -87
- package/dist/js/_@turf_length@6.5.0@@turf/_@turf_length@6.5.0@@turf.f73f6c98.js +0 -12
- package/dist/js/_@turf_line-arc@6.5.0@@turf/_@turf_line-arc@6.5.0@@turf.3dc57055.js +0 -37
- package/dist/js/_@turf_line-chunk@6.5.0@@turf/_@turf_line-chunk@6.5.0@@turf.1867af48.js +0 -43
- package/dist/js/_@turf_line-intersect@6.5.0@@turf/_@turf_line-intersect@6.5.0@@turf.c4d81948.js +0 -73
- package/dist/js/_@turf_line-offset@6.5.0@@turf/_@turf_line-offset@6.5.0@@turf.e6846793.js +0 -116
- package/dist/js/_@turf_line-overlap@6.5.0@@turf/_@turf_line-overlap@6.5.0@@turf.addba9a5.js +0 -76
- package/dist/js/_@turf_line-segment@6.5.0@@turf/_@turf_line-segment@6.5.0@@turf.18ce3010.js +0 -55
- package/dist/js/_@turf_line-slice-along@6.5.0@@turf/_@turf_line-slice-along@6.5.0@@turf.2b802464.js +0 -57
- package/dist/js/_@turf_line-slice@6.5.0@@turf/_@turf_line-slice@6.5.0@@turf.6423a053.js +0 -23
- package/dist/js/_@turf_line-split@6.5.0@@turf/_@turf_line-split@6.5.0@@turf.2022f104.js +0 -125
- package/dist/js/_@turf_line-to-polygon@6.5.0@@turf/_@turf_line-to-polygon@6.5.0@@turf.83f5e69f.js +0 -1
- package/dist/js/_@turf_mask@6.5.0@@turf/_@turf_mask@6.5.0@@turf.96cd5a94.js +0 -1
- package/dist/js/_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js +0 -611
- package/dist/js/_@turf_midpoint@6.5.0@@turf/_@turf_midpoint@6.5.0@@turf.67c14f94.js +0 -1
- package/dist/js/_@turf_moran-index@6.5.0@@turf/_@turf_moran-index@6.5.0@@turf.2ad5365a.js +0 -1
- package/dist/js/_@turf_nearest-point-on-line@6.5.0@@turf/_@turf_nearest-point-on-line@6.5.0@@turf.095c8c0d.js +0 -57
- package/dist/js/_@turf_nearest-point-to-line@6.5.0@@turf/_@turf_nearest-point-to-line@6.5.0@@turf.68484097.js +0 -1
- package/dist/js/_@turf_nearest-point@6.5.0@@turf/_@turf_nearest-point@6.5.0@@turf.e0d2f509.js +0 -24
- package/dist/js/_@turf_planepoint@6.5.0@@turf/_@turf_planepoint@6.5.0@@turf.56fc70b3.js +0 -1
- package/dist/js/_@turf_point-grid@6.5.0@@turf/_@turf_point-grid@6.5.0@@turf.2d278644.js +0 -42
- package/dist/js/_@turf_point-on-feature@6.5.0@@turf/_@turf_point-on-feature@6.5.0@@turf.0c740874.js +0 -1
- package/dist/js/_@turf_point-to-line-distance@6.5.0@@turf/_@turf_point-to-line-distance@6.5.0@@turf.33105d82.js +0 -1
- package/dist/js/_@turf_points-within-polygon@6.5.0@@turf/_@turf_points-within-polygon@6.5.0@@turf.659cd335.js +0 -35
- package/dist/js/_@turf_polygon-smooth@6.5.0@@turf/_@turf_polygon-smooth@6.5.0@@turf.43a7c33e.js +0 -1
- package/dist/js/_@turf_polygon-tangents@6.5.0@@turf/_@turf_polygon-tangents@6.5.0@@turf.a2c3a7b6.js +0 -1
- package/dist/js/_@turf_polygon-to-line@6.5.0@@turf/_@turf_polygon-to-line@6.5.0@@turf.3177cfb1.js +0 -48
- package/dist/js/_@turf_polygonize@6.5.0@@turf/_@turf_polygonize@6.5.0@@turf.f7cc4910.js +0 -1
- package/dist/js/_@turf_projection@6.5.0@@turf/_@turf_projection@6.5.0@@turf.ffdd3321.js +0 -1
- package/dist/js/_@turf_random@6.5.0@@turf/_@turf_random@6.5.0@@turf.f65251e4.js +0 -130
- package/dist/js/_@turf_rectangle-grid@6.5.0@@turf/_@turf_rectangle-grid@6.5.0@@turf.7e8b1a1f.js +0 -49
- package/dist/js/_@turf_rewind@6.5.0@@turf/_@turf_rewind@6.5.0@@turf.5d137ee9.js +0 -1
- package/dist/js/_@turf_rhumb-bearing@6.5.0@@turf/_@turf_rhumb-bearing@6.5.0@@turf.fb8f6ade.js +0 -30
- package/dist/js/_@turf_rhumb-destination@6.5.0@@turf/_@turf_rhumb-destination@6.5.0@@turf.dc0e4753.js +0 -36
- package/dist/js/_@turf_rhumb-distance@6.5.0@@turf/_@turf_rhumb-distance@6.5.0@@turf.94e475b8.js +0 -30
- package/dist/js/_@turf_sample@6.5.0@@turf/_@turf_sample@6.5.0@@turf.7181d7a7.js +0 -1
- package/dist/js/_@turf_sector@6.5.0@@turf/_@turf_sector@6.5.0@@turf.04ffddfe.js +0 -39
- package/dist/js/_@turf_shortest-path@6.5.0@@turf/_@turf_shortest-path@6.5.0@@turf.0c1b62a8.js +0 -367
- package/dist/js/_@turf_simplify@6.5.0@@turf/_@turf_simplify@6.5.0@@turf.46703d2e.js +0 -1
- package/dist/js/_@turf_square-grid@6.5.0@@turf/_@turf_square-grid@6.5.0@@turf.38bd2eaa.js +0 -8
- package/dist/js/_@turf_square@6.5.0@@turf/_@turf_square@6.5.0@@turf.2705289a.js +0 -27
- package/dist/js/_@turf_standard-deviational-ellipse@6.5.0@@turf/_@turf_standard-deviational-ellipse@6.5.0@@turf.7094e432.js +0 -1
- package/dist/js/_@turf_tag@6.5.0@@turf/_@turf_tag@6.5.0@@turf.cb60b0c1.js +0 -1
- package/dist/js/_@turf_tesselate@6.5.0@@turf/_@turf_tesselate@6.5.0@@turf.330e4aae.js +0 -1
- package/dist/js/_@turf_tin@6.5.0@@turf/_@turf_tin@6.5.0@@turf.077204c4.js +0 -173
- package/dist/js/_@turf_transform-rotate@6.5.0@@turf/_@turf_transform-rotate@6.5.0@@turf.6d350d36.js +0 -1
- package/dist/js/_@turf_transform-scale@6.5.0@@turf/_@turf_transform-scale@6.5.0@@turf.d6f65671.js +0 -90
- package/dist/js/_@turf_transform-translate@6.5.0@@turf/_@turf_transform-translate@6.5.0@@turf.9296b81a.js +0 -1
- package/dist/js/_@turf_triangle-grid@6.5.0@@turf/_@turf_triangle-grid@6.5.0@@turf.939f94ab.js +0 -107
- package/dist/js/_@turf_truncate@6.5.0@@turf/_@turf_truncate@6.5.0@@turf.ed70ebcb.js +0 -33
- package/dist/js/_@turf_turf@6.4.0@@turf/_@turf_turf@6.4.0@@turf.34fde8ec.js +0 -1
- package/dist/js/_@turf_union@6.5.0@@turf/_@turf_union@6.5.0@@turf.386ee2eb.js +0 -1
- package/dist/js/_@turf_unkink-polygon@6.5.0@@turf/_@turf_unkink-polygon@6.5.0@@turf.cb446e47.js +0 -1
- package/dist/js/_@turf_voronoi@6.5.0@@turf/_@turf_voronoi@6.5.0@@turf.c30d929e.js +0 -30
- package/dist/js/_call-bind@1.0.2@call-bind/_call-bind@1.0.2@call-bind.3811d387.js +0 -53
- package/dist/js/_concaveman@1.2.1@concaveman/_concaveman@1.2.1@concaveman.e747f731.js +0 -1
- package/dist/js/_core-js@3.25.0@core-js/_core-js@3.25.0@core-js.003355ed.js +0 -5029
- package/dist/js/_crypto-js@4.1.1@crypto-js/_crypto-js@4.1.1@crypto-js.e2f7f158.js +0 -1823
- package/dist/js/_d3-array@1.2.4@d3-array/_d3-array@1.2.4@d3-array.d606df6b.js +0 -58
- package/dist/js/_d3-geo@1.7.1@d3-geo/_d3-geo@1.7.1@d3-geo.7d357be1.js +0 -1094
- package/dist/js/_d3-voronoi@1.1.2@d3-voronoi/_d3-voronoi@1.1.2@d3-voronoi.072f12a6.js +0 -816
- package/dist/js/_deep-equal@1.1.1@deep-equal/_deep-equal@1.1.1@deep-equal.98576c17.js +0 -108
- package/dist/js/_define-properties@1.1.4@define-properties/_define-properties@1.1.4@define-properties.647c3367.js +0 -40
- package/dist/js/_density-clustering@1.3.0@density-clustering/_density-clustering@1.3.0@density-clustering.a07fc6ae.js +0 -1
- package/dist/js/_earcut@2.2.4@earcut/_earcut@2.2.4@earcut.972ebfd3.js +0 -1
- package/dist/js/_echarts-gl@1.1.2@echarts-gl/_echarts-gl@1.1.2@echarts-gl.1e3964b9.js +0 -36533
- package/dist/js/_echarts@4.9.0@echarts/_echarts@4.9.0@echarts.7d74ba77.js +0 -44219
- package/dist/js/_fflate@0.4.8@fflate/_fflate@0.4.8@fflate.d8111196.js +0 -571
- package/dist/js/_function-bind@1.1.1@function-bind/_function-bind@1.1.1@function-bind.de3cf11d.js +0 -46
- package/dist/js/_functions-have-names@1.2.3@functions-have-names/_functions-have-names@1.2.3@functions-have-names.7def2408.js +0 -27
- package/dist/js/_geojson-equality@0.1.6@geojson-equality/_geojson-equality@0.1.6@geojson-equality.09ffa121.js +0 -133
- package/dist/js/_geojson-path-finder@1.5.3@geojson-path-finder/_geojson-path-finder@1.5.3@geojson-path-finder.7a10eb99.js +0 -348
- package/dist/js/_geojson-rbush@3.2.0@geojson-rbush/_geojson-rbush@3.2.0@geojson-rbush.2adaeedb.js +0 -93
- package/dist/js/_geotiff@2.0.4@geotiff/_geotiff@2.0.4@geotiff.5b08f79e.js +0 -3663
- package/dist/js/_get-intrinsic@1.1.2@get-intrinsic/_get-intrinsic@1.1.2@get-intrinsic.a633bd68.js +0 -291
- package/dist/js/_has-property-descriptors@1.0.0@has-property-descriptors/_has-property-descriptors@1.0.0@has-property-descriptors.6bd2d302.js +0 -26
- package/dist/js/_has-symbols@1.0.3@has-symbols/_has-symbols@1.0.3@has-symbols.70406077.js +0 -63
- package/dist/js/_has-tostringtag@1.0.0@has-tostringtag/_has-tostringtag@1.0.0@has-tostringtag.2d502422.js +0 -6
- package/dist/js/_has@1.0.3@has/_has@1.0.3@has.ddd2eb68.js +0 -4
- package/dist/js/_ieee754@1.2.1@ieee754/_ieee754@1.2.1@ieee754.56426503.js +0 -80
- package/dist/js/_is-arguments@1.1.1@is-arguments/_is-arguments@1.1.1@is-arguments.7d77e24a.js +0 -23
- package/dist/js/_is-date-object@1.0.5@is-date-object/_is-date-object@1.0.5@is-date-object.08cc2543.js +0 -20
- package/dist/js/_is-regex@1.1.4@is-regex/_is-regex@1.1.4@is-regex.6417e007.js +0 -47
- package/dist/js/_jspdf@2.5.1@jspdf/_jspdf@2.5.1@jspdf.e927dbd8.js +0 -8494
- package/dist/js/_kml-geojson@1.2.0@kml-geojson/_kml-geojson@1.2.0@kml-geojson.f1ae86e4.js +0 -7858
- package/dist/js/_lru-cache@6.0.0@lru-cache/_lru-cache@6.0.0@lru-cache.dd72cc1b.js +0 -263
- package/dist/js/_mgrs@1.0.0@mgrs/_mgrs@1.0.0@mgrs.12d1da3e.js +0 -432
- package/dist/js/_object-assign@4.1.1@object-assign/_object-assign@4.1.1@object-assign.e4009c1c.js +0 -69
- package/dist/js/_object-is@1.1.5@object-is/_object-is@1.1.5@object-is.e47f5d65.js +0 -45
- package/dist/js/_object-keys@1.1.1@object-keys/_object-keys@1.1.1@object-keys.4b1d0a99.js +0 -151
- package/dist/js/_ol-echarts@2.0.6@ol-echarts/_ol-echarts@2.0.6@ol-echarts.658aaf82.js +0 -841
- package/dist/js/_ol-ext@3.2.30@ol-ext/_ol-ext@3.2.30@ol-ext.b94220dd.js +0 -4614
- package/dist/js/_ol-mapbox-style@8.2.1@ol-mapbox-style/_ol-mapbox-style@8.2.1@ol-mapbox-style.795310f3.js +0 -1
- package/dist/js/_ol@6.15.1@ol/_ol@6.15.1@ol.8fd0cbb5.js +0 -31823
- package/dist/js/_pbf@3.2.1@pbf/_pbf@3.2.1@pbf.330acf55.js +0 -647
- package/dist/js/_performance-now@2.1.0@performance-now/_performance-now@2.1.0@performance-now.a51379c2.js +0 -34
- package/dist/js/_point-in-polygon@1.1.0@point-in-polygon/_point-in-polygon@1.1.0@point-in-polygon.2cc4306e.js +0 -1
- package/dist/js/_polygon-clipping@0.15.3@polygon-clipping/_polygon-clipping@0.15.3@polygon-clipping.c0e9ec57.js +0 -1363
- package/dist/js/_proj4@2.8.0@proj4/_proj4@2.8.0@proj4.1600352c.js +0 -4885
- package/dist/js/_quickselect@1.1.1@quickselect/_quickselect@1.1.1@quickselect.8afce154.js +0 -1
- package/dist/js/_quickselect@2.0.0@quickselect/_quickselect@2.0.0@quickselect.9f5c1e48.js +0 -51
- package/dist/js/_raf@3.4.1@raf/_raf@3.4.1@raf.ac0d6c66.js +0 -60
- package/dist/js/_rbush@2.0.2@rbush/_rbush@2.0.2@rbush.7149e620.js +0 -1
- package/dist/js/_rbush@3.0.1@rbush/_rbush@3.0.1@rbush.57d33d95.js +0 -402
- package/dist/js/_regexp.prototype.flags@1.4.3@regexp.prototype.flags/_regexp.prototype.flags@1.4.3@regexp.prototype.flags.8b6921c6.js +0 -102
- package/dist/js/_rgbcolor@1.0.1@rgbcolor/_rgbcolor@1.0.1@rgbcolor.dd87e013.js +0 -272
- package/dist/js/_robust-predicates@2.0.4@robust-predicates/_robust-predicates@2.0.4@robust-predicates.564bf2f8.js +0 -1
- package/dist/js/_skmeans@0.9.7@skmeans/_skmeans@0.9.7@skmeans.933c6a76.js +0 -1
- package/dist/js/_splaytree@3.1.1@splaytree/_splaytree@3.1.1@splaytree.6cb55ed3.js +0 -671
- package/dist/js/_stackblur-canvas@2.5.0@stackblur-canvas/_stackblur-canvas@2.5.0@stackblur-canvas.dd883d14.js +0 -214
- package/dist/js/_svg-pathdata@6.0.3@svg-pathdata/_svg-pathdata@6.0.3@svg-pathdata.7e858a5f.js +0 -441
- package/dist/js/_tinyqueue@2.0.3@tinyqueue/_tinyqueue@2.0.3@tinyqueue.78918532.js +0 -73
- package/dist/js/_topojson-client@3.1.0@topojson-client/_topojson-client@3.1.0@topojson-client.aef4e2d5.js +0 -238
- package/dist/js/_topojson-server@3.0.1@topojson-server/_topojson-server@3.0.1@topojson-server.b521a412.js +0 -662
- package/dist/js/_turf-jsts@1.2.3@turf-jsts/_turf-jsts@1.2.3@turf-jsts.6ef42696.js +0 -18934
- package/dist/js/_web-worker@1.2.0@web-worker/_web-worker@1.2.0@web-worker.43288df7.js +0 -2
- package/dist/js/_wkt-parser@1.3.2@wkt-parser/_wkt-parser@1.3.2@wkt-parser.0e1cf374.js +0 -461
- package/dist/js/_xml-utils@1.2.0@xml-utils/_xml-utils@1.2.0@xml-utils.2a8ae655.js +0 -126
- package/dist/js/_yallist@4.0.0@yallist/_yallist@4.0.0@yallist.8350aafe.js +0 -363
- package/dist/js/_zrender@4.3.2@zrender/_zrender@4.3.2@zrender.1feea14d.js +0 -12455
- package/dist/mirage2d.es.js +0 -15894
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { b as booleanWithin } from "../_@turf_boolean-within@6.5.0@@turf/_@turf_boolean-within@6.5.0@@turf.d70d6bfc.js";
|
|
2
|
-
import { d as distance } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
|
|
3
|
-
import { p as point, f as featureCollection } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
4
|
-
function pointGrid(bbox, cellSide, options) {
|
|
5
|
-
if (options === void 0) {
|
|
6
|
-
options = {};
|
|
7
|
-
}
|
|
8
|
-
if (options.mask && !options.units)
|
|
9
|
-
options.units = "kilometers";
|
|
10
|
-
var results = [];
|
|
11
|
-
var west = bbox[0];
|
|
12
|
-
var south = bbox[1];
|
|
13
|
-
var east = bbox[2];
|
|
14
|
-
var north = bbox[3];
|
|
15
|
-
var xFraction = cellSide / distance([west, south], [east, south], options);
|
|
16
|
-
var cellWidth = xFraction * (east - west);
|
|
17
|
-
var yFraction = cellSide / distance([west, south], [west, north], options);
|
|
18
|
-
var cellHeight = yFraction * (north - south);
|
|
19
|
-
var bboxWidth = east - west;
|
|
20
|
-
var bboxHeight = north - south;
|
|
21
|
-
var columns = Math.floor(bboxWidth / cellWidth);
|
|
22
|
-
var rows = Math.floor(bboxHeight / cellHeight);
|
|
23
|
-
var deltaX = (bboxWidth - columns * cellWidth) / 2;
|
|
24
|
-
var deltaY = (bboxHeight - rows * cellHeight) / 2;
|
|
25
|
-
var currentX = west + deltaX;
|
|
26
|
-
while (currentX <= east) {
|
|
27
|
-
var currentY = south + deltaY;
|
|
28
|
-
while (currentY <= north) {
|
|
29
|
-
var cellPt = point([currentX, currentY], options.properties);
|
|
30
|
-
if (options.mask) {
|
|
31
|
-
if (booleanWithin(cellPt, options.mask))
|
|
32
|
-
results.push(cellPt);
|
|
33
|
-
} else {
|
|
34
|
-
results.push(cellPt);
|
|
35
|
-
}
|
|
36
|
-
currentY += cellHeight;
|
|
37
|
-
}
|
|
38
|
-
currentX += cellWidth;
|
|
39
|
-
}
|
|
40
|
-
return featureCollection(results);
|
|
41
|
-
}
|
|
42
|
-
export { pointGrid as p };
|
package/dist/js/_@turf_point-on-feature@6.5.0@@turf/_@turf_point-on-feature@6.5.0@@turf.0c740874.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { b as booleanPointInPolygon } from "../_@turf_boolean-point-in-polygon@6.5.0@@turf/_@turf_boolean-point-in-polygon@6.5.0@@turf.62a2d48a.js";
|
|
2
|
-
import { f as featureCollection, n as multiPoint } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
3
|
-
import { a as featureEach, b as geomEach, c as coordEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
4
|
-
function pointsWithinPolygon(points, polygons) {
|
|
5
|
-
var results = [];
|
|
6
|
-
featureEach(points, function(point) {
|
|
7
|
-
var contained = false;
|
|
8
|
-
if (point.geometry.type === "Point") {
|
|
9
|
-
geomEach(polygons, function(polygon) {
|
|
10
|
-
if (booleanPointInPolygon(point, polygon))
|
|
11
|
-
contained = true;
|
|
12
|
-
});
|
|
13
|
-
if (contained) {
|
|
14
|
-
results.push(point);
|
|
15
|
-
}
|
|
16
|
-
} else if (point.geometry.type === "MultiPoint") {
|
|
17
|
-
var pointsWithin = [];
|
|
18
|
-
geomEach(polygons, function(polygon) {
|
|
19
|
-
coordEach(point, function(pointCoord) {
|
|
20
|
-
if (booleanPointInPolygon(pointCoord, polygon)) {
|
|
21
|
-
contained = true;
|
|
22
|
-
pointsWithin.push(pointCoord);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
if (contained) {
|
|
27
|
-
results.push(multiPoint(pointsWithin));
|
|
28
|
-
}
|
|
29
|
-
} else {
|
|
30
|
-
throw new Error("Input geometry must be a Point or MultiPoint");
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
return featureCollection(results);
|
|
34
|
-
}
|
|
35
|
-
export { pointsWithinPolygon as p };
|
package/dist/js/_@turf_polygon-smooth@6.5.0@@turf/_@turf_polygon-smooth@6.5.0@@turf.43a7c33e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/js/_@turf_polygon-tangents@6.5.0@@turf/_@turf_polygon-tangents@6.5.0@@turf.a2c3a7b6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/js/_@turf_polygon-to-line@6.5.0@@turf/_@turf_polygon-to-line@6.5.0@@turf.3177cfb1.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { m as multiLineString, l as lineString, f as featureCollection } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
2
|
-
import { g as getGeom } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
3
|
-
function polygonToLine(poly, options) {
|
|
4
|
-
if (options === void 0) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
var geom = getGeom(poly);
|
|
8
|
-
if (!options.properties && poly.type === "Feature") {
|
|
9
|
-
options.properties = poly.properties;
|
|
10
|
-
}
|
|
11
|
-
switch (geom.type) {
|
|
12
|
-
case "Polygon":
|
|
13
|
-
return polygonToLine$1(geom, options);
|
|
14
|
-
case "MultiPolygon":
|
|
15
|
-
return multiPolygonToLine(geom, options);
|
|
16
|
-
default:
|
|
17
|
-
throw new Error("invalid poly");
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function polygonToLine$1(poly, options) {
|
|
21
|
-
if (options === void 0) {
|
|
22
|
-
options = {};
|
|
23
|
-
}
|
|
24
|
-
var geom = getGeom(poly);
|
|
25
|
-
var coords = geom.coordinates;
|
|
26
|
-
var properties = options.properties ? options.properties : poly.type === "Feature" ? poly.properties : {};
|
|
27
|
-
return coordsToLine(coords, properties);
|
|
28
|
-
}
|
|
29
|
-
function multiPolygonToLine(multiPoly, options) {
|
|
30
|
-
if (options === void 0) {
|
|
31
|
-
options = {};
|
|
32
|
-
}
|
|
33
|
-
var geom = getGeom(multiPoly);
|
|
34
|
-
var coords = geom.coordinates;
|
|
35
|
-
var properties = options.properties ? options.properties : multiPoly.type === "Feature" ? multiPoly.properties : {};
|
|
36
|
-
var lines = [];
|
|
37
|
-
coords.forEach(function(coord) {
|
|
38
|
-
lines.push(coordsToLine(coord, properties));
|
|
39
|
-
});
|
|
40
|
-
return featureCollection(lines);
|
|
41
|
-
}
|
|
42
|
-
function coordsToLine(coords, properties) {
|
|
43
|
-
if (coords.length > 1) {
|
|
44
|
-
return multiLineString(coords, properties);
|
|
45
|
-
}
|
|
46
|
-
return lineString(coords[0], properties);
|
|
47
|
-
}
|
|
48
|
-
export { polygonToLine as a, polygonToLine$1 as p };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { p as point, f as featureCollection, o as isNumber, i as isObject, l as lineString, a as polygon } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
2
|
-
var __spreadArrays = globalThis && globalThis.__spreadArrays || function() {
|
|
3
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
4
|
-
s += arguments[i].length;
|
|
5
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
6
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
7
|
-
r[k] = a[j];
|
|
8
|
-
return r;
|
|
9
|
-
};
|
|
10
|
-
function randomPosition(bbox) {
|
|
11
|
-
if (Array.isArray(bbox)) {
|
|
12
|
-
return coordInBBox(bbox);
|
|
13
|
-
}
|
|
14
|
-
if (bbox && bbox.bbox) {
|
|
15
|
-
return coordInBBox(bbox.bbox);
|
|
16
|
-
}
|
|
17
|
-
return [lon(), lat()];
|
|
18
|
-
}
|
|
19
|
-
function randomPoint(count, options) {
|
|
20
|
-
if (options === void 0) {
|
|
21
|
-
options = {};
|
|
22
|
-
}
|
|
23
|
-
if (count === void 0 || count === null) {
|
|
24
|
-
count = 1;
|
|
25
|
-
}
|
|
26
|
-
var features = [];
|
|
27
|
-
for (var i = 0; i < count; i++) {
|
|
28
|
-
features.push(point(randomPosition(options.bbox)));
|
|
29
|
-
}
|
|
30
|
-
return featureCollection(features);
|
|
31
|
-
}
|
|
32
|
-
function randomPolygon(count, options) {
|
|
33
|
-
if (options === void 0) {
|
|
34
|
-
options = {};
|
|
35
|
-
}
|
|
36
|
-
if (count === void 0 || count === null) {
|
|
37
|
-
count = 1;
|
|
38
|
-
}
|
|
39
|
-
if (!isNumber(options.num_vertices) || options.num_vertices === void 0) {
|
|
40
|
-
options.num_vertices = 10;
|
|
41
|
-
}
|
|
42
|
-
if (!isNumber(options.max_radial_length) || options.max_radial_length === void 0) {
|
|
43
|
-
options.max_radial_length = 10;
|
|
44
|
-
}
|
|
45
|
-
var features = [];
|
|
46
|
-
var _loop_1 = function(i2) {
|
|
47
|
-
var vertices = [];
|
|
48
|
-
var circleOffsets = __spreadArrays(Array(options.num_vertices + 1)).map(Math.random);
|
|
49
|
-
circleOffsets.forEach(function(cur, index, arr) {
|
|
50
|
-
arr[index] = index > 0 ? cur + arr[index - 1] : cur;
|
|
51
|
-
});
|
|
52
|
-
circleOffsets.forEach(function(cur) {
|
|
53
|
-
cur = cur * 2 * Math.PI / circleOffsets[circleOffsets.length - 1];
|
|
54
|
-
var radialScaler = Math.random();
|
|
55
|
-
vertices.push([
|
|
56
|
-
radialScaler * (options.max_radial_length || 10) * Math.sin(cur),
|
|
57
|
-
radialScaler * (options.max_radial_length || 10) * Math.cos(cur)
|
|
58
|
-
]);
|
|
59
|
-
});
|
|
60
|
-
vertices[vertices.length - 1] = vertices[0];
|
|
61
|
-
vertices = vertices.map(vertexToCoordinate(randomPosition(options.bbox)));
|
|
62
|
-
features.push(polygon([vertices]));
|
|
63
|
-
};
|
|
64
|
-
for (var i = 0; i < count; i++) {
|
|
65
|
-
_loop_1();
|
|
66
|
-
}
|
|
67
|
-
return featureCollection(features);
|
|
68
|
-
}
|
|
69
|
-
function randomLineString(count, options) {
|
|
70
|
-
if (options === void 0) {
|
|
71
|
-
options = {};
|
|
72
|
-
}
|
|
73
|
-
options = options || {};
|
|
74
|
-
if (!isObject(options)) {
|
|
75
|
-
throw new Error("options is invalid");
|
|
76
|
-
}
|
|
77
|
-
var bbox = options.bbox;
|
|
78
|
-
var num_vertices = options.num_vertices;
|
|
79
|
-
var max_length = options.max_length;
|
|
80
|
-
var max_rotation = options.max_rotation;
|
|
81
|
-
if (count === void 0 || count === null) {
|
|
82
|
-
count = 1;
|
|
83
|
-
}
|
|
84
|
-
if (!isNumber(num_vertices) || num_vertices === void 0 || num_vertices < 2) {
|
|
85
|
-
num_vertices = 10;
|
|
86
|
-
}
|
|
87
|
-
if (!isNumber(max_length) || max_length === void 0) {
|
|
88
|
-
max_length = 1e-4;
|
|
89
|
-
}
|
|
90
|
-
if (!isNumber(max_rotation) || max_rotation === void 0) {
|
|
91
|
-
max_rotation = Math.PI / 8;
|
|
92
|
-
}
|
|
93
|
-
var features = [];
|
|
94
|
-
for (var i = 0; i < count; i++) {
|
|
95
|
-
var startingPoint = randomPosition(bbox);
|
|
96
|
-
var vertices = [startingPoint];
|
|
97
|
-
for (var j = 0; j < num_vertices - 1; j++) {
|
|
98
|
-
var priorAngle = j === 0 ? Math.random() * 2 * Math.PI : Math.tan((vertices[j][1] - vertices[j - 1][1]) / (vertices[j][0] - vertices[j - 1][0]));
|
|
99
|
-
var angle = priorAngle + (Math.random() - 0.5) * max_rotation * 2;
|
|
100
|
-
var distance = Math.random() * max_length;
|
|
101
|
-
vertices.push([
|
|
102
|
-
vertices[j][0] + distance * Math.cos(angle),
|
|
103
|
-
vertices[j][1] + distance * Math.sin(angle)
|
|
104
|
-
]);
|
|
105
|
-
}
|
|
106
|
-
features.push(lineString(vertices));
|
|
107
|
-
}
|
|
108
|
-
return featureCollection(features);
|
|
109
|
-
}
|
|
110
|
-
function vertexToCoordinate(hub) {
|
|
111
|
-
return function(cur) {
|
|
112
|
-
return [cur[0] + hub[0], cur[1] + hub[1]];
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
function rnd() {
|
|
116
|
-
return Math.random() - 0.5;
|
|
117
|
-
}
|
|
118
|
-
function lon() {
|
|
119
|
-
return rnd() * 360;
|
|
120
|
-
}
|
|
121
|
-
function lat() {
|
|
122
|
-
return rnd() * 180;
|
|
123
|
-
}
|
|
124
|
-
function coordInBBox(bbox) {
|
|
125
|
-
return [
|
|
126
|
-
Math.random() * (bbox[2] - bbox[0]) + bbox[0],
|
|
127
|
-
Math.random() * (bbox[3] - bbox[1]) + bbox[1]
|
|
128
|
-
];
|
|
129
|
-
}
|
|
130
|
-
export { randomLineString as a, randomPoint as b, randomPolygon as r };
|
package/dist/js/_@turf_rectangle-grid@6.5.0@@turf/_@turf_rectangle-grid@6.5.0@@turf.7e8b1a1f.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { b as booleanIntersects } from "../_@turf_boolean-intersects@6.5.0@@turf/_@turf_boolean-intersects@6.5.0@@turf.05fc28b3.js";
|
|
2
|
-
import { d as distance } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
|
|
3
|
-
import { a as polygon, f as featureCollection } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
4
|
-
function rectangleGrid(bbox, cellWidth, cellHeight, options) {
|
|
5
|
-
if (options === void 0) {
|
|
6
|
-
options = {};
|
|
7
|
-
}
|
|
8
|
-
var results = [];
|
|
9
|
-
var west = bbox[0];
|
|
10
|
-
var south = bbox[1];
|
|
11
|
-
var east = bbox[2];
|
|
12
|
-
var north = bbox[3];
|
|
13
|
-
var xFraction = cellWidth / distance([west, south], [east, south], options);
|
|
14
|
-
var cellWidthDeg = xFraction * (east - west);
|
|
15
|
-
var yFraction = cellHeight / distance([west, south], [west, north], options);
|
|
16
|
-
var cellHeightDeg = yFraction * (north - south);
|
|
17
|
-
var bboxWidth = east - west;
|
|
18
|
-
var bboxHeight = north - south;
|
|
19
|
-
var columns = Math.floor(bboxWidth / cellWidthDeg);
|
|
20
|
-
var rows = Math.floor(bboxHeight / cellHeightDeg);
|
|
21
|
-
var deltaX = (bboxWidth - columns * cellWidthDeg) / 2;
|
|
22
|
-
var deltaY = (bboxHeight - rows * cellHeightDeg) / 2;
|
|
23
|
-
var currentX = west + deltaX;
|
|
24
|
-
for (var column = 0; column < columns; column++) {
|
|
25
|
-
var currentY = south + deltaY;
|
|
26
|
-
for (var row = 0; row < rows; row++) {
|
|
27
|
-
var cellPoly = polygon([
|
|
28
|
-
[
|
|
29
|
-
[currentX, currentY],
|
|
30
|
-
[currentX, currentY + cellHeightDeg],
|
|
31
|
-
[currentX + cellWidthDeg, currentY + cellHeightDeg],
|
|
32
|
-
[currentX + cellWidthDeg, currentY],
|
|
33
|
-
[currentX, currentY]
|
|
34
|
-
]
|
|
35
|
-
], options.properties);
|
|
36
|
-
if (options.mask) {
|
|
37
|
-
if (booleanIntersects(options.mask, cellPoly)) {
|
|
38
|
-
results.push(cellPoly);
|
|
39
|
-
}
|
|
40
|
-
} else {
|
|
41
|
-
results.push(cellPoly);
|
|
42
|
-
}
|
|
43
|
-
currentY += cellHeightDeg;
|
|
44
|
-
}
|
|
45
|
-
currentX += cellWidthDeg;
|
|
46
|
-
}
|
|
47
|
-
return featureCollection(results);
|
|
48
|
-
}
|
|
49
|
-
export { rectangleGrid as r };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/js/_@turf_rhumb-bearing@6.5.0@@turf/_@turf_rhumb-bearing@6.5.0@@turf.fb8f6ade.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { d as degreesToRadians, r as radiansToDegrees } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
2
|
-
import { a as getCoord } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
3
|
-
function rhumbBearing(start, end, options) {
|
|
4
|
-
if (options === void 0) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
var bear360;
|
|
8
|
-
if (options.final) {
|
|
9
|
-
bear360 = calculateRhumbBearing(getCoord(end), getCoord(start));
|
|
10
|
-
} else {
|
|
11
|
-
bear360 = calculateRhumbBearing(getCoord(start), getCoord(end));
|
|
12
|
-
}
|
|
13
|
-
var bear180 = bear360 > 180 ? -(360 - bear360) : bear360;
|
|
14
|
-
return bear180;
|
|
15
|
-
}
|
|
16
|
-
function calculateRhumbBearing(from, to) {
|
|
17
|
-
var phi1 = degreesToRadians(from[1]);
|
|
18
|
-
var phi2 = degreesToRadians(to[1]);
|
|
19
|
-
var deltaLambda = degreesToRadians(to[0] - from[0]);
|
|
20
|
-
if (deltaLambda > Math.PI) {
|
|
21
|
-
deltaLambda -= 2 * Math.PI;
|
|
22
|
-
}
|
|
23
|
-
if (deltaLambda < -Math.PI) {
|
|
24
|
-
deltaLambda += 2 * Math.PI;
|
|
25
|
-
}
|
|
26
|
-
var deltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi1 / 2 + Math.PI / 4));
|
|
27
|
-
var theta = Math.atan2(deltaLambda, deltaPsi);
|
|
28
|
-
return (radiansToDegrees(theta) + 360) % 360;
|
|
29
|
-
}
|
|
30
|
-
export { rhumbBearing as r };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { q as convertLength, p as point, d as degreesToRadians, g as earthRadius } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
2
|
-
import { a as getCoord } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
3
|
-
function rhumbDestination(origin, distance, bearing, options) {
|
|
4
|
-
if (options === void 0) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
var wasNegativeDistance = distance < 0;
|
|
8
|
-
var distanceInMeters = convertLength(Math.abs(distance), options.units, "meters");
|
|
9
|
-
if (wasNegativeDistance)
|
|
10
|
-
distanceInMeters = -Math.abs(distanceInMeters);
|
|
11
|
-
var coords = getCoord(origin);
|
|
12
|
-
var destination = calculateRhumbDestination(coords, distanceInMeters, bearing);
|
|
13
|
-
destination[0] += destination[0] - coords[0] > 180 ? -360 : coords[0] - destination[0] > 180 ? 360 : 0;
|
|
14
|
-
return point(destination, options.properties);
|
|
15
|
-
}
|
|
16
|
-
function calculateRhumbDestination(origin, distance, bearing, radius) {
|
|
17
|
-
radius = radius === void 0 ? earthRadius : Number(radius);
|
|
18
|
-
var delta = distance / radius;
|
|
19
|
-
var lambda1 = origin[0] * Math.PI / 180;
|
|
20
|
-
var phi1 = degreesToRadians(origin[1]);
|
|
21
|
-
var theta = degreesToRadians(bearing);
|
|
22
|
-
var DeltaPhi = delta * Math.cos(theta);
|
|
23
|
-
var phi2 = phi1 + DeltaPhi;
|
|
24
|
-
if (Math.abs(phi2) > Math.PI / 2) {
|
|
25
|
-
phi2 = phi2 > 0 ? Math.PI - phi2 : -Math.PI - phi2;
|
|
26
|
-
}
|
|
27
|
-
var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi1 / 2 + Math.PI / 4));
|
|
28
|
-
var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi1);
|
|
29
|
-
var DeltaLambda = delta * Math.sin(theta) / q;
|
|
30
|
-
var lambda2 = lambda1 + DeltaLambda;
|
|
31
|
-
return [
|
|
32
|
-
(lambda2 * 180 / Math.PI + 540) % 360 - 180,
|
|
33
|
-
phi2 * 180 / Math.PI
|
|
34
|
-
];
|
|
35
|
-
}
|
|
36
|
-
export { rhumbDestination as r };
|
package/dist/js/_@turf_rhumb-distance@6.5.0@@turf/_@turf_rhumb-distance@6.5.0@@turf.94e475b8.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { q as convertLength, g as earthRadius } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
2
|
-
import { a as getCoord } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
3
|
-
function rhumbDistance(from, to, options) {
|
|
4
|
-
if (options === void 0) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
var origin = getCoord(from);
|
|
8
|
-
var destination = getCoord(to);
|
|
9
|
-
destination[0] += destination[0] - origin[0] > 180 ? -360 : origin[0] - destination[0] > 180 ? 360 : 0;
|
|
10
|
-
var distanceInMeters = calculateRhumbDistance(origin, destination);
|
|
11
|
-
var distance = convertLength(distanceInMeters, "meters", options.units);
|
|
12
|
-
return distance;
|
|
13
|
-
}
|
|
14
|
-
function calculateRhumbDistance(origin, destination, radius) {
|
|
15
|
-
radius = radius === void 0 ? earthRadius : Number(radius);
|
|
16
|
-
var R = radius;
|
|
17
|
-
var phi1 = origin[1] * Math.PI / 180;
|
|
18
|
-
var phi2 = destination[1] * Math.PI / 180;
|
|
19
|
-
var DeltaPhi = phi2 - phi1;
|
|
20
|
-
var DeltaLambda = Math.abs(destination[0] - origin[0]) * Math.PI / 180;
|
|
21
|
-
if (DeltaLambda > Math.PI) {
|
|
22
|
-
DeltaLambda -= 2 * Math.PI;
|
|
23
|
-
}
|
|
24
|
-
var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi1 / 2 + Math.PI / 4));
|
|
25
|
-
var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi1);
|
|
26
|
-
var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
|
|
27
|
-
var dist = delta * R;
|
|
28
|
-
return dist;
|
|
29
|
-
}
|
|
30
|
-
export { rhumbDistance as r };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { c as circle } from "../_@turf_circle@6.5.0@@turf/_@turf_circle@6.5.0@@turf.0166b8c2.js";
|
|
2
|
-
import { l as lineArc } from "../_@turf_line-arc@6.5.0@@turf/_@turf_line-arc@6.5.0@@turf.3dc57055.js";
|
|
3
|
-
import { c as coordEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
4
|
-
import { i as isObject, a as polygon } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
5
|
-
import { b as getCoords } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
6
|
-
function sector(center, radius, bearing1, bearing2, options) {
|
|
7
|
-
options = options || {};
|
|
8
|
-
if (!isObject(options))
|
|
9
|
-
throw new Error("options is invalid");
|
|
10
|
-
var properties = options.properties;
|
|
11
|
-
if (!center)
|
|
12
|
-
throw new Error("center is required");
|
|
13
|
-
if (bearing1 === void 0 || bearing1 === null)
|
|
14
|
-
throw new Error("bearing1 is required");
|
|
15
|
-
if (bearing2 === void 0 || bearing2 === null)
|
|
16
|
-
throw new Error("bearing2 is required");
|
|
17
|
-
if (!radius)
|
|
18
|
-
throw new Error("radius is required");
|
|
19
|
-
if (typeof options !== "object")
|
|
20
|
-
throw new Error("options must be an object");
|
|
21
|
-
if (convertAngleTo360(bearing1) === convertAngleTo360(bearing2)) {
|
|
22
|
-
return circle(center, radius, options);
|
|
23
|
-
}
|
|
24
|
-
var coords = getCoords(center);
|
|
25
|
-
var arc = lineArc(center, radius, bearing1, bearing2, options);
|
|
26
|
-
var sliceCoords = [[coords]];
|
|
27
|
-
coordEach(arc, function(currentCoords) {
|
|
28
|
-
sliceCoords[0].push(currentCoords);
|
|
29
|
-
});
|
|
30
|
-
sliceCoords[0].push(coords);
|
|
31
|
-
return polygon(sliceCoords, properties);
|
|
32
|
-
}
|
|
33
|
-
function convertAngleTo360(alfa) {
|
|
34
|
-
var beta = alfa % 360;
|
|
35
|
-
if (beta < 0)
|
|
36
|
-
beta += 360;
|
|
37
|
-
return beta;
|
|
38
|
-
}
|
|
39
|
-
export { sector as s };
|