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.
Files changed (196) hide show
  1. package/dist/MirageHttp.es.js +5268 -0
  2. package/dist/MirageHttp.es.js.map +1 -0
  3. package/dist/MirageHttp.umd.js +2 -0
  4. package/dist/MirageHttp.umd.js.map +1 -0
  5. package/dist/assets/js/basedecoder-fa2b8e8d.js +107 -0
  6. package/dist/assets/js/decoder-f19e05cf.js +6 -0
  7. package/dist/assets/js/deflate-adb9a67b.js +8 -0
  8. package/dist/{js/dist/_html2canvas@1.4.1@html2canvas.e8006fee.js → assets/js/html2canvas.esm-3dd231c5.js} +0 -0
  9. package/dist/assets/js/index-3263db85.js +1 -0
  10. package/dist/assets/js/index-a9db46a5.js +212968 -0
  11. package/dist/{js/lib/_canvg@3.0.10@canvg.bd557ac8.js → assets/js/index.es-38f73a27.js} +2179 -351
  12. package/dist/assets/js/jpeg-3bf23728.js +835 -0
  13. package/dist/{js/_lerc@3.0.0@lerc/_lerc@3.0.0@lerc.dc2ff398.js → assets/js/lerc-4c39f39b.js} +26 -1
  14. package/dist/assets/js/lzw-d0cad8af.js +123 -0
  15. package/dist/assets/js/packbits-d75b4cce.js +25 -0
  16. package/dist/{js/_pako@2.0.4@pako/_pako@2.0.4@pako.52d6b320.js → assets/js/pako.esm-49deb4d7.js} +0 -0
  17. package/dist/{js/dist/_dompurify@2.4.0@dompurify.e7ba523e.js → assets/js/purify.es-1915dfae.js} +0 -0
  18. package/dist/assets/js/raw-9656f9cc.js +7 -0
  19. package/dist/assets/js/webimage-edb7156c.js +27 -0
  20. package/package.json +1 -1
  21. package/dist/js/_@babel_runtime@7.18.9@@babel/_@babel_runtime@7.18.9@@babel.e0126ca2.js +0 -51
  22. package/dist/js/_@petamoriken_float16@3.6.6@@petamoriken/_@petamoriken_float16@3.6.6@@petamoriken.c5188241.js +0 -217
  23. package/dist/js/_@turf_along@6.5.0@@turf/_@turf_along@6.5.0@@turf.18dbc1a3.js +0 -31
  24. package/dist/js/_@turf_angle@6.5.0@@turf/_@turf_angle@6.5.0@@turf.554ac9bf.js +0 -1
  25. package/dist/js/_@turf_area@6.5.0@@turf/_@turf_area@6.5.0@@turf.6cbf0cc1.js +0 -74
  26. package/dist/js/_@turf_bbox-clip@6.5.0@@turf/_@turf_bbox-clip@6.5.0@@turf.e491cb90.js +0 -1
  27. package/dist/js/_@turf_bbox-polygon@6.5.0@@turf/_@turf_bbox-polygon@6.5.0@@turf.523f1c20.js +0 -19
  28. package/dist/js/_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js +0 -48
  29. package/dist/js/_@turf_bearing@6.5.0@@turf/_@turf_bearing@6.5.0@@turf.f2555a09.js +0 -25
  30. package/dist/js/_@turf_bezier-spline@6.5.0@@turf/_@turf_bezier-spline@6.5.0@@turf.fa7991dd.js +0 -137
  31. package/dist/js/_@turf_boolean-clockwise@6.5.0@@turf/_@turf_boolean-clockwise@6.5.0@@turf.4031f280.js +0 -1
  32. package/dist/js/_@turf_boolean-contains@6.5.0@@turf/_@turf_boolean-contains@6.5.0@@turf.836d55d8.js +0 -191
  33. package/dist/js/_@turf_boolean-crosses@6.5.0@@turf/_@turf_boolean-crosses@6.5.0@@turf.c5f65a28.js +0 -125
  34. package/dist/js/_@turf_boolean-disjoint@6.5.0@@turf/_@turf_boolean-disjoint@6.5.0@@turf.bbd60872.js +0 -122
  35. package/dist/js/_@turf_boolean-equal@6.5.0@@turf/_@turf_boolean-equal@6.5.0@@turf.341ffa01.js +0 -1
  36. package/dist/js/_@turf_boolean-intersects@6.5.0@@turf/_@turf_boolean-intersects@6.5.0@@turf.05fc28b3.js +0 -15
  37. package/dist/js/_@turf_boolean-overlap@6.5.0@@turf/_@turf_boolean-overlap@6.5.0@@turf.a519db25.js +0 -53
  38. package/dist/js/_@turf_boolean-parallel@6.5.0@@turf/_@turf_boolean-parallel@6.5.0@@turf.dbf2bc2d.js +0 -1
  39. 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
  40. 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
  41. package/dist/js/_@turf_boolean-within@6.5.0@@turf/_@turf_boolean-within@6.5.0@@turf.d70d6bfc.js +0 -172
  42. package/dist/js/_@turf_buffer@6.5.0@@turf/_@turf_buffer@6.5.0@@turf.88330dfe.js +0 -99
  43. package/dist/js/_@turf_center-mean@6.5.0@@turf/_@turf_center-mean@6.5.0@@turf.b3d7c917.js +0 -1
  44. package/dist/js/_@turf_center-median@6.5.0@@turf/_@turf_center-median@6.5.0@@turf.44c4669e.js +0 -1
  45. package/dist/js/_@turf_center-of-mass@6.5.0@@turf/_@turf_center-of-mass@6.5.0@@turf.63ce279e.js +0 -1
  46. package/dist/js/_@turf_center@6.5.0@@turf/_@turf_center@6.5.0@@turf.a45495b5.js +0 -12
  47. package/dist/js/_@turf_centroid@6.5.0@@turf/_@turf_centroid@6.5.0@@turf.0a5be869.js +0 -17
  48. package/dist/js/_@turf_circle@6.5.0@@turf/_@turf_circle@6.5.0@@turf.0166b8c2.js +0 -16
  49. package/dist/js/_@turf_clean-coords@6.5.0@@turf/_@turf_clean-coords@6.5.0@@turf.8c76bd63.js +0 -111
  50. package/dist/js/_@turf_clone@6.5.0@@turf/_@turf_clone@6.5.0@@turf.cd05b1f8.js +0 -100
  51. package/dist/js/_@turf_clusters-dbscan@6.5.0@@turf/_@turf_clusters-dbscan@6.5.0@@turf.6bbee7e9.js +0 -1
  52. package/dist/js/_@turf_clusters-kmeans@6.5.0@@turf/_@turf_clusters-kmeans@6.5.0@@turf.505415df.js +0 -1
  53. package/dist/js/_@turf_clusters@6.5.0@@turf/_@turf_clusters@6.5.0@@turf.84cb9680.js +0 -1
  54. package/dist/js/_@turf_collect@6.5.0@@turf/_@turf_collect@6.5.0@@turf.93e41b5f.js +0 -1
  55. package/dist/js/_@turf_combine@6.5.0@@turf/_@turf_combine@6.5.0@@turf.33ee6336.js +0 -1
  56. package/dist/js/_@turf_concave@6.5.0@@turf/_@turf_concave@6.5.0@@turf.6fb6a8be.js +0 -179
  57. package/dist/js/_@turf_convex@6.5.0@@turf/_@turf_convex@6.5.0@@turf.24600ac2.js +0 -1
  58. package/dist/js/_@turf_destination@6.5.0@@turf/_@turf_destination@6.5.0@@turf.2621651e.js +0 -18
  59. package/dist/js/_@turf_difference@6.5.0@@turf/_@turf_difference@6.5.0@@turf.70df5e79.js +0 -18
  60. package/dist/js/_@turf_dissolve@6.5.0@@turf/_@turf_dissolve@6.5.0@@turf.edb28fc1.js +0 -1
  61. package/dist/js/_@turf_distance-weight@6.5.0@@turf/_@turf_distance-weight@6.5.0@@turf.e168af7f.js +0 -1
  62. package/dist/js/_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js +0 -22
  63. package/dist/js/_@turf_ellipse@6.5.0@@turf/_@turf_ellipse@6.5.0@@turf.37986056.js +0 -1
  64. package/dist/js/_@turf_envelope@6.5.0@@turf/_@turf_envelope@6.5.0@@turf.599c5772.js +0 -1
  65. package/dist/js/_@turf_explode@6.5.0@@turf/_@turf_explode@6.5.0@@turf.5c768db5.js +0 -24
  66. package/dist/js/_@turf_flatten@6.5.0@@turf/_@turf_flatten@6.5.0@@turf.57e9114c.js +0 -1
  67. package/dist/js/_@turf_flip@6.5.0@@turf/_@turf_flip@6.5.0@@turf.1f02101f.js +0 -1
  68. package/dist/js/_@turf_great-circle@6.5.0@@turf/_@turf_great-circle@6.5.0@@turf.2ca021a8.js +0 -1
  69. package/dist/js/_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js +0 -364
  70. package/dist/js/_@turf_hex-grid@6.5.0@@turf/_@turf_hex-grid@6.5.0@@turf.a6a45778.js +0 -99
  71. package/dist/js/_@turf_interpolate@6.5.0@@turf/_@turf_interpolate@6.5.0@@turf.4d39bd8c.js +0 -1
  72. package/dist/js/_@turf_intersect@6.5.0@@turf/_@turf_intersect@6.5.0@@turf.34082cdf.js +0 -17
  73. package/dist/js/_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js +0 -71
  74. package/dist/js/_@turf_isobands@6.5.0@@turf/_@turf_isobands@6.5.0@@turf.def019df.js +0 -3109
  75. package/dist/js/_@turf_isolines@6.5.0@@turf/_@turf_isolines@6.5.0@@turf.da623b25.js +0 -1
  76. package/dist/js/_@turf_kinks@6.5.0@@turf/_@turf_kinks@6.5.0@@turf.ee61685b.js +0 -87
  77. package/dist/js/_@turf_length@6.5.0@@turf/_@turf_length@6.5.0@@turf.f73f6c98.js +0 -12
  78. package/dist/js/_@turf_line-arc@6.5.0@@turf/_@turf_line-arc@6.5.0@@turf.3dc57055.js +0 -37
  79. package/dist/js/_@turf_line-chunk@6.5.0@@turf/_@turf_line-chunk@6.5.0@@turf.1867af48.js +0 -43
  80. package/dist/js/_@turf_line-intersect@6.5.0@@turf/_@turf_line-intersect@6.5.0@@turf.c4d81948.js +0 -73
  81. package/dist/js/_@turf_line-offset@6.5.0@@turf/_@turf_line-offset@6.5.0@@turf.e6846793.js +0 -116
  82. package/dist/js/_@turf_line-overlap@6.5.0@@turf/_@turf_line-overlap@6.5.0@@turf.addba9a5.js +0 -76
  83. package/dist/js/_@turf_line-segment@6.5.0@@turf/_@turf_line-segment@6.5.0@@turf.18ce3010.js +0 -55
  84. package/dist/js/_@turf_line-slice-along@6.5.0@@turf/_@turf_line-slice-along@6.5.0@@turf.2b802464.js +0 -57
  85. package/dist/js/_@turf_line-slice@6.5.0@@turf/_@turf_line-slice@6.5.0@@turf.6423a053.js +0 -23
  86. package/dist/js/_@turf_line-split@6.5.0@@turf/_@turf_line-split@6.5.0@@turf.2022f104.js +0 -125
  87. package/dist/js/_@turf_line-to-polygon@6.5.0@@turf/_@turf_line-to-polygon@6.5.0@@turf.83f5e69f.js +0 -1
  88. package/dist/js/_@turf_mask@6.5.0@@turf/_@turf_mask@6.5.0@@turf.96cd5a94.js +0 -1
  89. package/dist/js/_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js +0 -611
  90. package/dist/js/_@turf_midpoint@6.5.0@@turf/_@turf_midpoint@6.5.0@@turf.67c14f94.js +0 -1
  91. package/dist/js/_@turf_moran-index@6.5.0@@turf/_@turf_moran-index@6.5.0@@turf.2ad5365a.js +0 -1
  92. 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
  93. 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
  94. package/dist/js/_@turf_nearest-point@6.5.0@@turf/_@turf_nearest-point@6.5.0@@turf.e0d2f509.js +0 -24
  95. package/dist/js/_@turf_planepoint@6.5.0@@turf/_@turf_planepoint@6.5.0@@turf.56fc70b3.js +0 -1
  96. package/dist/js/_@turf_point-grid@6.5.0@@turf/_@turf_point-grid@6.5.0@@turf.2d278644.js +0 -42
  97. package/dist/js/_@turf_point-on-feature@6.5.0@@turf/_@turf_point-on-feature@6.5.0@@turf.0c740874.js +0 -1
  98. 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
  99. package/dist/js/_@turf_points-within-polygon@6.5.0@@turf/_@turf_points-within-polygon@6.5.0@@turf.659cd335.js +0 -35
  100. package/dist/js/_@turf_polygon-smooth@6.5.0@@turf/_@turf_polygon-smooth@6.5.0@@turf.43a7c33e.js +0 -1
  101. package/dist/js/_@turf_polygon-tangents@6.5.0@@turf/_@turf_polygon-tangents@6.5.0@@turf.a2c3a7b6.js +0 -1
  102. package/dist/js/_@turf_polygon-to-line@6.5.0@@turf/_@turf_polygon-to-line@6.5.0@@turf.3177cfb1.js +0 -48
  103. package/dist/js/_@turf_polygonize@6.5.0@@turf/_@turf_polygonize@6.5.0@@turf.f7cc4910.js +0 -1
  104. package/dist/js/_@turf_projection@6.5.0@@turf/_@turf_projection@6.5.0@@turf.ffdd3321.js +0 -1
  105. package/dist/js/_@turf_random@6.5.0@@turf/_@turf_random@6.5.0@@turf.f65251e4.js +0 -130
  106. package/dist/js/_@turf_rectangle-grid@6.5.0@@turf/_@turf_rectangle-grid@6.5.0@@turf.7e8b1a1f.js +0 -49
  107. package/dist/js/_@turf_rewind@6.5.0@@turf/_@turf_rewind@6.5.0@@turf.5d137ee9.js +0 -1
  108. package/dist/js/_@turf_rhumb-bearing@6.5.0@@turf/_@turf_rhumb-bearing@6.5.0@@turf.fb8f6ade.js +0 -30
  109. package/dist/js/_@turf_rhumb-destination@6.5.0@@turf/_@turf_rhumb-destination@6.5.0@@turf.dc0e4753.js +0 -36
  110. package/dist/js/_@turf_rhumb-distance@6.5.0@@turf/_@turf_rhumb-distance@6.5.0@@turf.94e475b8.js +0 -30
  111. package/dist/js/_@turf_sample@6.5.0@@turf/_@turf_sample@6.5.0@@turf.7181d7a7.js +0 -1
  112. package/dist/js/_@turf_sector@6.5.0@@turf/_@turf_sector@6.5.0@@turf.04ffddfe.js +0 -39
  113. package/dist/js/_@turf_shortest-path@6.5.0@@turf/_@turf_shortest-path@6.5.0@@turf.0c1b62a8.js +0 -367
  114. package/dist/js/_@turf_simplify@6.5.0@@turf/_@turf_simplify@6.5.0@@turf.46703d2e.js +0 -1
  115. package/dist/js/_@turf_square-grid@6.5.0@@turf/_@turf_square-grid@6.5.0@@turf.38bd2eaa.js +0 -8
  116. package/dist/js/_@turf_square@6.5.0@@turf/_@turf_square@6.5.0@@turf.2705289a.js +0 -27
  117. package/dist/js/_@turf_standard-deviational-ellipse@6.5.0@@turf/_@turf_standard-deviational-ellipse@6.5.0@@turf.7094e432.js +0 -1
  118. package/dist/js/_@turf_tag@6.5.0@@turf/_@turf_tag@6.5.0@@turf.cb60b0c1.js +0 -1
  119. package/dist/js/_@turf_tesselate@6.5.0@@turf/_@turf_tesselate@6.5.0@@turf.330e4aae.js +0 -1
  120. package/dist/js/_@turf_tin@6.5.0@@turf/_@turf_tin@6.5.0@@turf.077204c4.js +0 -173
  121. package/dist/js/_@turf_transform-rotate@6.5.0@@turf/_@turf_transform-rotate@6.5.0@@turf.6d350d36.js +0 -1
  122. package/dist/js/_@turf_transform-scale@6.5.0@@turf/_@turf_transform-scale@6.5.0@@turf.d6f65671.js +0 -90
  123. package/dist/js/_@turf_transform-translate@6.5.0@@turf/_@turf_transform-translate@6.5.0@@turf.9296b81a.js +0 -1
  124. package/dist/js/_@turf_triangle-grid@6.5.0@@turf/_@turf_triangle-grid@6.5.0@@turf.939f94ab.js +0 -107
  125. package/dist/js/_@turf_truncate@6.5.0@@turf/_@turf_truncate@6.5.0@@turf.ed70ebcb.js +0 -33
  126. package/dist/js/_@turf_turf@6.4.0@@turf/_@turf_turf@6.4.0@@turf.34fde8ec.js +0 -1
  127. package/dist/js/_@turf_union@6.5.0@@turf/_@turf_union@6.5.0@@turf.386ee2eb.js +0 -1
  128. package/dist/js/_@turf_unkink-polygon@6.5.0@@turf/_@turf_unkink-polygon@6.5.0@@turf.cb446e47.js +0 -1
  129. package/dist/js/_@turf_voronoi@6.5.0@@turf/_@turf_voronoi@6.5.0@@turf.c30d929e.js +0 -30
  130. package/dist/js/_call-bind@1.0.2@call-bind/_call-bind@1.0.2@call-bind.3811d387.js +0 -53
  131. package/dist/js/_concaveman@1.2.1@concaveman/_concaveman@1.2.1@concaveman.e747f731.js +0 -1
  132. package/dist/js/_core-js@3.25.0@core-js/_core-js@3.25.0@core-js.003355ed.js +0 -5029
  133. package/dist/js/_crypto-js@4.1.1@crypto-js/_crypto-js@4.1.1@crypto-js.e2f7f158.js +0 -1823
  134. package/dist/js/_d3-array@1.2.4@d3-array/_d3-array@1.2.4@d3-array.d606df6b.js +0 -58
  135. package/dist/js/_d3-geo@1.7.1@d3-geo/_d3-geo@1.7.1@d3-geo.7d357be1.js +0 -1094
  136. package/dist/js/_d3-voronoi@1.1.2@d3-voronoi/_d3-voronoi@1.1.2@d3-voronoi.072f12a6.js +0 -816
  137. package/dist/js/_deep-equal@1.1.1@deep-equal/_deep-equal@1.1.1@deep-equal.98576c17.js +0 -108
  138. package/dist/js/_define-properties@1.1.4@define-properties/_define-properties@1.1.4@define-properties.647c3367.js +0 -40
  139. package/dist/js/_density-clustering@1.3.0@density-clustering/_density-clustering@1.3.0@density-clustering.a07fc6ae.js +0 -1
  140. package/dist/js/_earcut@2.2.4@earcut/_earcut@2.2.4@earcut.972ebfd3.js +0 -1
  141. package/dist/js/_echarts-gl@1.1.2@echarts-gl/_echarts-gl@1.1.2@echarts-gl.1e3964b9.js +0 -36533
  142. package/dist/js/_echarts@4.9.0@echarts/_echarts@4.9.0@echarts.7d74ba77.js +0 -44219
  143. package/dist/js/_fflate@0.4.8@fflate/_fflate@0.4.8@fflate.d8111196.js +0 -571
  144. package/dist/js/_function-bind@1.1.1@function-bind/_function-bind@1.1.1@function-bind.de3cf11d.js +0 -46
  145. 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
  146. package/dist/js/_geojson-equality@0.1.6@geojson-equality/_geojson-equality@0.1.6@geojson-equality.09ffa121.js +0 -133
  147. 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
  148. package/dist/js/_geojson-rbush@3.2.0@geojson-rbush/_geojson-rbush@3.2.0@geojson-rbush.2adaeedb.js +0 -93
  149. package/dist/js/_geotiff@2.0.4@geotiff/_geotiff@2.0.4@geotiff.5b08f79e.js +0 -3663
  150. package/dist/js/_get-intrinsic@1.1.2@get-intrinsic/_get-intrinsic@1.1.2@get-intrinsic.a633bd68.js +0 -291
  151. 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
  152. package/dist/js/_has-symbols@1.0.3@has-symbols/_has-symbols@1.0.3@has-symbols.70406077.js +0 -63
  153. package/dist/js/_has-tostringtag@1.0.0@has-tostringtag/_has-tostringtag@1.0.0@has-tostringtag.2d502422.js +0 -6
  154. package/dist/js/_has@1.0.3@has/_has@1.0.3@has.ddd2eb68.js +0 -4
  155. package/dist/js/_ieee754@1.2.1@ieee754/_ieee754@1.2.1@ieee754.56426503.js +0 -80
  156. package/dist/js/_is-arguments@1.1.1@is-arguments/_is-arguments@1.1.1@is-arguments.7d77e24a.js +0 -23
  157. 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
  158. package/dist/js/_is-regex@1.1.4@is-regex/_is-regex@1.1.4@is-regex.6417e007.js +0 -47
  159. package/dist/js/_jspdf@2.5.1@jspdf/_jspdf@2.5.1@jspdf.e927dbd8.js +0 -8494
  160. package/dist/js/_kml-geojson@1.2.0@kml-geojson/_kml-geojson@1.2.0@kml-geojson.f1ae86e4.js +0 -7858
  161. package/dist/js/_lru-cache@6.0.0@lru-cache/_lru-cache@6.0.0@lru-cache.dd72cc1b.js +0 -263
  162. package/dist/js/_mgrs@1.0.0@mgrs/_mgrs@1.0.0@mgrs.12d1da3e.js +0 -432
  163. package/dist/js/_object-assign@4.1.1@object-assign/_object-assign@4.1.1@object-assign.e4009c1c.js +0 -69
  164. package/dist/js/_object-is@1.1.5@object-is/_object-is@1.1.5@object-is.e47f5d65.js +0 -45
  165. package/dist/js/_object-keys@1.1.1@object-keys/_object-keys@1.1.1@object-keys.4b1d0a99.js +0 -151
  166. package/dist/js/_ol-echarts@2.0.6@ol-echarts/_ol-echarts@2.0.6@ol-echarts.658aaf82.js +0 -841
  167. package/dist/js/_ol-ext@3.2.30@ol-ext/_ol-ext@3.2.30@ol-ext.b94220dd.js +0 -4614
  168. 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
  169. package/dist/js/_ol@6.15.1@ol/_ol@6.15.1@ol.8fd0cbb5.js +0 -31823
  170. package/dist/js/_pbf@3.2.1@pbf/_pbf@3.2.1@pbf.330acf55.js +0 -647
  171. package/dist/js/_performance-now@2.1.0@performance-now/_performance-now@2.1.0@performance-now.a51379c2.js +0 -34
  172. 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
  173. package/dist/js/_polygon-clipping@0.15.3@polygon-clipping/_polygon-clipping@0.15.3@polygon-clipping.c0e9ec57.js +0 -1363
  174. package/dist/js/_proj4@2.8.0@proj4/_proj4@2.8.0@proj4.1600352c.js +0 -4885
  175. package/dist/js/_quickselect@1.1.1@quickselect/_quickselect@1.1.1@quickselect.8afce154.js +0 -1
  176. package/dist/js/_quickselect@2.0.0@quickselect/_quickselect@2.0.0@quickselect.9f5c1e48.js +0 -51
  177. package/dist/js/_raf@3.4.1@raf/_raf@3.4.1@raf.ac0d6c66.js +0 -60
  178. package/dist/js/_rbush@2.0.2@rbush/_rbush@2.0.2@rbush.7149e620.js +0 -1
  179. package/dist/js/_rbush@3.0.1@rbush/_rbush@3.0.1@rbush.57d33d95.js +0 -402
  180. 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
  181. package/dist/js/_rgbcolor@1.0.1@rgbcolor/_rgbcolor@1.0.1@rgbcolor.dd87e013.js +0 -272
  182. package/dist/js/_robust-predicates@2.0.4@robust-predicates/_robust-predicates@2.0.4@robust-predicates.564bf2f8.js +0 -1
  183. package/dist/js/_skmeans@0.9.7@skmeans/_skmeans@0.9.7@skmeans.933c6a76.js +0 -1
  184. package/dist/js/_splaytree@3.1.1@splaytree/_splaytree@3.1.1@splaytree.6cb55ed3.js +0 -671
  185. package/dist/js/_stackblur-canvas@2.5.0@stackblur-canvas/_stackblur-canvas@2.5.0@stackblur-canvas.dd883d14.js +0 -214
  186. package/dist/js/_svg-pathdata@6.0.3@svg-pathdata/_svg-pathdata@6.0.3@svg-pathdata.7e858a5f.js +0 -441
  187. package/dist/js/_tinyqueue@2.0.3@tinyqueue/_tinyqueue@2.0.3@tinyqueue.78918532.js +0 -73
  188. package/dist/js/_topojson-client@3.1.0@topojson-client/_topojson-client@3.1.0@topojson-client.aef4e2d5.js +0 -238
  189. package/dist/js/_topojson-server@3.0.1@topojson-server/_topojson-server@3.0.1@topojson-server.b521a412.js +0 -662
  190. package/dist/js/_turf-jsts@1.2.3@turf-jsts/_turf-jsts@1.2.3@turf-jsts.6ef42696.js +0 -18934
  191. package/dist/js/_web-worker@1.2.0@web-worker/_web-worker@1.2.0@web-worker.43288df7.js +0 -2
  192. package/dist/js/_wkt-parser@1.3.2@wkt-parser/_wkt-parser@1.3.2@wkt-parser.0e1cf374.js +0 -461
  193. package/dist/js/_xml-utils@1.2.0@xml-utils/_xml-utils@1.2.0@xml-utils.2a8ae655.js +0 -126
  194. package/dist/js/_yallist@4.0.0@yallist/_yallist@4.0.0@yallist.8350aafe.js +0 -363
  195. package/dist/js/_zrender@4.3.2@zrender/_zrender@4.3.2@zrender.1feea14d.js +0 -12455
  196. package/dist/mirage2d.es.js +0 -15894
@@ -1 +0,0 @@
1
- import "../_object-assign@4.1.1@object-assign/_object-assign@4.1.1@object-assign.e4009c1c.js";
@@ -1,87 +0,0 @@
1
- import { p as point } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
2
- function kinks(featureIn) {
3
- var coordinates;
4
- var feature;
5
- var results = {
6
- type: "FeatureCollection",
7
- features: []
8
- };
9
- if (featureIn.type === "Feature") {
10
- feature = featureIn.geometry;
11
- } else {
12
- feature = featureIn;
13
- }
14
- if (feature.type === "LineString") {
15
- coordinates = [feature.coordinates];
16
- } else if (feature.type === "MultiLineString") {
17
- coordinates = feature.coordinates;
18
- } else if (feature.type === "MultiPolygon") {
19
- coordinates = [].concat.apply([], feature.coordinates);
20
- } else if (feature.type === "Polygon") {
21
- coordinates = feature.coordinates;
22
- } else {
23
- throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");
24
- }
25
- coordinates.forEach(function(line1) {
26
- coordinates.forEach(function(line2) {
27
- for (var i = 0; i < line1.length - 1; i++) {
28
- for (var k = i; k < line2.length - 1; k++) {
29
- if (line1 === line2) {
30
- if (Math.abs(i - k) === 1) {
31
- continue;
32
- }
33
- if (i === 0 && k === line1.length - 2 && line1[i][0] === line1[line1.length - 1][0] && line1[i][1] === line1[line1.length - 1][1]) {
34
- continue;
35
- }
36
- }
37
- var intersection = lineIntersects(line1[i][0], line1[i][1], line1[i + 1][0], line1[i + 1][1], line2[k][0], line2[k][1], line2[k + 1][0], line2[k + 1][1]);
38
- if (intersection) {
39
- results.features.push(point([intersection[0], intersection[1]]));
40
- }
41
- }
42
- }
43
- });
44
- });
45
- return results;
46
- }
47
- function lineIntersects(line1StartX, line1StartY, line1EndX, line1EndY, line2StartX, line2StartY, line2EndX, line2EndY) {
48
- var denominator;
49
- var a;
50
- var b;
51
- var numerator1;
52
- var numerator2;
53
- var result = {
54
- x: null,
55
- y: null,
56
- onLine1: false,
57
- onLine2: false
58
- };
59
- denominator = (line2EndY - line2StartY) * (line1EndX - line1StartX) - (line2EndX - line2StartX) * (line1EndY - line1StartY);
60
- if (denominator === 0) {
61
- if (result.x !== null && result.y !== null) {
62
- return result;
63
- } else {
64
- return false;
65
- }
66
- }
67
- a = line1StartY - line2StartY;
68
- b = line1StartX - line2StartX;
69
- numerator1 = (line2EndX - line2StartX) * a - (line2EndY - line2StartY) * b;
70
- numerator2 = (line1EndX - line1StartX) * a - (line1EndY - line1StartY) * b;
71
- a = numerator1 / denominator;
72
- b = numerator2 / denominator;
73
- result.x = line1StartX + a * (line1EndX - line1StartX);
74
- result.y = line1StartY + a * (line1EndY - line1StartY);
75
- if (a >= 0 && a <= 1) {
76
- result.onLine1 = true;
77
- }
78
- if (b >= 0 && b <= 1) {
79
- result.onLine2 = true;
80
- }
81
- if (result.onLine1 && result.onLine2) {
82
- return [result.x, result.y];
83
- } else {
84
- return false;
85
- }
86
- }
87
- export { kinks as k };
@@ -1,12 +0,0 @@
1
- import { d as distance } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
2
- import { d as segmentReduce } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
3
- function length(geojson, options) {
4
- if (options === void 0) {
5
- options = {};
6
- }
7
- return segmentReduce(geojson, function(previousValue, segment) {
8
- var coords = segment.geometry.coordinates;
9
- return previousValue + distance(coords[0], coords[1], options);
10
- }, 0);
11
- }
12
- export { length as l };
@@ -1,37 +0,0 @@
1
- import { c as circle } from "../_@turf_circle@6.5.0@@turf/_@turf_circle@6.5.0@@turf.0166b8c2.js";
2
- import { d as destination } from "../_@turf_destination@6.5.0@@turf/_@turf_destination@6.5.0@@turf.2621651e.js";
3
- import { l as lineString } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
4
- function lineArc(center, radius, bearing1, bearing2, options) {
5
- if (options === void 0) {
6
- options = {};
7
- }
8
- var steps = options.steps || 64;
9
- var angle1 = convertAngleTo360(bearing1);
10
- var angle2 = convertAngleTo360(bearing2);
11
- var properties = !Array.isArray(center) && center.type === "Feature" ? center.properties : {};
12
- if (angle1 === angle2) {
13
- return lineString(circle(center, radius, options).geometry.coordinates[0], properties);
14
- }
15
- var arcStartDegree = angle1;
16
- var arcEndDegree = angle1 < angle2 ? angle2 : angle2 + 360;
17
- var alfa = arcStartDegree;
18
- var coordinates = [];
19
- var i = 0;
20
- while (alfa < arcEndDegree) {
21
- coordinates.push(destination(center, radius, alfa, options).geometry.coordinates);
22
- i++;
23
- alfa = arcStartDegree + i * 360 / steps;
24
- }
25
- if (alfa > arcEndDegree) {
26
- coordinates.push(destination(center, radius, arcEndDegree, options).geometry.coordinates);
27
- }
28
- return lineString(coordinates, properties);
29
- }
30
- function convertAngleTo360(alfa) {
31
- var beta = alfa % 360;
32
- if (beta < 0) {
33
- beta += 360;
34
- }
35
- return beta;
36
- }
37
- export { lineArc as l };
@@ -1,43 +0,0 @@
1
- import { l as length } from "../_@turf_length@6.5.0@@turf/_@turf_length@6.5.0@@turf.f73f6c98.js";
2
- import { l as lineSliceAlong } from "../_@turf_line-slice-along@6.5.0@@turf/_@turf_line-slice-along@6.5.0@@turf.2b802464.js";
3
- import { f as flattenEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
4
- import { i as isObject, f as featureCollection } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
5
- function lineChunk(geojson, segmentLength, options) {
6
- options = options || {};
7
- if (!isObject(options))
8
- throw new Error("options is invalid");
9
- var units = options.units;
10
- var reverse = options.reverse;
11
- if (!geojson)
12
- throw new Error("geojson is required");
13
- if (segmentLength <= 0)
14
- throw new Error("segmentLength must be greater than 0");
15
- var results = [];
16
- flattenEach(geojson, function(feature) {
17
- if (reverse)
18
- feature.geometry.coordinates = feature.geometry.coordinates.reverse();
19
- sliceLineSegments(feature, segmentLength, units, function(segment) {
20
- results.push(segment);
21
- });
22
- });
23
- return featureCollection(results);
24
- }
25
- function sliceLineSegments(line, segmentLength, units, callback) {
26
- var lineLength = length(line, { units });
27
- if (lineLength <= segmentLength)
28
- return callback(line);
29
- var numberOfSegments = lineLength / segmentLength;
30
- if (!Number.isInteger(numberOfSegments)) {
31
- numberOfSegments = Math.floor(numberOfSegments) + 1;
32
- }
33
- for (var i = 0; i < numberOfSegments; i++) {
34
- var outline = lineSliceAlong(
35
- line,
36
- segmentLength * i,
37
- segmentLength * (i + 1),
38
- { units }
39
- );
40
- callback(outline, i);
41
- }
42
- }
43
- export { lineChunk as l };
@@ -1,73 +0,0 @@
1
- import { e as feature, f as featureCollection, p as point } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
2
- import { b as getCoords } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
3
- import { l as lineSegment } from "../_@turf_line-segment@6.5.0@@turf/_@turf_line-segment@6.5.0@@turf.18ce3010.js";
4
- import { a as featureEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
5
- import { r as rbush } from "../_geojson-rbush@3.2.0@geojson-rbush/_geojson-rbush@3.2.0@geojson-rbush.2adaeedb.js";
6
- function lineIntersect(line1, line2) {
7
- var unique = {};
8
- var results = [];
9
- if (line1.type === "LineString") {
10
- line1 = feature(line1);
11
- }
12
- if (line2.type === "LineString") {
13
- line2 = feature(line2);
14
- }
15
- if (line1.type === "Feature" && line2.type === "Feature" && line1.geometry !== null && line2.geometry !== null && line1.geometry.type === "LineString" && line2.geometry.type === "LineString" && line1.geometry.coordinates.length === 2 && line2.geometry.coordinates.length === 2) {
16
- var intersect = intersects(line1, line2);
17
- if (intersect) {
18
- results.push(intersect);
19
- }
20
- return featureCollection(results);
21
- }
22
- var tree = rbush();
23
- tree.load(lineSegment(line2));
24
- featureEach(lineSegment(line1), function(segment) {
25
- featureEach(tree.search(segment), function(match) {
26
- var intersect2 = intersects(segment, match);
27
- if (intersect2) {
28
- var key = getCoords(intersect2).join(",");
29
- if (!unique[key]) {
30
- unique[key] = true;
31
- results.push(intersect2);
32
- }
33
- }
34
- });
35
- });
36
- return featureCollection(results);
37
- }
38
- function intersects(line1, line2) {
39
- var coords1 = getCoords(line1);
40
- var coords2 = getCoords(line2);
41
- if (coords1.length !== 2) {
42
- throw new Error("<intersects> line1 must only contain 2 coordinates");
43
- }
44
- if (coords2.length !== 2) {
45
- throw new Error("<intersects> line2 must only contain 2 coordinates");
46
- }
47
- var x1 = coords1[0][0];
48
- var y1 = coords1[0][1];
49
- var x2 = coords1[1][0];
50
- var y2 = coords1[1][1];
51
- var x3 = coords2[0][0];
52
- var y3 = coords2[0][1];
53
- var x4 = coords2[1][0];
54
- var y4 = coords2[1][1];
55
- var denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);
56
- var numeA = (x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3);
57
- var numeB = (x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3);
58
- if (denom === 0) {
59
- if (numeA === 0 && numeB === 0) {
60
- return null;
61
- }
62
- return null;
63
- }
64
- var uA = numeA / denom;
65
- var uB = numeB / denom;
66
- if (uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1) {
67
- var x = x1 + uA * (x2 - x1);
68
- var y = y1 + uA * (y2 - y1);
69
- return point([x, y]);
70
- }
71
- return null;
72
- }
73
- export { lineIntersect as l };
@@ -1,116 +0,0 @@
1
- import { f as flattenEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
2
- import { c as getType, b as getCoords } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
3
- import { i as isObject, m as multiLineString, k as lengthToDegrees, l as lineString } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
4
- function ab(segment) {
5
- var start = segment[0];
6
- var end = segment[1];
7
- return [end[0] - start[0], end[1] - start[1]];
8
- }
9
- function crossProduct(v1, v2) {
10
- return v1[0] * v2[1] - v2[0] * v1[1];
11
- }
12
- function add(v1, v2) {
13
- return [v1[0] + v2[0], v1[1] + v2[1]];
14
- }
15
- function sub(v1, v2) {
16
- return [v1[0] - v2[0], v1[1] - v2[1]];
17
- }
18
- function scalarMult(s, v) {
19
- return [s * v[0], s * v[1]];
20
- }
21
- function intersectSegments(a, b) {
22
- var p = a[0];
23
- var r = ab(a);
24
- var q = b[0];
25
- var s = ab(b);
26
- var cross = crossProduct(r, s);
27
- var qmp = sub(q, p);
28
- var numerator = crossProduct(qmp, s);
29
- var t = numerator / cross;
30
- var intersection2 = add(p, scalarMult(t, r));
31
- return intersection2;
32
- }
33
- function isParallel(a, b) {
34
- var r = ab(a);
35
- var s = ab(b);
36
- return crossProduct(r, s) === 0;
37
- }
38
- function intersection(a, b) {
39
- if (isParallel(a, b))
40
- return false;
41
- return intersectSegments(a, b);
42
- }
43
- function lineOffset(geojson, distance, options) {
44
- options = options || {};
45
- if (!isObject(options))
46
- throw new Error("options is invalid");
47
- var units = options.units;
48
- if (!geojson)
49
- throw new Error("geojson is required");
50
- if (distance === void 0 || distance === null || isNaN(distance))
51
- throw new Error("distance is required");
52
- var type = getType(geojson);
53
- var properties = geojson.properties;
54
- switch (type) {
55
- case "LineString":
56
- return lineOffsetFeature(geojson, distance, units);
57
- case "MultiLineString":
58
- var coords = [];
59
- flattenEach(geojson, function(feature) {
60
- coords.push(
61
- lineOffsetFeature(feature, distance, units).geometry.coordinates
62
- );
63
- });
64
- return multiLineString(coords, properties);
65
- default:
66
- throw new Error("geometry " + type + " is not supported");
67
- }
68
- }
69
- function lineOffsetFeature(line, distance, units) {
70
- var segments = [];
71
- var offsetDegrees = lengthToDegrees(distance, units);
72
- var coords = getCoords(line);
73
- var finalCoords = [];
74
- coords.forEach(function(currentCoords, index) {
75
- if (index !== coords.length - 1) {
76
- var segment = processSegment(
77
- currentCoords,
78
- coords[index + 1],
79
- offsetDegrees
80
- );
81
- segments.push(segment);
82
- if (index > 0) {
83
- var seg2Coords = segments[index - 1];
84
- var intersects = intersection(segment, seg2Coords);
85
- if (intersects !== false) {
86
- seg2Coords[1] = intersects;
87
- segment[0] = intersects;
88
- }
89
- finalCoords.push(seg2Coords[0]);
90
- if (index === coords.length - 2) {
91
- finalCoords.push(segment[0]);
92
- finalCoords.push(segment[1]);
93
- }
94
- }
95
- if (coords.length === 2) {
96
- finalCoords.push(segment[0]);
97
- finalCoords.push(segment[1]);
98
- }
99
- }
100
- });
101
- return lineString(finalCoords, line.properties);
102
- }
103
- function processSegment(point1, point2, offset) {
104
- var L = Math.sqrt(
105
- (point1[0] - point2[0]) * (point1[0] - point2[0]) + (point1[1] - point2[1]) * (point1[1] - point2[1])
106
- );
107
- var out1x = point1[0] + offset * (point2[1] - point1[1]) / L;
108
- var out2x = point2[0] + offset * (point2[1] - point1[1]) / L;
109
- var out1y = point1[1] + offset * (point1[0] - point2[0]) / L;
110
- var out2y = point2[1] + offset * (point1[0] - point2[0]) / L;
111
- return [
112
- [out1x, out1y],
113
- [out2x, out2y]
114
- ];
115
- }
116
- export { lineOffset as l };
@@ -1,76 +0,0 @@
1
- import { r as rbush } from "../_geojson-rbush@3.2.0@geojson-rbush/_geojson-rbush@3.2.0@geojson-rbush.2adaeedb.js";
2
- import { l as lineSegment } from "../_@turf_line-segment@6.5.0@@turf/_@turf_line-segment@6.5.0@@turf.18ce3010.js";
3
- import { n as nearestPointOnLine } from "../_@turf_nearest-point-on-line@6.5.0@@turf/_@turf_nearest-point-on-line@6.5.0@@turf.095c8c0d.js";
4
- 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";
5
- import { b as getCoords } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
6
- import { s as segmentEach, a as featureEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
7
- import { i as isObject, f as featureCollection } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
8
- import { _ as _deepEqual_1_1_1_deepEqual } from "../_deep-equal@1.1.1@deep-equal/_deep-equal@1.1.1@deep-equal.98576c17.js";
9
- function lineOverlap(line1, line2, options) {
10
- if (options === void 0) {
11
- options = {};
12
- }
13
- options = options || {};
14
- if (!isObject(options))
15
- throw new Error("options is invalid");
16
- var tolerance = options.tolerance || 0;
17
- var features = [];
18
- var tree = rbush();
19
- var line = lineSegment(line1);
20
- tree.load(line);
21
- var overlapSegment;
22
- segmentEach(line2, function(segment) {
23
- var doesOverlaps = false;
24
- if (!segment) {
25
- return;
26
- }
27
- featureEach(tree.search(segment), function(match) {
28
- if (doesOverlaps === false) {
29
- var coordsSegment = getCoords(segment).sort();
30
- var coordsMatch = getCoords(match).sort();
31
- if (_deepEqual_1_1_1_deepEqual(coordsSegment, coordsMatch)) {
32
- doesOverlaps = true;
33
- if (overlapSegment)
34
- overlapSegment = concatSegment(overlapSegment, segment);
35
- else
36
- overlapSegment = segment;
37
- } else if (tolerance === 0 ? booleanPointOnLine(coordsSegment[0], match) && booleanPointOnLine(coordsSegment[1], match) : nearestPointOnLine(match, coordsSegment[0]).properties.dist <= tolerance && nearestPointOnLine(match, coordsSegment[1]).properties.dist <= tolerance) {
38
- doesOverlaps = true;
39
- if (overlapSegment)
40
- overlapSegment = concatSegment(overlapSegment, segment);
41
- else
42
- overlapSegment = segment;
43
- } else if (tolerance === 0 ? booleanPointOnLine(coordsMatch[0], segment) && booleanPointOnLine(coordsMatch[1], segment) : nearestPointOnLine(segment, coordsMatch[0]).properties.dist <= tolerance && nearestPointOnLine(segment, coordsMatch[1]).properties.dist <= tolerance) {
44
- if (overlapSegment)
45
- overlapSegment = concatSegment(overlapSegment, match);
46
- else
47
- overlapSegment = match;
48
- }
49
- }
50
- });
51
- if (doesOverlaps === false && overlapSegment) {
52
- features.push(overlapSegment);
53
- overlapSegment = void 0;
54
- }
55
- });
56
- if (overlapSegment)
57
- features.push(overlapSegment);
58
- return featureCollection(features);
59
- }
60
- function concatSegment(line, segment) {
61
- var coords = getCoords(segment);
62
- var lineCoords = getCoords(line);
63
- var start = lineCoords[0];
64
- var end = lineCoords[lineCoords.length - 1];
65
- var geom = line.geometry.coordinates;
66
- if (_deepEqual_1_1_1_deepEqual(coords[0], start))
67
- geom.unshift(coords[1]);
68
- else if (_deepEqual_1_1_1_deepEqual(coords[0], end))
69
- geom.push(coords[1]);
70
- else if (_deepEqual_1_1_1_deepEqual(coords[1], start))
71
- geom.unshift(coords[0]);
72
- else if (_deepEqual_1_1_1_deepEqual(coords[1], end))
73
- geom.push(coords[0]);
74
- return line;
75
- }
76
- export { lineOverlap as l };
@@ -1,55 +0,0 @@
1
- import { f as featureCollection, l as lineString } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
2
- import { b as getCoords } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
3
- import { f as flattenEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
4
- function lineSegment(geojson) {
5
- if (!geojson) {
6
- throw new Error("geojson is required");
7
- }
8
- var results = [];
9
- flattenEach(geojson, function(feature) {
10
- lineSegmentFeature(feature, results);
11
- });
12
- return featureCollection(results);
13
- }
14
- function lineSegmentFeature(geojson, results) {
15
- var coords = [];
16
- var geometry = geojson.geometry;
17
- if (geometry !== null) {
18
- switch (geometry.type) {
19
- case "Polygon":
20
- coords = getCoords(geometry);
21
- break;
22
- case "LineString":
23
- coords = [getCoords(geometry)];
24
- }
25
- coords.forEach(function(coord) {
26
- var segments = createSegments(coord, geojson.properties);
27
- segments.forEach(function(segment) {
28
- segment.id = results.length;
29
- results.push(segment);
30
- });
31
- });
32
- }
33
- }
34
- function createSegments(coords, properties) {
35
- var segments = [];
36
- coords.reduce(function(previousCoords, currentCoords) {
37
- var segment = lineString([previousCoords, currentCoords], properties);
38
- segment.bbox = bbox(previousCoords, currentCoords);
39
- segments.push(segment);
40
- return currentCoords;
41
- });
42
- return segments;
43
- }
44
- function bbox(coords1, coords2) {
45
- var x1 = coords1[0];
46
- var y1 = coords1[1];
47
- var x2 = coords2[0];
48
- var y2 = coords2[1];
49
- var west = x1 < x2 ? x1 : x2;
50
- var south = y1 < y2 ? y1 : y2;
51
- var east = x1 > x2 ? x1 : x2;
52
- var north = y1 > y2 ? y1 : y2;
53
- return [west, south, east, north];
54
- }
55
- export { lineSegment as l };
@@ -1,57 +0,0 @@
1
- import { b as bearing } from "../_@turf_bearing@6.5.0@@turf/_@turf_bearing@6.5.0@@turf.f2555a09.js";
2
- import { d as distance } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
3
- import { d as destination } from "../_@turf_destination@6.5.0@@turf/_@turf_destination@6.5.0@@turf.2621651e.js";
4
- import { i as isObject, l as lineString } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
5
- function lineSliceAlong(line, startDist, stopDist, options) {
6
- options = options || {};
7
- if (!isObject(options))
8
- throw new Error("options is invalid");
9
- var coords;
10
- var slice = [];
11
- if (line.type === "Feature")
12
- coords = line.geometry.coordinates;
13
- else if (line.type === "LineString")
14
- coords = line.coordinates;
15
- else
16
- throw new Error("input must be a LineString Feature or Geometry");
17
- var origCoordsLength = coords.length;
18
- var travelled = 0;
19
- var overshot, direction, interpolated;
20
- for (var i = 0; i < coords.length; i++) {
21
- if (startDist >= travelled && i === coords.length - 1)
22
- break;
23
- else if (travelled > startDist && slice.length === 0) {
24
- overshot = startDist - travelled;
25
- if (!overshot) {
26
- slice.push(coords[i]);
27
- return lineString(slice);
28
- }
29
- direction = bearing(coords[i], coords[i - 1]) - 180;
30
- interpolated = destination(coords[i], overshot, direction, options);
31
- slice.push(interpolated.geometry.coordinates);
32
- }
33
- if (travelled >= stopDist) {
34
- overshot = stopDist - travelled;
35
- if (!overshot) {
36
- slice.push(coords[i]);
37
- return lineString(slice);
38
- }
39
- direction = bearing(coords[i], coords[i - 1]) - 180;
40
- interpolated = destination(coords[i], overshot, direction, options);
41
- slice.push(interpolated.geometry.coordinates);
42
- return lineString(slice);
43
- }
44
- if (travelled >= startDist) {
45
- slice.push(coords[i]);
46
- }
47
- if (i === coords.length - 1) {
48
- return lineString(slice);
49
- }
50
- travelled += distance(coords[i], coords[i + 1], options);
51
- }
52
- if (travelled < startDist && coords.length === origCoordsLength)
53
- throw new Error("Start position is beyond line");
54
- var last = coords[coords.length - 1];
55
- return lineString([last, last]);
56
- }
57
- export { lineSliceAlong as l };
@@ -1,23 +0,0 @@
1
- import { b as getCoords, c as getType } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
2
- import { l as lineString } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
3
- import { n as nearestPointOnLine } from "../_@turf_nearest-point-on-line@6.5.0@@turf/_@turf_nearest-point-on-line@6.5.0@@turf.095c8c0d.js";
4
- function lineSlice(startPt, stopPt, line) {
5
- var coords = getCoords(line);
6
- if (getType(line) !== "LineString")
7
- throw new Error("line must be a LineString");
8
- var startVertex = nearestPointOnLine(line, startPt);
9
- var stopVertex = nearestPointOnLine(line, stopPt);
10
- var ends;
11
- if (startVertex.properties.index <= stopVertex.properties.index) {
12
- ends = [startVertex, stopVertex];
13
- } else {
14
- ends = [stopVertex, startVertex];
15
- }
16
- var clipCoords = [ends[0].geometry.coordinates];
17
- for (var i = ends[0].properties.index + 1; i < ends[1].properties.index + 1; i++) {
18
- clipCoords.push(coords[i]);
19
- }
20
- clipCoords.push(ends[1].geometry.coordinates);
21
- return lineString(clipCoords, line.properties);
22
- }
23
- export { lineSlice as l };