mirage2d 1.1.3 → 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/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 +3 -3
- 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,364 +0,0 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace } from "../_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js";
|
|
2
|
-
var earthRadius = 63710088e-1;
|
|
3
|
-
var factors = {
|
|
4
|
-
centimeters: earthRadius * 100,
|
|
5
|
-
centimetres: earthRadius * 100,
|
|
6
|
-
degrees: earthRadius / 111325,
|
|
7
|
-
feet: earthRadius * 3.28084,
|
|
8
|
-
inches: earthRadius * 39.37,
|
|
9
|
-
kilometers: earthRadius / 1e3,
|
|
10
|
-
kilometres: earthRadius / 1e3,
|
|
11
|
-
meters: earthRadius,
|
|
12
|
-
metres: earthRadius,
|
|
13
|
-
miles: earthRadius / 1609.344,
|
|
14
|
-
millimeters: earthRadius * 1e3,
|
|
15
|
-
millimetres: earthRadius * 1e3,
|
|
16
|
-
nauticalmiles: earthRadius / 1852,
|
|
17
|
-
radians: 1,
|
|
18
|
-
yards: earthRadius * 1.0936
|
|
19
|
-
};
|
|
20
|
-
var unitsFactors = {
|
|
21
|
-
centimeters: 100,
|
|
22
|
-
centimetres: 100,
|
|
23
|
-
degrees: 1 / 111325,
|
|
24
|
-
feet: 3.28084,
|
|
25
|
-
inches: 39.37,
|
|
26
|
-
kilometers: 1 / 1e3,
|
|
27
|
-
kilometres: 1 / 1e3,
|
|
28
|
-
meters: 1,
|
|
29
|
-
metres: 1,
|
|
30
|
-
miles: 1 / 1609.344,
|
|
31
|
-
millimeters: 1e3,
|
|
32
|
-
millimetres: 1e3,
|
|
33
|
-
nauticalmiles: 1 / 1852,
|
|
34
|
-
radians: 1 / earthRadius,
|
|
35
|
-
yards: 1.0936133
|
|
36
|
-
};
|
|
37
|
-
var areaFactors = {
|
|
38
|
-
acres: 247105e-9,
|
|
39
|
-
centimeters: 1e4,
|
|
40
|
-
centimetres: 1e4,
|
|
41
|
-
feet: 10.763910417,
|
|
42
|
-
hectares: 1e-4,
|
|
43
|
-
inches: 1550.003100006,
|
|
44
|
-
kilometers: 1e-6,
|
|
45
|
-
kilometres: 1e-6,
|
|
46
|
-
meters: 1,
|
|
47
|
-
metres: 1,
|
|
48
|
-
miles: 386e-9,
|
|
49
|
-
millimeters: 1e6,
|
|
50
|
-
millimetres: 1e6,
|
|
51
|
-
yards: 1.195990046
|
|
52
|
-
};
|
|
53
|
-
function feature(geom, properties, options) {
|
|
54
|
-
if (options === void 0) {
|
|
55
|
-
options = {};
|
|
56
|
-
}
|
|
57
|
-
var feat = { type: "Feature" };
|
|
58
|
-
if (options.id === 0 || options.id) {
|
|
59
|
-
feat.id = options.id;
|
|
60
|
-
}
|
|
61
|
-
if (options.bbox) {
|
|
62
|
-
feat.bbox = options.bbox;
|
|
63
|
-
}
|
|
64
|
-
feat.properties = properties || {};
|
|
65
|
-
feat.geometry = geom;
|
|
66
|
-
return feat;
|
|
67
|
-
}
|
|
68
|
-
function geometry(type, coordinates, _options) {
|
|
69
|
-
switch (type) {
|
|
70
|
-
case "Point":
|
|
71
|
-
return point(coordinates).geometry;
|
|
72
|
-
case "LineString":
|
|
73
|
-
return lineString(coordinates).geometry;
|
|
74
|
-
case "Polygon":
|
|
75
|
-
return polygon(coordinates).geometry;
|
|
76
|
-
case "MultiPoint":
|
|
77
|
-
return multiPoint(coordinates).geometry;
|
|
78
|
-
case "MultiLineString":
|
|
79
|
-
return multiLineString(coordinates).geometry;
|
|
80
|
-
case "MultiPolygon":
|
|
81
|
-
return multiPolygon(coordinates).geometry;
|
|
82
|
-
default:
|
|
83
|
-
throw new Error(type + " is invalid");
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function point(coordinates, properties, options) {
|
|
87
|
-
if (options === void 0) {
|
|
88
|
-
options = {};
|
|
89
|
-
}
|
|
90
|
-
if (!coordinates) {
|
|
91
|
-
throw new Error("coordinates is required");
|
|
92
|
-
}
|
|
93
|
-
if (!Array.isArray(coordinates)) {
|
|
94
|
-
throw new Error("coordinates must be an Array");
|
|
95
|
-
}
|
|
96
|
-
if (coordinates.length < 2) {
|
|
97
|
-
throw new Error("coordinates must be at least 2 numbers long");
|
|
98
|
-
}
|
|
99
|
-
if (!isNumber(coordinates[0]) || !isNumber(coordinates[1])) {
|
|
100
|
-
throw new Error("coordinates must contain numbers");
|
|
101
|
-
}
|
|
102
|
-
var geom = {
|
|
103
|
-
type: "Point",
|
|
104
|
-
coordinates
|
|
105
|
-
};
|
|
106
|
-
return feature(geom, properties, options);
|
|
107
|
-
}
|
|
108
|
-
function points(coordinates, properties, options) {
|
|
109
|
-
if (options === void 0) {
|
|
110
|
-
options = {};
|
|
111
|
-
}
|
|
112
|
-
return featureCollection(coordinates.map(function(coords) {
|
|
113
|
-
return point(coords, properties);
|
|
114
|
-
}), options);
|
|
115
|
-
}
|
|
116
|
-
function polygon(coordinates, properties, options) {
|
|
117
|
-
if (options === void 0) {
|
|
118
|
-
options = {};
|
|
119
|
-
}
|
|
120
|
-
for (var _i = 0, coordinates_1 = coordinates; _i < coordinates_1.length; _i++) {
|
|
121
|
-
var ring = coordinates_1[_i];
|
|
122
|
-
if (ring.length < 4) {
|
|
123
|
-
throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");
|
|
124
|
-
}
|
|
125
|
-
for (var j = 0; j < ring[ring.length - 1].length; j++) {
|
|
126
|
-
if (ring[ring.length - 1][j] !== ring[0][j]) {
|
|
127
|
-
throw new Error("First and last Position are not equivalent.");
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
var geom = {
|
|
132
|
-
type: "Polygon",
|
|
133
|
-
coordinates
|
|
134
|
-
};
|
|
135
|
-
return feature(geom, properties, options);
|
|
136
|
-
}
|
|
137
|
-
function polygons(coordinates, properties, options) {
|
|
138
|
-
if (options === void 0) {
|
|
139
|
-
options = {};
|
|
140
|
-
}
|
|
141
|
-
return featureCollection(coordinates.map(function(coords) {
|
|
142
|
-
return polygon(coords, properties);
|
|
143
|
-
}), options);
|
|
144
|
-
}
|
|
145
|
-
function lineString(coordinates, properties, options) {
|
|
146
|
-
if (options === void 0) {
|
|
147
|
-
options = {};
|
|
148
|
-
}
|
|
149
|
-
if (coordinates.length < 2) {
|
|
150
|
-
throw new Error("coordinates must be an array of two or more positions");
|
|
151
|
-
}
|
|
152
|
-
var geom = {
|
|
153
|
-
type: "LineString",
|
|
154
|
-
coordinates
|
|
155
|
-
};
|
|
156
|
-
return feature(geom, properties, options);
|
|
157
|
-
}
|
|
158
|
-
function lineStrings(coordinates, properties, options) {
|
|
159
|
-
if (options === void 0) {
|
|
160
|
-
options = {};
|
|
161
|
-
}
|
|
162
|
-
return featureCollection(coordinates.map(function(coords) {
|
|
163
|
-
return lineString(coords, properties);
|
|
164
|
-
}), options);
|
|
165
|
-
}
|
|
166
|
-
function featureCollection(features, options) {
|
|
167
|
-
if (options === void 0) {
|
|
168
|
-
options = {};
|
|
169
|
-
}
|
|
170
|
-
var fc = { type: "FeatureCollection" };
|
|
171
|
-
if (options.id) {
|
|
172
|
-
fc.id = options.id;
|
|
173
|
-
}
|
|
174
|
-
if (options.bbox) {
|
|
175
|
-
fc.bbox = options.bbox;
|
|
176
|
-
}
|
|
177
|
-
fc.features = features;
|
|
178
|
-
return fc;
|
|
179
|
-
}
|
|
180
|
-
function multiLineString(coordinates, properties, options) {
|
|
181
|
-
if (options === void 0) {
|
|
182
|
-
options = {};
|
|
183
|
-
}
|
|
184
|
-
var geom = {
|
|
185
|
-
type: "MultiLineString",
|
|
186
|
-
coordinates
|
|
187
|
-
};
|
|
188
|
-
return feature(geom, properties, options);
|
|
189
|
-
}
|
|
190
|
-
function multiPoint(coordinates, properties, options) {
|
|
191
|
-
if (options === void 0) {
|
|
192
|
-
options = {};
|
|
193
|
-
}
|
|
194
|
-
var geom = {
|
|
195
|
-
type: "MultiPoint",
|
|
196
|
-
coordinates
|
|
197
|
-
};
|
|
198
|
-
return feature(geom, properties, options);
|
|
199
|
-
}
|
|
200
|
-
function multiPolygon(coordinates, properties, options) {
|
|
201
|
-
if (options === void 0) {
|
|
202
|
-
options = {};
|
|
203
|
-
}
|
|
204
|
-
var geom = {
|
|
205
|
-
type: "MultiPolygon",
|
|
206
|
-
coordinates
|
|
207
|
-
};
|
|
208
|
-
return feature(geom, properties, options);
|
|
209
|
-
}
|
|
210
|
-
function geometryCollection(geometries, properties, options) {
|
|
211
|
-
if (options === void 0) {
|
|
212
|
-
options = {};
|
|
213
|
-
}
|
|
214
|
-
var geom = {
|
|
215
|
-
type: "GeometryCollection",
|
|
216
|
-
geometries
|
|
217
|
-
};
|
|
218
|
-
return feature(geom, properties, options);
|
|
219
|
-
}
|
|
220
|
-
function round(num, precision) {
|
|
221
|
-
if (precision === void 0) {
|
|
222
|
-
precision = 0;
|
|
223
|
-
}
|
|
224
|
-
if (precision && !(precision >= 0)) {
|
|
225
|
-
throw new Error("precision must be a positive number");
|
|
226
|
-
}
|
|
227
|
-
var multiplier = Math.pow(10, precision || 0);
|
|
228
|
-
return Math.round(num * multiplier) / multiplier;
|
|
229
|
-
}
|
|
230
|
-
function radiansToLength(radians, units) {
|
|
231
|
-
if (units === void 0) {
|
|
232
|
-
units = "kilometers";
|
|
233
|
-
}
|
|
234
|
-
var factor = factors[units];
|
|
235
|
-
if (!factor) {
|
|
236
|
-
throw new Error(units + " units is invalid");
|
|
237
|
-
}
|
|
238
|
-
return radians * factor;
|
|
239
|
-
}
|
|
240
|
-
function lengthToRadians(distance, units) {
|
|
241
|
-
if (units === void 0) {
|
|
242
|
-
units = "kilometers";
|
|
243
|
-
}
|
|
244
|
-
var factor = factors[units];
|
|
245
|
-
if (!factor) {
|
|
246
|
-
throw new Error(units + " units is invalid");
|
|
247
|
-
}
|
|
248
|
-
return distance / factor;
|
|
249
|
-
}
|
|
250
|
-
function lengthToDegrees(distance, units) {
|
|
251
|
-
return radiansToDegrees(lengthToRadians(distance, units));
|
|
252
|
-
}
|
|
253
|
-
function bearingToAzimuth(bearing) {
|
|
254
|
-
var angle = bearing % 360;
|
|
255
|
-
if (angle < 0) {
|
|
256
|
-
angle += 360;
|
|
257
|
-
}
|
|
258
|
-
return angle;
|
|
259
|
-
}
|
|
260
|
-
function radiansToDegrees(radians) {
|
|
261
|
-
var degrees = radians % (2 * Math.PI);
|
|
262
|
-
return degrees * 180 / Math.PI;
|
|
263
|
-
}
|
|
264
|
-
function degreesToRadians(degrees) {
|
|
265
|
-
var radians = degrees % 360;
|
|
266
|
-
return radians * Math.PI / 180;
|
|
267
|
-
}
|
|
268
|
-
function convertLength(length, originalUnit, finalUnit) {
|
|
269
|
-
if (originalUnit === void 0) {
|
|
270
|
-
originalUnit = "kilometers";
|
|
271
|
-
}
|
|
272
|
-
if (finalUnit === void 0) {
|
|
273
|
-
finalUnit = "kilometers";
|
|
274
|
-
}
|
|
275
|
-
if (!(length >= 0)) {
|
|
276
|
-
throw new Error("length must be a positive number");
|
|
277
|
-
}
|
|
278
|
-
return radiansToLength(lengthToRadians(length, originalUnit), finalUnit);
|
|
279
|
-
}
|
|
280
|
-
function convertArea(area, originalUnit, finalUnit) {
|
|
281
|
-
if (originalUnit === void 0) {
|
|
282
|
-
originalUnit = "meters";
|
|
283
|
-
}
|
|
284
|
-
if (finalUnit === void 0) {
|
|
285
|
-
finalUnit = "kilometers";
|
|
286
|
-
}
|
|
287
|
-
if (!(area >= 0)) {
|
|
288
|
-
throw new Error("area must be a positive number");
|
|
289
|
-
}
|
|
290
|
-
var startFactor = areaFactors[originalUnit];
|
|
291
|
-
if (!startFactor) {
|
|
292
|
-
throw new Error("invalid original units");
|
|
293
|
-
}
|
|
294
|
-
var finalFactor = areaFactors[finalUnit];
|
|
295
|
-
if (!finalFactor) {
|
|
296
|
-
throw new Error("invalid final units");
|
|
297
|
-
}
|
|
298
|
-
return area / startFactor * finalFactor;
|
|
299
|
-
}
|
|
300
|
-
function isNumber(num) {
|
|
301
|
-
return !isNaN(num) && num !== null && !Array.isArray(num);
|
|
302
|
-
}
|
|
303
|
-
function isObject(input) {
|
|
304
|
-
return !!input && input.constructor === Object;
|
|
305
|
-
}
|
|
306
|
-
function validateBBox(bbox) {
|
|
307
|
-
if (!bbox) {
|
|
308
|
-
throw new Error("bbox is required");
|
|
309
|
-
}
|
|
310
|
-
if (!Array.isArray(bbox)) {
|
|
311
|
-
throw new Error("bbox must be an Array");
|
|
312
|
-
}
|
|
313
|
-
if (bbox.length !== 4 && bbox.length !== 6) {
|
|
314
|
-
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
315
|
-
}
|
|
316
|
-
bbox.forEach(function(num) {
|
|
317
|
-
if (!isNumber(num)) {
|
|
318
|
-
throw new Error("bbox must only contain numbers");
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
function validateId(id) {
|
|
323
|
-
if (!id) {
|
|
324
|
-
throw new Error("id is required");
|
|
325
|
-
}
|
|
326
|
-
if (["string", "number"].indexOf(typeof id) === -1) {
|
|
327
|
-
throw new Error("id must be a number or a string");
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
var es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
331
|
-
__proto__: null,
|
|
332
|
-
earthRadius,
|
|
333
|
-
factors,
|
|
334
|
-
unitsFactors,
|
|
335
|
-
areaFactors,
|
|
336
|
-
feature,
|
|
337
|
-
geometry,
|
|
338
|
-
point,
|
|
339
|
-
points,
|
|
340
|
-
polygon,
|
|
341
|
-
polygons,
|
|
342
|
-
lineString,
|
|
343
|
-
lineStrings,
|
|
344
|
-
featureCollection,
|
|
345
|
-
multiLineString,
|
|
346
|
-
multiPoint,
|
|
347
|
-
multiPolygon,
|
|
348
|
-
geometryCollection,
|
|
349
|
-
round,
|
|
350
|
-
radiansToLength,
|
|
351
|
-
lengthToRadians,
|
|
352
|
-
lengthToDegrees,
|
|
353
|
-
bearingToAzimuth,
|
|
354
|
-
radiansToDegrees,
|
|
355
|
-
degreesToRadians,
|
|
356
|
-
convertLength,
|
|
357
|
-
convertArea,
|
|
358
|
-
isNumber,
|
|
359
|
-
isObject,
|
|
360
|
-
validateBBox,
|
|
361
|
-
validateId
|
|
362
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
363
|
-
var require$$3 = /* @__PURE__ */ getAugmentedNamespace(es);
|
|
364
|
-
export { polygon as a, radiansToLength as b, lengthToRadians as c, degreesToRadians as d, feature as e, featureCollection as f, earthRadius as g, geometryCollection as h, isObject as i, multiPolygon as j, lengthToDegrees as k, lineString as l, multiLineString as m, multiPoint as n, isNumber as o, point as p, convertLength as q, radiansToDegrees as r, require$$3 as s };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { d as distance } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
|
|
2
|
-
import { i as intersect } from "../_@turf_intersect@6.5.0@@turf/_@turf_intersect@6.5.0@@turf.34082cdf.js";
|
|
3
|
-
import { f as featureCollection, a as polygon } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
|
|
4
|
-
function hexGrid(bbox, cellSide, options) {
|
|
5
|
-
if (options === void 0) {
|
|
6
|
-
options = {};
|
|
7
|
-
}
|
|
8
|
-
var clonedProperties = JSON.stringify(options.properties || {});
|
|
9
|
-
var west = bbox[0], south = bbox[1], east = bbox[2], north = bbox[3];
|
|
10
|
-
var centerY = (south + north) / 2;
|
|
11
|
-
var centerX = (west + east) / 2;
|
|
12
|
-
var xFraction = cellSide * 2 / distance([west, centerY], [east, centerY], options);
|
|
13
|
-
var cellWidth = xFraction * (east - west);
|
|
14
|
-
var yFraction = cellSide * 2 / distance([centerX, south], [centerX, north], options);
|
|
15
|
-
var cellHeight = yFraction * (north - south);
|
|
16
|
-
var radius = cellWidth / 2;
|
|
17
|
-
var hex_width = radius * 2;
|
|
18
|
-
var hex_height = Math.sqrt(3) / 2 * cellHeight;
|
|
19
|
-
var box_width = east - west;
|
|
20
|
-
var box_height = north - south;
|
|
21
|
-
var x_interval = 3 / 4 * hex_width;
|
|
22
|
-
var y_interval = hex_height;
|
|
23
|
-
var x_span = (box_width - hex_width) / (hex_width - radius / 2);
|
|
24
|
-
var x_count = Math.floor(x_span);
|
|
25
|
-
var x_adjust = (x_count * x_interval - radius / 2 - box_width) / 2 - radius / 2 + x_interval / 2;
|
|
26
|
-
var y_count = Math.floor((box_height - hex_height) / hex_height);
|
|
27
|
-
var y_adjust = (box_height - y_count * hex_height) / 2;
|
|
28
|
-
var hasOffsetY = y_count * hex_height - box_height > hex_height / 2;
|
|
29
|
-
if (hasOffsetY) {
|
|
30
|
-
y_adjust -= hex_height / 4;
|
|
31
|
-
}
|
|
32
|
-
var cosines = [];
|
|
33
|
-
var sines = [];
|
|
34
|
-
for (var i = 0; i < 6; i++) {
|
|
35
|
-
var angle = 2 * Math.PI / 6 * i;
|
|
36
|
-
cosines.push(Math.cos(angle));
|
|
37
|
-
sines.push(Math.sin(angle));
|
|
38
|
-
}
|
|
39
|
-
var results = [];
|
|
40
|
-
for (var x = 0; x <= x_count; x++) {
|
|
41
|
-
for (var y = 0; y <= y_count; y++) {
|
|
42
|
-
var isOdd = x % 2 === 1;
|
|
43
|
-
if (y === 0 && isOdd)
|
|
44
|
-
continue;
|
|
45
|
-
if (y === 0 && hasOffsetY)
|
|
46
|
-
continue;
|
|
47
|
-
var center_x = x * x_interval + west - x_adjust;
|
|
48
|
-
var center_y = y * y_interval + south + y_adjust;
|
|
49
|
-
if (isOdd) {
|
|
50
|
-
center_y -= hex_height / 2;
|
|
51
|
-
}
|
|
52
|
-
if (options.triangles === true) {
|
|
53
|
-
hexTriangles([center_x, center_y], cellWidth / 2, cellHeight / 2, JSON.parse(clonedProperties), cosines, sines).forEach(function(triangle) {
|
|
54
|
-
if (options.mask) {
|
|
55
|
-
if (intersect(options.mask, triangle))
|
|
56
|
-
results.push(triangle);
|
|
57
|
-
} else {
|
|
58
|
-
results.push(triangle);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
} else {
|
|
62
|
-
var hex = hexagon([center_x, center_y], cellWidth / 2, cellHeight / 2, JSON.parse(clonedProperties), cosines, sines);
|
|
63
|
-
if (options.mask) {
|
|
64
|
-
if (intersect(options.mask, hex))
|
|
65
|
-
results.push(hex);
|
|
66
|
-
} else {
|
|
67
|
-
results.push(hex);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return featureCollection(results);
|
|
73
|
-
}
|
|
74
|
-
function hexagon(center, rx, ry, properties, cosines, sines) {
|
|
75
|
-
var vertices = [];
|
|
76
|
-
for (var i = 0; i < 6; i++) {
|
|
77
|
-
var x = center[0] + rx * cosines[i];
|
|
78
|
-
var y = center[1] + ry * sines[i];
|
|
79
|
-
vertices.push([x, y]);
|
|
80
|
-
}
|
|
81
|
-
vertices.push(vertices[0].slice());
|
|
82
|
-
return polygon([vertices], properties);
|
|
83
|
-
}
|
|
84
|
-
function hexTriangles(center, rx, ry, properties, cosines, sines) {
|
|
85
|
-
var triangles = [];
|
|
86
|
-
for (var i = 0; i < 6; i++) {
|
|
87
|
-
var vertices = [];
|
|
88
|
-
vertices.push(center);
|
|
89
|
-
vertices.push([center[0] + rx * cosines[i], center[1] + ry * sines[i]]);
|
|
90
|
-
vertices.push([
|
|
91
|
-
center[0] + rx * cosines[(i + 1) % 6],
|
|
92
|
-
center[1] + ry * sines[(i + 1) % 6]
|
|
93
|
-
]);
|
|
94
|
-
vertices.push(center);
|
|
95
|
-
triangles.push(polygon([vertices], properties));
|
|
96
|
-
}
|
|
97
|
-
return triangles;
|
|
98
|
-
}
|
|
99
|
-
export { hexGrid as h };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { a as polygon, j as multiPolygon } 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
|
-
import { p as polygonClipping } from "../_polygon-clipping@0.15.3@polygon-clipping/_polygon-clipping@0.15.3@polygon-clipping.c0e9ec57.js";
|
|
4
|
-
function intersect(poly1, poly2, options) {
|
|
5
|
-
if (options === void 0) {
|
|
6
|
-
options = {};
|
|
7
|
-
}
|
|
8
|
-
var geom1 = getGeom(poly1);
|
|
9
|
-
var geom2 = getGeom(poly2);
|
|
10
|
-
var intersection = polygonClipping.intersection(geom1.coordinates, geom2.coordinates);
|
|
11
|
-
if (intersection.length === 0)
|
|
12
|
-
return null;
|
|
13
|
-
if (intersection.length === 1)
|
|
14
|
-
return polygon(intersection[0], options.properties);
|
|
15
|
-
return multiPolygon(intersection, options.properties);
|
|
16
|
-
}
|
|
17
|
-
export { intersect as i };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
function getCoord(coord) {
|
|
2
|
-
if (!coord) {
|
|
3
|
-
throw new Error("coord is required");
|
|
4
|
-
}
|
|
5
|
-
if (!Array.isArray(coord)) {
|
|
6
|
-
if (coord.type === "Feature" && coord.geometry !== null && coord.geometry.type === "Point") {
|
|
7
|
-
return coord.geometry.coordinates;
|
|
8
|
-
}
|
|
9
|
-
if (coord.type === "Point") {
|
|
10
|
-
return coord.coordinates;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
if (Array.isArray(coord) && coord.length >= 2 && !Array.isArray(coord[0]) && !Array.isArray(coord[1])) {
|
|
14
|
-
return coord;
|
|
15
|
-
}
|
|
16
|
-
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
17
|
-
}
|
|
18
|
-
function getCoords(coords) {
|
|
19
|
-
if (Array.isArray(coords)) {
|
|
20
|
-
return coords;
|
|
21
|
-
}
|
|
22
|
-
if (coords.type === "Feature") {
|
|
23
|
-
if (coords.geometry !== null) {
|
|
24
|
-
return coords.geometry.coordinates;
|
|
25
|
-
}
|
|
26
|
-
} else {
|
|
27
|
-
if (coords.coordinates) {
|
|
28
|
-
return coords.coordinates;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
|
|
32
|
-
}
|
|
33
|
-
function collectionOf(featureCollection, type, name) {
|
|
34
|
-
if (!featureCollection) {
|
|
35
|
-
throw new Error("No featureCollection passed");
|
|
36
|
-
}
|
|
37
|
-
if (!name) {
|
|
38
|
-
throw new Error(".collectionOf() requires a name");
|
|
39
|
-
}
|
|
40
|
-
if (!featureCollection || featureCollection.type !== "FeatureCollection") {
|
|
41
|
-
throw new Error("Invalid input to " + name + ", FeatureCollection required");
|
|
42
|
-
}
|
|
43
|
-
for (var _i = 0, _a = featureCollection.features; _i < _a.length; _i++) {
|
|
44
|
-
var feature = _a[_i];
|
|
45
|
-
if (!feature || feature.type !== "Feature" || !feature.geometry) {
|
|
46
|
-
throw new Error("Invalid input to " + name + ", Feature with geometry required");
|
|
47
|
-
}
|
|
48
|
-
if (!feature.geometry || feature.geometry.type !== type) {
|
|
49
|
-
throw new Error("Invalid input to " + name + ": must be a " + type + ", given " + feature.geometry.type);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function getGeom(geojson) {
|
|
54
|
-
if (geojson.type === "Feature") {
|
|
55
|
-
return geojson.geometry;
|
|
56
|
-
}
|
|
57
|
-
return geojson;
|
|
58
|
-
}
|
|
59
|
-
function getType(geojson, _name) {
|
|
60
|
-
if (geojson.type === "FeatureCollection") {
|
|
61
|
-
return "FeatureCollection";
|
|
62
|
-
}
|
|
63
|
-
if (geojson.type === "GeometryCollection") {
|
|
64
|
-
return "GeometryCollection";
|
|
65
|
-
}
|
|
66
|
-
if (geojson.type === "Feature" && geojson.geometry !== null) {
|
|
67
|
-
return geojson.geometry.type;
|
|
68
|
-
}
|
|
69
|
-
return geojson.type;
|
|
70
|
-
}
|
|
71
|
-
export { getCoord as a, getCoords as b, getType as c, collectionOf as d, getGeom as g };
|