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,25 +0,0 @@
|
|
|
1
|
-
import { d as degreesToRadians, r as radiansToDegrees } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
2
|
-
import { a as getCoord } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
3
|
-
function bearing(start, end, options) {
|
|
4
|
-
if (options === void 0) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
if (options.final === true) {
|
|
8
|
-
return calculateFinalBearing(start, end);
|
|
9
|
-
}
|
|
10
|
-
var coordinates1 = getCoord(start);
|
|
11
|
-
var coordinates2 = getCoord(end);
|
|
12
|
-
var lon1 = degreesToRadians(coordinates1[0]);
|
|
13
|
-
var lon2 = degreesToRadians(coordinates2[0]);
|
|
14
|
-
var lat1 = degreesToRadians(coordinates1[1]);
|
|
15
|
-
var lat2 = degreesToRadians(coordinates2[1]);
|
|
16
|
-
var a = Math.sin(lon2 - lon1) * Math.cos(lat2);
|
|
17
|
-
var b = Math.cos(lat1) * Math.sin(lat2) - Math.sin(lat1) * Math.cos(lat2) * Math.cos(lon2 - lon1);
|
|
18
|
-
return radiansToDegrees(Math.atan2(a, b));
|
|
19
|
-
}
|
|
20
|
-
function calculateFinalBearing(start, end) {
|
|
21
|
-
var bear = bearing(end, start);
|
|
22
|
-
bear = (bear + 180) % 360;
|
|
23
|
-
return bear;
|
|
24
|
-
}
|
|
25
|
-
export { bearing as b };
|
package/dist/js/_@turf_bezier-spline@6.5.0@@turf/_@turf_bezier-spline@6.5.0@@turf.fa7991dd.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { l as lineString } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
2
|
-
import { g as getGeom } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
3
|
-
var Spline = function() {
|
|
4
|
-
function Spline2(options) {
|
|
5
|
-
this.points = options.points || [];
|
|
6
|
-
this.duration = options.duration || 1e4;
|
|
7
|
-
this.sharpness = options.sharpness || 0.85;
|
|
8
|
-
this.centers = [];
|
|
9
|
-
this.controls = [];
|
|
10
|
-
this.stepLength = options.stepLength || 60;
|
|
11
|
-
this.length = this.points.length;
|
|
12
|
-
this.delay = 0;
|
|
13
|
-
for (var i = 0; i < this.length; i++) {
|
|
14
|
-
this.points[i].z = this.points[i].z || 0;
|
|
15
|
-
}
|
|
16
|
-
for (var i = 0; i < this.length - 1; i++) {
|
|
17
|
-
var p1 = this.points[i];
|
|
18
|
-
var p2 = this.points[i + 1];
|
|
19
|
-
this.centers.push({
|
|
20
|
-
x: (p1.x + p2.x) / 2,
|
|
21
|
-
y: (p1.y + p2.y) / 2,
|
|
22
|
-
z: (p1.z + p2.z) / 2
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
this.controls.push([this.points[0], this.points[0]]);
|
|
26
|
-
for (var i = 0; i < this.centers.length - 1; i++) {
|
|
27
|
-
var dx = this.points[i + 1].x - (this.centers[i].x + this.centers[i + 1].x) / 2;
|
|
28
|
-
var dy = this.points[i + 1].y - (this.centers[i].y + this.centers[i + 1].y) / 2;
|
|
29
|
-
var dz = this.points[i + 1].z - (this.centers[i].y + this.centers[i + 1].z) / 2;
|
|
30
|
-
this.controls.push([
|
|
31
|
-
{
|
|
32
|
-
x: (1 - this.sharpness) * this.points[i + 1].x + this.sharpness * (this.centers[i].x + dx),
|
|
33
|
-
y: (1 - this.sharpness) * this.points[i + 1].y + this.sharpness * (this.centers[i].y + dy),
|
|
34
|
-
z: (1 - this.sharpness) * this.points[i + 1].z + this.sharpness * (this.centers[i].z + dz)
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
x: (1 - this.sharpness) * this.points[i + 1].x + this.sharpness * (this.centers[i + 1].x + dx),
|
|
38
|
-
y: (1 - this.sharpness) * this.points[i + 1].y + this.sharpness * (this.centers[i + 1].y + dy),
|
|
39
|
-
z: (1 - this.sharpness) * this.points[i + 1].z + this.sharpness * (this.centers[i + 1].z + dz)
|
|
40
|
-
}
|
|
41
|
-
]);
|
|
42
|
-
}
|
|
43
|
-
this.controls.push([
|
|
44
|
-
this.points[this.length - 1],
|
|
45
|
-
this.points[this.length - 1]
|
|
46
|
-
]);
|
|
47
|
-
this.steps = this.cacheSteps(this.stepLength);
|
|
48
|
-
return this;
|
|
49
|
-
}
|
|
50
|
-
Spline2.prototype.cacheSteps = function(mindist) {
|
|
51
|
-
var steps = [];
|
|
52
|
-
var laststep = this.pos(0);
|
|
53
|
-
steps.push(0);
|
|
54
|
-
for (var t = 0; t < this.duration; t += 10) {
|
|
55
|
-
var step = this.pos(t);
|
|
56
|
-
var dist = Math.sqrt((step.x - laststep.x) * (step.x - laststep.x) + (step.y - laststep.y) * (step.y - laststep.y) + (step.z - laststep.z) * (step.z - laststep.z));
|
|
57
|
-
if (dist > mindist) {
|
|
58
|
-
steps.push(t);
|
|
59
|
-
laststep = step;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return steps;
|
|
63
|
-
};
|
|
64
|
-
Spline2.prototype.vector = function(t) {
|
|
65
|
-
var p1 = this.pos(t + 10);
|
|
66
|
-
var p2 = this.pos(t - 10);
|
|
67
|
-
return {
|
|
68
|
-
angle: 180 * Math.atan2(p1.y - p2.y, p1.x - p2.x) / 3.14,
|
|
69
|
-
speed: Math.sqrt((p2.x - p1.x) * (p2.x - p1.x) + (p2.y - p1.y) * (p2.y - p1.y) + (p2.z - p1.z) * (p2.z - p1.z))
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
Spline2.prototype.pos = function(time) {
|
|
73
|
-
var t = time - this.delay;
|
|
74
|
-
if (t < 0) {
|
|
75
|
-
t = 0;
|
|
76
|
-
}
|
|
77
|
-
if (t > this.duration) {
|
|
78
|
-
t = this.duration - 1;
|
|
79
|
-
}
|
|
80
|
-
var t2 = t / this.duration;
|
|
81
|
-
if (t2 >= 1) {
|
|
82
|
-
return this.points[this.length - 1];
|
|
83
|
-
}
|
|
84
|
-
var n = Math.floor((this.points.length - 1) * t2);
|
|
85
|
-
var t1 = (this.length - 1) * t2 - n;
|
|
86
|
-
return bezier$1(t1, this.points[n], this.controls[n][1], this.controls[n + 1][0], this.points[n + 1]);
|
|
87
|
-
};
|
|
88
|
-
return Spline2;
|
|
89
|
-
}();
|
|
90
|
-
var Spline$1 = Spline;
|
|
91
|
-
function bezier$1(t, p1, c1, c2, p2) {
|
|
92
|
-
var b = B(t);
|
|
93
|
-
var pos = {
|
|
94
|
-
x: p2.x * b[0] + c2.x * b[1] + c1.x * b[2] + p1.x * b[3],
|
|
95
|
-
y: p2.y * b[0] + c2.y * b[1] + c1.y * b[2] + p1.y * b[3],
|
|
96
|
-
z: p2.z * b[0] + c2.z * b[1] + c1.z * b[2] + p1.z * b[3]
|
|
97
|
-
};
|
|
98
|
-
return pos;
|
|
99
|
-
}
|
|
100
|
-
function B(t) {
|
|
101
|
-
var t2 = t * t;
|
|
102
|
-
var t3 = t2 * t;
|
|
103
|
-
return [
|
|
104
|
-
t3,
|
|
105
|
-
3 * t2 * (1 - t),
|
|
106
|
-
3 * t * (1 - t) * (1 - t),
|
|
107
|
-
(1 - t) * (1 - t) * (1 - t)
|
|
108
|
-
];
|
|
109
|
-
}
|
|
110
|
-
function bezier(line, options) {
|
|
111
|
-
if (options === void 0) {
|
|
112
|
-
options = {};
|
|
113
|
-
}
|
|
114
|
-
var resolution = options.resolution || 1e4;
|
|
115
|
-
var sharpness = options.sharpness || 0.85;
|
|
116
|
-
var coords = [];
|
|
117
|
-
var points = getGeom(line).coordinates.map(function(pt) {
|
|
118
|
-
return { x: pt[0], y: pt[1] };
|
|
119
|
-
});
|
|
120
|
-
var spline = new Spline$1({
|
|
121
|
-
duration: resolution,
|
|
122
|
-
points,
|
|
123
|
-
sharpness
|
|
124
|
-
});
|
|
125
|
-
var pushCoord = function(time) {
|
|
126
|
-
var pos = spline.pos(time);
|
|
127
|
-
if (Math.floor(time / 100) % 2 === 0) {
|
|
128
|
-
coords.push([pos.x, pos.y]);
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
for (var i = 0; i < spline.duration; i += 10) {
|
|
132
|
-
pushCoord(i);
|
|
133
|
-
}
|
|
134
|
-
pushCoord(spline.duration);
|
|
135
|
-
return lineString(coords, options.properties);
|
|
136
|
-
}
|
|
137
|
-
export { bezier as b };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/js/_@turf_boolean-contains@6.5.0@@turf/_@turf_boolean-contains@6.5.0@@turf.836d55d8.js
DELETED
|
@@ -1,191 +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 booleanPointInPolygon } from "../_@turf_boolean-point-in-polygon@6.5.0@@turf/_@turf_boolean-point-in-polygon@6.5.0@@turf.62a2d48a.js";
|
|
3
|
-
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";
|
|
4
|
-
import { g as getGeom } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
5
|
-
function booleanContains(feature1, feature2) {
|
|
6
|
-
var geom1 = getGeom(feature1);
|
|
7
|
-
var geom2 = getGeom(feature2);
|
|
8
|
-
var type1 = geom1.type;
|
|
9
|
-
var type2 = geom2.type;
|
|
10
|
-
var coords1 = geom1.coordinates;
|
|
11
|
-
var coords2 = geom2.coordinates;
|
|
12
|
-
switch (type1) {
|
|
13
|
-
case "Point":
|
|
14
|
-
switch (type2) {
|
|
15
|
-
case "Point":
|
|
16
|
-
return compareCoords(coords1, coords2);
|
|
17
|
-
default:
|
|
18
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
19
|
-
}
|
|
20
|
-
case "MultiPoint":
|
|
21
|
-
switch (type2) {
|
|
22
|
-
case "Point":
|
|
23
|
-
return isPointInMultiPoint(geom1, geom2);
|
|
24
|
-
case "MultiPoint":
|
|
25
|
-
return isMultiPointInMultiPoint(geom1, geom2);
|
|
26
|
-
default:
|
|
27
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
28
|
-
}
|
|
29
|
-
case "LineString":
|
|
30
|
-
switch (type2) {
|
|
31
|
-
case "Point":
|
|
32
|
-
return booleanPointOnLine(geom2, geom1, { ignoreEndVertices: true });
|
|
33
|
-
case "LineString":
|
|
34
|
-
return isLineOnLine(geom1, geom2);
|
|
35
|
-
case "MultiPoint":
|
|
36
|
-
return isMultiPointOnLine(geom1, geom2);
|
|
37
|
-
default:
|
|
38
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
39
|
-
}
|
|
40
|
-
case "Polygon":
|
|
41
|
-
switch (type2) {
|
|
42
|
-
case "Point":
|
|
43
|
-
return booleanPointInPolygon(geom2, geom1, { ignoreBoundary: true });
|
|
44
|
-
case "LineString":
|
|
45
|
-
return isLineInPoly(geom1, geom2);
|
|
46
|
-
case "Polygon":
|
|
47
|
-
return isPolyInPoly(geom1, geom2);
|
|
48
|
-
case "MultiPoint":
|
|
49
|
-
return isMultiPointInPoly(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(multiPoint, pt) {
|
|
58
|
-
var i;
|
|
59
|
-
var output = false;
|
|
60
|
-
for (i = 0; i < multiPoint.coordinates.length; i++) {
|
|
61
|
-
if (compareCoords(multiPoint.coordinates[i], pt.coordinates)) {
|
|
62
|
-
output = true;
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return output;
|
|
67
|
-
}
|
|
68
|
-
function isMultiPointInMultiPoint(multiPoint1, multiPoint2) {
|
|
69
|
-
for (var _i = 0, _a = multiPoint2.coordinates; _i < _a.length; _i++) {
|
|
70
|
-
var coord2 = _a[_i];
|
|
71
|
-
var matchFound = false;
|
|
72
|
-
for (var _b = 0, _c = multiPoint1.coordinates; _b < _c.length; _b++) {
|
|
73
|
-
var coord1 = _c[_b];
|
|
74
|
-
if (compareCoords(coord2, coord1)) {
|
|
75
|
-
matchFound = true;
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
if (!matchFound) {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
function isMultiPointOnLine(lineString, multiPoint) {
|
|
86
|
-
var haveFoundInteriorPoint = false;
|
|
87
|
-
for (var _i = 0, _a = multiPoint.coordinates; _i < _a.length; _i++) {
|
|
88
|
-
var coord = _a[_i];
|
|
89
|
-
if (booleanPointOnLine(coord, lineString, { ignoreEndVertices: true })) {
|
|
90
|
-
haveFoundInteriorPoint = true;
|
|
91
|
-
}
|
|
92
|
-
if (!booleanPointOnLine(coord, lineString)) {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
if (haveFoundInteriorPoint) {
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
|
-
return false;
|
|
100
|
-
}
|
|
101
|
-
function isMultiPointInPoly(polygon, multiPoint) {
|
|
102
|
-
for (var _i = 0, _a = multiPoint.coordinates; _i < _a.length; _i++) {
|
|
103
|
-
var coord = _a[_i];
|
|
104
|
-
if (!booleanPointInPolygon(coord, polygon, { ignoreBoundary: true })) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return true;
|
|
109
|
-
}
|
|
110
|
-
function isLineOnLine(lineString1, lineString2) {
|
|
111
|
-
var haveFoundInteriorPoint = false;
|
|
112
|
-
for (var _i = 0, _a = lineString2.coordinates; _i < _a.length; _i++) {
|
|
113
|
-
var coords = _a[_i];
|
|
114
|
-
if (booleanPointOnLine({ type: "Point", coordinates: coords }, lineString1, {
|
|
115
|
-
ignoreEndVertices: true
|
|
116
|
-
})) {
|
|
117
|
-
haveFoundInteriorPoint = true;
|
|
118
|
-
}
|
|
119
|
-
if (!booleanPointOnLine({ type: "Point", coordinates: coords }, lineString1, {
|
|
120
|
-
ignoreEndVertices: false
|
|
121
|
-
})) {
|
|
122
|
-
return false;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return haveFoundInteriorPoint;
|
|
126
|
-
}
|
|
127
|
-
function isLineInPoly(polygon, linestring) {
|
|
128
|
-
var output = false;
|
|
129
|
-
var i = 0;
|
|
130
|
-
var polyBbox = bbox(polygon);
|
|
131
|
-
var lineBbox = bbox(linestring);
|
|
132
|
-
if (!doBBoxOverlap(polyBbox, lineBbox)) {
|
|
133
|
-
return false;
|
|
134
|
-
}
|
|
135
|
-
for (i; i < linestring.coordinates.length - 1; i++) {
|
|
136
|
-
var midPoint = getMidpoint(linestring.coordinates[i], linestring.coordinates[i + 1]);
|
|
137
|
-
if (booleanPointInPolygon({ type: "Point", coordinates: midPoint }, polygon, {
|
|
138
|
-
ignoreBoundary: true
|
|
139
|
-
})) {
|
|
140
|
-
output = true;
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return output;
|
|
145
|
-
}
|
|
146
|
-
function isPolyInPoly(feature1, feature2) {
|
|
147
|
-
if (feature1.type === "Feature" && feature1.geometry === null) {
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
if (feature2.type === "Feature" && feature2.geometry === null) {
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
var poly1Bbox = bbox(feature1);
|
|
154
|
-
var poly2Bbox = bbox(feature2);
|
|
155
|
-
if (!doBBoxOverlap(poly1Bbox, poly2Bbox)) {
|
|
156
|
-
return false;
|
|
157
|
-
}
|
|
158
|
-
var coords = getGeom(feature2).coordinates;
|
|
159
|
-
for (var _i = 0, coords_1 = coords; _i < coords_1.length; _i++) {
|
|
160
|
-
var ring = coords_1[_i];
|
|
161
|
-
for (var _a = 0, ring_1 = ring; _a < ring_1.length; _a++) {
|
|
162
|
-
var coord = ring_1[_a];
|
|
163
|
-
if (!booleanPointInPolygon(coord, feature1)) {
|
|
164
|
-
return false;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
return true;
|
|
169
|
-
}
|
|
170
|
-
function doBBoxOverlap(bbox1, bbox2) {
|
|
171
|
-
if (bbox1[0] > bbox2[0]) {
|
|
172
|
-
return false;
|
|
173
|
-
}
|
|
174
|
-
if (bbox1[2] < bbox2[2]) {
|
|
175
|
-
return false;
|
|
176
|
-
}
|
|
177
|
-
if (bbox1[1] > bbox2[1]) {
|
|
178
|
-
return false;
|
|
179
|
-
}
|
|
180
|
-
if (bbox1[3] < bbox2[3]) {
|
|
181
|
-
return false;
|
|
182
|
-
}
|
|
183
|
-
return true;
|
|
184
|
-
}
|
|
185
|
-
function compareCoords(pair1, pair2) {
|
|
186
|
-
return pair1[0] === pair2[0] && pair1[1] === pair2[1];
|
|
187
|
-
}
|
|
188
|
-
function getMidpoint(pair1, pair2) {
|
|
189
|
-
return [(pair1[0] + pair2[0]) / 2, (pair1[1] + pair2[1]) / 2];
|
|
190
|
-
}
|
|
191
|
-
export { booleanContains as b };
|
package/dist/js/_@turf_boolean-crosses@6.5.0@@turf/_@turf_boolean-crosses@6.5.0@@turf.c5f65a28.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { l as lineIntersect } from "../_@turf_line-intersect@6.5.0@@turf/_@turf_line-intersect@6.5.0@@turf.c4d81948.js";
|
|
2
|
-
import { p as polygonToLine } from "../_@turf_polygon-to-line@6.5.0@@turf/_@turf_polygon-to-line@6.5.0@@turf.3177cfb1.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
|
-
import { p as point } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
6
|
-
function booleanCrosses(feature1, feature2) {
|
|
7
|
-
var geom1 = getGeom(feature1);
|
|
8
|
-
var geom2 = getGeom(feature2);
|
|
9
|
-
var type1 = geom1.type;
|
|
10
|
-
var type2 = geom2.type;
|
|
11
|
-
switch (type1) {
|
|
12
|
-
case "MultiPoint":
|
|
13
|
-
switch (type2) {
|
|
14
|
-
case "LineString":
|
|
15
|
-
return doMultiPointAndLineStringCross(geom1, geom2);
|
|
16
|
-
case "Polygon":
|
|
17
|
-
return doesMultiPointCrossPoly(geom1, geom2);
|
|
18
|
-
default:
|
|
19
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
20
|
-
}
|
|
21
|
-
case "LineString":
|
|
22
|
-
switch (type2) {
|
|
23
|
-
case "MultiPoint":
|
|
24
|
-
return doMultiPointAndLineStringCross(geom2, geom1);
|
|
25
|
-
case "LineString":
|
|
26
|
-
return doLineStringsCross(geom1, geom2);
|
|
27
|
-
case "Polygon":
|
|
28
|
-
return doLineStringAndPolygonCross(geom1, geom2);
|
|
29
|
-
default:
|
|
30
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
31
|
-
}
|
|
32
|
-
case "Polygon":
|
|
33
|
-
switch (type2) {
|
|
34
|
-
case "MultiPoint":
|
|
35
|
-
return doesMultiPointCrossPoly(geom2, geom1);
|
|
36
|
-
case "LineString":
|
|
37
|
-
return doLineStringAndPolygonCross(geom2, geom1);
|
|
38
|
-
default:
|
|
39
|
-
throw new Error("feature2 " + type2 + " geometry not supported");
|
|
40
|
-
}
|
|
41
|
-
default:
|
|
42
|
-
throw new Error("feature1 " + type1 + " geometry not supported");
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function doMultiPointAndLineStringCross(multiPoint, lineString) {
|
|
46
|
-
var foundIntPoint = false;
|
|
47
|
-
var foundExtPoint = false;
|
|
48
|
-
var pointLength = multiPoint.coordinates.length;
|
|
49
|
-
var i = 0;
|
|
50
|
-
while (i < pointLength && !foundIntPoint && !foundExtPoint) {
|
|
51
|
-
for (var i2 = 0; i2 < lineString.coordinates.length - 1; i2++) {
|
|
52
|
-
var incEndVertices = true;
|
|
53
|
-
if (i2 === 0 || i2 === lineString.coordinates.length - 2) {
|
|
54
|
-
incEndVertices = false;
|
|
55
|
-
}
|
|
56
|
-
if (isPointOnLineSegment(lineString.coordinates[i2], lineString.coordinates[i2 + 1], multiPoint.coordinates[i], incEndVertices)) {
|
|
57
|
-
foundIntPoint = true;
|
|
58
|
-
} else {
|
|
59
|
-
foundExtPoint = true;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
i++;
|
|
63
|
-
}
|
|
64
|
-
return foundIntPoint && foundExtPoint;
|
|
65
|
-
}
|
|
66
|
-
function doLineStringsCross(lineString1, lineString2) {
|
|
67
|
-
var doLinesIntersect = lineIntersect(lineString1, lineString2);
|
|
68
|
-
if (doLinesIntersect.features.length > 0) {
|
|
69
|
-
for (var i = 0; i < lineString1.coordinates.length - 1; i++) {
|
|
70
|
-
for (var i2 = 0; i2 < lineString2.coordinates.length - 1; i2++) {
|
|
71
|
-
var incEndVertices = true;
|
|
72
|
-
if (i2 === 0 || i2 === lineString2.coordinates.length - 2) {
|
|
73
|
-
incEndVertices = false;
|
|
74
|
-
}
|
|
75
|
-
if (isPointOnLineSegment(lineString1.coordinates[i], lineString1.coordinates[i + 1], lineString2.coordinates[i2], incEndVertices)) {
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
function doLineStringAndPolygonCross(lineString, polygon) {
|
|
84
|
-
var line = polygonToLine(polygon);
|
|
85
|
-
var doLinesIntersect = lineIntersect(lineString, line);
|
|
86
|
-
if (doLinesIntersect.features.length > 0) {
|
|
87
|
-
return true;
|
|
88
|
-
}
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
function doesMultiPointCrossPoly(multiPoint, polygon) {
|
|
92
|
-
var foundIntPoint = false;
|
|
93
|
-
var foundExtPoint = false;
|
|
94
|
-
var pointLength = multiPoint.coordinates.length;
|
|
95
|
-
for (var i = 0; i < pointLength && (!foundIntPoint || !foundExtPoint); i++) {
|
|
96
|
-
if (booleanPointInPolygon(point(multiPoint.coordinates[i]), polygon)) {
|
|
97
|
-
foundIntPoint = true;
|
|
98
|
-
} else {
|
|
99
|
-
foundExtPoint = true;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return foundExtPoint && foundIntPoint;
|
|
103
|
-
}
|
|
104
|
-
function isPointOnLineSegment(lineSegmentStart, lineSegmentEnd, pt, incEnd) {
|
|
105
|
-
var dxc = pt[0] - lineSegmentStart[0];
|
|
106
|
-
var dyc = pt[1] - lineSegmentStart[1];
|
|
107
|
-
var dxl = lineSegmentEnd[0] - lineSegmentStart[0];
|
|
108
|
-
var dyl = lineSegmentEnd[1] - lineSegmentStart[1];
|
|
109
|
-
var cross = dxc * dyl - dyc * dxl;
|
|
110
|
-
if (cross !== 0) {
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
if (incEnd) {
|
|
114
|
-
if (Math.abs(dxl) >= Math.abs(dyl)) {
|
|
115
|
-
return dxl > 0 ? lineSegmentStart[0] <= pt[0] && pt[0] <= lineSegmentEnd[0] : lineSegmentEnd[0] <= pt[0] && pt[0] <= lineSegmentStart[0];
|
|
116
|
-
}
|
|
117
|
-
return dyl > 0 ? lineSegmentStart[1] <= pt[1] && pt[1] <= lineSegmentEnd[1] : lineSegmentEnd[1] <= pt[1] && pt[1] <= lineSegmentStart[1];
|
|
118
|
-
} else {
|
|
119
|
-
if (Math.abs(dxl) >= Math.abs(dyl)) {
|
|
120
|
-
return dxl > 0 ? lineSegmentStart[0] < pt[0] && pt[0] < lineSegmentEnd[0] : lineSegmentEnd[0] < pt[0] && pt[0] < lineSegmentStart[0];
|
|
121
|
-
}
|
|
122
|
-
return dyl > 0 ? lineSegmentStart[1] < pt[1] && pt[1] < lineSegmentEnd[1] : lineSegmentEnd[1] < pt[1] && pt[1] < lineSegmentStart[1];
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
export { booleanCrosses as b };
|
package/dist/js/_@turf_boolean-disjoint@6.5.0@@turf/_@turf_boolean-disjoint@6.5.0@@turf.bbd60872.js
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { b as booleanPointInPolygon } from "../_@turf_boolean-point-in-polygon@6.5.0@@turf/_@turf_boolean-point-in-polygon@6.5.0@@turf.62a2d48a.js";
|
|
2
|
-
import { l as lineIntersect } from "../_@turf_line-intersect@6.5.0@@turf/_@turf_line-intersect@6.5.0@@turf.c4d81948.js";
|
|
3
|
-
import { f as flattenEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
4
|
-
import { a as polygonToLine } from "../_@turf_polygon-to-line@6.5.0@@turf/_@turf_polygon-to-line@6.5.0@@turf.3177cfb1.js";
|
|
5
|
-
function booleanDisjoint(feature1, feature2) {
|
|
6
|
-
var bool = true;
|
|
7
|
-
flattenEach(feature1, function(flatten1) {
|
|
8
|
-
flattenEach(feature2, function(flatten2) {
|
|
9
|
-
if (bool === false) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
bool = disjoint(flatten1.geometry, flatten2.geometry);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return bool;
|
|
16
|
-
}
|
|
17
|
-
function disjoint(geom1, geom2) {
|
|
18
|
-
switch (geom1.type) {
|
|
19
|
-
case "Point":
|
|
20
|
-
switch (geom2.type) {
|
|
21
|
-
case "Point":
|
|
22
|
-
return !compareCoords(geom1.coordinates, geom2.coordinates);
|
|
23
|
-
case "LineString":
|
|
24
|
-
return !isPointOnLine(geom2, geom1);
|
|
25
|
-
case "Polygon":
|
|
26
|
-
return !booleanPointInPolygon(geom1, geom2);
|
|
27
|
-
}
|
|
28
|
-
break;
|
|
29
|
-
case "LineString":
|
|
30
|
-
switch (geom2.type) {
|
|
31
|
-
case "Point":
|
|
32
|
-
return !isPointOnLine(geom1, geom2);
|
|
33
|
-
case "LineString":
|
|
34
|
-
return !isLineOnLine(geom1, geom2);
|
|
35
|
-
case "Polygon":
|
|
36
|
-
return !isLineInPoly(geom2, geom1);
|
|
37
|
-
}
|
|
38
|
-
break;
|
|
39
|
-
case "Polygon":
|
|
40
|
-
switch (geom2.type) {
|
|
41
|
-
case "Point":
|
|
42
|
-
return !booleanPointInPolygon(geom2, geom1);
|
|
43
|
-
case "LineString":
|
|
44
|
-
return !isLineInPoly(geom1, geom2);
|
|
45
|
-
case "Polygon":
|
|
46
|
-
return !isPolyInPoly(geom2, geom1);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
function isPointOnLine(lineString, pt) {
|
|
52
|
-
for (var i = 0; i < lineString.coordinates.length - 1; i++) {
|
|
53
|
-
if (isPointOnLineSegment(lineString.coordinates[i], lineString.coordinates[i + 1], pt.coordinates)) {
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
function isLineOnLine(lineString1, lineString2) {
|
|
60
|
-
var doLinesIntersect = lineIntersect(lineString1, lineString2);
|
|
61
|
-
if (doLinesIntersect.features.length > 0) {
|
|
62
|
-
return true;
|
|
63
|
-
}
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
function isLineInPoly(polygon, lineString) {
|
|
67
|
-
for (var _i = 0, _a = lineString.coordinates; _i < _a.length; _i++) {
|
|
68
|
-
var coord = _a[_i];
|
|
69
|
-
if (booleanPointInPolygon(coord, polygon)) {
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
var doLinesIntersect = lineIntersect(lineString, polygonToLine(polygon));
|
|
74
|
-
if (doLinesIntersect.features.length > 0) {
|
|
75
|
-
return true;
|
|
76
|
-
}
|
|
77
|
-
return false;
|
|
78
|
-
}
|
|
79
|
-
function isPolyInPoly(feature1, feature2) {
|
|
80
|
-
for (var _i = 0, _a = feature1.coordinates[0]; _i < _a.length; _i++) {
|
|
81
|
-
var coord1 = _a[_i];
|
|
82
|
-
if (booleanPointInPolygon(coord1, feature2)) {
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
for (var _b = 0, _c = feature2.coordinates[0]; _b < _c.length; _b++) {
|
|
87
|
-
var coord2 = _c[_b];
|
|
88
|
-
if (booleanPointInPolygon(coord2, feature1)) {
|
|
89
|
-
return true;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
var doLinesIntersect = lineIntersect(polygonToLine(feature1), polygonToLine(feature2));
|
|
93
|
-
if (doLinesIntersect.features.length > 0) {
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
function isPointOnLineSegment(lineSegmentStart, lineSegmentEnd, pt) {
|
|
99
|
-
var dxc = pt[0] - lineSegmentStart[0];
|
|
100
|
-
var dyc = pt[1] - lineSegmentStart[1];
|
|
101
|
-
var dxl = lineSegmentEnd[0] - lineSegmentStart[0];
|
|
102
|
-
var dyl = lineSegmentEnd[1] - lineSegmentStart[1];
|
|
103
|
-
var cross = dxc * dyl - dyc * dxl;
|
|
104
|
-
if (cross !== 0) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
if (Math.abs(dxl) >= Math.abs(dyl)) {
|
|
108
|
-
if (dxl > 0) {
|
|
109
|
-
return lineSegmentStart[0] <= pt[0] && pt[0] <= lineSegmentEnd[0];
|
|
110
|
-
} else {
|
|
111
|
-
return lineSegmentEnd[0] <= pt[0] && pt[0] <= lineSegmentStart[0];
|
|
112
|
-
}
|
|
113
|
-
} else if (dyl > 0) {
|
|
114
|
-
return lineSegmentStart[1] <= pt[1] && pt[1] <= lineSegmentEnd[1];
|
|
115
|
-
} else {
|
|
116
|
-
return lineSegmentEnd[1] <= pt[1] && pt[1] <= lineSegmentStart[1];
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
function compareCoords(pair1, pair2) {
|
|
120
|
-
return pair1[0] === pair2[0] && pair1[1] === pair2[1];
|
|
121
|
-
}
|
|
122
|
-
export { booleanDisjoint as b };
|
package/dist/js/_@turf_boolean-equal@6.5.0@@turf/_@turf_boolean-equal@6.5.0@@turf.341ffa01.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../_geojson-equality@0.1.6@geojson-equality/_geojson-equality@0.1.6@geojson-equality.09ffa121.js";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { b as booleanDisjoint } from "../_@turf_boolean-disjoint@6.5.0@@turf/_@turf_boolean-disjoint@6.5.0@@turf.bbd60872.js";
|
|
2
|
-
import { f as flattenEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
3
|
-
function booleanIntersects(feature1, feature2) {
|
|
4
|
-
var bool = false;
|
|
5
|
-
flattenEach(feature1, function(flatten1) {
|
|
6
|
-
flattenEach(feature2, function(flatten2) {
|
|
7
|
-
if (bool === true) {
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
bool = !booleanDisjoint(flatten1.geometry, flatten2.geometry);
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
return bool;
|
|
14
|
-
}
|
|
15
|
-
export { booleanIntersects as b };
|
package/dist/js/_@turf_boolean-overlap@6.5.0@@turf/_@turf_boolean-overlap@6.5.0@@turf.a519db25.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { s as segmentEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
|
|
2
|
-
import { g as getGeom } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
|
|
3
|
-
import { l as lineOverlap } from "../_@turf_line-overlap@6.5.0@@turf/_@turf_line-overlap@6.5.0@@turf.addba9a5.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 { G as GeojsonEquality } from "../_geojson-equality@0.1.6@geojson-equality/_geojson-equality@0.1.6@geojson-equality.09ffa121.js";
|
|
6
|
-
function booleanOverlap(feature1, feature2) {
|
|
7
|
-
var geom1 = getGeom(feature1);
|
|
8
|
-
var geom2 = getGeom(feature2);
|
|
9
|
-
var type1 = geom1.type;
|
|
10
|
-
var type2 = geom2.type;
|
|
11
|
-
if (type1 === "MultiPoint" && type2 !== "MultiPoint" || (type1 === "LineString" || type1 === "MultiLineString") && type2 !== "LineString" && type2 !== "MultiLineString" || (type1 === "Polygon" || type1 === "MultiPolygon") && type2 !== "Polygon" && type2 !== "MultiPolygon") {
|
|
12
|
-
throw new Error("features must be of the same type");
|
|
13
|
-
}
|
|
14
|
-
if (type1 === "Point")
|
|
15
|
-
throw new Error("Point geometry not supported");
|
|
16
|
-
var equality = new GeojsonEquality({ precision: 6 });
|
|
17
|
-
if (equality.compare(feature1, feature2))
|
|
18
|
-
return false;
|
|
19
|
-
var overlap = 0;
|
|
20
|
-
switch (type1) {
|
|
21
|
-
case "MultiPoint":
|
|
22
|
-
for (var i = 0; i < geom1.coordinates.length; i++) {
|
|
23
|
-
for (var j = 0; j < geom2.coordinates.length; j++) {
|
|
24
|
-
var coord1 = geom1.coordinates[i];
|
|
25
|
-
var coord2 = geom2.coordinates[j];
|
|
26
|
-
if (coord1[0] === coord2[0] && coord1[1] === coord2[1]) {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return false;
|
|
32
|
-
case "LineString":
|
|
33
|
-
case "MultiLineString":
|
|
34
|
-
segmentEach(feature1, function(segment1) {
|
|
35
|
-
segmentEach(feature2, function(segment2) {
|
|
36
|
-
if (lineOverlap(segment1, segment2).features.length)
|
|
37
|
-
overlap++;
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
break;
|
|
41
|
-
case "Polygon":
|
|
42
|
-
case "MultiPolygon":
|
|
43
|
-
segmentEach(feature1, function(segment1) {
|
|
44
|
-
segmentEach(feature2, function(segment2) {
|
|
45
|
-
if (lineIntersect(segment1, segment2).features.length)
|
|
46
|
-
overlap++;
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
return overlap > 0;
|
|
52
|
-
}
|
|
53
|
-
export { booleanOverlap as b };
|
package/dist/js/_@turf_boolean-parallel@6.5.0@@turf/_@turf_boolean-parallel@6.5.0@@turf.dbf2bc2d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|