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,611 +0,0 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace } from "../_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js";
|
|
2
|
-
import { e as feature, l as lineString, i as isObject, p as point } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
3
|
-
function coordEach(geojson, callback, excludeWrapCoord) {
|
|
4
|
-
if (geojson === null)
|
|
5
|
-
return;
|
|
6
|
-
var j, k, l, geometry, stopG, coords, geometryMaybeCollection, wrapShrink = 0, coordIndex = 0, isGeometryCollection, type = geojson.type, isFeatureCollection = type === "FeatureCollection", isFeature = type === "Feature", stop = isFeatureCollection ? geojson.features.length : 1;
|
|
7
|
-
for (var featureIndex = 0; featureIndex < stop; featureIndex++) {
|
|
8
|
-
geometryMaybeCollection = isFeatureCollection ? geojson.features[featureIndex].geometry : isFeature ? geojson.geometry : geojson;
|
|
9
|
-
isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === "GeometryCollection" : false;
|
|
10
|
-
stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;
|
|
11
|
-
for (var geomIndex = 0; geomIndex < stopG; geomIndex++) {
|
|
12
|
-
var multiFeatureIndex = 0;
|
|
13
|
-
var geometryIndex = 0;
|
|
14
|
-
geometry = isGeometryCollection ? geometryMaybeCollection.geometries[geomIndex] : geometryMaybeCollection;
|
|
15
|
-
if (geometry === null)
|
|
16
|
-
continue;
|
|
17
|
-
coords = geometry.coordinates;
|
|
18
|
-
var geomType = geometry.type;
|
|
19
|
-
wrapShrink = excludeWrapCoord && (geomType === "Polygon" || geomType === "MultiPolygon") ? 1 : 0;
|
|
20
|
-
switch (geomType) {
|
|
21
|
-
case null:
|
|
22
|
-
break;
|
|
23
|
-
case "Point":
|
|
24
|
-
if (callback(
|
|
25
|
-
coords,
|
|
26
|
-
coordIndex,
|
|
27
|
-
featureIndex,
|
|
28
|
-
multiFeatureIndex,
|
|
29
|
-
geometryIndex
|
|
30
|
-
) === false)
|
|
31
|
-
return false;
|
|
32
|
-
coordIndex++;
|
|
33
|
-
multiFeatureIndex++;
|
|
34
|
-
break;
|
|
35
|
-
case "LineString":
|
|
36
|
-
case "MultiPoint":
|
|
37
|
-
for (j = 0; j < coords.length; j++) {
|
|
38
|
-
if (callback(
|
|
39
|
-
coords[j],
|
|
40
|
-
coordIndex,
|
|
41
|
-
featureIndex,
|
|
42
|
-
multiFeatureIndex,
|
|
43
|
-
geometryIndex
|
|
44
|
-
) === false)
|
|
45
|
-
return false;
|
|
46
|
-
coordIndex++;
|
|
47
|
-
if (geomType === "MultiPoint")
|
|
48
|
-
multiFeatureIndex++;
|
|
49
|
-
}
|
|
50
|
-
if (geomType === "LineString")
|
|
51
|
-
multiFeatureIndex++;
|
|
52
|
-
break;
|
|
53
|
-
case "Polygon":
|
|
54
|
-
case "MultiLineString":
|
|
55
|
-
for (j = 0; j < coords.length; j++) {
|
|
56
|
-
for (k = 0; k < coords[j].length - wrapShrink; k++) {
|
|
57
|
-
if (callback(
|
|
58
|
-
coords[j][k],
|
|
59
|
-
coordIndex,
|
|
60
|
-
featureIndex,
|
|
61
|
-
multiFeatureIndex,
|
|
62
|
-
geometryIndex
|
|
63
|
-
) === false)
|
|
64
|
-
return false;
|
|
65
|
-
coordIndex++;
|
|
66
|
-
}
|
|
67
|
-
if (geomType === "MultiLineString")
|
|
68
|
-
multiFeatureIndex++;
|
|
69
|
-
if (geomType === "Polygon")
|
|
70
|
-
geometryIndex++;
|
|
71
|
-
}
|
|
72
|
-
if (geomType === "Polygon")
|
|
73
|
-
multiFeatureIndex++;
|
|
74
|
-
break;
|
|
75
|
-
case "MultiPolygon":
|
|
76
|
-
for (j = 0; j < coords.length; j++) {
|
|
77
|
-
geometryIndex = 0;
|
|
78
|
-
for (k = 0; k < coords[j].length; k++) {
|
|
79
|
-
for (l = 0; l < coords[j][k].length - wrapShrink; l++) {
|
|
80
|
-
if (callback(
|
|
81
|
-
coords[j][k][l],
|
|
82
|
-
coordIndex,
|
|
83
|
-
featureIndex,
|
|
84
|
-
multiFeatureIndex,
|
|
85
|
-
geometryIndex
|
|
86
|
-
) === false)
|
|
87
|
-
return false;
|
|
88
|
-
coordIndex++;
|
|
89
|
-
}
|
|
90
|
-
geometryIndex++;
|
|
91
|
-
}
|
|
92
|
-
multiFeatureIndex++;
|
|
93
|
-
}
|
|
94
|
-
break;
|
|
95
|
-
case "GeometryCollection":
|
|
96
|
-
for (j = 0; j < geometry.geometries.length; j++)
|
|
97
|
-
if (coordEach(geometry.geometries[j], callback, excludeWrapCoord) === false)
|
|
98
|
-
return false;
|
|
99
|
-
break;
|
|
100
|
-
default:
|
|
101
|
-
throw new Error("Unknown Geometry Type");
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function coordReduce(geojson, callback, initialValue, excludeWrapCoord) {
|
|
107
|
-
var previousValue = initialValue;
|
|
108
|
-
coordEach(
|
|
109
|
-
geojson,
|
|
110
|
-
function(currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) {
|
|
111
|
-
if (coordIndex === 0 && initialValue === void 0)
|
|
112
|
-
previousValue = currentCoord;
|
|
113
|
-
else
|
|
114
|
-
previousValue = callback(
|
|
115
|
-
previousValue,
|
|
116
|
-
currentCoord,
|
|
117
|
-
coordIndex,
|
|
118
|
-
featureIndex,
|
|
119
|
-
multiFeatureIndex,
|
|
120
|
-
geometryIndex
|
|
121
|
-
);
|
|
122
|
-
},
|
|
123
|
-
excludeWrapCoord
|
|
124
|
-
);
|
|
125
|
-
return previousValue;
|
|
126
|
-
}
|
|
127
|
-
function propEach(geojson, callback) {
|
|
128
|
-
var i;
|
|
129
|
-
switch (geojson.type) {
|
|
130
|
-
case "FeatureCollection":
|
|
131
|
-
for (i = 0; i < geojson.features.length; i++) {
|
|
132
|
-
if (callback(geojson.features[i].properties, i) === false)
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
break;
|
|
136
|
-
case "Feature":
|
|
137
|
-
callback(geojson.properties, 0);
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function propReduce(geojson, callback, initialValue) {
|
|
142
|
-
var previousValue = initialValue;
|
|
143
|
-
propEach(geojson, function(currentProperties, featureIndex) {
|
|
144
|
-
if (featureIndex === 0 && initialValue === void 0)
|
|
145
|
-
previousValue = currentProperties;
|
|
146
|
-
else
|
|
147
|
-
previousValue = callback(previousValue, currentProperties, featureIndex);
|
|
148
|
-
});
|
|
149
|
-
return previousValue;
|
|
150
|
-
}
|
|
151
|
-
function featureEach(geojson, callback) {
|
|
152
|
-
if (geojson.type === "Feature") {
|
|
153
|
-
callback(geojson, 0);
|
|
154
|
-
} else if (geojson.type === "FeatureCollection") {
|
|
155
|
-
for (var i = 0; i < geojson.features.length; i++) {
|
|
156
|
-
if (callback(geojson.features[i], i) === false)
|
|
157
|
-
break;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function featureReduce(geojson, callback, initialValue) {
|
|
162
|
-
var previousValue = initialValue;
|
|
163
|
-
featureEach(geojson, function(currentFeature, featureIndex) {
|
|
164
|
-
if (featureIndex === 0 && initialValue === void 0)
|
|
165
|
-
previousValue = currentFeature;
|
|
166
|
-
else
|
|
167
|
-
previousValue = callback(previousValue, currentFeature, featureIndex);
|
|
168
|
-
});
|
|
169
|
-
return previousValue;
|
|
170
|
-
}
|
|
171
|
-
function coordAll(geojson) {
|
|
172
|
-
var coords = [];
|
|
173
|
-
coordEach(geojson, function(coord) {
|
|
174
|
-
coords.push(coord);
|
|
175
|
-
});
|
|
176
|
-
return coords;
|
|
177
|
-
}
|
|
178
|
-
function geomEach(geojson, callback) {
|
|
179
|
-
var i, j, g, geometry, stopG, geometryMaybeCollection, isGeometryCollection, featureProperties, featureBBox, featureId, featureIndex = 0, isFeatureCollection = geojson.type === "FeatureCollection", isFeature = geojson.type === "Feature", stop = isFeatureCollection ? geojson.features.length : 1;
|
|
180
|
-
for (i = 0; i < stop; i++) {
|
|
181
|
-
geometryMaybeCollection = isFeatureCollection ? geojson.features[i].geometry : isFeature ? geojson.geometry : geojson;
|
|
182
|
-
featureProperties = isFeatureCollection ? geojson.features[i].properties : isFeature ? geojson.properties : {};
|
|
183
|
-
featureBBox = isFeatureCollection ? geojson.features[i].bbox : isFeature ? geojson.bbox : void 0;
|
|
184
|
-
featureId = isFeatureCollection ? geojson.features[i].id : isFeature ? geojson.id : void 0;
|
|
185
|
-
isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === "GeometryCollection" : false;
|
|
186
|
-
stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;
|
|
187
|
-
for (g = 0; g < stopG; g++) {
|
|
188
|
-
geometry = isGeometryCollection ? geometryMaybeCollection.geometries[g] : geometryMaybeCollection;
|
|
189
|
-
if (geometry === null) {
|
|
190
|
-
if (callback(
|
|
191
|
-
null,
|
|
192
|
-
featureIndex,
|
|
193
|
-
featureProperties,
|
|
194
|
-
featureBBox,
|
|
195
|
-
featureId
|
|
196
|
-
) === false)
|
|
197
|
-
return false;
|
|
198
|
-
continue;
|
|
199
|
-
}
|
|
200
|
-
switch (geometry.type) {
|
|
201
|
-
case "Point":
|
|
202
|
-
case "LineString":
|
|
203
|
-
case "MultiPoint":
|
|
204
|
-
case "Polygon":
|
|
205
|
-
case "MultiLineString":
|
|
206
|
-
case "MultiPolygon": {
|
|
207
|
-
if (callback(
|
|
208
|
-
geometry,
|
|
209
|
-
featureIndex,
|
|
210
|
-
featureProperties,
|
|
211
|
-
featureBBox,
|
|
212
|
-
featureId
|
|
213
|
-
) === false)
|
|
214
|
-
return false;
|
|
215
|
-
break;
|
|
216
|
-
}
|
|
217
|
-
case "GeometryCollection": {
|
|
218
|
-
for (j = 0; j < geometry.geometries.length; j++) {
|
|
219
|
-
if (callback(
|
|
220
|
-
geometry.geometries[j],
|
|
221
|
-
featureIndex,
|
|
222
|
-
featureProperties,
|
|
223
|
-
featureBBox,
|
|
224
|
-
featureId
|
|
225
|
-
) === false)
|
|
226
|
-
return false;
|
|
227
|
-
}
|
|
228
|
-
break;
|
|
229
|
-
}
|
|
230
|
-
default:
|
|
231
|
-
throw new Error("Unknown Geometry Type");
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
featureIndex++;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
function geomReduce(geojson, callback, initialValue) {
|
|
238
|
-
var previousValue = initialValue;
|
|
239
|
-
geomEach(
|
|
240
|
-
geojson,
|
|
241
|
-
function(currentGeometry, featureIndex, featureProperties, featureBBox, featureId) {
|
|
242
|
-
if (featureIndex === 0 && initialValue === void 0)
|
|
243
|
-
previousValue = currentGeometry;
|
|
244
|
-
else
|
|
245
|
-
previousValue = callback(
|
|
246
|
-
previousValue,
|
|
247
|
-
currentGeometry,
|
|
248
|
-
featureIndex,
|
|
249
|
-
featureProperties,
|
|
250
|
-
featureBBox,
|
|
251
|
-
featureId
|
|
252
|
-
);
|
|
253
|
-
}
|
|
254
|
-
);
|
|
255
|
-
return previousValue;
|
|
256
|
-
}
|
|
257
|
-
function flattenEach(geojson, callback) {
|
|
258
|
-
geomEach(geojson, function(geometry, featureIndex, properties, bbox, id) {
|
|
259
|
-
var type = geometry === null ? null : geometry.type;
|
|
260
|
-
switch (type) {
|
|
261
|
-
case null:
|
|
262
|
-
case "Point":
|
|
263
|
-
case "LineString":
|
|
264
|
-
case "Polygon":
|
|
265
|
-
if (callback(
|
|
266
|
-
feature(geometry, properties, { bbox, id }),
|
|
267
|
-
featureIndex,
|
|
268
|
-
0
|
|
269
|
-
) === false)
|
|
270
|
-
return false;
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
var geomType;
|
|
274
|
-
switch (type) {
|
|
275
|
-
case "MultiPoint":
|
|
276
|
-
geomType = "Point";
|
|
277
|
-
break;
|
|
278
|
-
case "MultiLineString":
|
|
279
|
-
geomType = "LineString";
|
|
280
|
-
break;
|
|
281
|
-
case "MultiPolygon":
|
|
282
|
-
geomType = "Polygon";
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
for (var multiFeatureIndex = 0; multiFeatureIndex < geometry.coordinates.length; multiFeatureIndex++) {
|
|
286
|
-
var coordinate = geometry.coordinates[multiFeatureIndex];
|
|
287
|
-
var geom = {
|
|
288
|
-
type: geomType,
|
|
289
|
-
coordinates: coordinate
|
|
290
|
-
};
|
|
291
|
-
if (callback(feature(geom, properties), featureIndex, multiFeatureIndex) === false)
|
|
292
|
-
return false;
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
function flattenReduce(geojson, callback, initialValue) {
|
|
297
|
-
var previousValue = initialValue;
|
|
298
|
-
flattenEach(
|
|
299
|
-
geojson,
|
|
300
|
-
function(currentFeature, featureIndex, multiFeatureIndex) {
|
|
301
|
-
if (featureIndex === 0 && multiFeatureIndex === 0 && initialValue === void 0)
|
|
302
|
-
previousValue = currentFeature;
|
|
303
|
-
else
|
|
304
|
-
previousValue = callback(
|
|
305
|
-
previousValue,
|
|
306
|
-
currentFeature,
|
|
307
|
-
featureIndex,
|
|
308
|
-
multiFeatureIndex
|
|
309
|
-
);
|
|
310
|
-
}
|
|
311
|
-
);
|
|
312
|
-
return previousValue;
|
|
313
|
-
}
|
|
314
|
-
function segmentEach(geojson, callback) {
|
|
315
|
-
flattenEach(geojson, function(feature2, featureIndex, multiFeatureIndex) {
|
|
316
|
-
var segmentIndex = 0;
|
|
317
|
-
if (!feature2.geometry)
|
|
318
|
-
return;
|
|
319
|
-
var type = feature2.geometry.type;
|
|
320
|
-
if (type === "Point" || type === "MultiPoint")
|
|
321
|
-
return;
|
|
322
|
-
var previousCoords;
|
|
323
|
-
var previousFeatureIndex = 0;
|
|
324
|
-
var previousMultiIndex = 0;
|
|
325
|
-
var prevGeomIndex = 0;
|
|
326
|
-
if (coordEach(
|
|
327
|
-
feature2,
|
|
328
|
-
function(currentCoord, coordIndex, featureIndexCoord, multiPartIndexCoord, geometryIndex) {
|
|
329
|
-
if (previousCoords === void 0 || featureIndex > previousFeatureIndex || multiPartIndexCoord > previousMultiIndex || geometryIndex > prevGeomIndex) {
|
|
330
|
-
previousCoords = currentCoord;
|
|
331
|
-
previousFeatureIndex = featureIndex;
|
|
332
|
-
previousMultiIndex = multiPartIndexCoord;
|
|
333
|
-
prevGeomIndex = geometryIndex;
|
|
334
|
-
segmentIndex = 0;
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
var currentSegment = lineString(
|
|
338
|
-
[previousCoords, currentCoord],
|
|
339
|
-
feature2.properties
|
|
340
|
-
);
|
|
341
|
-
if (callback(
|
|
342
|
-
currentSegment,
|
|
343
|
-
featureIndex,
|
|
344
|
-
multiFeatureIndex,
|
|
345
|
-
geometryIndex,
|
|
346
|
-
segmentIndex
|
|
347
|
-
) === false)
|
|
348
|
-
return false;
|
|
349
|
-
segmentIndex++;
|
|
350
|
-
previousCoords = currentCoord;
|
|
351
|
-
}
|
|
352
|
-
) === false)
|
|
353
|
-
return false;
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
function segmentReduce(geojson, callback, initialValue) {
|
|
357
|
-
var previousValue = initialValue;
|
|
358
|
-
var started = false;
|
|
359
|
-
segmentEach(
|
|
360
|
-
geojson,
|
|
361
|
-
function(currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex) {
|
|
362
|
-
if (started === false && initialValue === void 0)
|
|
363
|
-
previousValue = currentSegment;
|
|
364
|
-
else
|
|
365
|
-
previousValue = callback(
|
|
366
|
-
previousValue,
|
|
367
|
-
currentSegment,
|
|
368
|
-
featureIndex,
|
|
369
|
-
multiFeatureIndex,
|
|
370
|
-
geometryIndex,
|
|
371
|
-
segmentIndex
|
|
372
|
-
);
|
|
373
|
-
started = true;
|
|
374
|
-
}
|
|
375
|
-
);
|
|
376
|
-
return previousValue;
|
|
377
|
-
}
|
|
378
|
-
function lineEach(geojson, callback) {
|
|
379
|
-
if (!geojson)
|
|
380
|
-
throw new Error("geojson is required");
|
|
381
|
-
flattenEach(geojson, function(feature2, featureIndex, multiFeatureIndex) {
|
|
382
|
-
if (feature2.geometry === null)
|
|
383
|
-
return;
|
|
384
|
-
var type = feature2.geometry.type;
|
|
385
|
-
var coords = feature2.geometry.coordinates;
|
|
386
|
-
switch (type) {
|
|
387
|
-
case "LineString":
|
|
388
|
-
if (callback(feature2, featureIndex, multiFeatureIndex, 0, 0) === false)
|
|
389
|
-
return false;
|
|
390
|
-
break;
|
|
391
|
-
case "Polygon":
|
|
392
|
-
for (var geometryIndex = 0; geometryIndex < coords.length; geometryIndex++) {
|
|
393
|
-
if (callback(
|
|
394
|
-
lineString(coords[geometryIndex], feature2.properties),
|
|
395
|
-
featureIndex,
|
|
396
|
-
multiFeatureIndex,
|
|
397
|
-
geometryIndex
|
|
398
|
-
) === false)
|
|
399
|
-
return false;
|
|
400
|
-
}
|
|
401
|
-
break;
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
function lineReduce(geojson, callback, initialValue) {
|
|
406
|
-
var previousValue = initialValue;
|
|
407
|
-
lineEach(
|
|
408
|
-
geojson,
|
|
409
|
-
function(currentLine, featureIndex, multiFeatureIndex, geometryIndex) {
|
|
410
|
-
if (featureIndex === 0 && initialValue === void 0)
|
|
411
|
-
previousValue = currentLine;
|
|
412
|
-
else
|
|
413
|
-
previousValue = callback(
|
|
414
|
-
previousValue,
|
|
415
|
-
currentLine,
|
|
416
|
-
featureIndex,
|
|
417
|
-
multiFeatureIndex,
|
|
418
|
-
geometryIndex
|
|
419
|
-
);
|
|
420
|
-
}
|
|
421
|
-
);
|
|
422
|
-
return previousValue;
|
|
423
|
-
}
|
|
424
|
-
function findSegment(geojson, options) {
|
|
425
|
-
options = options || {};
|
|
426
|
-
if (!isObject(options))
|
|
427
|
-
throw new Error("options is invalid");
|
|
428
|
-
var featureIndex = options.featureIndex || 0;
|
|
429
|
-
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
430
|
-
var geometryIndex = options.geometryIndex || 0;
|
|
431
|
-
var segmentIndex = options.segmentIndex || 0;
|
|
432
|
-
var properties = options.properties;
|
|
433
|
-
var geometry;
|
|
434
|
-
switch (geojson.type) {
|
|
435
|
-
case "FeatureCollection":
|
|
436
|
-
if (featureIndex < 0)
|
|
437
|
-
featureIndex = geojson.features.length + featureIndex;
|
|
438
|
-
properties = properties || geojson.features[featureIndex].properties;
|
|
439
|
-
geometry = geojson.features[featureIndex].geometry;
|
|
440
|
-
break;
|
|
441
|
-
case "Feature":
|
|
442
|
-
properties = properties || geojson.properties;
|
|
443
|
-
geometry = geojson.geometry;
|
|
444
|
-
break;
|
|
445
|
-
case "Point":
|
|
446
|
-
case "MultiPoint":
|
|
447
|
-
return null;
|
|
448
|
-
case "LineString":
|
|
449
|
-
case "Polygon":
|
|
450
|
-
case "MultiLineString":
|
|
451
|
-
case "MultiPolygon":
|
|
452
|
-
geometry = geojson;
|
|
453
|
-
break;
|
|
454
|
-
default:
|
|
455
|
-
throw new Error("geojson is invalid");
|
|
456
|
-
}
|
|
457
|
-
if (geometry === null)
|
|
458
|
-
return null;
|
|
459
|
-
var coords = geometry.coordinates;
|
|
460
|
-
switch (geometry.type) {
|
|
461
|
-
case "Point":
|
|
462
|
-
case "MultiPoint":
|
|
463
|
-
return null;
|
|
464
|
-
case "LineString":
|
|
465
|
-
if (segmentIndex < 0)
|
|
466
|
-
segmentIndex = coords.length + segmentIndex - 1;
|
|
467
|
-
return lineString(
|
|
468
|
-
[coords[segmentIndex], coords[segmentIndex + 1]],
|
|
469
|
-
properties,
|
|
470
|
-
options
|
|
471
|
-
);
|
|
472
|
-
case "Polygon":
|
|
473
|
-
if (geometryIndex < 0)
|
|
474
|
-
geometryIndex = coords.length + geometryIndex;
|
|
475
|
-
if (segmentIndex < 0)
|
|
476
|
-
segmentIndex = coords[geometryIndex].length + segmentIndex - 1;
|
|
477
|
-
return lineString(
|
|
478
|
-
[
|
|
479
|
-
coords[geometryIndex][segmentIndex],
|
|
480
|
-
coords[geometryIndex][segmentIndex + 1]
|
|
481
|
-
],
|
|
482
|
-
properties,
|
|
483
|
-
options
|
|
484
|
-
);
|
|
485
|
-
case "MultiLineString":
|
|
486
|
-
if (multiFeatureIndex < 0)
|
|
487
|
-
multiFeatureIndex = coords.length + multiFeatureIndex;
|
|
488
|
-
if (segmentIndex < 0)
|
|
489
|
-
segmentIndex = coords[multiFeatureIndex].length + segmentIndex - 1;
|
|
490
|
-
return lineString(
|
|
491
|
-
[
|
|
492
|
-
coords[multiFeatureIndex][segmentIndex],
|
|
493
|
-
coords[multiFeatureIndex][segmentIndex + 1]
|
|
494
|
-
],
|
|
495
|
-
properties,
|
|
496
|
-
options
|
|
497
|
-
);
|
|
498
|
-
case "MultiPolygon":
|
|
499
|
-
if (multiFeatureIndex < 0)
|
|
500
|
-
multiFeatureIndex = coords.length + multiFeatureIndex;
|
|
501
|
-
if (geometryIndex < 0)
|
|
502
|
-
geometryIndex = coords[multiFeatureIndex].length + geometryIndex;
|
|
503
|
-
if (segmentIndex < 0)
|
|
504
|
-
segmentIndex = coords[multiFeatureIndex][geometryIndex].length - segmentIndex - 1;
|
|
505
|
-
return lineString(
|
|
506
|
-
[
|
|
507
|
-
coords[multiFeatureIndex][geometryIndex][segmentIndex],
|
|
508
|
-
coords[multiFeatureIndex][geometryIndex][segmentIndex + 1]
|
|
509
|
-
],
|
|
510
|
-
properties,
|
|
511
|
-
options
|
|
512
|
-
);
|
|
513
|
-
}
|
|
514
|
-
throw new Error("geojson is invalid");
|
|
515
|
-
}
|
|
516
|
-
function findPoint(geojson, options) {
|
|
517
|
-
options = options || {};
|
|
518
|
-
if (!isObject(options))
|
|
519
|
-
throw new Error("options is invalid");
|
|
520
|
-
var featureIndex = options.featureIndex || 0;
|
|
521
|
-
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
522
|
-
var geometryIndex = options.geometryIndex || 0;
|
|
523
|
-
var coordIndex = options.coordIndex || 0;
|
|
524
|
-
var properties = options.properties;
|
|
525
|
-
var geometry;
|
|
526
|
-
switch (geojson.type) {
|
|
527
|
-
case "FeatureCollection":
|
|
528
|
-
if (featureIndex < 0)
|
|
529
|
-
featureIndex = geojson.features.length + featureIndex;
|
|
530
|
-
properties = properties || geojson.features[featureIndex].properties;
|
|
531
|
-
geometry = geojson.features[featureIndex].geometry;
|
|
532
|
-
break;
|
|
533
|
-
case "Feature":
|
|
534
|
-
properties = properties || geojson.properties;
|
|
535
|
-
geometry = geojson.geometry;
|
|
536
|
-
break;
|
|
537
|
-
case "Point":
|
|
538
|
-
case "MultiPoint":
|
|
539
|
-
return null;
|
|
540
|
-
case "LineString":
|
|
541
|
-
case "Polygon":
|
|
542
|
-
case "MultiLineString":
|
|
543
|
-
case "MultiPolygon":
|
|
544
|
-
geometry = geojson;
|
|
545
|
-
break;
|
|
546
|
-
default:
|
|
547
|
-
throw new Error("geojson is invalid");
|
|
548
|
-
}
|
|
549
|
-
if (geometry === null)
|
|
550
|
-
return null;
|
|
551
|
-
var coords = geometry.coordinates;
|
|
552
|
-
switch (geometry.type) {
|
|
553
|
-
case "Point":
|
|
554
|
-
return point(coords, properties, options);
|
|
555
|
-
case "MultiPoint":
|
|
556
|
-
if (multiFeatureIndex < 0)
|
|
557
|
-
multiFeatureIndex = coords.length + multiFeatureIndex;
|
|
558
|
-
return point(coords[multiFeatureIndex], properties, options);
|
|
559
|
-
case "LineString":
|
|
560
|
-
if (coordIndex < 0)
|
|
561
|
-
coordIndex = coords.length + coordIndex;
|
|
562
|
-
return point(coords[coordIndex], properties, options);
|
|
563
|
-
case "Polygon":
|
|
564
|
-
if (geometryIndex < 0)
|
|
565
|
-
geometryIndex = coords.length + geometryIndex;
|
|
566
|
-
if (coordIndex < 0)
|
|
567
|
-
coordIndex = coords[geometryIndex].length + coordIndex;
|
|
568
|
-
return point(coords[geometryIndex][coordIndex], properties, options);
|
|
569
|
-
case "MultiLineString":
|
|
570
|
-
if (multiFeatureIndex < 0)
|
|
571
|
-
multiFeatureIndex = coords.length + multiFeatureIndex;
|
|
572
|
-
if (coordIndex < 0)
|
|
573
|
-
coordIndex = coords[multiFeatureIndex].length + coordIndex;
|
|
574
|
-
return point(coords[multiFeatureIndex][coordIndex], properties, options);
|
|
575
|
-
case "MultiPolygon":
|
|
576
|
-
if (multiFeatureIndex < 0)
|
|
577
|
-
multiFeatureIndex = coords.length + multiFeatureIndex;
|
|
578
|
-
if (geometryIndex < 0)
|
|
579
|
-
geometryIndex = coords[multiFeatureIndex].length + geometryIndex;
|
|
580
|
-
if (coordIndex < 0)
|
|
581
|
-
coordIndex = coords[multiFeatureIndex][geometryIndex].length - coordIndex;
|
|
582
|
-
return point(
|
|
583
|
-
coords[multiFeatureIndex][geometryIndex][coordIndex],
|
|
584
|
-
properties,
|
|
585
|
-
options
|
|
586
|
-
);
|
|
587
|
-
}
|
|
588
|
-
throw new Error("geojson is invalid");
|
|
589
|
-
}
|
|
590
|
-
var es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
591
|
-
__proto__: null,
|
|
592
|
-
coordAll,
|
|
593
|
-
coordEach,
|
|
594
|
-
coordReduce,
|
|
595
|
-
featureEach,
|
|
596
|
-
featureReduce,
|
|
597
|
-
findPoint,
|
|
598
|
-
findSegment,
|
|
599
|
-
flattenEach,
|
|
600
|
-
flattenReduce,
|
|
601
|
-
geomEach,
|
|
602
|
-
geomReduce,
|
|
603
|
-
lineEach,
|
|
604
|
-
lineReduce,
|
|
605
|
-
propEach,
|
|
606
|
-
propReduce,
|
|
607
|
-
segmentEach,
|
|
608
|
-
segmentReduce
|
|
609
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
610
|
-
var require$$2 = /* @__PURE__ */ getAugmentedNamespace(es);
|
|
611
|
-
export { featureEach as a, geomEach as b, coordEach as c, segmentReduce as d, featureReduce as e, flattenEach as f, geomReduce as g, lineReduce as l, require$$2 as r, segmentEach as s };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { b as bearing } from "../_@turf_bearing@6.5.0@@turf/_@turf_bearing@6.5.0@@turf.f2555a09.js";
|
|
2
|
-
import { d as distance } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
|
|
3
|
-
import { d as destination } from "../_@turf_destination@6.5.0@@turf/_@turf_destination@6.5.0@@turf.2621651e.js";
|
|
4
|
-
import { l as lineIntersect } from "../_@turf_line-intersect@6.5.0@@turf/_@turf_line-intersect@6.5.0@@turf.c4d81948.js";
|
|
5
|
-
import { f as flattenEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
6
|
-
import { p as point, l as lineString } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
7
|
-
import { b as getCoords } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
8
|
-
function nearestPointOnLine(lines, pt, options) {
|
|
9
|
-
if (options === void 0) {
|
|
10
|
-
options = {};
|
|
11
|
-
}
|
|
12
|
-
var closestPt = point([Infinity, Infinity], {
|
|
13
|
-
dist: Infinity
|
|
14
|
-
});
|
|
15
|
-
var length = 0;
|
|
16
|
-
flattenEach(lines, function(line) {
|
|
17
|
-
var coords = getCoords(line);
|
|
18
|
-
for (var i = 0; i < coords.length - 1; i++) {
|
|
19
|
-
var start = point(coords[i]);
|
|
20
|
-
start.properties.dist = distance(pt, start, options);
|
|
21
|
-
var stop_1 = point(coords[i + 1]);
|
|
22
|
-
stop_1.properties.dist = distance(pt, stop_1, options);
|
|
23
|
-
var sectionLength = distance(start, stop_1, options);
|
|
24
|
-
var heightDistance = Math.max(start.properties.dist, stop_1.properties.dist);
|
|
25
|
-
var direction = bearing(start, stop_1);
|
|
26
|
-
var perpendicularPt1 = destination(pt, heightDistance, direction + 90, options);
|
|
27
|
-
var perpendicularPt2 = destination(pt, heightDistance, direction - 90, options);
|
|
28
|
-
var intersect = lineIntersect(lineString([
|
|
29
|
-
perpendicularPt1.geometry.coordinates,
|
|
30
|
-
perpendicularPt2.geometry.coordinates
|
|
31
|
-
]), lineString([start.geometry.coordinates, stop_1.geometry.coordinates]));
|
|
32
|
-
var intersectPt = null;
|
|
33
|
-
if (intersect.features.length > 0) {
|
|
34
|
-
intersectPt = intersect.features[0];
|
|
35
|
-
intersectPt.properties.dist = distance(pt, intersectPt, options);
|
|
36
|
-
intersectPt.properties.location = length + distance(start, intersectPt, options);
|
|
37
|
-
}
|
|
38
|
-
if (start.properties.dist < closestPt.properties.dist) {
|
|
39
|
-
closestPt = start;
|
|
40
|
-
closestPt.properties.index = i;
|
|
41
|
-
closestPt.properties.location = length;
|
|
42
|
-
}
|
|
43
|
-
if (stop_1.properties.dist < closestPt.properties.dist) {
|
|
44
|
-
closestPt = stop_1;
|
|
45
|
-
closestPt.properties.index = i + 1;
|
|
46
|
-
closestPt.properties.location = length + sectionLength;
|
|
47
|
-
}
|
|
48
|
-
if (intersectPt && intersectPt.properties.dist < closestPt.properties.dist) {
|
|
49
|
-
closestPt = intersectPt;
|
|
50
|
-
closestPt.properties.index = i;
|
|
51
|
-
}
|
|
52
|
-
length += sectionLength;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
return closestPt;
|
|
56
|
-
}
|
|
57
|
-
export { nearestPointOnLine as n };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../_object-assign@4.1.1@object-assign/_object-assign@4.1.1@object-assign.e4009c1c.js";
|
package/dist/js/_@turf_nearest-point@6.5.0@@turf/_@turf_nearest-point@6.5.0@@turf.e0d2f509.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { c as clone } from "../_@turf_clone@6.5.0@@turf/_@turf_clone@6.5.0@@turf.cd05b1f8.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 featureEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
4
|
-
function nearestPoint(targetPoint, points) {
|
|
5
|
-
if (!targetPoint)
|
|
6
|
-
throw new Error("targetPoint is required");
|
|
7
|
-
if (!points)
|
|
8
|
-
throw new Error("points is required");
|
|
9
|
-
var nearest;
|
|
10
|
-
var minDist = Infinity;
|
|
11
|
-
var bestFeatureIndex = 0;
|
|
12
|
-
featureEach(points, function(pt, featureIndex) {
|
|
13
|
-
var distanceToPoint = distance(targetPoint, pt);
|
|
14
|
-
if (distanceToPoint < minDist) {
|
|
15
|
-
bestFeatureIndex = featureIndex;
|
|
16
|
-
minDist = distanceToPoint;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
nearest = clone(points.features[bestFeatureIndex]);
|
|
20
|
-
nearest.properties.featureIndex = bestFeatureIndex;
|
|
21
|
-
nearest.properties.distanceToPoint = minDist;
|
|
22
|
-
return nearest;
|
|
23
|
-
}
|
|
24
|
-
export { nearestPoint as n };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|