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,65 +0,0 @@
|
|
|
1
|
-
import { a as getCoord, g as getGeom } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
2
|
-
function booleanPointInPolygon(point, polygon, options) {
|
|
3
|
-
if (options === void 0) {
|
|
4
|
-
options = {};
|
|
5
|
-
}
|
|
6
|
-
if (!point) {
|
|
7
|
-
throw new Error("point is required");
|
|
8
|
-
}
|
|
9
|
-
if (!polygon) {
|
|
10
|
-
throw new Error("polygon is required");
|
|
11
|
-
}
|
|
12
|
-
var pt = getCoord(point);
|
|
13
|
-
var geom = getGeom(polygon);
|
|
14
|
-
var type = geom.type;
|
|
15
|
-
var bbox = polygon.bbox;
|
|
16
|
-
var polys = geom.coordinates;
|
|
17
|
-
if (bbox && inBBox(pt, bbox) === false) {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
if (type === "Polygon") {
|
|
21
|
-
polys = [polys];
|
|
22
|
-
}
|
|
23
|
-
var insidePoly = false;
|
|
24
|
-
for (var i = 0; i < polys.length && !insidePoly; i++) {
|
|
25
|
-
if (inRing(pt, polys[i][0], options.ignoreBoundary)) {
|
|
26
|
-
var inHole = false;
|
|
27
|
-
var k = 1;
|
|
28
|
-
while (k < polys[i].length && !inHole) {
|
|
29
|
-
if (inRing(pt, polys[i][k], !options.ignoreBoundary)) {
|
|
30
|
-
inHole = true;
|
|
31
|
-
}
|
|
32
|
-
k++;
|
|
33
|
-
}
|
|
34
|
-
if (!inHole) {
|
|
35
|
-
insidePoly = true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return insidePoly;
|
|
40
|
-
}
|
|
41
|
-
function inRing(pt, ring, ignoreBoundary) {
|
|
42
|
-
var isInside = false;
|
|
43
|
-
if (ring[0][0] === ring[ring.length - 1][0] && ring[0][1] === ring[ring.length - 1][1]) {
|
|
44
|
-
ring = ring.slice(0, ring.length - 1);
|
|
45
|
-
}
|
|
46
|
-
for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {
|
|
47
|
-
var xi = ring[i][0];
|
|
48
|
-
var yi = ring[i][1];
|
|
49
|
-
var xj = ring[j][0];
|
|
50
|
-
var yj = ring[j][1];
|
|
51
|
-
var onBoundary = pt[1] * (xi - xj) + yi * (xj - pt[0]) + yj * (pt[0] - xi) === 0 && (xi - pt[0]) * (xj - pt[0]) <= 0 && (yi - pt[1]) * (yj - pt[1]) <= 0;
|
|
52
|
-
if (onBoundary) {
|
|
53
|
-
return !ignoreBoundary;
|
|
54
|
-
}
|
|
55
|
-
var intersect = yi > pt[1] !== yj > pt[1] && pt[0] < (xj - xi) * (pt[1] - yi) / (yj - yi) + xi;
|
|
56
|
-
if (intersect) {
|
|
57
|
-
isInside = !isInside;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return isInside;
|
|
61
|
-
}
|
|
62
|
-
function inBBox(pt, bbox) {
|
|
63
|
-
return bbox[0] <= pt[0] && bbox[1] <= pt[1] && bbox[2] >= pt[0] && bbox[3] >= pt[1];
|
|
64
|
-
}
|
|
65
|
-
export { booleanPointInPolygon as b };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { a as getCoord, b as getCoords } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
2
|
-
function booleanPointOnLine(pt, line, options) {
|
|
3
|
-
if (options === void 0) {
|
|
4
|
-
options = {};
|
|
5
|
-
}
|
|
6
|
-
var ptCoords = getCoord(pt);
|
|
7
|
-
var lineCoords = getCoords(line);
|
|
8
|
-
for (var i = 0; i < lineCoords.length - 1; i++) {
|
|
9
|
-
var ignoreBoundary = false;
|
|
10
|
-
if (options.ignoreEndVertices) {
|
|
11
|
-
if (i === 0) {
|
|
12
|
-
ignoreBoundary = "start";
|
|
13
|
-
}
|
|
14
|
-
if (i === lineCoords.length - 2) {
|
|
15
|
-
ignoreBoundary = "end";
|
|
16
|
-
}
|
|
17
|
-
if (i === 0 && i + 1 === lineCoords.length - 1) {
|
|
18
|
-
ignoreBoundary = "both";
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
if (isPointOnLineSegment(lineCoords[i], lineCoords[i + 1], ptCoords, ignoreBoundary, typeof options.epsilon === "undefined" ? null : options.epsilon)) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
function isPointOnLineSegment(lineSegmentStart, lineSegmentEnd, pt, excludeBoundary, epsilon) {
|
|
28
|
-
var x = pt[0];
|
|
29
|
-
var y = pt[1];
|
|
30
|
-
var x1 = lineSegmentStart[0];
|
|
31
|
-
var y1 = lineSegmentStart[1];
|
|
32
|
-
var x2 = lineSegmentEnd[0];
|
|
33
|
-
var y2 = lineSegmentEnd[1];
|
|
34
|
-
var dxc = pt[0] - x1;
|
|
35
|
-
var dyc = pt[1] - y1;
|
|
36
|
-
var dxl = x2 - x1;
|
|
37
|
-
var dyl = y2 - y1;
|
|
38
|
-
var cross = dxc * dyl - dyc * dxl;
|
|
39
|
-
if (epsilon !== null) {
|
|
40
|
-
if (Math.abs(cross) > epsilon) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
} else if (cross !== 0) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
if (!excludeBoundary) {
|
|
47
|
-
if (Math.abs(dxl) >= Math.abs(dyl)) {
|
|
48
|
-
return dxl > 0 ? x1 <= x && x <= x2 : x2 <= x && x <= x1;
|
|
49
|
-
}
|
|
50
|
-
return dyl > 0 ? y1 <= y && y <= y2 : y2 <= y && y <= y1;
|
|
51
|
-
} else if (excludeBoundary === "start") {
|
|
52
|
-
if (Math.abs(dxl) >= Math.abs(dyl)) {
|
|
53
|
-
return dxl > 0 ? x1 < x && x <= x2 : x2 <= x && x < x1;
|
|
54
|
-
}
|
|
55
|
-
return dyl > 0 ? y1 < y && y <= y2 : y2 <= y && y < y1;
|
|
56
|
-
} else if (excludeBoundary === "end") {
|
|
57
|
-
if (Math.abs(dxl) >= Math.abs(dyl)) {
|
|
58
|
-
return dxl > 0 ? x1 <= x && x < x2 : x2 < x && x <= x1;
|
|
59
|
-
}
|
|
60
|
-
return dyl > 0 ? y1 <= y && y < y2 : y2 < y && y <= y1;
|
|
61
|
-
} else if (excludeBoundary === "both") {
|
|
62
|
-
if (Math.abs(dxl) >= Math.abs(dyl)) {
|
|
63
|
-
return dxl > 0 ? x1 < x && x < x2 : x2 < x && x < x1;
|
|
64
|
-
}
|
|
65
|
-
return dyl > 0 ? y1 < y && y < y2 : y2 < y && y < y1;
|
|
66
|
-
}
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
export { booleanPointOnLine as b };
|
package/dist/js/_@turf_boolean-within@6.5.0@@turf/_@turf_boolean-within@6.5.0@@turf.d70d6bfc.js
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { b as bbox } from "../_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js";
|
|
2
|
-
import { b as booleanPointOnLine } from "../_@turf_boolean-point-on-line@6.5.0@@turf/_@turf_boolean-point-on-line@6.5.0@@turf.3cf3aaa1.js";
|
|
3
|
-
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";
|
|
4
|
-
import { g as getGeom } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
5
|
-
function booleanWithin(feature1, feature2) {
|
|
6
|
-
var geom1 = getGeom(feature1);
|
|
7
|
-
var geom2 = getGeom(feature2);
|
|
8
|
-
var type1 = geom1.type;
|
|
9
|
-
var type2 = geom2.type;
|
|
10
|
-
switch (type1) {
|
|
11
|
-
case "Point":
|
|
12
|
-
switch (type2) {
|
|
13
|
-
case "MultiPoint":
|
|
14
|
-
return isPointInMultiPoint(geom1, geom2);
|
|
15
|
-
case "LineString":
|
|
16
|
-
return booleanPointOnLine(geom1, geom2, { ignoreEndVertices: true });
|
|
17
|
-
case "Polygon":
|
|
18
|
-
case "MultiPolygon":
|
|
19
|
-
return booleanPointInPolygon(geom1, geom2, { ignoreBoundary: true });
|
|
20
|
-
default:
|
|
21
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
22
|
-
}
|
|
23
|
-
case "MultiPoint":
|
|
24
|
-
switch (type2) {
|
|
25
|
-
case "MultiPoint":
|
|
26
|
-
return isMultiPointInMultiPoint(geom1, geom2);
|
|
27
|
-
case "LineString":
|
|
28
|
-
return isMultiPointOnLine(geom1, geom2);
|
|
29
|
-
case "Polygon":
|
|
30
|
-
case "MultiPolygon":
|
|
31
|
-
return isMultiPointInPoly(geom1, geom2);
|
|
32
|
-
default:
|
|
33
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
34
|
-
}
|
|
35
|
-
case "LineString":
|
|
36
|
-
switch (type2) {
|
|
37
|
-
case "LineString":
|
|
38
|
-
return isLineOnLine(geom1, geom2);
|
|
39
|
-
case "Polygon":
|
|
40
|
-
case "MultiPolygon":
|
|
41
|
-
return isLineInPoly(geom1, geom2);
|
|
42
|
-
default:
|
|
43
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
44
|
-
}
|
|
45
|
-
case "Polygon":
|
|
46
|
-
switch (type2) {
|
|
47
|
-
case "Polygon":
|
|
48
|
-
case "MultiPolygon":
|
|
49
|
-
return isPolyInPoly(geom1, geom2);
|
|
50
|
-
default:
|
|
51
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
52
|
-
}
|
|
53
|
-
default:
|
|
54
|
-
throw new Error("feature1 " + type1 + " geometry not supported");
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function isPointInMultiPoint(point, multiPoint) {
|
|
58
|
-
var i;
|
|
59
|
-
var output = false;
|
|
60
|
-
for (i = 0; i < multiPoint.coordinates.length; i++) {
|
|
61
|
-
if (compareCoords(multiPoint.coordinates[i], point.coordinates)) {
|
|
62
|
-
output = true;
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return output;
|
|
67
|
-
}
|
|
68
|
-
function isMultiPointInMultiPoint(multiPoint1, multiPoint2) {
|
|
69
|
-
for (var i = 0; i < multiPoint1.coordinates.length; i++) {
|
|
70
|
-
var anyMatch = false;
|
|
71
|
-
for (var i2 = 0; i2 < multiPoint2.coordinates.length; i2++) {
|
|
72
|
-
if (compareCoords(multiPoint1.coordinates[i], multiPoint2.coordinates[i2])) {
|
|
73
|
-
anyMatch = true;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
if (!anyMatch) {
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
function isMultiPointOnLine(multiPoint, lineString) {
|
|
83
|
-
var foundInsidePoint = false;
|
|
84
|
-
for (var i = 0; i < multiPoint.coordinates.length; i++) {
|
|
85
|
-
if (!booleanPointOnLine(multiPoint.coordinates[i], lineString)) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
if (!foundInsidePoint) {
|
|
89
|
-
foundInsidePoint = booleanPointOnLine(multiPoint.coordinates[i], lineString, { ignoreEndVertices: true });
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return foundInsidePoint;
|
|
93
|
-
}
|
|
94
|
-
function isMultiPointInPoly(multiPoint, polygon) {
|
|
95
|
-
var output = true;
|
|
96
|
-
var isInside = false;
|
|
97
|
-
for (var i = 0; i < multiPoint.coordinates.length; i++) {
|
|
98
|
-
isInside = booleanPointInPolygon(multiPoint.coordinates[1], polygon);
|
|
99
|
-
if (!isInside) {
|
|
100
|
-
output = false;
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
{
|
|
104
|
-
isInside = booleanPointInPolygon(multiPoint.coordinates[1], polygon, {
|
|
105
|
-
ignoreBoundary: true
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return output && isInside;
|
|
110
|
-
}
|
|
111
|
-
function isLineOnLine(lineString1, lineString2) {
|
|
112
|
-
for (var i = 0; i < lineString1.coordinates.length; i++) {
|
|
113
|
-
if (!booleanPointOnLine(lineString1.coordinates[i], lineString2)) {
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return true;
|
|
118
|
-
}
|
|
119
|
-
function isLineInPoly(linestring, polygon) {
|
|
120
|
-
var polyBbox = bbox(polygon);
|
|
121
|
-
var lineBbox = bbox(linestring);
|
|
122
|
-
if (!doBBoxOverlap(polyBbox, lineBbox)) {
|
|
123
|
-
return false;
|
|
124
|
-
}
|
|
125
|
-
var foundInsidePoint = false;
|
|
126
|
-
for (var i = 0; i < linestring.coordinates.length - 1; i++) {
|
|
127
|
-
if (!booleanPointInPolygon(linestring.coordinates[i], polygon)) {
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
if (!foundInsidePoint) {
|
|
131
|
-
foundInsidePoint = booleanPointInPolygon(linestring.coordinates[i], polygon, { ignoreBoundary: true });
|
|
132
|
-
}
|
|
133
|
-
if (!foundInsidePoint) {
|
|
134
|
-
var midpoint = getMidpoint(linestring.coordinates[i], linestring.coordinates[i + 1]);
|
|
135
|
-
foundInsidePoint = booleanPointInPolygon(midpoint, polygon, {
|
|
136
|
-
ignoreBoundary: true
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return foundInsidePoint;
|
|
141
|
-
}
|
|
142
|
-
function isPolyInPoly(geometry1, geometry2) {
|
|
143
|
-
var poly1Bbox = bbox(geometry1);
|
|
144
|
-
var poly2Bbox = bbox(geometry2);
|
|
145
|
-
if (!doBBoxOverlap(poly2Bbox, poly1Bbox)) {
|
|
146
|
-
return false;
|
|
147
|
-
}
|
|
148
|
-
for (var i = 0; i < geometry1.coordinates[0].length; i++) {
|
|
149
|
-
if (!booleanPointInPolygon(geometry1.coordinates[0][i], geometry2)) {
|
|
150
|
-
return false;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return true;
|
|
154
|
-
}
|
|
155
|
-
function doBBoxOverlap(bbox1, bbox2) {
|
|
156
|
-
if (bbox1[0] > bbox2[0])
|
|
157
|
-
return false;
|
|
158
|
-
if (bbox1[2] < bbox2[2])
|
|
159
|
-
return false;
|
|
160
|
-
if (bbox1[1] > bbox2[1])
|
|
161
|
-
return false;
|
|
162
|
-
if (bbox1[3] < bbox2[3])
|
|
163
|
-
return false;
|
|
164
|
-
return true;
|
|
165
|
-
}
|
|
166
|
-
function compareCoords(pair1, pair2) {
|
|
167
|
-
return pair1[0] === pair2[0] && pair1[1] === pair2[1];
|
|
168
|
-
}
|
|
169
|
-
function getMidpoint(pair1, pair2) {
|
|
170
|
-
return [(pair1[0] + pair2[0]) / 2, (pair1[1] + pair2[1]) / 2];
|
|
171
|
-
}
|
|
172
|
-
export { booleanWithin as b };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { c as center } from "../_@turf_center@6.5.0@@turf/_@turf_center@6.5.0@@turf.a45495b5.js";
|
|
2
|
-
import { G as GeoJSONReader, B as BufferOp, a as GeoJSONWriter } from "../_turf-jsts@1.2.3@turf-jsts/_turf-jsts@1.2.3@turf-jsts.6ef42696.js";
|
|
3
|
-
import { a as featureEach, b as geomEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
4
|
-
import { g as geoAzimuthalEquidistant } from "../_d3-geo@1.7.1@d3-geo/_d3-geo@1.7.1@d3-geo.7d357be1.js";
|
|
5
|
-
import "../_d3-array@1.2.4@d3-array/_d3-array@1.2.4@d3-array.d606df6b.js";
|
|
6
|
-
import { f as featureCollection, b as radiansToLength, c as lengthToRadians, e as feature, g as earthRadius } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
7
|
-
function buffer(geojson, radius, options) {
|
|
8
|
-
options = options || {};
|
|
9
|
-
var units = options.units || "kilometers";
|
|
10
|
-
var steps = options.steps || 8;
|
|
11
|
-
if (!geojson)
|
|
12
|
-
throw new Error("geojson is required");
|
|
13
|
-
if (typeof options !== "object")
|
|
14
|
-
throw new Error("options must be an object");
|
|
15
|
-
if (typeof steps !== "number")
|
|
16
|
-
throw new Error("steps must be an number");
|
|
17
|
-
if (radius === void 0)
|
|
18
|
-
throw new Error("radius is required");
|
|
19
|
-
if (steps <= 0)
|
|
20
|
-
throw new Error("steps must be greater than 0");
|
|
21
|
-
var results = [];
|
|
22
|
-
switch (geojson.type) {
|
|
23
|
-
case "GeometryCollection":
|
|
24
|
-
geomEach(geojson, function(geometry) {
|
|
25
|
-
var buffered = bufferFeature(geometry, radius, units, steps);
|
|
26
|
-
if (buffered)
|
|
27
|
-
results.push(buffered);
|
|
28
|
-
});
|
|
29
|
-
return featureCollection(results);
|
|
30
|
-
case "FeatureCollection":
|
|
31
|
-
featureEach(geojson, function(feature2) {
|
|
32
|
-
var multiBuffered = bufferFeature(feature2, radius, units, steps);
|
|
33
|
-
if (multiBuffered) {
|
|
34
|
-
featureEach(multiBuffered, function(buffered) {
|
|
35
|
-
if (buffered)
|
|
36
|
-
results.push(buffered);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
return featureCollection(results);
|
|
41
|
-
}
|
|
42
|
-
return bufferFeature(geojson, radius, units, steps);
|
|
43
|
-
}
|
|
44
|
-
function bufferFeature(geojson, radius, units, steps) {
|
|
45
|
-
var properties = geojson.properties || {};
|
|
46
|
-
var geometry = geojson.type === "Feature" ? geojson.geometry : geojson;
|
|
47
|
-
if (geometry.type === "GeometryCollection") {
|
|
48
|
-
var results = [];
|
|
49
|
-
geomEach(geojson, function(geometry2) {
|
|
50
|
-
var buffered2 = bufferFeature(geometry2, radius, units, steps);
|
|
51
|
-
if (buffered2)
|
|
52
|
-
results.push(buffered2);
|
|
53
|
-
});
|
|
54
|
-
return featureCollection(results);
|
|
55
|
-
}
|
|
56
|
-
var projection = defineProjection(geometry);
|
|
57
|
-
var projected = {
|
|
58
|
-
type: geometry.type,
|
|
59
|
-
coordinates: projectCoords(geometry.coordinates, projection)
|
|
60
|
-
};
|
|
61
|
-
var reader = new GeoJSONReader();
|
|
62
|
-
var geom = reader.read(projected);
|
|
63
|
-
var distance = radiansToLength(lengthToRadians(radius, units), "meters");
|
|
64
|
-
var buffered = BufferOp.bufferOp(geom, distance, steps);
|
|
65
|
-
var writer = new GeoJSONWriter();
|
|
66
|
-
buffered = writer.write(buffered);
|
|
67
|
-
if (coordsIsNaN(buffered.coordinates))
|
|
68
|
-
return void 0;
|
|
69
|
-
var result = {
|
|
70
|
-
type: buffered.type,
|
|
71
|
-
coordinates: unprojectCoords(buffered.coordinates, projection)
|
|
72
|
-
};
|
|
73
|
-
return feature(result, properties);
|
|
74
|
-
}
|
|
75
|
-
function coordsIsNaN(coords) {
|
|
76
|
-
if (Array.isArray(coords[0]))
|
|
77
|
-
return coordsIsNaN(coords[0]);
|
|
78
|
-
return isNaN(coords[0]);
|
|
79
|
-
}
|
|
80
|
-
function projectCoords(coords, proj) {
|
|
81
|
-
if (typeof coords[0] !== "object")
|
|
82
|
-
return proj(coords);
|
|
83
|
-
return coords.map(function(coord) {
|
|
84
|
-
return projectCoords(coord, proj);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function unprojectCoords(coords, proj) {
|
|
88
|
-
if (typeof coords[0] !== "object")
|
|
89
|
-
return proj.invert(coords);
|
|
90
|
-
return coords.map(function(coord) {
|
|
91
|
-
return unprojectCoords(coord, proj);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function defineProjection(geojson) {
|
|
95
|
-
var coords = center(geojson).geometry.coordinates;
|
|
96
|
-
var rotation = [-coords[0], -coords[1]];
|
|
97
|
-
return geoAzimuthalEquidistant().rotate(rotation).scale(earthRadius);
|
|
98
|
-
}
|
|
99
|
-
export { buffer as b };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/js/_@turf_center-median@6.5.0@@turf/_@turf_center-median@6.5.0@@turf.44c4669e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/js/_@turf_center-of-mass@6.5.0@@turf/_@turf_center-of-mass@6.5.0@@turf.63ce279e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { b as bbox } from "../_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js";
|
|
2
|
-
import { p as point } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
3
|
-
function center(geojson, options) {
|
|
4
|
-
if (options === void 0) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
var ext = bbox(geojson);
|
|
8
|
-
var x = (ext[0] + ext[2]) / 2;
|
|
9
|
-
var y = (ext[1] + ext[3]) / 2;
|
|
10
|
-
return point([x, y], options.properties, options);
|
|
11
|
-
}
|
|
12
|
-
export { center as c };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { c as coordEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
2
|
-
import { p as point } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
3
|
-
function centroid(geojson, options) {
|
|
4
|
-
if (options === void 0) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
var xSum = 0;
|
|
8
|
-
var ySum = 0;
|
|
9
|
-
var len = 0;
|
|
10
|
-
coordEach(geojson, function(coord) {
|
|
11
|
-
xSum += coord[0];
|
|
12
|
-
ySum += coord[1];
|
|
13
|
-
len++;
|
|
14
|
-
}, true);
|
|
15
|
-
return point([xSum / len, ySum / len], options.properties);
|
|
16
|
-
}
|
|
17
|
-
export { centroid as c };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { d as destination } from "../_@turf_destination@6.5.0@@turf/_@turf_destination@6.5.0@@turf.2621651e.js";
|
|
2
|
-
import { a as polygon } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
3
|
-
function circle(center, radius, options) {
|
|
4
|
-
if (options === void 0) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
var steps = options.steps || 64;
|
|
8
|
-
var properties = options.properties ? options.properties : !Array.isArray(center) && center.type === "Feature" && center.properties ? center.properties : {};
|
|
9
|
-
var coordinates = [];
|
|
10
|
-
for (var i = 0; i < steps; i++) {
|
|
11
|
-
coordinates.push(destination(center, radius, i * -360 / steps, options).geometry.coordinates);
|
|
12
|
-
}
|
|
13
|
-
coordinates.push(coordinates[0]);
|
|
14
|
-
return polygon([coordinates], properties);
|
|
15
|
-
}
|
|
16
|
-
export { circle as c };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { e as feature } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
2
|
-
import { c as getType, b as getCoords } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
3
|
-
function cleanCoords(geojson, options) {
|
|
4
|
-
if (options === void 0) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
var mutate = typeof options === "object" ? options.mutate : options;
|
|
8
|
-
if (!geojson)
|
|
9
|
-
throw new Error("geojson is required");
|
|
10
|
-
var type = getType(geojson);
|
|
11
|
-
var newCoords = [];
|
|
12
|
-
switch (type) {
|
|
13
|
-
case "LineString":
|
|
14
|
-
newCoords = cleanLine(geojson);
|
|
15
|
-
break;
|
|
16
|
-
case "MultiLineString":
|
|
17
|
-
case "Polygon":
|
|
18
|
-
getCoords(geojson).forEach(function(line) {
|
|
19
|
-
newCoords.push(cleanLine(line));
|
|
20
|
-
});
|
|
21
|
-
break;
|
|
22
|
-
case "MultiPolygon":
|
|
23
|
-
getCoords(geojson).forEach(function(polygons) {
|
|
24
|
-
var polyPoints = [];
|
|
25
|
-
polygons.forEach(function(ring) {
|
|
26
|
-
polyPoints.push(cleanLine(ring));
|
|
27
|
-
});
|
|
28
|
-
newCoords.push(polyPoints);
|
|
29
|
-
});
|
|
30
|
-
break;
|
|
31
|
-
case "Point":
|
|
32
|
-
return geojson;
|
|
33
|
-
case "MultiPoint":
|
|
34
|
-
var existing = {};
|
|
35
|
-
getCoords(geojson).forEach(function(coord) {
|
|
36
|
-
var key = coord.join("-");
|
|
37
|
-
if (!Object.prototype.hasOwnProperty.call(existing, key)) {
|
|
38
|
-
newCoords.push(coord);
|
|
39
|
-
existing[key] = true;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
break;
|
|
43
|
-
default:
|
|
44
|
-
throw new Error(type + " geometry not supported");
|
|
45
|
-
}
|
|
46
|
-
if (geojson.coordinates) {
|
|
47
|
-
if (mutate === true) {
|
|
48
|
-
geojson.coordinates = newCoords;
|
|
49
|
-
return geojson;
|
|
50
|
-
}
|
|
51
|
-
return { type, coordinates: newCoords };
|
|
52
|
-
} else {
|
|
53
|
-
if (mutate === true) {
|
|
54
|
-
geojson.geometry.coordinates = newCoords;
|
|
55
|
-
return geojson;
|
|
56
|
-
}
|
|
57
|
-
return feature({ type, coordinates: newCoords }, geojson.properties, {
|
|
58
|
-
bbox: geojson.bbox,
|
|
59
|
-
id: geojson.id
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function cleanLine(line) {
|
|
64
|
-
var points = getCoords(line);
|
|
65
|
-
if (points.length === 2 && !equals(points[0], points[1]))
|
|
66
|
-
return points;
|
|
67
|
-
var newPoints = [];
|
|
68
|
-
var secondToLast = points.length - 1;
|
|
69
|
-
var newPointsLength = newPoints.length;
|
|
70
|
-
newPoints.push(points[0]);
|
|
71
|
-
for (var i = 1; i < secondToLast; i++) {
|
|
72
|
-
var prevAddedPoint = newPoints[newPoints.length - 1];
|
|
73
|
-
if (points[i][0] === prevAddedPoint[0] && points[i][1] === prevAddedPoint[1])
|
|
74
|
-
continue;
|
|
75
|
-
else {
|
|
76
|
-
newPoints.push(points[i]);
|
|
77
|
-
newPointsLength = newPoints.length;
|
|
78
|
-
if (newPointsLength > 2) {
|
|
79
|
-
if (isPointOnLineSegment(newPoints[newPointsLength - 3], newPoints[newPointsLength - 1], newPoints[newPointsLength - 2]))
|
|
80
|
-
newPoints.splice(newPoints.length - 2, 1);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
newPoints.push(points[points.length - 1]);
|
|
85
|
-
newPointsLength = newPoints.length;
|
|
86
|
-
if (equals(points[0], points[points.length - 1]) && newPointsLength < 4)
|
|
87
|
-
throw new Error("invalid polygon");
|
|
88
|
-
if (isPointOnLineSegment(newPoints[newPointsLength - 3], newPoints[newPointsLength - 1], newPoints[newPointsLength - 2]))
|
|
89
|
-
newPoints.splice(newPoints.length - 2, 1);
|
|
90
|
-
return newPoints;
|
|
91
|
-
}
|
|
92
|
-
function equals(pt1, pt2) {
|
|
93
|
-
return pt1[0] === pt2[0] && pt1[1] === pt2[1];
|
|
94
|
-
}
|
|
95
|
-
function isPointOnLineSegment(start, end, point) {
|
|
96
|
-
var x = point[0], y = point[1];
|
|
97
|
-
var startX = start[0], startY = start[1];
|
|
98
|
-
var endX = end[0], endY = end[1];
|
|
99
|
-
var dxc = x - startX;
|
|
100
|
-
var dyc = y - startY;
|
|
101
|
-
var dxl = endX - startX;
|
|
102
|
-
var dyl = endY - startY;
|
|
103
|
-
var cross = dxc * dyl - dyc * dxl;
|
|
104
|
-
if (cross !== 0)
|
|
105
|
-
return false;
|
|
106
|
-
else if (Math.abs(dxl) >= Math.abs(dyl))
|
|
107
|
-
return dxl > 0 ? startX <= x && x <= endX : endX <= x && x <= startX;
|
|
108
|
-
else
|
|
109
|
-
return dyl > 0 ? startY <= y && y <= endY : endY <= y && y <= startY;
|
|
110
|
-
}
|
|
111
|
-
export { cleanCoords as c };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
function clone(geojson) {
|
|
2
|
-
if (!geojson) {
|
|
3
|
-
throw new Error("geojson is required");
|
|
4
|
-
}
|
|
5
|
-
switch (geojson.type) {
|
|
6
|
-
case "Feature":
|
|
7
|
-
return cloneFeature(geojson);
|
|
8
|
-
case "FeatureCollection":
|
|
9
|
-
return cloneFeatureCollection(geojson);
|
|
10
|
-
case "Point":
|
|
11
|
-
case "LineString":
|
|
12
|
-
case "Polygon":
|
|
13
|
-
case "MultiPoint":
|
|
14
|
-
case "MultiLineString":
|
|
15
|
-
case "MultiPolygon":
|
|
16
|
-
case "GeometryCollection":
|
|
17
|
-
return cloneGeometry(geojson);
|
|
18
|
-
default:
|
|
19
|
-
throw new Error("unknown GeoJSON type");
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function cloneFeature(geojson) {
|
|
23
|
-
var cloned = { type: "Feature" };
|
|
24
|
-
Object.keys(geojson).forEach(function(key) {
|
|
25
|
-
switch (key) {
|
|
26
|
-
case "type":
|
|
27
|
-
case "properties":
|
|
28
|
-
case "geometry":
|
|
29
|
-
return;
|
|
30
|
-
default:
|
|
31
|
-
cloned[key] = geojson[key];
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
cloned.properties = cloneProperties(geojson.properties);
|
|
35
|
-
cloned.geometry = cloneGeometry(geojson.geometry);
|
|
36
|
-
return cloned;
|
|
37
|
-
}
|
|
38
|
-
function cloneProperties(properties) {
|
|
39
|
-
var cloned = {};
|
|
40
|
-
if (!properties) {
|
|
41
|
-
return cloned;
|
|
42
|
-
}
|
|
43
|
-
Object.keys(properties).forEach(function(key) {
|
|
44
|
-
var value = properties[key];
|
|
45
|
-
if (typeof value === "object") {
|
|
46
|
-
if (value === null) {
|
|
47
|
-
cloned[key] = null;
|
|
48
|
-
} else if (Array.isArray(value)) {
|
|
49
|
-
cloned[key] = value.map(function(item) {
|
|
50
|
-
return item;
|
|
51
|
-
});
|
|
52
|
-
} else {
|
|
53
|
-
cloned[key] = cloneProperties(value);
|
|
54
|
-
}
|
|
55
|
-
} else {
|
|
56
|
-
cloned[key] = value;
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
return cloned;
|
|
60
|
-
}
|
|
61
|
-
function cloneFeatureCollection(geojson) {
|
|
62
|
-
var cloned = { type: "FeatureCollection" };
|
|
63
|
-
Object.keys(geojson).forEach(function(key) {
|
|
64
|
-
switch (key) {
|
|
65
|
-
case "type":
|
|
66
|
-
case "features":
|
|
67
|
-
return;
|
|
68
|
-
default:
|
|
69
|
-
cloned[key] = geojson[key];
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
cloned.features = geojson.features.map(function(feature) {
|
|
73
|
-
return cloneFeature(feature);
|
|
74
|
-
});
|
|
75
|
-
return cloned;
|
|
76
|
-
}
|
|
77
|
-
function cloneGeometry(geometry) {
|
|
78
|
-
var geom = { type: geometry.type };
|
|
79
|
-
if (geometry.bbox) {
|
|
80
|
-
geom.bbox = geometry.bbox;
|
|
81
|
-
}
|
|
82
|
-
if (geometry.type === "GeometryCollection") {
|
|
83
|
-
geom.geometries = geometry.geometries.map(function(g) {
|
|
84
|
-
return cloneGeometry(g);
|
|
85
|
-
});
|
|
86
|
-
return geom;
|
|
87
|
-
}
|
|
88
|
-
geom.coordinates = deepSlice(geometry.coordinates);
|
|
89
|
-
return geom;
|
|
90
|
-
}
|
|
91
|
-
function deepSlice(coords) {
|
|
92
|
-
var cloned = coords;
|
|
93
|
-
if (typeof cloned[0] !== "object") {
|
|
94
|
-
return cloned.slice();
|
|
95
|
-
}
|
|
96
|
-
return cloned.map(function(coord) {
|
|
97
|
-
return deepSlice(coord);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
export { clone as c };
|
package/dist/js/_@turf_clusters-dbscan@6.5.0@@turf/_@turf_clusters-dbscan@6.5.0@@turf.6bbee7e9.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/js/_@turf_clusters-kmeans@6.5.0@@turf/_@turf_clusters-kmeans@6.5.0@@turf.505415df.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|