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,367 +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 { d as distance } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
4
- import { t as transformScale } from "../_@turf_transform-scale@6.5.0@@turf/_@turf_transform-scale@6.5.0@@turf.d6f65671.js";
5
- import { c as cleanCoords } from "../_@turf_clean-coords@6.5.0@@turf/_@turf_clean-coords@6.5.0@@turf.8c76bd63.js";
6
- import { b as bboxPolygon } from "../_@turf_bbox-polygon@6.5.0@@turf/_@turf_bbox-polygon@6.5.0@@turf.523f1c20.js";
7
- import { a as getCoord, c as getType, g as getGeom } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
8
- import { i as isObject, f as featureCollection, o as isNumber, p as point, e as feature, l as lineString } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
9
- function pathTo(node) {
10
- var curr = node, path = [];
11
- while (curr.parent) {
12
- path.unshift(curr);
13
- curr = curr.parent;
14
- }
15
- return path;
16
- }
17
- function getHeap() {
18
- return new BinaryHeap(function(node) {
19
- return node.f;
20
- });
21
- }
22
- var astar = {
23
- search: function(graph, start, end, options) {
24
- graph.cleanDirty();
25
- options = options || {};
26
- var heuristic = options.heuristic || astar.heuristics.manhattan, closest = options.closest || false;
27
- var openHeap = getHeap(), closestNode = start;
28
- start.h = heuristic(start, end);
29
- openHeap.push(start);
30
- while (openHeap.size() > 0) {
31
- var currentNode = openHeap.pop();
32
- if (currentNode === end) {
33
- return pathTo(currentNode);
34
- }
35
- currentNode.closed = true;
36
- var neighbors = graph.neighbors(currentNode);
37
- for (var i = 0, il = neighbors.length; i < il; ++i) {
38
- var neighbor = neighbors[i];
39
- if (neighbor.closed || neighbor.isWall()) {
40
- continue;
41
- }
42
- var gScore = currentNode.g + neighbor.getCost(currentNode), beenVisited = neighbor.visited;
43
- if (!beenVisited || gScore < neighbor.g) {
44
- neighbor.visited = true;
45
- neighbor.parent = currentNode;
46
- neighbor.h = neighbor.h || heuristic(neighbor, end);
47
- neighbor.g = gScore;
48
- neighbor.f = neighbor.g + neighbor.h;
49
- graph.markDirty(neighbor);
50
- if (closest) {
51
- if (neighbor.h < closestNode.h || neighbor.h === closestNode.h && neighbor.g < closestNode.g) {
52
- closestNode = neighbor;
53
- }
54
- }
55
- if (!beenVisited) {
56
- openHeap.push(neighbor);
57
- } else {
58
- openHeap.rescoreElement(neighbor);
59
- }
60
- }
61
- }
62
- }
63
- if (closest) {
64
- return pathTo(closestNode);
65
- }
66
- return [];
67
- },
68
- heuristics: {
69
- manhattan: function(pos0, pos1) {
70
- var d1 = Math.abs(pos1.x - pos0.x);
71
- var d2 = Math.abs(pos1.y - pos0.y);
72
- return d1 + d2;
73
- },
74
- diagonal: function(pos0, pos1) {
75
- var D = 1;
76
- var D2 = Math.sqrt(2);
77
- var d1 = Math.abs(pos1.x - pos0.x);
78
- var d2 = Math.abs(pos1.y - pos0.y);
79
- return D * (d1 + d2) + (D2 - 2 * D) * Math.min(d1, d2);
80
- }
81
- },
82
- cleanNode: function(node) {
83
- node.f = 0;
84
- node.g = 0;
85
- node.h = 0;
86
- node.visited = false;
87
- node.closed = false;
88
- node.parent = null;
89
- }
90
- };
91
- function Graph(gridIn, options) {
92
- options = options || {};
93
- this.nodes = [];
94
- this.diagonal = !!options.diagonal;
95
- this.grid = [];
96
- for (var x = 0; x < gridIn.length; x++) {
97
- this.grid[x] = [];
98
- for (var y = 0, row = gridIn[x]; y < row.length; y++) {
99
- var node = new GridNode(x, y, row[y]);
100
- this.grid[x][y] = node;
101
- this.nodes.push(node);
102
- }
103
- }
104
- this.init();
105
- }
106
- Graph.prototype.init = function() {
107
- this.dirtyNodes = [];
108
- for (var i = 0; i < this.nodes.length; i++) {
109
- astar.cleanNode(this.nodes[i]);
110
- }
111
- };
112
- Graph.prototype.cleanDirty = function() {
113
- for (var i = 0; i < this.dirtyNodes.length; i++) {
114
- astar.cleanNode(this.dirtyNodes[i]);
115
- }
116
- this.dirtyNodes = [];
117
- };
118
- Graph.prototype.markDirty = function(node) {
119
- this.dirtyNodes.push(node);
120
- };
121
- Graph.prototype.neighbors = function(node) {
122
- var ret = [], x = node.x, y = node.y, grid = this.grid;
123
- if (grid[x - 1] && grid[x - 1][y]) {
124
- ret.push(grid[x - 1][y]);
125
- }
126
- if (grid[x + 1] && grid[x + 1][y]) {
127
- ret.push(grid[x + 1][y]);
128
- }
129
- if (grid[x] && grid[x][y - 1]) {
130
- ret.push(grid[x][y - 1]);
131
- }
132
- if (grid[x] && grid[x][y + 1]) {
133
- ret.push(grid[x][y + 1]);
134
- }
135
- if (this.diagonal) {
136
- if (grid[x - 1] && grid[x - 1][y - 1]) {
137
- ret.push(grid[x - 1][y - 1]);
138
- }
139
- if (grid[x + 1] && grid[x + 1][y - 1]) {
140
- ret.push(grid[x + 1][y - 1]);
141
- }
142
- if (grid[x - 1] && grid[x - 1][y + 1]) {
143
- ret.push(grid[x - 1][y + 1]);
144
- }
145
- if (grid[x + 1] && grid[x + 1][y + 1]) {
146
- ret.push(grid[x + 1][y + 1]);
147
- }
148
- }
149
- return ret;
150
- };
151
- Graph.prototype.toString = function() {
152
- var graphString = [], nodes = this.grid, rowDebug, row, y, l;
153
- for (var x = 0, len = nodes.length; x < len; x++) {
154
- rowDebug = [];
155
- row = nodes[x];
156
- for (y = 0, l = row.length; y < l; y++) {
157
- rowDebug.push(row[y].weight);
158
- }
159
- graphString.push(rowDebug.join(" "));
160
- }
161
- return graphString.join("\n");
162
- };
163
- function GridNode(x, y, weight) {
164
- this.x = x;
165
- this.y = y;
166
- this.weight = weight;
167
- }
168
- GridNode.prototype.toString = function() {
169
- return "[" + this.x + " " + this.y + "]";
170
- };
171
- GridNode.prototype.getCost = function(fromNeighbor) {
172
- if (fromNeighbor && fromNeighbor.x !== this.x && fromNeighbor.y !== this.y) {
173
- return this.weight * 1.41421;
174
- }
175
- return this.weight;
176
- };
177
- GridNode.prototype.isWall = function() {
178
- return this.weight === 0;
179
- };
180
- function BinaryHeap(scoreFunction) {
181
- this.content = [];
182
- this.scoreFunction = scoreFunction;
183
- }
184
- BinaryHeap.prototype = {
185
- push: function(element) {
186
- this.content.push(element);
187
- this.sinkDown(this.content.length - 1);
188
- },
189
- pop: function() {
190
- var result = this.content[0];
191
- var end = this.content.pop();
192
- if (this.content.length > 0) {
193
- this.content[0] = end;
194
- this.bubbleUp(0);
195
- }
196
- return result;
197
- },
198
- remove: function(node) {
199
- var i = this.content.indexOf(node);
200
- var end = this.content.pop();
201
- if (i !== this.content.length - 1) {
202
- this.content[i] = end;
203
- if (this.scoreFunction(end) < this.scoreFunction(node)) {
204
- this.sinkDown(i);
205
- } else {
206
- this.bubbleUp(i);
207
- }
208
- }
209
- },
210
- size: function() {
211
- return this.content.length;
212
- },
213
- rescoreElement: function(node) {
214
- this.sinkDown(this.content.indexOf(node));
215
- },
216
- sinkDown: function(n) {
217
- var element = this.content[n];
218
- while (n > 0) {
219
- var parentN = (n + 1 >> 1) - 1, parent = this.content[parentN];
220
- if (this.scoreFunction(element) < this.scoreFunction(parent)) {
221
- this.content[parentN] = element;
222
- this.content[n] = parent;
223
- n = parentN;
224
- } else {
225
- break;
226
- }
227
- }
228
- },
229
- bubbleUp: function(n) {
230
- var length = this.content.length, element = this.content[n], elemScore = this.scoreFunction(element);
231
- while (true) {
232
- var child2N = n + 1 << 1, child1N = child2N - 1;
233
- var swap = null, child1Score;
234
- if (child1N < length) {
235
- var child1 = this.content[child1N];
236
- child1Score = this.scoreFunction(child1);
237
- if (child1Score < elemScore) {
238
- swap = child1N;
239
- }
240
- }
241
- if (child2N < length) {
242
- var child2 = this.content[child2N], child2Score = this.scoreFunction(child2);
243
- if (child2Score < (swap === null ? elemScore : child1Score)) {
244
- swap = child2N;
245
- }
246
- }
247
- if (swap !== null) {
248
- this.content[n] = this.content[swap];
249
- this.content[swap] = element;
250
- n = swap;
251
- } else {
252
- break;
253
- }
254
- }
255
- }
256
- };
257
- function shortestPath(start, end, options) {
258
- options = options || {};
259
- if (!isObject(options))
260
- throw new Error("options is invalid");
261
- var resolution = options.resolution;
262
- var minDistance = options.minDistance;
263
- var obstacles = options.obstacles || featureCollection([]);
264
- if (!start)
265
- throw new Error("start is required");
266
- if (!end)
267
- throw new Error("end is required");
268
- if (resolution && !isNumber(resolution) || resolution <= 0)
269
- throw new Error("options.resolution must be a number, greater than 0");
270
- if (minDistance)
271
- throw new Error("options.minDistance is not yet implemented");
272
- var startCoord = getCoord(start);
273
- var endCoord = getCoord(end);
274
- start = point(startCoord);
275
- end = point(endCoord);
276
- switch (getType(obstacles)) {
277
- case "FeatureCollection":
278
- if (obstacles.features.length === 0)
279
- return lineString([startCoord, endCoord]);
280
- break;
281
- case "Polygon":
282
- obstacles = featureCollection([feature(getGeom(obstacles))]);
283
- break;
284
- default:
285
- throw new Error("invalid obstacles");
286
- }
287
- var collection = obstacles;
288
- collection.features.push(start);
289
- collection.features.push(end);
290
- var box = bbox(transformScale(bboxPolygon(bbox(collection)), 1.15));
291
- if (!resolution) {
292
- var width = distance([box[0], box[1]], [box[2], box[1]], options);
293
- resolution = width / 100;
294
- }
295
- collection.features.pop();
296
- collection.features.pop();
297
- var west = box[0];
298
- var south = box[1];
299
- var east = box[2];
300
- var north = box[3];
301
- var xFraction = resolution / distance([west, south], [east, south], options);
302
- var cellWidth = xFraction * (east - west);
303
- var yFraction = resolution / distance([west, south], [west, north], options);
304
- var cellHeight = yFraction * (north - south);
305
- var bboxHorizontalSide = east - west;
306
- var bboxVerticalSide = north - south;
307
- var columns = Math.floor(bboxHorizontalSide / cellWidth);
308
- var rows = Math.floor(bboxVerticalSide / cellHeight);
309
- var deltaX = (bboxHorizontalSide - columns * cellWidth) / 2;
310
- var deltaY = (bboxVerticalSide - rows * cellHeight) / 2;
311
- var pointMatrix = [];
312
- var matrix = [];
313
- var closestToStart = [];
314
- var closestToEnd = [];
315
- var minDistStart = Infinity;
316
- var minDistEnd = Infinity;
317
- var currentY = north - deltaY;
318
- var r = 0;
319
- while (currentY >= south) {
320
- var matrixRow = [];
321
- var pointMatrixRow = [];
322
- var currentX = west + deltaX;
323
- var c = 0;
324
- while (currentX <= east) {
325
- var pt = point([currentX, currentY]);
326
- var isInsideObstacle = isInside(pt, obstacles);
327
- matrixRow.push(isInsideObstacle ? 0 : 1);
328
- pointMatrixRow.push(currentX + "|" + currentY);
329
- var distStart = distance(pt, start);
330
- if (!isInsideObstacle && distStart < minDistStart) {
331
- minDistStart = distStart;
332
- closestToStart = { x: c, y: r };
333
- }
334
- var distEnd = distance(pt, end);
335
- if (!isInsideObstacle && distEnd < minDistEnd) {
336
- minDistEnd = distEnd;
337
- closestToEnd = { x: c, y: r };
338
- }
339
- currentX += cellWidth;
340
- c++;
341
- }
342
- matrix.push(matrixRow);
343
- pointMatrix.push(pointMatrixRow);
344
- currentY -= cellHeight;
345
- r++;
346
- }
347
- var graph = new Graph(matrix, { diagonal: true });
348
- var startOnMatrix = graph.grid[closestToStart.y][closestToStart.x];
349
- var endOnMatrix = graph.grid[closestToEnd.y][closestToEnd.x];
350
- var result = astar.search(graph, startOnMatrix, endOnMatrix);
351
- var path = [startCoord];
352
- result.forEach(function(coord) {
353
- var coords = pointMatrix[coord.x][coord.y].split("|");
354
- path.push([+coords[0], +coords[1]]);
355
- });
356
- path.push(endCoord);
357
- return cleanCoords(lineString(path));
358
- }
359
- function isInside(pt, polygons) {
360
- for (var i = 0; i < polygons.features.length; i++) {
361
- if (booleanPointInPolygon(pt, polygons.features[i])) {
362
- return true;
363
- }
364
- }
365
- return false;
366
- }
367
- export { shortestPath as s };
@@ -1,8 +0,0 @@
1
- import { r as rectangleGrid } from "../_@turf_rectangle-grid@6.5.0@@turf/_@turf_rectangle-grid@6.5.0@@turf.7e8b1a1f.js";
2
- function squareGrid(bbox, cellSide, options) {
3
- if (options === void 0) {
4
- options = {};
5
- }
6
- return rectangleGrid(bbox, cellSide, cellSide, options);
7
- }
8
- export { squareGrid as s };
@@ -1,27 +0,0 @@
1
- import { d as distance } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
2
- function square(bbox) {
3
- var west = bbox[0];
4
- var south = bbox[1];
5
- var east = bbox[2];
6
- var north = bbox[3];
7
- var horizontalDistance = distance(bbox.slice(0, 2), [east, south]);
8
- var verticalDistance = distance(bbox.slice(0, 2), [west, north]);
9
- if (horizontalDistance >= verticalDistance) {
10
- var verticalMidpoint = (south + north) / 2;
11
- return [
12
- west,
13
- verticalMidpoint - (east - west) / 2,
14
- east,
15
- verticalMidpoint + (east - west) / 2
16
- ];
17
- } else {
18
- var horizontalMidpoint = (west + east) / 2;
19
- return [
20
- horizontalMidpoint - (north - south) / 2,
21
- south,
22
- horizontalMidpoint + (north - south) / 2,
23
- north
24
- ];
25
- }
26
- }
27
- export { square as s };
@@ -1,173 +0,0 @@
1
- import { f as featureCollection, a as polygon } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
2
- function tin(points, z) {
3
- var isPointZ = false;
4
- return featureCollection(triangulate(points.features.map(function(p) {
5
- var point = {
6
- x: p.geometry.coordinates[0],
7
- y: p.geometry.coordinates[1]
8
- };
9
- if (z) {
10
- point.z = p.properties[z];
11
- } else if (p.geometry.coordinates.length === 3) {
12
- isPointZ = true;
13
- point.z = p.geometry.coordinates[2];
14
- }
15
- return point;
16
- })).map(function(triangle) {
17
- var a = [triangle.a.x, triangle.a.y];
18
- var b = [triangle.b.x, triangle.b.y];
19
- var c = [triangle.c.x, triangle.c.y];
20
- var properties = {};
21
- if (isPointZ) {
22
- a.push(triangle.a.z);
23
- b.push(triangle.b.z);
24
- c.push(triangle.c.z);
25
- } else {
26
- properties = {
27
- a: triangle.a.z,
28
- b: triangle.b.z,
29
- c: triangle.c.z
30
- };
31
- }
32
- return polygon([[a, b, c, a]], properties);
33
- }));
34
- }
35
- var Triangle = function() {
36
- function Triangle2(a, b, c) {
37
- this.a = a;
38
- this.b = b;
39
- this.c = c;
40
- var A = b.x - a.x;
41
- var B = b.y - a.y;
42
- var C = c.x - a.x;
43
- var D = c.y - a.y;
44
- var E = A * (a.x + b.x) + B * (a.y + b.y);
45
- var F = C * (a.x + c.x) + D * (a.y + c.y);
46
- var G = 2 * (A * (c.y - b.y) - B * (c.x - b.x));
47
- var dx;
48
- var dy;
49
- this.x = (D * E - B * F) / G;
50
- this.y = (A * F - C * E) / G;
51
- dx = this.x - a.x;
52
- dy = this.y - a.y;
53
- this.r = dx * dx + dy * dy;
54
- }
55
- return Triangle2;
56
- }();
57
- function byX(a, b) {
58
- return b.x - a.x;
59
- }
60
- function dedup(edges) {
61
- var j = edges.length;
62
- var a;
63
- var b;
64
- var i;
65
- var m;
66
- var n;
67
- outer:
68
- while (j) {
69
- b = edges[--j];
70
- a = edges[--j];
71
- i = j;
72
- while (i) {
73
- n = edges[--i];
74
- m = edges[--i];
75
- if (a === m && b === n || a === n && b === m) {
76
- edges.splice(j, 2);
77
- edges.splice(i, 2);
78
- j -= 2;
79
- continue outer;
80
- }
81
- }
82
- }
83
- }
84
- function triangulate(vertices) {
85
- if (vertices.length < 3) {
86
- return [];
87
- }
88
- vertices.sort(byX);
89
- var i = vertices.length - 1;
90
- var xmin = vertices[i].x;
91
- var xmax = vertices[0].x;
92
- var ymin = vertices[i].y;
93
- var ymax = ymin;
94
- var epsilon = 1e-12;
95
- var a;
96
- var b;
97
- var c;
98
- var A;
99
- var B;
100
- var G;
101
- while (i--) {
102
- if (vertices[i].y < ymin) {
103
- ymin = vertices[i].y;
104
- }
105
- if (vertices[i].y > ymax) {
106
- ymax = vertices[i].y;
107
- }
108
- }
109
- var dx = xmax - xmin;
110
- var dy = ymax - ymin;
111
- var dmax = dx > dy ? dx : dy;
112
- var xmid = (xmax + xmin) * 0.5;
113
- var ymid = (ymax + ymin) * 0.5;
114
- var open = [
115
- new Triangle({
116
- __sentinel: true,
117
- x: xmid - 20 * dmax,
118
- y: ymid - dmax
119
- }, {
120
- __sentinel: true,
121
- x: xmid,
122
- y: ymid + 20 * dmax
123
- }, {
124
- __sentinel: true,
125
- x: xmid + 20 * dmax,
126
- y: ymid - dmax
127
- })
128
- ];
129
- var closed = [];
130
- var edges = [];
131
- var j;
132
- i = vertices.length;
133
- while (i--) {
134
- edges.length = 0;
135
- j = open.length;
136
- while (j--) {
137
- dx = vertices[i].x - open[j].x;
138
- if (dx > 0 && dx * dx > open[j].r) {
139
- closed.push(open[j]);
140
- open.splice(j, 1);
141
- continue;
142
- }
143
- dy = vertices[i].y - open[j].y;
144
- if (dx * dx + dy * dy > open[j].r) {
145
- continue;
146
- }
147
- edges.push(open[j].a, open[j].b, open[j].b, open[j].c, open[j].c, open[j].a);
148
- open.splice(j, 1);
149
- }
150
- dedup(edges);
151
- j = edges.length;
152
- while (j) {
153
- b = edges[--j];
154
- a = edges[--j];
155
- c = vertices[i];
156
- A = b.x - a.x;
157
- B = b.y - a.y;
158
- G = 2 * (A * (c.y - b.y) - B * (c.x - b.x));
159
- if (Math.abs(G) > epsilon) {
160
- open.push(new Triangle(a, b, c));
161
- }
162
- }
163
- }
164
- Array.prototype.push.apply(closed, open);
165
- i = closed.length;
166
- while (i--) {
167
- if (closed[i].a.__sentinel || closed[i].b.__sentinel || closed[i].c.__sentinel) {
168
- closed.splice(i, 1);
169
- }
170
- }
171
- return closed;
172
- }
173
- export { tin as t };
@@ -1,90 +0,0 @@
1
- import { c as clone } from "../_@turf_clone@6.5.0@@turf/_@turf_clone@6.5.0@@turf.cd05b1f8.js";
2
- import { c as center } from "../_@turf_center@6.5.0@@turf/_@turf_center@6.5.0@@turf.a45495b5.js";
3
- import { c as centroid } from "../_@turf_centroid@6.5.0@@turf/_@turf_centroid@6.5.0@@turf.0a5be869.js";
4
- import { b as bbox } from "../_@turf_bbox@6.5.0@@turf/_@turf_bbox@6.5.0@@turf.4c59feee.js";
5
- import { r as rhumbBearing } from "../_@turf_rhumb-bearing@6.5.0@@turf/_@turf_rhumb-bearing@6.5.0@@turf.fb8f6ade.js";
6
- import { r as rhumbDistance } from "../_@turf_rhumb-distance@6.5.0@@turf/_@turf_rhumb-distance@6.5.0@@turf.94e475b8.js";
7
- import { r as rhumbDestination } from "../_@turf_rhumb-destination@6.5.0@@turf/_@turf_rhumb-destination@6.5.0@@turf.dc0e4753.js";
8
- import { a as featureEach, c as coordEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
9
- import { i as isObject, p as point } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
10
- import { c as getType, b as getCoords, a as getCoord } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
11
- function transformScale(geojson, factor, options) {
12
- options = options || {};
13
- if (!isObject(options))
14
- throw new Error("options is invalid");
15
- var origin = options.origin;
16
- var mutate = options.mutate;
17
- if (!geojson)
18
- throw new Error("geojson required");
19
- if (typeof factor !== "number" || factor === 0)
20
- throw new Error("invalid factor");
21
- var originIsPoint = Array.isArray(origin) || typeof origin === "object";
22
- if (mutate !== true)
23
- geojson = clone(geojson);
24
- if (geojson.type === "FeatureCollection" && !originIsPoint) {
25
- featureEach(geojson, function(feature, index) {
26
- geojson.features[index] = scale(feature, factor, origin);
27
- });
28
- return geojson;
29
- }
30
- return scale(geojson, factor, origin);
31
- }
32
- function scale(feature, factor, origin) {
33
- var isPoint = getType(feature) === "Point";
34
- origin = defineOrigin(feature, origin);
35
- if (factor === 1 || isPoint)
36
- return feature;
37
- coordEach(feature, function(coord) {
38
- var originalDistance = rhumbDistance(origin, coord);
39
- var bearing = rhumbBearing(origin, coord);
40
- var newDistance = originalDistance * factor;
41
- var newCoord = getCoords(rhumbDestination(origin, newDistance, bearing));
42
- coord[0] = newCoord[0];
43
- coord[1] = newCoord[1];
44
- if (coord.length === 3)
45
- coord[2] *= factor;
46
- });
47
- return feature;
48
- }
49
- function defineOrigin(geojson, origin) {
50
- if (origin === void 0 || origin === null)
51
- origin = "centroid";
52
- if (Array.isArray(origin) || typeof origin === "object")
53
- return getCoord(origin);
54
- var bbox$1 = geojson.bbox ? geojson.bbox : bbox(geojson);
55
- var west = bbox$1[0];
56
- var south = bbox$1[1];
57
- var east = bbox$1[2];
58
- var north = bbox$1[3];
59
- switch (origin) {
60
- case "sw":
61
- case "southwest":
62
- case "westsouth":
63
- case "bottomleft":
64
- return point([west, south]);
65
- case "se":
66
- case "southeast":
67
- case "eastsouth":
68
- case "bottomright":
69
- return point([east, south]);
70
- case "nw":
71
- case "northwest":
72
- case "westnorth":
73
- case "topleft":
74
- return point([west, north]);
75
- case "ne":
76
- case "northeast":
77
- case "eastnorth":
78
- case "topright":
79
- return point([east, north]);
80
- case "center":
81
- return center(geojson);
82
- case void 0:
83
- case null:
84
- case "centroid":
85
- return centroid(geojson);
86
- default:
87
- throw new Error("invalid origin");
88
- }
89
- }
90
- export { transformScale as t };