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,662 +0,0 @@
1
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2
- function bounds(objects) {
3
- var x0 = Infinity, y0 = Infinity, x1 = -Infinity, y1 = -Infinity;
4
- function boundGeometry(geometry2) {
5
- if (geometry2 != null && hasOwnProperty.call(boundGeometryType, geometry2.type))
6
- boundGeometryType[geometry2.type](geometry2);
7
- }
8
- var boundGeometryType = {
9
- GeometryCollection: function(o) {
10
- o.geometries.forEach(boundGeometry);
11
- },
12
- Point: function(o) {
13
- boundPoint(o.coordinates);
14
- },
15
- MultiPoint: function(o) {
16
- o.coordinates.forEach(boundPoint);
17
- },
18
- LineString: function(o) {
19
- boundLine(o.arcs);
20
- },
21
- MultiLineString: function(o) {
22
- o.arcs.forEach(boundLine);
23
- },
24
- Polygon: function(o) {
25
- o.arcs.forEach(boundLine);
26
- },
27
- MultiPolygon: function(o) {
28
- o.arcs.forEach(boundMultiLine);
29
- }
30
- };
31
- function boundPoint(coordinates) {
32
- var x = coordinates[0], y = coordinates[1];
33
- if (x < x0)
34
- x0 = x;
35
- if (x > x1)
36
- x1 = x;
37
- if (y < y0)
38
- y0 = y;
39
- if (y > y1)
40
- y1 = y;
41
- }
42
- function boundLine(coordinates) {
43
- coordinates.forEach(boundPoint);
44
- }
45
- function boundMultiLine(coordinates) {
46
- coordinates.forEach(boundLine);
47
- }
48
- for (var key in objects) {
49
- boundGeometry(objects[key]);
50
- }
51
- return x1 >= x0 && y1 >= y0 ? [x0, y0, x1, y1] : void 0;
52
- }
53
- function hashset(size, hash, equal, type, empty) {
54
- if (arguments.length === 3) {
55
- type = Array;
56
- empty = null;
57
- }
58
- var store = new type(size = 1 << Math.max(4, Math.ceil(Math.log(size) / Math.LN2))), mask = size - 1;
59
- for (var i = 0; i < size; ++i) {
60
- store[i] = empty;
61
- }
62
- function add(value) {
63
- var index = hash(value) & mask, match = store[index], collisions = 0;
64
- while (match != empty) {
65
- if (equal(match, value))
66
- return true;
67
- if (++collisions >= size)
68
- throw new Error("full hashset");
69
- match = store[index = index + 1 & mask];
70
- }
71
- store[index] = value;
72
- return true;
73
- }
74
- function has(value) {
75
- var index = hash(value) & mask, match = store[index], collisions = 0;
76
- while (match != empty) {
77
- if (equal(match, value))
78
- return true;
79
- if (++collisions >= size)
80
- break;
81
- match = store[index = index + 1 & mask];
82
- }
83
- return false;
84
- }
85
- function values() {
86
- var values2 = [];
87
- for (var i2 = 0, n = store.length; i2 < n; ++i2) {
88
- var match = store[i2];
89
- if (match != empty)
90
- values2.push(match);
91
- }
92
- return values2;
93
- }
94
- return {
95
- add,
96
- has,
97
- values
98
- };
99
- }
100
- function hashmap(size, hash, equal, keyType, keyEmpty, valueType) {
101
- if (arguments.length === 3) {
102
- keyType = valueType = Array;
103
- keyEmpty = null;
104
- }
105
- var keystore = new keyType(size = 1 << Math.max(4, Math.ceil(Math.log(size) / Math.LN2))), valstore = new valueType(size), mask = size - 1;
106
- for (var i = 0; i < size; ++i) {
107
- keystore[i] = keyEmpty;
108
- }
109
- function set(key, value) {
110
- var index = hash(key) & mask, matchKey = keystore[index], collisions = 0;
111
- while (matchKey != keyEmpty) {
112
- if (equal(matchKey, key))
113
- return valstore[index] = value;
114
- if (++collisions >= size)
115
- throw new Error("full hashmap");
116
- matchKey = keystore[index = index + 1 & mask];
117
- }
118
- keystore[index] = key;
119
- valstore[index] = value;
120
- return value;
121
- }
122
- function maybeSet(key, value) {
123
- var index = hash(key) & mask, matchKey = keystore[index], collisions = 0;
124
- while (matchKey != keyEmpty) {
125
- if (equal(matchKey, key))
126
- return valstore[index];
127
- if (++collisions >= size)
128
- throw new Error("full hashmap");
129
- matchKey = keystore[index = index + 1 & mask];
130
- }
131
- keystore[index] = key;
132
- valstore[index] = value;
133
- return value;
134
- }
135
- function get(key, missingValue) {
136
- var index = hash(key) & mask, matchKey = keystore[index], collisions = 0;
137
- while (matchKey != keyEmpty) {
138
- if (equal(matchKey, key))
139
- return valstore[index];
140
- if (++collisions >= size)
141
- break;
142
- matchKey = keystore[index = index + 1 & mask];
143
- }
144
- return missingValue;
145
- }
146
- function keys() {
147
- var keys2 = [];
148
- for (var i2 = 0, n = keystore.length; i2 < n; ++i2) {
149
- var matchKey = keystore[i2];
150
- if (matchKey != keyEmpty)
151
- keys2.push(matchKey);
152
- }
153
- return keys2;
154
- }
155
- return {
156
- set,
157
- maybeSet,
158
- get,
159
- keys
160
- };
161
- }
162
- function equalPoint(pointA, pointB) {
163
- return pointA[0] === pointB[0] && pointA[1] === pointB[1];
164
- }
165
- var buffer = new ArrayBuffer(16), floats = new Float64Array(buffer), uints = new Uint32Array(buffer);
166
- function hashPoint(point) {
167
- floats[0] = point[0];
168
- floats[1] = point[1];
169
- var hash = uints[0] ^ uints[1];
170
- hash = hash << 5 ^ hash >> 7 ^ uints[2] ^ uints[3];
171
- return hash & 2147483647;
172
- }
173
- function join(topology2) {
174
- var coordinates = topology2.coordinates, lines = topology2.lines, rings = topology2.rings, indexes = index(), visitedByIndex = new Int32Array(coordinates.length), leftByIndex = new Int32Array(coordinates.length), rightByIndex = new Int32Array(coordinates.length), junctionByIndex = new Int8Array(coordinates.length), junctionCount = 0, i, n, previousIndex, currentIndex, nextIndex;
175
- for (i = 0, n = coordinates.length; i < n; ++i) {
176
- visitedByIndex[i] = leftByIndex[i] = rightByIndex[i] = -1;
177
- }
178
- for (i = 0, n = lines.length; i < n; ++i) {
179
- var line = lines[i], lineStart = line[0], lineEnd = line[1];
180
- currentIndex = indexes[lineStart];
181
- nextIndex = indexes[++lineStart];
182
- ++junctionCount, junctionByIndex[currentIndex] = 1;
183
- while (++lineStart <= lineEnd) {
184
- sequence(i, previousIndex = currentIndex, currentIndex = nextIndex, nextIndex = indexes[lineStart]);
185
- }
186
- ++junctionCount, junctionByIndex[nextIndex] = 1;
187
- }
188
- for (i = 0, n = coordinates.length; i < n; ++i) {
189
- visitedByIndex[i] = -1;
190
- }
191
- for (i = 0, n = rings.length; i < n; ++i) {
192
- var ring = rings[i], ringStart = ring[0] + 1, ringEnd = ring[1];
193
- previousIndex = indexes[ringEnd - 1];
194
- currentIndex = indexes[ringStart - 1];
195
- nextIndex = indexes[ringStart];
196
- sequence(i, previousIndex, currentIndex, nextIndex);
197
- while (++ringStart <= ringEnd) {
198
- sequence(i, previousIndex = currentIndex, currentIndex = nextIndex, nextIndex = indexes[ringStart]);
199
- }
200
- }
201
- function sequence(i2, previousIndex2, currentIndex2, nextIndex2) {
202
- if (visitedByIndex[currentIndex2] === i2)
203
- return;
204
- visitedByIndex[currentIndex2] = i2;
205
- var leftIndex = leftByIndex[currentIndex2];
206
- if (leftIndex >= 0) {
207
- var rightIndex = rightByIndex[currentIndex2];
208
- if ((leftIndex !== previousIndex2 || rightIndex !== nextIndex2) && (leftIndex !== nextIndex2 || rightIndex !== previousIndex2)) {
209
- ++junctionCount, junctionByIndex[currentIndex2] = 1;
210
- }
211
- } else {
212
- leftByIndex[currentIndex2] = previousIndex2;
213
- rightByIndex[currentIndex2] = nextIndex2;
214
- }
215
- }
216
- function index() {
217
- var indexByPoint = hashmap(coordinates.length * 1.4, hashIndex, equalIndex, Int32Array, -1, Int32Array), indexes2 = new Int32Array(coordinates.length);
218
- for (var i2 = 0, n2 = coordinates.length; i2 < n2; ++i2) {
219
- indexes2[i2] = indexByPoint.maybeSet(i2, i2);
220
- }
221
- return indexes2;
222
- }
223
- function hashIndex(i2) {
224
- return hashPoint(coordinates[i2]);
225
- }
226
- function equalIndex(i2, j2) {
227
- return equalPoint(coordinates[i2], coordinates[j2]);
228
- }
229
- visitedByIndex = leftByIndex = rightByIndex = null;
230
- var junctionByPoint = hashset(junctionCount * 1.4, hashPoint, equalPoint), j;
231
- for (i = 0, n = coordinates.length; i < n; ++i) {
232
- if (junctionByIndex[j = indexes[i]]) {
233
- junctionByPoint.add(coordinates[j]);
234
- }
235
- }
236
- return junctionByPoint;
237
- }
238
- function cut(topology2) {
239
- var junctions = join(topology2), coordinates = topology2.coordinates, lines = topology2.lines, rings = topology2.rings, next, i, n;
240
- for (i = 0, n = lines.length; i < n; ++i) {
241
- var line = lines[i], lineMid = line[0], lineEnd = line[1];
242
- while (++lineMid < lineEnd) {
243
- if (junctions.has(coordinates[lineMid])) {
244
- next = { 0: lineMid, 1: line[1] };
245
- line[1] = lineMid;
246
- line = line.next = next;
247
- }
248
- }
249
- }
250
- for (i = 0, n = rings.length; i < n; ++i) {
251
- var ring = rings[i], ringStart = ring[0], ringMid = ringStart, ringEnd = ring[1], ringFixed = junctions.has(coordinates[ringStart]);
252
- while (++ringMid < ringEnd) {
253
- if (junctions.has(coordinates[ringMid])) {
254
- if (ringFixed) {
255
- next = { 0: ringMid, 1: ring[1] };
256
- ring[1] = ringMid;
257
- ring = ring.next = next;
258
- } else {
259
- rotateArray(coordinates, ringStart, ringEnd, ringEnd - ringMid);
260
- coordinates[ringEnd] = coordinates[ringStart];
261
- ringFixed = true;
262
- ringMid = ringStart;
263
- }
264
- }
265
- }
266
- }
267
- return topology2;
268
- }
269
- function rotateArray(array, start, end, offset) {
270
- reverse(array, start, end);
271
- reverse(array, start, start + offset);
272
- reverse(array, start + offset, end);
273
- }
274
- function reverse(array, start, end) {
275
- for (var mid = start + (end-- - start >> 1), t; start < mid; ++start, --end) {
276
- t = array[start], array[start] = array[end], array[end] = t;
277
- }
278
- }
279
- function dedup(topology2) {
280
- var coordinates = topology2.coordinates, lines = topology2.lines, line, rings = topology2.rings, ring, arcCount = lines.length + rings.length, i, n;
281
- delete topology2.lines;
282
- delete topology2.rings;
283
- for (i = 0, n = lines.length; i < n; ++i) {
284
- line = lines[i];
285
- while (line = line.next)
286
- ++arcCount;
287
- }
288
- for (i = 0, n = rings.length; i < n; ++i) {
289
- ring = rings[i];
290
- while (ring = ring.next)
291
- ++arcCount;
292
- }
293
- var arcsByEnd = hashmap(arcCount * 2 * 1.4, hashPoint, equalPoint), arcs = topology2.arcs = [];
294
- for (i = 0, n = lines.length; i < n; ++i) {
295
- line = lines[i];
296
- do {
297
- dedupLine(line);
298
- } while (line = line.next);
299
- }
300
- for (i = 0, n = rings.length; i < n; ++i) {
301
- ring = rings[i];
302
- if (ring.next) {
303
- do {
304
- dedupLine(ring);
305
- } while (ring = ring.next);
306
- } else {
307
- dedupRing(ring);
308
- }
309
- }
310
- function dedupLine(arc) {
311
- var startPoint, endPoint, startArcs, startArc, endArcs, endArc, i2, n2;
312
- if (startArcs = arcsByEnd.get(startPoint = coordinates[arc[0]])) {
313
- for (i2 = 0, n2 = startArcs.length; i2 < n2; ++i2) {
314
- startArc = startArcs[i2];
315
- if (equalLine(startArc, arc)) {
316
- arc[0] = startArc[0];
317
- arc[1] = startArc[1];
318
- return;
319
- }
320
- }
321
- }
322
- if (endArcs = arcsByEnd.get(endPoint = coordinates[arc[1]])) {
323
- for (i2 = 0, n2 = endArcs.length; i2 < n2; ++i2) {
324
- endArc = endArcs[i2];
325
- if (reverseEqualLine(endArc, arc)) {
326
- arc[1] = endArc[0];
327
- arc[0] = endArc[1];
328
- return;
329
- }
330
- }
331
- }
332
- if (startArcs)
333
- startArcs.push(arc);
334
- else
335
- arcsByEnd.set(startPoint, [arc]);
336
- if (endArcs)
337
- endArcs.push(arc);
338
- else
339
- arcsByEnd.set(endPoint, [arc]);
340
- arcs.push(arc);
341
- }
342
- function dedupRing(arc) {
343
- var endPoint, endArcs, endArc, i2, n2;
344
- if (endArcs = arcsByEnd.get(endPoint = coordinates[arc[0]])) {
345
- for (i2 = 0, n2 = endArcs.length; i2 < n2; ++i2) {
346
- endArc = endArcs[i2];
347
- if (equalRing(endArc, arc)) {
348
- arc[0] = endArc[0];
349
- arc[1] = endArc[1];
350
- return;
351
- }
352
- if (reverseEqualRing(endArc, arc)) {
353
- arc[0] = endArc[1];
354
- arc[1] = endArc[0];
355
- return;
356
- }
357
- }
358
- }
359
- if (endArcs = arcsByEnd.get(endPoint = coordinates[arc[0] + findMinimumOffset(arc)])) {
360
- for (i2 = 0, n2 = endArcs.length; i2 < n2; ++i2) {
361
- endArc = endArcs[i2];
362
- if (equalRing(endArc, arc)) {
363
- arc[0] = endArc[0];
364
- arc[1] = endArc[1];
365
- return;
366
- }
367
- if (reverseEqualRing(endArc, arc)) {
368
- arc[0] = endArc[1];
369
- arc[1] = endArc[0];
370
- return;
371
- }
372
- }
373
- }
374
- if (endArcs)
375
- endArcs.push(arc);
376
- else
377
- arcsByEnd.set(endPoint, [arc]);
378
- arcs.push(arc);
379
- }
380
- function equalLine(arcA, arcB) {
381
- var ia = arcA[0], ib = arcB[0], ja = arcA[1], jb = arcB[1];
382
- if (ia - ja !== ib - jb)
383
- return false;
384
- for (; ia <= ja; ++ia, ++ib)
385
- if (!equalPoint(coordinates[ia], coordinates[ib]))
386
- return false;
387
- return true;
388
- }
389
- function reverseEqualLine(arcA, arcB) {
390
- var ia = arcA[0], ib = arcB[0], ja = arcA[1], jb = arcB[1];
391
- if (ia - ja !== ib - jb)
392
- return false;
393
- for (; ia <= ja; ++ia, --jb)
394
- if (!equalPoint(coordinates[ia], coordinates[jb]))
395
- return false;
396
- return true;
397
- }
398
- function equalRing(arcA, arcB) {
399
- var ia = arcA[0], ib = arcB[0], ja = arcA[1], jb = arcB[1], n2 = ja - ia;
400
- if (n2 !== jb - ib)
401
- return false;
402
- var ka = findMinimumOffset(arcA), kb = findMinimumOffset(arcB);
403
- for (var i2 = 0; i2 < n2; ++i2) {
404
- if (!equalPoint(coordinates[ia + (i2 + ka) % n2], coordinates[ib + (i2 + kb) % n2]))
405
- return false;
406
- }
407
- return true;
408
- }
409
- function reverseEqualRing(arcA, arcB) {
410
- var ia = arcA[0], ib = arcB[0], ja = arcA[1], jb = arcB[1], n2 = ja - ia;
411
- if (n2 !== jb - ib)
412
- return false;
413
- var ka = findMinimumOffset(arcA), kb = n2 - findMinimumOffset(arcB);
414
- for (var i2 = 0; i2 < n2; ++i2) {
415
- if (!equalPoint(coordinates[ia + (i2 + ka) % n2], coordinates[jb - (i2 + kb) % n2]))
416
- return false;
417
- }
418
- return true;
419
- }
420
- function findMinimumOffset(arc) {
421
- var start = arc[0], end = arc[1], mid = start, minimum = mid, minimumPoint = coordinates[mid];
422
- while (++mid < end) {
423
- var point = coordinates[mid];
424
- if (point[0] < minimumPoint[0] || point[0] === minimumPoint[0] && point[1] < minimumPoint[1]) {
425
- minimum = mid;
426
- minimumPoint = point;
427
- }
428
- }
429
- return minimum - start;
430
- }
431
- return topology2;
432
- }
433
- function delta(arcs) {
434
- var i = -1, n = arcs.length;
435
- while (++i < n) {
436
- var arc = arcs[i], j = 0, k = 1, m = arc.length, point = arc[0], x0 = point[0], y0 = point[1], x1, y1;
437
- while (++j < m) {
438
- point = arc[j], x1 = point[0], y1 = point[1];
439
- if (x1 !== x0 || y1 !== y0)
440
- arc[k++] = [x1 - x0, y1 - y0], x0 = x1, y0 = y1;
441
- }
442
- if (k === 1)
443
- arc[k++] = [0, 0];
444
- arc.length = k;
445
- }
446
- return arcs;
447
- }
448
- function extract(objects) {
449
- var index = -1, lines = [], rings = [], coordinates = [];
450
- function extractGeometry(geometry2) {
451
- if (geometry2 && hasOwnProperty.call(extractGeometryType, geometry2.type))
452
- extractGeometryType[geometry2.type](geometry2);
453
- }
454
- var extractGeometryType = {
455
- GeometryCollection: function(o) {
456
- o.geometries.forEach(extractGeometry);
457
- },
458
- LineString: function(o) {
459
- o.arcs = extractLine(o.arcs);
460
- },
461
- MultiLineString: function(o) {
462
- o.arcs = o.arcs.map(extractLine);
463
- },
464
- Polygon: function(o) {
465
- o.arcs = o.arcs.map(extractRing);
466
- },
467
- MultiPolygon: function(o) {
468
- o.arcs = o.arcs.map(extractMultiRing);
469
- }
470
- };
471
- function extractLine(line) {
472
- for (var i = 0, n = line.length; i < n; ++i)
473
- coordinates[++index] = line[i];
474
- var arc = { 0: index - n + 1, 1: index };
475
- lines.push(arc);
476
- return arc;
477
- }
478
- function extractRing(ring) {
479
- for (var i = 0, n = ring.length; i < n; ++i)
480
- coordinates[++index] = ring[i];
481
- var arc = { 0: index - n + 1, 1: index };
482
- rings.push(arc);
483
- return arc;
484
- }
485
- function extractMultiRing(rings2) {
486
- return rings2.map(extractRing);
487
- }
488
- for (var key in objects) {
489
- extractGeometry(objects[key]);
490
- }
491
- return {
492
- type: "Topology",
493
- coordinates,
494
- lines,
495
- rings,
496
- objects
497
- };
498
- }
499
- function geometry(inputs) {
500
- var outputs = {}, key;
501
- for (key in inputs)
502
- outputs[key] = geomifyObject(inputs[key]);
503
- return outputs;
504
- }
505
- function geomifyObject(input) {
506
- return input == null ? { type: null } : (input.type === "FeatureCollection" ? geomifyFeatureCollection : input.type === "Feature" ? geomifyFeature : geomifyGeometry)(input);
507
- }
508
- function geomifyFeatureCollection(input) {
509
- var output = { type: "GeometryCollection", geometries: input.features.map(geomifyFeature) };
510
- if (input.bbox != null)
511
- output.bbox = input.bbox;
512
- return output;
513
- }
514
- function geomifyFeature(input) {
515
- var output = geomifyGeometry(input.geometry), key;
516
- if (input.id != null)
517
- output.id = input.id;
518
- if (input.bbox != null)
519
- output.bbox = input.bbox;
520
- for (key in input.properties) {
521
- output.properties = input.properties;
522
- break;
523
- }
524
- return output;
525
- }
526
- function geomifyGeometry(input) {
527
- if (input == null)
528
- return { type: null };
529
- var output = input.type === "GeometryCollection" ? { type: "GeometryCollection", geometries: input.geometries.map(geomifyGeometry) } : input.type === "Point" || input.type === "MultiPoint" ? { type: input.type, coordinates: input.coordinates } : { type: input.type, arcs: input.coordinates };
530
- if (input.bbox != null)
531
- output.bbox = input.bbox;
532
- return output;
533
- }
534
- function prequantize(objects, bbox, n) {
535
- var x0 = bbox[0], y0 = bbox[1], x1 = bbox[2], y1 = bbox[3], kx = x1 - x0 ? (n - 1) / (x1 - x0) : 1, ky = y1 - y0 ? (n - 1) / (y1 - y0) : 1;
536
- function quantizePoint(input) {
537
- return [Math.round((input[0] - x0) * kx), Math.round((input[1] - y0) * ky)];
538
- }
539
- function quantizePoints(input, m) {
540
- var i = -1, j = 0, n2 = input.length, output = new Array(n2), pi, px, py, x, y;
541
- while (++i < n2) {
542
- pi = input[i];
543
- x = Math.round((pi[0] - x0) * kx);
544
- y = Math.round((pi[1] - y0) * ky);
545
- if (x !== px || y !== py)
546
- output[j++] = [px = x, py = y];
547
- }
548
- output.length = j;
549
- while (j < m)
550
- j = output.push([output[0][0], output[0][1]]);
551
- return output;
552
- }
553
- function quantizeLine(input) {
554
- return quantizePoints(input, 2);
555
- }
556
- function quantizeRing(input) {
557
- return quantizePoints(input, 4);
558
- }
559
- function quantizePolygon(input) {
560
- return input.map(quantizeRing);
561
- }
562
- function quantizeGeometry(o) {
563
- if (o != null && hasOwnProperty.call(quantizeGeometryType, o.type))
564
- quantizeGeometryType[o.type](o);
565
- }
566
- var quantizeGeometryType = {
567
- GeometryCollection: function(o) {
568
- o.geometries.forEach(quantizeGeometry);
569
- },
570
- Point: function(o) {
571
- o.coordinates = quantizePoint(o.coordinates);
572
- },
573
- MultiPoint: function(o) {
574
- o.coordinates = o.coordinates.map(quantizePoint);
575
- },
576
- LineString: function(o) {
577
- o.arcs = quantizeLine(o.arcs);
578
- },
579
- MultiLineString: function(o) {
580
- o.arcs = o.arcs.map(quantizeLine);
581
- },
582
- Polygon: function(o) {
583
- o.arcs = quantizePolygon(o.arcs);
584
- },
585
- MultiPolygon: function(o) {
586
- o.arcs = o.arcs.map(quantizePolygon);
587
- }
588
- };
589
- for (var key in objects) {
590
- quantizeGeometry(objects[key]);
591
- }
592
- return {
593
- scale: [1 / kx, 1 / ky],
594
- translate: [x0, y0]
595
- };
596
- }
597
- function topology(objects, quantization) {
598
- var bbox = bounds(objects = geometry(objects)), transform = quantization > 0 && bbox && prequantize(objects, bbox, quantization), topology2 = dedup(cut(extract(objects))), coordinates = topology2.coordinates, indexByArc = hashmap(topology2.arcs.length * 1.4, hashArc, equalArc);
599
- objects = topology2.objects;
600
- topology2.bbox = bbox;
601
- topology2.arcs = topology2.arcs.map(function(arc, i) {
602
- indexByArc.set(arc, i);
603
- return coordinates.slice(arc[0], arc[1] + 1);
604
- });
605
- delete topology2.coordinates;
606
- coordinates = null;
607
- function indexGeometry(geometry2) {
608
- if (geometry2 && hasOwnProperty.call(indexGeometryType, geometry2.type))
609
- indexGeometryType[geometry2.type](geometry2);
610
- }
611
- var indexGeometryType = {
612
- GeometryCollection: function(o) {
613
- o.geometries.forEach(indexGeometry);
614
- },
615
- LineString: function(o) {
616
- o.arcs = indexArcs(o.arcs);
617
- },
618
- MultiLineString: function(o) {
619
- o.arcs = o.arcs.map(indexArcs);
620
- },
621
- Polygon: function(o) {
622
- o.arcs = o.arcs.map(indexArcs);
623
- },
624
- MultiPolygon: function(o) {
625
- o.arcs = o.arcs.map(indexMultiArcs);
626
- }
627
- };
628
- function indexArcs(arc) {
629
- var indexes = [];
630
- do {
631
- var index = indexByArc.get(arc);
632
- indexes.push(arc[0] < arc[1] ? index : ~index);
633
- } while (arc = arc.next);
634
- return indexes;
635
- }
636
- function indexMultiArcs(arcs) {
637
- return arcs.map(indexArcs);
638
- }
639
- for (var key in objects) {
640
- indexGeometry(objects[key]);
641
- }
642
- if (transform) {
643
- topology2.transform = transform;
644
- topology2.arcs = delta(topology2.arcs);
645
- }
646
- return topology2;
647
- }
648
- function hashArc(arc) {
649
- var i = arc[0], j = arc[1], t;
650
- if (j < i)
651
- t = i, i = j, j = t;
652
- return i + 31 * j;
653
- }
654
- function equalArc(arcA, arcB) {
655
- var ia = arcA[0], ja = arcA[1], ib = arcB[0], jb = arcB[1], t;
656
- if (ja < ia)
657
- t = ia, ia = ja, ja = t;
658
- if (jb < ib)
659
- t = ib, ib = jb, jb = t;
660
- return ia === ib && ja === jb;
661
- }
662
- export { topology as t };