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,816 +0,0 @@
1
- function constant(x2) {
2
- return function() {
3
- return x2;
4
- };
5
- }
6
- function x(d) {
7
- return d[0];
8
- }
9
- function y(d) {
10
- return d[1];
11
- }
12
- function RedBlackTree() {
13
- this._ = null;
14
- }
15
- function RedBlackNode(node) {
16
- node.U = node.C = node.L = node.R = node.P = node.N = null;
17
- }
18
- RedBlackTree.prototype = {
19
- constructor: RedBlackTree,
20
- insert: function(after, node) {
21
- var parent, grandpa, uncle;
22
- if (after) {
23
- node.P = after;
24
- node.N = after.N;
25
- if (after.N)
26
- after.N.P = node;
27
- after.N = node;
28
- if (after.R) {
29
- after = after.R;
30
- while (after.L)
31
- after = after.L;
32
- after.L = node;
33
- } else {
34
- after.R = node;
35
- }
36
- parent = after;
37
- } else if (this._) {
38
- after = RedBlackFirst(this._);
39
- node.P = null;
40
- node.N = after;
41
- after.P = after.L = node;
42
- parent = after;
43
- } else {
44
- node.P = node.N = null;
45
- this._ = node;
46
- parent = null;
47
- }
48
- node.L = node.R = null;
49
- node.U = parent;
50
- node.C = true;
51
- after = node;
52
- while (parent && parent.C) {
53
- grandpa = parent.U;
54
- if (parent === grandpa.L) {
55
- uncle = grandpa.R;
56
- if (uncle && uncle.C) {
57
- parent.C = uncle.C = false;
58
- grandpa.C = true;
59
- after = grandpa;
60
- } else {
61
- if (after === parent.R) {
62
- RedBlackRotateLeft(this, parent);
63
- after = parent;
64
- parent = after.U;
65
- }
66
- parent.C = false;
67
- grandpa.C = true;
68
- RedBlackRotateRight(this, grandpa);
69
- }
70
- } else {
71
- uncle = grandpa.L;
72
- if (uncle && uncle.C) {
73
- parent.C = uncle.C = false;
74
- grandpa.C = true;
75
- after = grandpa;
76
- } else {
77
- if (after === parent.L) {
78
- RedBlackRotateRight(this, parent);
79
- after = parent;
80
- parent = after.U;
81
- }
82
- parent.C = false;
83
- grandpa.C = true;
84
- RedBlackRotateLeft(this, grandpa);
85
- }
86
- }
87
- parent = after.U;
88
- }
89
- this._.C = false;
90
- },
91
- remove: function(node) {
92
- if (node.N)
93
- node.N.P = node.P;
94
- if (node.P)
95
- node.P.N = node.N;
96
- node.N = node.P = null;
97
- var parent = node.U, sibling, left = node.L, right = node.R, next, red;
98
- if (!left)
99
- next = right;
100
- else if (!right)
101
- next = left;
102
- else
103
- next = RedBlackFirst(right);
104
- if (parent) {
105
- if (parent.L === node)
106
- parent.L = next;
107
- else
108
- parent.R = next;
109
- } else {
110
- this._ = next;
111
- }
112
- if (left && right) {
113
- red = next.C;
114
- next.C = node.C;
115
- next.L = left;
116
- left.U = next;
117
- if (next !== right) {
118
- parent = next.U;
119
- next.U = node.U;
120
- node = next.R;
121
- parent.L = node;
122
- next.R = right;
123
- right.U = next;
124
- } else {
125
- next.U = parent;
126
- parent = next;
127
- node = next.R;
128
- }
129
- } else {
130
- red = node.C;
131
- node = next;
132
- }
133
- if (node)
134
- node.U = parent;
135
- if (red)
136
- return;
137
- if (node && node.C) {
138
- node.C = false;
139
- return;
140
- }
141
- do {
142
- if (node === this._)
143
- break;
144
- if (node === parent.L) {
145
- sibling = parent.R;
146
- if (sibling.C) {
147
- sibling.C = false;
148
- parent.C = true;
149
- RedBlackRotateLeft(this, parent);
150
- sibling = parent.R;
151
- }
152
- if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {
153
- if (!sibling.R || !sibling.R.C) {
154
- sibling.L.C = false;
155
- sibling.C = true;
156
- RedBlackRotateRight(this, sibling);
157
- sibling = parent.R;
158
- }
159
- sibling.C = parent.C;
160
- parent.C = sibling.R.C = false;
161
- RedBlackRotateLeft(this, parent);
162
- node = this._;
163
- break;
164
- }
165
- } else {
166
- sibling = parent.L;
167
- if (sibling.C) {
168
- sibling.C = false;
169
- parent.C = true;
170
- RedBlackRotateRight(this, parent);
171
- sibling = parent.L;
172
- }
173
- if (sibling.L && sibling.L.C || sibling.R && sibling.R.C) {
174
- if (!sibling.L || !sibling.L.C) {
175
- sibling.R.C = false;
176
- sibling.C = true;
177
- RedBlackRotateLeft(this, sibling);
178
- sibling = parent.L;
179
- }
180
- sibling.C = parent.C;
181
- parent.C = sibling.L.C = false;
182
- RedBlackRotateRight(this, parent);
183
- node = this._;
184
- break;
185
- }
186
- }
187
- sibling.C = true;
188
- node = parent;
189
- parent = parent.U;
190
- } while (!node.C);
191
- if (node)
192
- node.C = false;
193
- }
194
- };
195
- function RedBlackRotateLeft(tree, node) {
196
- var p = node, q = node.R, parent = p.U;
197
- if (parent) {
198
- if (parent.L === p)
199
- parent.L = q;
200
- else
201
- parent.R = q;
202
- } else {
203
- tree._ = q;
204
- }
205
- q.U = parent;
206
- p.U = q;
207
- p.R = q.L;
208
- if (p.R)
209
- p.R.U = p;
210
- q.L = p;
211
- }
212
- function RedBlackRotateRight(tree, node) {
213
- var p = node, q = node.L, parent = p.U;
214
- if (parent) {
215
- if (parent.L === p)
216
- parent.L = q;
217
- else
218
- parent.R = q;
219
- } else {
220
- tree._ = q;
221
- }
222
- q.U = parent;
223
- p.U = q;
224
- p.L = q.R;
225
- if (p.L)
226
- p.L.U = p;
227
- q.R = p;
228
- }
229
- function RedBlackFirst(node) {
230
- while (node.L)
231
- node = node.L;
232
- return node;
233
- }
234
- function createEdge(left, right, v0, v1) {
235
- var edge = [null, null], index = edges.push(edge) - 1;
236
- edge.left = left;
237
- edge.right = right;
238
- if (v0)
239
- setEdgeEnd(edge, left, right, v0);
240
- if (v1)
241
- setEdgeEnd(edge, right, left, v1);
242
- cells[left.index].halfedges.push(index);
243
- cells[right.index].halfedges.push(index);
244
- return edge;
245
- }
246
- function createBorderEdge(left, v0, v1) {
247
- var edge = [v0, v1];
248
- edge.left = left;
249
- return edge;
250
- }
251
- function setEdgeEnd(edge, left, right, vertex) {
252
- if (!edge[0] && !edge[1]) {
253
- edge[0] = vertex;
254
- edge.left = left;
255
- edge.right = right;
256
- } else if (edge.left === right) {
257
- edge[1] = vertex;
258
- } else {
259
- edge[0] = vertex;
260
- }
261
- }
262
- function clipEdge(edge, x0, y0, x1, y1) {
263
- var a = edge[0], b = edge[1], ax = a[0], ay = a[1], bx = b[0], by = b[1], t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r;
264
- r = x0 - ax;
265
- if (!dx && r > 0)
266
- return;
267
- r /= dx;
268
- if (dx < 0) {
269
- if (r < t0)
270
- return;
271
- if (r < t1)
272
- t1 = r;
273
- } else if (dx > 0) {
274
- if (r > t1)
275
- return;
276
- if (r > t0)
277
- t0 = r;
278
- }
279
- r = x1 - ax;
280
- if (!dx && r < 0)
281
- return;
282
- r /= dx;
283
- if (dx < 0) {
284
- if (r > t1)
285
- return;
286
- if (r > t0)
287
- t0 = r;
288
- } else if (dx > 0) {
289
- if (r < t0)
290
- return;
291
- if (r < t1)
292
- t1 = r;
293
- }
294
- r = y0 - ay;
295
- if (!dy && r > 0)
296
- return;
297
- r /= dy;
298
- if (dy < 0) {
299
- if (r < t0)
300
- return;
301
- if (r < t1)
302
- t1 = r;
303
- } else if (dy > 0) {
304
- if (r > t1)
305
- return;
306
- if (r > t0)
307
- t0 = r;
308
- }
309
- r = y1 - ay;
310
- if (!dy && r < 0)
311
- return;
312
- r /= dy;
313
- if (dy < 0) {
314
- if (r > t1)
315
- return;
316
- if (r > t0)
317
- t0 = r;
318
- } else if (dy > 0) {
319
- if (r < t0)
320
- return;
321
- if (r < t1)
322
- t1 = r;
323
- }
324
- if (!(t0 > 0) && !(t1 < 1))
325
- return true;
326
- if (t0 > 0)
327
- edge[0] = [ax + t0 * dx, ay + t0 * dy];
328
- if (t1 < 1)
329
- edge[1] = [ax + t1 * dx, ay + t1 * dy];
330
- return true;
331
- }
332
- function connectEdge(edge, x0, y0, x1, y1) {
333
- var v1 = edge[1];
334
- if (v1)
335
- return true;
336
- var v0 = edge[0], left = edge.left, right = edge.right, lx = left[0], ly = left[1], rx = right[0], ry = right[1], fx = (lx + rx) / 2, fy = (ly + ry) / 2, fm, fb;
337
- if (ry === ly) {
338
- if (fx < x0 || fx >= x1)
339
- return;
340
- if (lx > rx) {
341
- if (!v0)
342
- v0 = [fx, y0];
343
- else if (v0[1] >= y1)
344
- return;
345
- v1 = [fx, y1];
346
- } else {
347
- if (!v0)
348
- v0 = [fx, y1];
349
- else if (v0[1] < y0)
350
- return;
351
- v1 = [fx, y0];
352
- }
353
- } else {
354
- fm = (lx - rx) / (ry - ly);
355
- fb = fy - fm * fx;
356
- if (fm < -1 || fm > 1) {
357
- if (lx > rx) {
358
- if (!v0)
359
- v0 = [(y0 - fb) / fm, y0];
360
- else if (v0[1] >= y1)
361
- return;
362
- v1 = [(y1 - fb) / fm, y1];
363
- } else {
364
- if (!v0)
365
- v0 = [(y1 - fb) / fm, y1];
366
- else if (v0[1] < y0)
367
- return;
368
- v1 = [(y0 - fb) / fm, y0];
369
- }
370
- } else {
371
- if (ly < ry) {
372
- if (!v0)
373
- v0 = [x0, fm * x0 + fb];
374
- else if (v0[0] >= x1)
375
- return;
376
- v1 = [x1, fm * x1 + fb];
377
- } else {
378
- if (!v0)
379
- v0 = [x1, fm * x1 + fb];
380
- else if (v0[0] < x0)
381
- return;
382
- v1 = [x0, fm * x0 + fb];
383
- }
384
- }
385
- }
386
- edge[0] = v0;
387
- edge[1] = v1;
388
- return true;
389
- }
390
- function clipEdges(x0, y0, x1, y1) {
391
- var i = edges.length, edge;
392
- while (i--) {
393
- if (!connectEdge(edge = edges[i], x0, y0, x1, y1) || !clipEdge(edge, x0, y0, x1, y1) || !(Math.abs(edge[0][0] - edge[1][0]) > epsilon || Math.abs(edge[0][1] - edge[1][1]) > epsilon)) {
394
- delete edges[i];
395
- }
396
- }
397
- }
398
- function createCell(site) {
399
- return cells[site.index] = {
400
- site,
401
- halfedges: []
402
- };
403
- }
404
- function cellHalfedgeAngle(cell, edge) {
405
- var site = cell.site, va = edge.left, vb = edge.right;
406
- if (site === vb)
407
- vb = va, va = site;
408
- if (vb)
409
- return Math.atan2(vb[1] - va[1], vb[0] - va[0]);
410
- if (site === va)
411
- va = edge[1], vb = edge[0];
412
- else
413
- va = edge[0], vb = edge[1];
414
- return Math.atan2(va[0] - vb[0], vb[1] - va[1]);
415
- }
416
- function cellHalfedgeStart(cell, edge) {
417
- return edge[+(edge.left !== cell.site)];
418
- }
419
- function cellHalfedgeEnd(cell, edge) {
420
- return edge[+(edge.left === cell.site)];
421
- }
422
- function sortCellHalfedges() {
423
- for (var i = 0, n = cells.length, cell, halfedges, j, m; i < n; ++i) {
424
- if ((cell = cells[i]) && (m = (halfedges = cell.halfedges).length)) {
425
- var index = new Array(m), array = new Array(m);
426
- for (j = 0; j < m; ++j)
427
- index[j] = j, array[j] = cellHalfedgeAngle(cell, edges[halfedges[j]]);
428
- index.sort(function(i2, j2) {
429
- return array[j2] - array[i2];
430
- });
431
- for (j = 0; j < m; ++j)
432
- array[j] = halfedges[index[j]];
433
- for (j = 0; j < m; ++j)
434
- halfedges[j] = array[j];
435
- }
436
- }
437
- }
438
- function clipCells(x0, y0, x1, y1) {
439
- var nCells = cells.length, iCell, cell, site, iHalfedge, halfedges, nHalfedges, start, startX, startY, end, endX, endY, cover = true;
440
- for (iCell = 0; iCell < nCells; ++iCell) {
441
- if (cell = cells[iCell]) {
442
- site = cell.site;
443
- halfedges = cell.halfedges;
444
- iHalfedge = halfedges.length;
445
- while (iHalfedge--) {
446
- if (!edges[halfedges[iHalfedge]]) {
447
- halfedges.splice(iHalfedge, 1);
448
- }
449
- }
450
- iHalfedge = 0, nHalfedges = halfedges.length;
451
- while (iHalfedge < nHalfedges) {
452
- end = cellHalfedgeEnd(cell, edges[halfedges[iHalfedge]]), endX = end[0], endY = end[1];
453
- start = cellHalfedgeStart(cell, edges[halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];
454
- if (Math.abs(endX - startX) > epsilon || Math.abs(endY - startY) > epsilon) {
455
- halfedges.splice(iHalfedge, 0, edges.push(createBorderEdge(
456
- site,
457
- end,
458
- Math.abs(endX - x0) < epsilon && y1 - endY > epsilon ? [x0, Math.abs(startX - x0) < epsilon ? startY : y1] : Math.abs(endY - y1) < epsilon && x1 - endX > epsilon ? [Math.abs(startY - y1) < epsilon ? startX : x1, y1] : Math.abs(endX - x1) < epsilon && endY - y0 > epsilon ? [x1, Math.abs(startX - x1) < epsilon ? startY : y0] : Math.abs(endY - y0) < epsilon && endX - x0 > epsilon ? [Math.abs(startY - y0) < epsilon ? startX : x0, y0] : null
459
- )) - 1);
460
- ++nHalfedges;
461
- }
462
- }
463
- if (nHalfedges)
464
- cover = false;
465
- }
466
- }
467
- if (cover) {
468
- var dx, dy, d2, dc = Infinity;
469
- for (iCell = 0, cover = null; iCell < nCells; ++iCell) {
470
- if (cell = cells[iCell]) {
471
- site = cell.site;
472
- dx = site[0] - x0;
473
- dy = site[1] - y0;
474
- d2 = dx * dx + dy * dy;
475
- if (d2 < dc)
476
- dc = d2, cover = cell;
477
- }
478
- }
479
- if (cover) {
480
- var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];
481
- cover.halfedges.push(
482
- edges.push(createBorderEdge(site = cover.site, v00, v01)) - 1,
483
- edges.push(createBorderEdge(site, v01, v11)) - 1,
484
- edges.push(createBorderEdge(site, v11, v10)) - 1,
485
- edges.push(createBorderEdge(site, v10, v00)) - 1
486
- );
487
- }
488
- }
489
- for (iCell = 0; iCell < nCells; ++iCell) {
490
- if (cell = cells[iCell]) {
491
- if (!cell.halfedges.length) {
492
- delete cells[iCell];
493
- }
494
- }
495
- }
496
- }
497
- var circlePool = [];
498
- var firstCircle;
499
- function Circle() {
500
- RedBlackNode(this);
501
- this.x = this.y = this.arc = this.site = this.cy = null;
502
- }
503
- function attachCircle(arc) {
504
- var lArc = arc.P, rArc = arc.N;
505
- if (!lArc || !rArc)
506
- return;
507
- var lSite = lArc.site, cSite = arc.site, rSite = rArc.site;
508
- if (lSite === rSite)
509
- return;
510
- var bx = cSite[0], by = cSite[1], ax = lSite[0] - bx, ay = lSite[1] - by, cx = rSite[0] - bx, cy = rSite[1] - by;
511
- var d = 2 * (ax * cy - ay * cx);
512
- if (d >= -epsilon2)
513
- return;
514
- var ha = ax * ax + ay * ay, hc = cx * cx + cy * cy, x2 = (cy * ha - ay * hc) / d, y2 = (ax * hc - cx * ha) / d;
515
- var circle = circlePool.pop() || new Circle();
516
- circle.arc = arc;
517
- circle.site = cSite;
518
- circle.x = x2 + bx;
519
- circle.y = (circle.cy = y2 + by) + Math.sqrt(x2 * x2 + y2 * y2);
520
- arc.circle = circle;
521
- var before = null, node = circles._;
522
- while (node) {
523
- if (circle.y < node.y || circle.y === node.y && circle.x <= node.x) {
524
- if (node.L)
525
- node = node.L;
526
- else {
527
- before = node.P;
528
- break;
529
- }
530
- } else {
531
- if (node.R)
532
- node = node.R;
533
- else {
534
- before = node;
535
- break;
536
- }
537
- }
538
- }
539
- circles.insert(before, circle);
540
- if (!before)
541
- firstCircle = circle;
542
- }
543
- function detachCircle(arc) {
544
- var circle = arc.circle;
545
- if (circle) {
546
- if (!circle.P)
547
- firstCircle = circle.N;
548
- circles.remove(circle);
549
- circlePool.push(circle);
550
- RedBlackNode(circle);
551
- arc.circle = null;
552
- }
553
- }
554
- var beachPool = [];
555
- function Beach() {
556
- RedBlackNode(this);
557
- this.edge = this.site = this.circle = null;
558
- }
559
- function createBeach(site) {
560
- var beach = beachPool.pop() || new Beach();
561
- beach.site = site;
562
- return beach;
563
- }
564
- function detachBeach(beach) {
565
- detachCircle(beach);
566
- beaches.remove(beach);
567
- beachPool.push(beach);
568
- RedBlackNode(beach);
569
- }
570
- function removeBeach(beach) {
571
- var circle = beach.circle, x2 = circle.x, y2 = circle.cy, vertex = [x2, y2], previous = beach.P, next = beach.N, disappearing = [beach];
572
- detachBeach(beach);
573
- var lArc = previous;
574
- while (lArc.circle && Math.abs(x2 - lArc.circle.x) < epsilon && Math.abs(y2 - lArc.circle.cy) < epsilon) {
575
- previous = lArc.P;
576
- disappearing.unshift(lArc);
577
- detachBeach(lArc);
578
- lArc = previous;
579
- }
580
- disappearing.unshift(lArc);
581
- detachCircle(lArc);
582
- var rArc = next;
583
- while (rArc.circle && Math.abs(x2 - rArc.circle.x) < epsilon && Math.abs(y2 - rArc.circle.cy) < epsilon) {
584
- next = rArc.N;
585
- disappearing.push(rArc);
586
- detachBeach(rArc);
587
- rArc = next;
588
- }
589
- disappearing.push(rArc);
590
- detachCircle(rArc);
591
- var nArcs = disappearing.length, iArc;
592
- for (iArc = 1; iArc < nArcs; ++iArc) {
593
- rArc = disappearing[iArc];
594
- lArc = disappearing[iArc - 1];
595
- setEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);
596
- }
597
- lArc = disappearing[0];
598
- rArc = disappearing[nArcs - 1];
599
- rArc.edge = createEdge(lArc.site, rArc.site, null, vertex);
600
- attachCircle(lArc);
601
- attachCircle(rArc);
602
- }
603
- function addBeach(site) {
604
- var x2 = site[0], directrix = site[1], lArc, rArc, dxl, dxr, node = beaches._;
605
- while (node) {
606
- dxl = leftBreakPoint(node, directrix) - x2;
607
- if (dxl > epsilon)
608
- node = node.L;
609
- else {
610
- dxr = x2 - rightBreakPoint(node, directrix);
611
- if (dxr > epsilon) {
612
- if (!node.R) {
613
- lArc = node;
614
- break;
615
- }
616
- node = node.R;
617
- } else {
618
- if (dxl > -epsilon) {
619
- lArc = node.P;
620
- rArc = node;
621
- } else if (dxr > -epsilon) {
622
- lArc = node;
623
- rArc = node.N;
624
- } else {
625
- lArc = rArc = node;
626
- }
627
- break;
628
- }
629
- }
630
- }
631
- createCell(site);
632
- var newArc = createBeach(site);
633
- beaches.insert(lArc, newArc);
634
- if (!lArc && !rArc)
635
- return;
636
- if (lArc === rArc) {
637
- detachCircle(lArc);
638
- rArc = createBeach(lArc.site);
639
- beaches.insert(newArc, rArc);
640
- newArc.edge = rArc.edge = createEdge(lArc.site, newArc.site);
641
- attachCircle(lArc);
642
- attachCircle(rArc);
643
- return;
644
- }
645
- if (!rArc) {
646
- newArc.edge = createEdge(lArc.site, newArc.site);
647
- return;
648
- }
649
- detachCircle(lArc);
650
- detachCircle(rArc);
651
- var lSite = lArc.site, ax = lSite[0], ay = lSite[1], bx = site[0] - ax, by = site[1] - ay, rSite = rArc.site, cx = rSite[0] - ax, cy = rSite[1] - ay, d = 2 * (bx * cy - by * cx), hb = bx * bx + by * by, hc = cx * cx + cy * cy, vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];
652
- setEdgeEnd(rArc.edge, lSite, rSite, vertex);
653
- newArc.edge = createEdge(lSite, site, null, vertex);
654
- rArc.edge = createEdge(site, rSite, null, vertex);
655
- attachCircle(lArc);
656
- attachCircle(rArc);
657
- }
658
- function leftBreakPoint(arc, directrix) {
659
- var site = arc.site, rfocx = site[0], rfocy = site[1], pby2 = rfocy - directrix;
660
- if (!pby2)
661
- return rfocx;
662
- var lArc = arc.P;
663
- if (!lArc)
664
- return -Infinity;
665
- site = lArc.site;
666
- var lfocx = site[0], lfocy = site[1], plby2 = lfocy - directrix;
667
- if (!plby2)
668
- return lfocx;
669
- var hl = lfocx - rfocx, aby2 = 1 / pby2 - 1 / plby2, b = hl / plby2;
670
- if (aby2)
671
- return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;
672
- return (rfocx + lfocx) / 2;
673
- }
674
- function rightBreakPoint(arc, directrix) {
675
- var rArc = arc.N;
676
- if (rArc)
677
- return leftBreakPoint(rArc, directrix);
678
- var site = arc.site;
679
- return site[1] === directrix ? site[0] : Infinity;
680
- }
681
- var epsilon = 1e-6;
682
- var epsilon2 = 1e-12;
683
- var beaches;
684
- var cells;
685
- var circles;
686
- var edges;
687
- function triangleArea(a, b, c) {
688
- return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);
689
- }
690
- function lexicographic(a, b) {
691
- return b[1] - a[1] || b[0] - a[0];
692
- }
693
- function Diagram(sites, extent) {
694
- var site = sites.sort(lexicographic).pop(), x2, y2, circle;
695
- edges = [];
696
- cells = new Array(sites.length);
697
- beaches = new RedBlackTree();
698
- circles = new RedBlackTree();
699
- while (true) {
700
- circle = firstCircle;
701
- if (site && (!circle || site[1] < circle.y || site[1] === circle.y && site[0] < circle.x)) {
702
- if (site[0] !== x2 || site[1] !== y2) {
703
- addBeach(site);
704
- x2 = site[0], y2 = site[1];
705
- }
706
- site = sites.pop();
707
- } else if (circle) {
708
- removeBeach(circle.arc);
709
- } else {
710
- break;
711
- }
712
- }
713
- sortCellHalfedges();
714
- if (extent) {
715
- var x0 = +extent[0][0], y0 = +extent[0][1], x1 = +extent[1][0], y1 = +extent[1][1];
716
- clipEdges(x0, y0, x1, y1);
717
- clipCells(x0, y0, x1, y1);
718
- }
719
- this.edges = edges;
720
- this.cells = cells;
721
- beaches = circles = edges = cells = null;
722
- }
723
- Diagram.prototype = {
724
- constructor: Diagram,
725
- polygons: function() {
726
- var edges2 = this.edges;
727
- return this.cells.map(function(cell) {
728
- var polygon = cell.halfedges.map(function(i) {
729
- return cellHalfedgeStart(cell, edges2[i]);
730
- });
731
- polygon.data = cell.site.data;
732
- return polygon;
733
- });
734
- },
735
- triangles: function() {
736
- var triangles = [], edges2 = this.edges;
737
- this.cells.forEach(function(cell, i) {
738
- if (!(m = (halfedges = cell.halfedges).length))
739
- return;
740
- var site = cell.site, halfedges, j = -1, m, s0, e1 = edges2[halfedges[m - 1]], s1 = e1.left === site ? e1.right : e1.left;
741
- while (++j < m) {
742
- s0 = s1;
743
- e1 = edges2[halfedges[j]];
744
- s1 = e1.left === site ? e1.right : e1.left;
745
- if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {
746
- triangles.push([site.data, s0.data, s1.data]);
747
- }
748
- }
749
- });
750
- return triangles;
751
- },
752
- links: function() {
753
- return this.edges.filter(function(edge) {
754
- return edge.right;
755
- }).map(function(edge) {
756
- return {
757
- source: edge.left.data,
758
- target: edge.right.data
759
- };
760
- });
761
- },
762
- find: function(x2, y2, radius) {
763
- var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;
764
- while (!(cell = that.cells[i1]))
765
- if (++i1 >= n)
766
- return null;
767
- var dx = x2 - cell.site[0], dy = y2 - cell.site[1], d2 = dx * dx + dy * dy;
768
- do {
769
- cell = that.cells[i0 = i1], i1 = null;
770
- cell.halfedges.forEach(function(e) {
771
- var edge = that.edges[e], v = edge.left;
772
- if ((v === cell.site || !v) && !(v = edge.right))
773
- return;
774
- var vx = x2 - v[0], vy = y2 - v[1], v2 = vx * vx + vy * vy;
775
- if (v2 < d2)
776
- d2 = v2, i1 = v.index;
777
- });
778
- } while (i1 !== null);
779
- that._found = i0;
780
- return radius == null || d2 <= radius * radius ? cell.site : null;
781
- }
782
- };
783
- function voronoi$1() {
784
- var x$1 = x, y$1 = y, extent = null;
785
- function voronoi(data) {
786
- return new Diagram(data.map(function(d, i) {
787
- var s = [Math.round(x$1(d, i, data) / epsilon) * epsilon, Math.round(y$1(d, i, data) / epsilon) * epsilon];
788
- s.index = i;
789
- s.data = d;
790
- return s;
791
- }), extent);
792
- }
793
- voronoi.polygons = function(data) {
794
- return voronoi(data).polygons();
795
- };
796
- voronoi.links = function(data) {
797
- return voronoi(data).links();
798
- };
799
- voronoi.triangles = function(data) {
800
- return voronoi(data).triangles();
801
- };
802
- voronoi.x = function(_) {
803
- return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), voronoi) : x$1;
804
- };
805
- voronoi.y = function(_) {
806
- return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), voronoi) : y$1;
807
- };
808
- voronoi.extent = function(_) {
809
- return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]];
810
- };
811
- voronoi.size = function(_) {
812
- return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];
813
- };
814
- return voronoi;
815
- }
816
- export { voronoi$1 as v };