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,133 +0,0 @@
|
|
|
1
|
-
import { _ as _deepEqual_1_1_1_deepEqual } from "../_deep-equal@1.1.1@deep-equal/_deep-equal@1.1.1@deep-equal.98576c17.js";
|
|
2
|
-
var deepEqual = _deepEqual_1_1_1_deepEqual;
|
|
3
|
-
var Equality = function(opt) {
|
|
4
|
-
this.precision = opt && opt.precision ? opt.precision : 17;
|
|
5
|
-
this.direction = opt && opt.direction ? opt.direction : false;
|
|
6
|
-
this.pseudoNode = opt && opt.pseudoNode ? opt.pseudoNode : false;
|
|
7
|
-
this.objectComparator = opt && opt.objectComparator ? opt.objectComparator : objectComparator;
|
|
8
|
-
};
|
|
9
|
-
Equality.prototype.compare = function(g1, g2) {
|
|
10
|
-
if (g1.type !== g2.type || !sameLength(g1, g2))
|
|
11
|
-
return false;
|
|
12
|
-
switch (g1.type) {
|
|
13
|
-
case "Point":
|
|
14
|
-
return this.compareCoord(g1.coordinates, g2.coordinates);
|
|
15
|
-
case "LineString":
|
|
16
|
-
return this.compareLine(g1.coordinates, g2.coordinates, 0, false);
|
|
17
|
-
case "Polygon":
|
|
18
|
-
return this.comparePolygon(g1, g2);
|
|
19
|
-
case "Feature":
|
|
20
|
-
return this.compareFeature(g1, g2);
|
|
21
|
-
default:
|
|
22
|
-
if (g1.type.indexOf("Multi") === 0) {
|
|
23
|
-
var context = this;
|
|
24
|
-
var g1s = explode(g1);
|
|
25
|
-
var g2s = explode(g2);
|
|
26
|
-
return g1s.every(function(g1part) {
|
|
27
|
-
return this.some(function(g2part) {
|
|
28
|
-
return context.compare(g1part, g2part);
|
|
29
|
-
});
|
|
30
|
-
}, g2s);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return false;
|
|
34
|
-
};
|
|
35
|
-
function explode(g) {
|
|
36
|
-
return g.coordinates.map(function(part) {
|
|
37
|
-
return {
|
|
38
|
-
type: g.type.replace("Multi", ""),
|
|
39
|
-
coordinates: part
|
|
40
|
-
};
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function sameLength(g1, g2) {
|
|
44
|
-
return g1.hasOwnProperty("coordinates") ? g1.coordinates.length === g2.coordinates.length : g1.length === g2.length;
|
|
45
|
-
}
|
|
46
|
-
Equality.prototype.compareCoord = function(c1, c2) {
|
|
47
|
-
if (c1.length !== c2.length) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
for (var i = 0; i < c1.length; i++) {
|
|
51
|
-
if (c1[i].toFixed(this.precision) !== c2[i].toFixed(this.precision)) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return true;
|
|
56
|
-
};
|
|
57
|
-
Equality.prototype.compareLine = function(path1, path2, ind, isPoly) {
|
|
58
|
-
if (!sameLength(path1, path2))
|
|
59
|
-
return false;
|
|
60
|
-
var p1 = this.pseudoNode ? path1 : this.removePseudo(path1);
|
|
61
|
-
var p2 = this.pseudoNode ? path2 : this.removePseudo(path2);
|
|
62
|
-
if (isPoly && !this.compareCoord(p1[0], p2[0])) {
|
|
63
|
-
p2 = this.fixStartIndex(p2, p1);
|
|
64
|
-
if (!p2)
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
var sameDirection = this.compareCoord(p1[ind], p2[ind]);
|
|
68
|
-
if (this.direction || sameDirection) {
|
|
69
|
-
return this.comparePath(p1, p2);
|
|
70
|
-
} else {
|
|
71
|
-
if (this.compareCoord(p1[ind], p2[p2.length - (1 + ind)])) {
|
|
72
|
-
return this.comparePath(p1.slice().reverse(), p2);
|
|
73
|
-
}
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
Equality.prototype.fixStartIndex = function(sourcePath, targetPath) {
|
|
78
|
-
var correctPath, ind = -1;
|
|
79
|
-
for (var i = 0; i < sourcePath.length; i++) {
|
|
80
|
-
if (this.compareCoord(sourcePath[i], targetPath[0])) {
|
|
81
|
-
ind = i;
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if (ind >= 0) {
|
|
86
|
-
correctPath = [].concat(
|
|
87
|
-
sourcePath.slice(ind, sourcePath.length),
|
|
88
|
-
sourcePath.slice(1, ind + 1)
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
return correctPath;
|
|
92
|
-
};
|
|
93
|
-
Equality.prototype.comparePath = function(p1, p2) {
|
|
94
|
-
var cont = this;
|
|
95
|
-
return p1.every(function(c, i) {
|
|
96
|
-
return cont.compareCoord(c, this[i]);
|
|
97
|
-
}, p2);
|
|
98
|
-
};
|
|
99
|
-
Equality.prototype.comparePolygon = function(g1, g2) {
|
|
100
|
-
if (this.compareLine(g1.coordinates[0], g2.coordinates[0], 1, true)) {
|
|
101
|
-
var holes1 = g1.coordinates.slice(1, g1.coordinates.length);
|
|
102
|
-
var holes2 = g2.coordinates.slice(1, g2.coordinates.length);
|
|
103
|
-
var cont = this;
|
|
104
|
-
return holes1.every(function(h1) {
|
|
105
|
-
return this.some(function(h2) {
|
|
106
|
-
return cont.compareLine(h1, h2, 1, true);
|
|
107
|
-
});
|
|
108
|
-
}, holes2);
|
|
109
|
-
} else {
|
|
110
|
-
return false;
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
Equality.prototype.compareFeature = function(g1, g2) {
|
|
114
|
-
if (g1.id !== g2.id || !this.objectComparator(g1.properties, g2.properties) || !this.compareBBox(g1, g2)) {
|
|
115
|
-
return false;
|
|
116
|
-
}
|
|
117
|
-
return this.compare(g1.geometry, g2.geometry);
|
|
118
|
-
};
|
|
119
|
-
Equality.prototype.compareBBox = function(g1, g2) {
|
|
120
|
-
if (!g1.bbox && !g2.bbox || g1.bbox && g2.bbox && this.compareCoord(g1.bbox, g2.bbox)) {
|
|
121
|
-
return true;
|
|
122
|
-
}
|
|
123
|
-
return false;
|
|
124
|
-
};
|
|
125
|
-
Equality.prototype.removePseudo = function(path) {
|
|
126
|
-
return path;
|
|
127
|
-
};
|
|
128
|
-
function objectComparator(obj1, obj2) {
|
|
129
|
-
return deepEqual(obj1, obj2, { strict: true });
|
|
130
|
-
}
|
|
131
|
-
var _geojsonEquality_0_1_6_geojsonEquality = Equality;
|
|
132
|
-
var GeojsonEquality = _geojsonEquality_0_1_6_geojsonEquality;
|
|
133
|
-
export { GeojsonEquality as G };
|
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
import { r as require$$0 } from "../_tinyqueue@2.0.3@tinyqueue/_tinyqueue@2.0.3@tinyqueue.78918532.js";
|
|
2
|
-
import { r as require$$0$1 } from "../_@turf_explode@6.5.0@@turf/_@turf_explode@6.5.0@@turf.5c768db5.js";
|
|
3
|
-
import { r as require$$2 } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
|
|
4
|
-
import { s as require$$3 } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
5
|
-
var Queue = require$$0;
|
|
6
|
-
var dijkstra = function(graph, start, end) {
|
|
7
|
-
var costs = {};
|
|
8
|
-
costs[start] = 0;
|
|
9
|
-
var initialState = [0, [start], start];
|
|
10
|
-
var queue = new Queue([initialState], function(a, b) {
|
|
11
|
-
return a[0] - b[0];
|
|
12
|
-
});
|
|
13
|
-
while (queue.length) {
|
|
14
|
-
var state = queue.pop();
|
|
15
|
-
var cost = state[0];
|
|
16
|
-
var node = state[2];
|
|
17
|
-
if (node === end) {
|
|
18
|
-
return state.slice(0, 2);
|
|
19
|
-
}
|
|
20
|
-
var neighbours = graph[node];
|
|
21
|
-
Object.keys(neighbours).forEach(function(n) {
|
|
22
|
-
var newCost = cost + neighbours[n];
|
|
23
|
-
if (!(n in costs) || newCost < costs[n]) {
|
|
24
|
-
costs[n] = newCost;
|
|
25
|
-
var newState = [newCost, state[1].concat([n]), n];
|
|
26
|
-
queue.push(newState);
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return null;
|
|
31
|
-
};
|
|
32
|
-
var roundCoord$2 = function roundCoord(c, precision) {
|
|
33
|
-
return [
|
|
34
|
-
Math.round(c[0] / precision) * precision,
|
|
35
|
-
Math.round(c[1] / precision) * precision
|
|
36
|
-
];
|
|
37
|
-
};
|
|
38
|
-
var explode = require$$0$1, roundCoord$1 = roundCoord$2;
|
|
39
|
-
var topology_1 = topology$1;
|
|
40
|
-
function geoJsonReduce(geojson, fn, seed) {
|
|
41
|
-
if (geojson.type === "FeatureCollection") {
|
|
42
|
-
return geojson.features.reduce(function reduceFeatures(a, f) {
|
|
43
|
-
return geoJsonReduce(f, fn, a);
|
|
44
|
-
}, seed);
|
|
45
|
-
} else {
|
|
46
|
-
return fn(seed, geojson);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function geoJsonFilterFeatures(geojson, fn) {
|
|
50
|
-
var features = [];
|
|
51
|
-
if (geojson.type === "FeatureCollection") {
|
|
52
|
-
features = features.concat(geojson.features.filter(fn));
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
type: "FeatureCollection",
|
|
56
|
-
features
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function isLineString(f) {
|
|
60
|
-
return f.geometry.type === "LineString";
|
|
61
|
-
}
|
|
62
|
-
function topology$1(geojson, options) {
|
|
63
|
-
options = options || {};
|
|
64
|
-
var keyFn = options.keyFn || function defaultKeyFn(c) {
|
|
65
|
-
return c.join(",");
|
|
66
|
-
}, precision = options.precision || 1e-5;
|
|
67
|
-
var lineStrings = geoJsonFilterFeatures(geojson, isLineString);
|
|
68
|
-
var explodedLineStrings = explode(lineStrings);
|
|
69
|
-
var vertices = explodedLineStrings.features.reduce(function buildTopologyVertices(cs, f, i, fs) {
|
|
70
|
-
var rc = roundCoord$1(f.geometry.coordinates, precision);
|
|
71
|
-
cs[keyFn(rc)] = f.geometry.coordinates;
|
|
72
|
-
if (i % 1e3 === 0 && options.progress) {
|
|
73
|
-
options.progress("topo:vertices", i, fs.length);
|
|
74
|
-
}
|
|
75
|
-
return cs;
|
|
76
|
-
}, {}), edges = geoJsonReduce(lineStrings, function buildTopologyEdges(es, f, i, fs) {
|
|
77
|
-
f.geometry.coordinates.forEach(function buildLineStringEdges(c, i2, cs) {
|
|
78
|
-
if (i2 > 0) {
|
|
79
|
-
var k1 = keyFn(roundCoord$1(cs[i2 - 1], precision)), k2 = keyFn(roundCoord$1(c, precision));
|
|
80
|
-
es.push([k1, k2, f.properties]);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
if (i % 1e3 === 0 && options.progress) {
|
|
84
|
-
options.progress("topo:edges", i, fs.length);
|
|
85
|
-
}
|
|
86
|
-
return es;
|
|
87
|
-
}, []);
|
|
88
|
-
return {
|
|
89
|
-
vertices,
|
|
90
|
-
edges
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
var compactor$2 = {
|
|
94
|
-
compactNode,
|
|
95
|
-
compactGraph
|
|
96
|
-
};
|
|
97
|
-
function findNextEnd(prev, v, vertices, ends, vertexCoords, edgeData, trackIncoming, options) {
|
|
98
|
-
var weight = vertices[prev][v], reverseWeight = vertices[v][prev], coordinates = [], path = [], reducedEdge = options.edgeDataSeed;
|
|
99
|
-
if (options.edgeDataReduceFn) {
|
|
100
|
-
reducedEdge = options.edgeDataReduceFn(reducedEdge, edgeData[v][prev]);
|
|
101
|
-
}
|
|
102
|
-
while (!ends[v]) {
|
|
103
|
-
var edges = vertices[v];
|
|
104
|
-
if (!edges) {
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
var next = Object.keys(edges).filter(function notPrevious(k) {
|
|
108
|
-
return k !== prev;
|
|
109
|
-
})[0];
|
|
110
|
-
weight += edges[next];
|
|
111
|
-
if (trackIncoming) {
|
|
112
|
-
reverseWeight += vertices[next][v];
|
|
113
|
-
if (path.indexOf(v) >= 0) {
|
|
114
|
-
ends[v] = vertices[v];
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
path.push(v);
|
|
118
|
-
}
|
|
119
|
-
if (options.edgeDataReduceFn) {
|
|
120
|
-
reducedEdge = options.edgeDataReduceFn(reducedEdge, edgeData[v][next]);
|
|
121
|
-
}
|
|
122
|
-
coordinates.push(vertexCoords[v]);
|
|
123
|
-
prev = v;
|
|
124
|
-
v = next;
|
|
125
|
-
}
|
|
126
|
-
return {
|
|
127
|
-
vertex: v,
|
|
128
|
-
weight,
|
|
129
|
-
reverseWeight,
|
|
130
|
-
coordinates,
|
|
131
|
-
reducedEdge
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
function compactNode(k, vertices, ends, vertexCoords, edgeData, trackIncoming, options) {
|
|
135
|
-
options = options || {};
|
|
136
|
-
var neighbors = vertices[k];
|
|
137
|
-
return Object.keys(neighbors).reduce(function compactEdge(result, j) {
|
|
138
|
-
var neighbor = findNextEnd(k, j, vertices, ends, vertexCoords, edgeData, trackIncoming, options);
|
|
139
|
-
var weight = neighbor.weight;
|
|
140
|
-
var reverseWeight = neighbor.reverseWeight;
|
|
141
|
-
if (neighbor.vertex !== k) {
|
|
142
|
-
if (!result.edges[neighbor.vertex] || result.edges[neighbor.vertex] > weight) {
|
|
143
|
-
result.edges[neighbor.vertex] = weight;
|
|
144
|
-
result.coordinates[neighbor.vertex] = [vertexCoords[k]].concat(neighbor.coordinates);
|
|
145
|
-
result.reducedEdges[neighbor.vertex] = neighbor.reducedEdge;
|
|
146
|
-
}
|
|
147
|
-
if (trackIncoming && !isNaN(reverseWeight) && (!result.incomingEdges[neighbor.vertex] || result.incomingEdges[neighbor.vertex] > reverseWeight)) {
|
|
148
|
-
result.incomingEdges[neighbor.vertex] = reverseWeight;
|
|
149
|
-
var coordinates = [vertexCoords[k]].concat(neighbor.coordinates);
|
|
150
|
-
coordinates.reverse();
|
|
151
|
-
result.incomingCoordinates[neighbor.vertex] = coordinates;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return result;
|
|
155
|
-
}, { edges: {}, incomingEdges: {}, coordinates: {}, incomingCoordinates: {}, reducedEdges: {} });
|
|
156
|
-
}
|
|
157
|
-
function compactGraph(vertices, vertexCoords, edgeData, options) {
|
|
158
|
-
options = options || {};
|
|
159
|
-
var progress = options.progress;
|
|
160
|
-
var ends = Object.keys(vertices).reduce(function findEnds(es, k, i, vs) {
|
|
161
|
-
var vertex = vertices[k];
|
|
162
|
-
var edges = Object.keys(vertex);
|
|
163
|
-
var numberEdges = edges.length;
|
|
164
|
-
var remove;
|
|
165
|
-
if (options.compact !== void 0 && !options.compact) {
|
|
166
|
-
remove = false;
|
|
167
|
-
} else if (numberEdges === 1) {
|
|
168
|
-
var other = vertices[edges[0]];
|
|
169
|
-
remove = !other[k];
|
|
170
|
-
} else if (numberEdges === 2) {
|
|
171
|
-
remove = edges.filter(function(n) {
|
|
172
|
-
return vertices[n][k];
|
|
173
|
-
}).length === numberEdges;
|
|
174
|
-
} else {
|
|
175
|
-
remove = false;
|
|
176
|
-
}
|
|
177
|
-
if (!remove) {
|
|
178
|
-
es[k] = vertex;
|
|
179
|
-
}
|
|
180
|
-
if (i % 1e3 === 0 && progress) {
|
|
181
|
-
progress("compact:ends", i, vs.length);
|
|
182
|
-
}
|
|
183
|
-
return es;
|
|
184
|
-
}, {});
|
|
185
|
-
return Object.keys(ends).reduce(function compactEnd(result, k, i, es) {
|
|
186
|
-
var compacted = compactNode(k, vertices, ends, vertexCoords, edgeData, false, options);
|
|
187
|
-
result.graph[k] = compacted.edges;
|
|
188
|
-
result.coordinates[k] = compacted.coordinates;
|
|
189
|
-
if (options.edgeDataReduceFn) {
|
|
190
|
-
result.reducedEdges[k] = compacted.reducedEdges;
|
|
191
|
-
}
|
|
192
|
-
if (i % 1e3 === 0 && progress) {
|
|
193
|
-
progress("compact:nodes", i, es.length);
|
|
194
|
-
}
|
|
195
|
-
return result;
|
|
196
|
-
}, { graph: {}, coordinates: {}, reducedEdges: {} });
|
|
197
|
-
}
|
|
198
|
-
var topology = topology_1, compactor$1 = compactor$2, distance = require$$2.default, { point } = require$$3;
|
|
199
|
-
var preprocessor = function preprocess(graph, options) {
|
|
200
|
-
options = options || {};
|
|
201
|
-
var weightFn = options.weightFn || function defaultWeightFn(a, b) {
|
|
202
|
-
return distance(point(a), point(b));
|
|
203
|
-
}, topo;
|
|
204
|
-
if (graph.type === "FeatureCollection") {
|
|
205
|
-
topo = topology(graph, options);
|
|
206
|
-
} else if (graph.edges) {
|
|
207
|
-
topo = graph;
|
|
208
|
-
}
|
|
209
|
-
var graph = topo.edges.reduce(function buildGraph(g, edge, i, es) {
|
|
210
|
-
var a = edge[0], b = edge[1], props = edge[2], w = weightFn(topo.vertices[a], topo.vertices[b], props), makeEdgeList = function makeEdgeList2(node) {
|
|
211
|
-
if (!g.vertices[node]) {
|
|
212
|
-
g.vertices[node] = {};
|
|
213
|
-
if (options.edgeDataReduceFn) {
|
|
214
|
-
g.edgeData[node] = {};
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}, concatEdge = function concatEdge2(startNode, endNode, weight) {
|
|
218
|
-
var v = g.vertices[startNode];
|
|
219
|
-
v[endNode] = weight;
|
|
220
|
-
if (options.edgeDataReduceFn) {
|
|
221
|
-
g.edgeData[startNode][endNode] = options.edgeDataReduceFn(options.edgeDataSeed, props);
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
if (w) {
|
|
225
|
-
makeEdgeList(a);
|
|
226
|
-
makeEdgeList(b);
|
|
227
|
-
if (w instanceof Object) {
|
|
228
|
-
if (w.forward) {
|
|
229
|
-
concatEdge(a, b, w.forward);
|
|
230
|
-
}
|
|
231
|
-
if (w.backward) {
|
|
232
|
-
concatEdge(b, a, w.backward);
|
|
233
|
-
}
|
|
234
|
-
} else {
|
|
235
|
-
concatEdge(a, b, w);
|
|
236
|
-
concatEdge(b, a, w);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
if (i % 1e3 === 0 && options.progress) {
|
|
240
|
-
options.progress("edgeweights", i, es.length);
|
|
241
|
-
}
|
|
242
|
-
return g;
|
|
243
|
-
}, { edgeData: {}, vertices: {} });
|
|
244
|
-
var compact = compactor$1.compactGraph(graph.vertices, topo.vertices, graph.edgeData, options);
|
|
245
|
-
return {
|
|
246
|
-
vertices: graph.vertices,
|
|
247
|
-
edgeData: graph.edgeData,
|
|
248
|
-
sourceVertices: topo.vertices,
|
|
249
|
-
compactedVertices: compact.graph,
|
|
250
|
-
compactedCoordinates: compact.coordinates,
|
|
251
|
-
compactedEdges: options.edgeDataReduceFn ? compact.reducedEdges : null
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
var findPath = dijkstra, preprocess2 = preprocessor, compactor = compactor$2, roundCoord2 = roundCoord$2;
|
|
255
|
-
var _geojsonPathFinder_1_5_3_geojsonPathFinder = PathFinder;
|
|
256
|
-
function PathFinder(graph, options) {
|
|
257
|
-
options = options || {};
|
|
258
|
-
if (!graph.compactedVertices) {
|
|
259
|
-
graph = preprocess2(graph, options);
|
|
260
|
-
}
|
|
261
|
-
this._graph = graph;
|
|
262
|
-
this._keyFn = options.keyFn || function(c) {
|
|
263
|
-
return c.join(",");
|
|
264
|
-
};
|
|
265
|
-
this._precision = options.precision || 1e-5;
|
|
266
|
-
this._options = options;
|
|
267
|
-
if (Object.keys(this._graph.compactedVertices).filter(function(k) {
|
|
268
|
-
return k !== "edgeData";
|
|
269
|
-
}).length === 0) {
|
|
270
|
-
throw new Error("Compacted graph contains no forks (topology has no intersections).");
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
PathFinder.prototype = {
|
|
274
|
-
findPath: function(a, b) {
|
|
275
|
-
var start = this._keyFn(roundCoord2(a.geometry.coordinates, this._precision)), finish = this._keyFn(roundCoord2(b.geometry.coordinates, this._precision));
|
|
276
|
-
if (!this._graph.vertices[start] || !this._graph.vertices[finish]) {
|
|
277
|
-
return null;
|
|
278
|
-
}
|
|
279
|
-
this._createPhantom(start);
|
|
280
|
-
this._createPhantom(finish);
|
|
281
|
-
var path = findPath(this._graph.compactedVertices, start, finish);
|
|
282
|
-
if (path) {
|
|
283
|
-
var weight = path[0];
|
|
284
|
-
path = path[1];
|
|
285
|
-
return {
|
|
286
|
-
path: path.reduce(function buildPath(cs, v, i, vs) {
|
|
287
|
-
if (i > 0) {
|
|
288
|
-
cs = cs.concat(this._graph.compactedCoordinates[vs[i - 1]][v]);
|
|
289
|
-
}
|
|
290
|
-
return cs;
|
|
291
|
-
}.bind(this), []).concat([this._graph.sourceVertices[finish]]),
|
|
292
|
-
weight,
|
|
293
|
-
edgeDatas: this._graph.compactedEdges ? path.reduce(function buildEdgeData(eds, v, i, vs) {
|
|
294
|
-
if (i > 0) {
|
|
295
|
-
eds.push({
|
|
296
|
-
reducedEdge: this._graph.compactedEdges[vs[i - 1]][v]
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
return eds;
|
|
300
|
-
}.bind(this), []) : void 0
|
|
301
|
-
};
|
|
302
|
-
} else {
|
|
303
|
-
return null;
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
serialize: function() {
|
|
307
|
-
return this._graph;
|
|
308
|
-
},
|
|
309
|
-
_createPhantom: function(n) {
|
|
310
|
-
if (this._graph.compactedVertices[n])
|
|
311
|
-
return null;
|
|
312
|
-
var phantom = compactor.compactNode(n, this._graph.vertices, this._graph.compactedVertices, this._graph.sourceVertices, this._graph.edgeData, true, this._options);
|
|
313
|
-
this._graph.compactedVertices[n] = phantom.edges;
|
|
314
|
-
this._graph.compactedCoordinates[n] = phantom.coordinates;
|
|
315
|
-
if (this._graph.compactedEdges) {
|
|
316
|
-
this._graph.compactedEdges[n] = phantom.reducedEdges;
|
|
317
|
-
}
|
|
318
|
-
Object.keys(phantom.incomingEdges).forEach(function(neighbor) {
|
|
319
|
-
this._graph.compactedVertices[neighbor][n] = phantom.incomingEdges[neighbor];
|
|
320
|
-
this._graph.compactedCoordinates[neighbor][n] = [this._graph.sourceVertices[neighbor]].concat(phantom.incomingCoordinates[neighbor].slice(0, -1));
|
|
321
|
-
if (this._graph.compactedEdges) {
|
|
322
|
-
this._graph.compactedEdges[neighbor][n] = phantom.reducedEdges[neighbor];
|
|
323
|
-
}
|
|
324
|
-
}.bind(this));
|
|
325
|
-
return n;
|
|
326
|
-
},
|
|
327
|
-
_removePhantom: function(n) {
|
|
328
|
-
if (!n)
|
|
329
|
-
return;
|
|
330
|
-
Object.keys(this._graph.compactedVertices[n]).forEach(function(neighbor) {
|
|
331
|
-
delete this._graph.compactedVertices[neighbor][n];
|
|
332
|
-
}.bind(this));
|
|
333
|
-
Object.keys(this._graph.compactedCoordinates[n]).forEach(function(neighbor) {
|
|
334
|
-
delete this._graph.compactedCoordinates[neighbor][n];
|
|
335
|
-
}.bind(this));
|
|
336
|
-
if (this._graph.compactedEdges) {
|
|
337
|
-
Object.keys(this._graph.compactedEdges[n]).forEach(function(neighbor) {
|
|
338
|
-
delete this._graph.compactedEdges[neighbor][n];
|
|
339
|
-
}.bind(this));
|
|
340
|
-
}
|
|
341
|
-
delete this._graph.compactedVertices[n];
|
|
342
|
-
delete this._graph.compactedCoordinates[n];
|
|
343
|
-
if (this._graph.compactedEdges) {
|
|
344
|
-
delete this._graph.compactedEdges[n];
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
export { _geojsonPathFinder_1_5_3_geojsonPathFinder as _ };
|
package/dist/js/_geojson-rbush@3.2.0@geojson-rbush/_geojson-rbush@3.2.0@geojson-rbush.2adaeedb.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { r as require$$0 } from "../_rbush@3.0.1@rbush/_rbush@3.0.1@rbush.57d33d95.js";
|
|
2
|
-
import { s as require$$3$1 } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
3
|
-
import { r as require$$2 } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
4
|
-
import { r as require$$3 } from "../_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js";
|
|
5
|
-
var _geojsonRbush_3_2_0_geojsonRbush = { exports: {} };
|
|
6
|
-
var rbush = require$$0;
|
|
7
|
-
var helpers = require$$3$1;
|
|
8
|
-
var meta = require$$2;
|
|
9
|
-
var turfBBox = require$$3.default;
|
|
10
|
-
var featureEach = meta.featureEach;
|
|
11
|
-
meta.coordEach;
|
|
12
|
-
helpers.polygon;
|
|
13
|
-
var featureCollection = helpers.featureCollection;
|
|
14
|
-
function geojsonRbush(maxEntries) {
|
|
15
|
-
var tree = new rbush(maxEntries);
|
|
16
|
-
tree.insert = function(feature) {
|
|
17
|
-
if (feature.type !== "Feature")
|
|
18
|
-
throw new Error("invalid feature");
|
|
19
|
-
feature.bbox = feature.bbox ? feature.bbox : turfBBox(feature);
|
|
20
|
-
return rbush.prototype.insert.call(this, feature);
|
|
21
|
-
};
|
|
22
|
-
tree.load = function(features) {
|
|
23
|
-
var load = [];
|
|
24
|
-
if (Array.isArray(features)) {
|
|
25
|
-
features.forEach(function(feature) {
|
|
26
|
-
if (feature.type !== "Feature")
|
|
27
|
-
throw new Error("invalid features");
|
|
28
|
-
feature.bbox = feature.bbox ? feature.bbox : turfBBox(feature);
|
|
29
|
-
load.push(feature);
|
|
30
|
-
});
|
|
31
|
-
} else {
|
|
32
|
-
featureEach(features, function(feature) {
|
|
33
|
-
if (feature.type !== "Feature")
|
|
34
|
-
throw new Error("invalid features");
|
|
35
|
-
feature.bbox = feature.bbox ? feature.bbox : turfBBox(feature);
|
|
36
|
-
load.push(feature);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return rbush.prototype.load.call(this, load);
|
|
40
|
-
};
|
|
41
|
-
tree.remove = function(feature, equals) {
|
|
42
|
-
if (feature.type !== "Feature")
|
|
43
|
-
throw new Error("invalid feature");
|
|
44
|
-
feature.bbox = feature.bbox ? feature.bbox : turfBBox(feature);
|
|
45
|
-
return rbush.prototype.remove.call(this, feature, equals);
|
|
46
|
-
};
|
|
47
|
-
tree.clear = function() {
|
|
48
|
-
return rbush.prototype.clear.call(this);
|
|
49
|
-
};
|
|
50
|
-
tree.search = function(geojson) {
|
|
51
|
-
var features = rbush.prototype.search.call(this, this.toBBox(geojson));
|
|
52
|
-
return featureCollection(features);
|
|
53
|
-
};
|
|
54
|
-
tree.collides = function(geojson) {
|
|
55
|
-
return rbush.prototype.collides.call(this, this.toBBox(geojson));
|
|
56
|
-
};
|
|
57
|
-
tree.all = function() {
|
|
58
|
-
var features = rbush.prototype.all.call(this);
|
|
59
|
-
return featureCollection(features);
|
|
60
|
-
};
|
|
61
|
-
tree.toJSON = function() {
|
|
62
|
-
return rbush.prototype.toJSON.call(this);
|
|
63
|
-
};
|
|
64
|
-
tree.fromJSON = function(json) {
|
|
65
|
-
return rbush.prototype.fromJSON.call(this, json);
|
|
66
|
-
};
|
|
67
|
-
tree.toBBox = function(geojson) {
|
|
68
|
-
var bbox;
|
|
69
|
-
if (geojson.bbox)
|
|
70
|
-
bbox = geojson.bbox;
|
|
71
|
-
else if (Array.isArray(geojson) && geojson.length === 4)
|
|
72
|
-
bbox = geojson;
|
|
73
|
-
else if (Array.isArray(geojson) && geojson.length === 6)
|
|
74
|
-
bbox = [geojson[0], geojson[1], geojson[3], geojson[4]];
|
|
75
|
-
else if (geojson.type === "Feature")
|
|
76
|
-
bbox = turfBBox(geojson);
|
|
77
|
-
else if (geojson.type === "FeatureCollection")
|
|
78
|
-
bbox = turfBBox(geojson);
|
|
79
|
-
else
|
|
80
|
-
throw new Error("invalid geojson");
|
|
81
|
-
return {
|
|
82
|
-
minX: bbox[0],
|
|
83
|
-
minY: bbox[1],
|
|
84
|
-
maxX: bbox[2],
|
|
85
|
-
maxY: bbox[3]
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
return tree;
|
|
89
|
-
}
|
|
90
|
-
_geojsonRbush_3_2_0_geojsonRbush.exports = geojsonRbush;
|
|
91
|
-
_geojsonRbush_3_2_0_geojsonRbush.exports.default = geojsonRbush;
|
|
92
|
-
var rbush$1 = _geojsonRbush_3_2_0_geojsonRbush.exports;
|
|
93
|
-
export { rbush$1 as r };
|