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,3 +1,6 @@
1
+ import { i as inflate_1 } from "./pako.esm-49deb4d7.js";
2
+ import { B as BaseDecoder } from "./basedecoder-fa2b8e8d.js";
3
+ import { L as LercParameters, J as LercAddCompression } from "./index-a9db46a5.js";
1
4
  var LercDecode = { exports: {} };
2
5
  (function(module) {
3
6
  /* Copyright 2015-2021 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */
@@ -1903,4 +1906,26 @@ var LercDecode = { exports: {} };
1903
1906
  })();
1904
1907
  })(LercDecode);
1905
1908
  var Lerc = LercDecode.exports;
1906
- export { Lerc as L };
1909
+ class LercDecoder extends BaseDecoder {
1910
+ constructor(fileDirectory) {
1911
+ super();
1912
+ this.planarConfiguration = typeof fileDirectory.PlanarConfiguration !== "undefined" ? fileDirectory.PlanarConfiguration : 1;
1913
+ this.samplesPerPixel = typeof fileDirectory.SamplesPerPixel !== "undefined" ? fileDirectory.SamplesPerPixel : 1;
1914
+ this.addCompression = fileDirectory.LercParameters[LercParameters.AddCompression];
1915
+ }
1916
+ decodeBlock(buffer) {
1917
+ switch (this.addCompression) {
1918
+ case LercAddCompression.None:
1919
+ break;
1920
+ case LercAddCompression.Deflate:
1921
+ buffer = inflate_1(new Uint8Array(buffer)).buffer;
1922
+ break;
1923
+ default:
1924
+ throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`);
1925
+ }
1926
+ const lercResult = Lerc.decode(buffer, { returnPixelInterleavedDims: this.planarConfiguration === 1 });
1927
+ const lercData = lercResult.pixels[0];
1928
+ return lercData.buffer;
1929
+ }
1930
+ }
1931
+ export { LercDecoder as default };
@@ -0,0 +1,123 @@
1
+ import { B as BaseDecoder } from "./basedecoder-fa2b8e8d.js";
2
+ const MIN_BITS = 9;
3
+ const CLEAR_CODE = 256;
4
+ const EOI_CODE = 257;
5
+ const MAX_BYTELENGTH = 12;
6
+ function getByte(array, position, length) {
7
+ const d = position % 8;
8
+ const a = Math.floor(position / 8);
9
+ const de = 8 - d;
10
+ const ef = position + length - (a + 1) * 8;
11
+ let fg = 8 * (a + 2) - (position + length);
12
+ const dg = (a + 2) * 8 - position;
13
+ fg = Math.max(0, fg);
14
+ if (a >= array.length) {
15
+ console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)");
16
+ return EOI_CODE;
17
+ }
18
+ let chunk1 = array[a] & 2 ** (8 - d) - 1;
19
+ chunk1 <<= length - de;
20
+ let chunks = chunk1;
21
+ if (a + 1 < array.length) {
22
+ let chunk2 = array[a + 1] >>> fg;
23
+ chunk2 <<= Math.max(0, length - dg);
24
+ chunks += chunk2;
25
+ }
26
+ if (ef > 8 && a + 2 < array.length) {
27
+ const hi = (a + 3) * 8 - (position + length);
28
+ const chunk3 = array[a + 2] >>> hi;
29
+ chunks += chunk3;
30
+ }
31
+ return chunks;
32
+ }
33
+ function appendReversed(dest, source) {
34
+ for (let i = source.length - 1; i >= 0; i--) {
35
+ dest.push(source[i]);
36
+ }
37
+ return dest;
38
+ }
39
+ function decompress(input) {
40
+ const dictionaryIndex = new Uint16Array(4093);
41
+ const dictionaryChar = new Uint8Array(4093);
42
+ for (let i = 0; i <= 257; i++) {
43
+ dictionaryIndex[i] = 4096;
44
+ dictionaryChar[i] = i;
45
+ }
46
+ let dictionaryLength = 258;
47
+ let byteLength = MIN_BITS;
48
+ let position = 0;
49
+ function initDictionary() {
50
+ dictionaryLength = 258;
51
+ byteLength = MIN_BITS;
52
+ }
53
+ function getNext(array2) {
54
+ const byte = getByte(array2, position, byteLength);
55
+ position += byteLength;
56
+ return byte;
57
+ }
58
+ function addToDictionary(i, c) {
59
+ dictionaryChar[dictionaryLength] = c;
60
+ dictionaryIndex[dictionaryLength] = i;
61
+ dictionaryLength++;
62
+ return dictionaryLength - 1;
63
+ }
64
+ function getDictionaryReversed(n) {
65
+ const rev = [];
66
+ for (let i = n; i !== 4096; i = dictionaryIndex[i]) {
67
+ rev.push(dictionaryChar[i]);
68
+ }
69
+ return rev;
70
+ }
71
+ const result = [];
72
+ initDictionary();
73
+ const array = new Uint8Array(input);
74
+ let code = getNext(array);
75
+ let oldCode;
76
+ while (code !== EOI_CODE) {
77
+ if (code === CLEAR_CODE) {
78
+ initDictionary();
79
+ code = getNext(array);
80
+ while (code === CLEAR_CODE) {
81
+ code = getNext(array);
82
+ }
83
+ if (code === EOI_CODE) {
84
+ break;
85
+ } else if (code > CLEAR_CODE) {
86
+ throw new Error(`corrupted code at scanline ${code}`);
87
+ } else {
88
+ const val = getDictionaryReversed(code);
89
+ appendReversed(result, val);
90
+ oldCode = code;
91
+ }
92
+ } else if (code < dictionaryLength) {
93
+ const val = getDictionaryReversed(code);
94
+ appendReversed(result, val);
95
+ addToDictionary(oldCode, val[val.length - 1]);
96
+ oldCode = code;
97
+ } else {
98
+ const oldVal = getDictionaryReversed(oldCode);
99
+ if (!oldVal) {
100
+ throw new Error(`Bogus entry. Not in dictionary, ${oldCode} / ${dictionaryLength}, position: ${position}`);
101
+ }
102
+ appendReversed(result, oldVal);
103
+ result.push(oldVal[oldVal.length - 1]);
104
+ addToDictionary(oldCode, oldVal[oldVal.length - 1]);
105
+ oldCode = code;
106
+ }
107
+ if (dictionaryLength + 1 >= 2 ** byteLength) {
108
+ if (byteLength === MAX_BYTELENGTH) {
109
+ oldCode = void 0;
110
+ } else {
111
+ byteLength++;
112
+ }
113
+ }
114
+ code = getNext(array);
115
+ }
116
+ return new Uint8Array(result);
117
+ }
118
+ class LZWDecoder extends BaseDecoder {
119
+ decodeBlock(buffer) {
120
+ return decompress(buffer).buffer;
121
+ }
122
+ }
123
+ export { LZWDecoder as default };
@@ -0,0 +1,25 @@
1
+ import { B as BaseDecoder } from "./basedecoder-fa2b8e8d.js";
2
+ class PackbitsDecoder extends BaseDecoder {
3
+ decodeBlock(buffer) {
4
+ const dataView = new DataView(buffer);
5
+ const out = [];
6
+ for (let i = 0; i < buffer.byteLength; ++i) {
7
+ let header = dataView.getInt8(i);
8
+ if (header < 0) {
9
+ const next = dataView.getUint8(i + 1);
10
+ header = -header;
11
+ for (let j = 0; j <= header; ++j) {
12
+ out.push(next);
13
+ }
14
+ i += 1;
15
+ } else {
16
+ for (let j = 0; j <= header; ++j) {
17
+ out.push(dataView.getUint8(i + j + 1));
18
+ }
19
+ i += header + 1;
20
+ }
21
+ }
22
+ return new Uint8Array(out).buffer;
23
+ }
24
+ }
25
+ export { PackbitsDecoder as default };
@@ -0,0 +1,7 @@
1
+ import { B as BaseDecoder } from "./basedecoder-fa2b8e8d.js";
2
+ class RawDecoder extends BaseDecoder {
3
+ decodeBlock(buffer) {
4
+ return buffer;
5
+ }
6
+ }
7
+ export { RawDecoder as default };
@@ -0,0 +1,27 @@
1
+ import { B as BaseDecoder } from "./basedecoder-fa2b8e8d.js";
2
+ class WebImageDecoder extends BaseDecoder {
3
+ constructor() {
4
+ super();
5
+ if (typeof createImageBitmap === "undefined") {
6
+ throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");
7
+ } else if (typeof document === "undefined" && typeof OffscreenCanvas === "undefined") {
8
+ throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");
9
+ }
10
+ }
11
+ async decode(fileDirectory, buffer) {
12
+ const blob = new Blob([buffer]);
13
+ const imageBitmap = await createImageBitmap(blob);
14
+ let canvas;
15
+ if (typeof document !== "undefined") {
16
+ canvas = document.createElement("canvas");
17
+ canvas.width = imageBitmap.width;
18
+ canvas.height = imageBitmap.height;
19
+ } else {
20
+ canvas = new OffscreenCanvas(imageBitmap.width, imageBitmap.height);
21
+ }
22
+ const ctx = canvas.getContext("2d");
23
+ ctx.drawImage(imageBitmap, 0, 0);
24
+ return ctx.getImageData(0, 0, imageBitmap.width, imageBitmap.height).data.buffer;
25
+ }
26
+ }
27
+ export { WebImageDecoder as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mirage2d",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,51 +0,0 @@
1
- function _typeof(obj) {
2
- "@babel/helpers - typeof";
3
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
4
- return typeof obj2;
5
- } : function(obj2) {
6
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
7
- }, _typeof(obj);
8
- }
9
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
10
- try {
11
- var info = gen[key](arg);
12
- var value = info.value;
13
- } catch (error) {
14
- reject(error);
15
- return;
16
- }
17
- if (info.done) {
18
- resolve(value);
19
- } else {
20
- Promise.resolve(value).then(_next, _throw);
21
- }
22
- }
23
- function _asyncToGenerator(fn) {
24
- return function() {
25
- var self = this, args = arguments;
26
- return new Promise(function(resolve, reject) {
27
- var gen = fn.apply(self, args);
28
- function _next(value) {
29
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
30
- }
31
- function _throw(err) {
32
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
33
- }
34
- _next(void 0);
35
- });
36
- };
37
- }
38
- function _defineProperty(obj, key, value) {
39
- if (key in obj) {
40
- Object.defineProperty(obj, key, {
41
- value,
42
- enumerable: true,
43
- configurable: true,
44
- writable: true
45
- });
46
- } else {
47
- obj[key] = value;
48
- }
49
- return obj;
50
- }
51
- export { _asyncToGenerator as _, _defineProperty as a, _typeof as b };
@@ -1,217 +0,0 @@
1
- function uncurryThis(target) {
2
- return (thisArg, ...args) => {
3
- return ReflectApply(target, thisArg, args);
4
- };
5
- }
6
- function uncurryThisGetter(target, key) {
7
- return uncurryThis(
8
- ReflectGetOwnPropertyDescriptor(
9
- target,
10
- key
11
- ).get
12
- );
13
- }
14
- const {
15
- apply: ReflectApply,
16
- construct: ReflectConstruct,
17
- defineProperty: ReflectDefineProperty,
18
- get: ReflectGet,
19
- getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor,
20
- getPrototypeOf: ReflectGetPrototypeOf,
21
- has: ReflectHas,
22
- ownKeys: ReflectOwnKeys,
23
- set: ReflectSet,
24
- setPrototypeOf: ReflectSetPrototypeOf
25
- } = Reflect;
26
- const {
27
- iterator: SymbolIterator,
28
- species: SymbolSpecies,
29
- toStringTag: SymbolToStringTag,
30
- for: SymbolFor
31
- } = Symbol;
32
- const NativeObject = Object;
33
- const {
34
- create: ObjectCreate,
35
- defineProperty: ObjectDefineProperty,
36
- freeze: ObjectFreeze,
37
- is: ObjectIs
38
- } = NativeObject;
39
- const NativeArray = Array;
40
- const ArrayPrototype = NativeArray.prototype;
41
- const NativeArrayPrototypeSymbolIterator = ArrayPrototype[SymbolIterator];
42
- const ArrayPrototypeSymbolIterator = uncurryThis(NativeArrayPrototypeSymbolIterator);
43
- const NativeArrayBuffer = ArrayBuffer;
44
- const ArrayBufferPrototype = NativeArrayBuffer.prototype;
45
- uncurryThisGetter(ArrayBufferPrototype, "byteLength");
46
- const NativeSharedArrayBuffer = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : null;
47
- NativeSharedArrayBuffer && uncurryThisGetter(NativeSharedArrayBuffer.prototype, "byteLength");
48
- const TypedArray = ReflectGetPrototypeOf(Uint8Array);
49
- TypedArray.from;
50
- const TypedArrayPrototype = TypedArray.prototype;
51
- TypedArrayPrototype[SymbolIterator];
52
- uncurryThis(TypedArrayPrototype.keys);
53
- uncurryThis(
54
- TypedArrayPrototype.values
55
- );
56
- uncurryThis(
57
- TypedArrayPrototype.entries
58
- );
59
- uncurryThis(TypedArrayPrototype.set);
60
- uncurryThis(
61
- TypedArrayPrototype.reverse
62
- );
63
- uncurryThis(TypedArrayPrototype.fill);
64
- uncurryThis(
65
- TypedArrayPrototype.copyWithin
66
- );
67
- uncurryThis(TypedArrayPrototype.sort);
68
- uncurryThis(TypedArrayPrototype.slice);
69
- uncurryThis(
70
- TypedArrayPrototype.subarray
71
- );
72
- uncurryThisGetter(
73
- TypedArrayPrototype,
74
- "buffer"
75
- );
76
- uncurryThisGetter(
77
- TypedArrayPrototype,
78
- "byteOffset"
79
- );
80
- uncurryThisGetter(
81
- TypedArrayPrototype,
82
- "length"
83
- );
84
- uncurryThisGetter(
85
- TypedArrayPrototype,
86
- SymbolToStringTag
87
- );
88
- const NativeUint32Array = Uint32Array;
89
- const NativeFloat32Array = Float32Array;
90
- const ArrayIteratorPrototype = ReflectGetPrototypeOf([][SymbolIterator]());
91
- const ArrayIteratorPrototypeNext = uncurryThis(ArrayIteratorPrototype.next);
92
- const GeneratorPrototypeNext = uncurryThis(function* () {
93
- }().next);
94
- const IteratorPrototype = ReflectGetPrototypeOf(ArrayIteratorPrototype);
95
- const DataViewPrototype = DataView.prototype;
96
- const DataViewPrototypeGetUint16 = uncurryThis(
97
- DataViewPrototype.getUint16
98
- );
99
- const NativeWeakMap = WeakMap;
100
- const WeakMapPrototype = NativeWeakMap.prototype;
101
- const WeakMapPrototypeGet = uncurryThis(WeakMapPrototype.get);
102
- const WeakMapPrototypeSet = uncurryThis(WeakMapPrototype.set);
103
- const arrayIterators = new NativeWeakMap();
104
- const SafeIteratorPrototype = ObjectCreate(null, {
105
- next: {
106
- value: function next() {
107
- const arrayIterator = WeakMapPrototypeGet(arrayIterators, this);
108
- return ArrayIteratorPrototypeNext(arrayIterator);
109
- }
110
- },
111
- [SymbolIterator]: {
112
- value: function values() {
113
- return this;
114
- }
115
- }
116
- });
117
- function safeIfNeeded(array) {
118
- if (array[SymbolIterator] === NativeArrayPrototypeSymbolIterator) {
119
- return array;
120
- }
121
- const safe = ObjectCreate(SafeIteratorPrototype);
122
- WeakMapPrototypeSet(arrayIterators, safe, ArrayPrototypeSymbolIterator(array));
123
- return safe;
124
- }
125
- const generators = new NativeWeakMap();
126
- const DummyArrayIteratorPrototype = ObjectCreate(IteratorPrototype, {
127
- next: {
128
- value: function next2() {
129
- const generator = WeakMapPrototypeGet(generators, this);
130
- return GeneratorPrototypeNext(generator);
131
- },
132
- writable: true,
133
- configurable: true
134
- }
135
- });
136
- for (const key of ReflectOwnKeys(ArrayIteratorPrototype)) {
137
- if (key === "next") {
138
- continue;
139
- }
140
- ObjectDefineProperty(DummyArrayIteratorPrototype, key, ReflectGetOwnPropertyDescriptor(ArrayIteratorPrototype, key));
141
- }
142
- const buffer = new NativeArrayBuffer(4);
143
- const floatView = new NativeFloat32Array(buffer);
144
- const uint32View = new NativeUint32Array(buffer);
145
- const baseTable = new NativeUint32Array(512);
146
- const shiftTable = new NativeUint32Array(512);
147
- for (let i = 0; i < 256; ++i) {
148
- const e = i - 127;
149
- if (e < -27) {
150
- baseTable[i] = 0;
151
- baseTable[i | 256] = 32768;
152
- shiftTable[i] = 24;
153
- shiftTable[i | 256] = 24;
154
- } else if (e < -14) {
155
- baseTable[i] = 1024 >> -e - 14;
156
- baseTable[i | 256] = 1024 >> -e - 14 | 32768;
157
- shiftTable[i] = -e - 1;
158
- shiftTable[i | 256] = -e - 1;
159
- } else if (e <= 15) {
160
- baseTable[i] = e + 15 << 10;
161
- baseTable[i | 256] = e + 15 << 10 | 32768;
162
- shiftTable[i] = 13;
163
- shiftTable[i | 256] = 13;
164
- } else if (e < 128) {
165
- baseTable[i] = 31744;
166
- baseTable[i | 256] = 64512;
167
- shiftTable[i] = 24;
168
- shiftTable[i | 256] = 24;
169
- } else {
170
- baseTable[i] = 31744;
171
- baseTable[i | 256] = 64512;
172
- shiftTable[i] = 13;
173
- shiftTable[i | 256] = 13;
174
- }
175
- }
176
- const mantissaTable = new NativeUint32Array(2048);
177
- const exponentTable = new NativeUint32Array(64);
178
- const offsetTable = new NativeUint32Array(64);
179
- for (let i = 1; i < 1024; ++i) {
180
- let m = i << 13;
181
- let e = 0;
182
- while ((m & 8388608) === 0) {
183
- m <<= 1;
184
- e -= 8388608;
185
- }
186
- m &= ~8388608;
187
- e += 947912704;
188
- mantissaTable[i] = m | e;
189
- }
190
- for (let i = 1024; i < 2048; ++i) {
191
- mantissaTable[i] = 939524096 + (i - 1024 << 13);
192
- }
193
- for (let i = 1; i < 31; ++i) {
194
- exponentTable[i] = i << 23;
195
- }
196
- exponentTable[31] = 1199570944;
197
- exponentTable[32] = 2147483648;
198
- for (let i = 33; i < 63; ++i) {
199
- exponentTable[i] = 2147483648 + (i - 32 << 23);
200
- }
201
- exponentTable[63] = 3347054592;
202
- for (let i = 1; i < 64; ++i) {
203
- if (i !== 32) {
204
- offsetTable[i] = 1024;
205
- }
206
- }
207
- function convertToNumber(float16bits) {
208
- const m = float16bits >> 10;
209
- uint32View[0] = mantissaTable[offsetTable[m] + (float16bits & 1023)] + exponentTable[m];
210
- return floatView[0];
211
- }
212
- function getFloat16(dataView, byteOffset, ...opts) {
213
- return convertToNumber(
214
- DataViewPrototypeGetUint16(dataView, byteOffset, ...safeIfNeeded(opts))
215
- );
216
- }
217
- export { getFloat16 as g };
@@ -1,31 +0,0 @@
1
- import { b as bearing } from "../_@turf_bearing@6.5.0@@turf/_@turf_bearing@6.5.0@@turf.f2555a09.js";
2
- import { d as destination } from "../_@turf_destination@6.5.0@@turf/_@turf_destination@6.5.0@@turf.2621651e.js";
3
- import { d as distance } from "../_@turf_distance@6.5.0@@turf/_@turf_distance@6.5.0@@turf.0c7b8aea.js";
4
- import { p as point } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
5
- import { g as getGeom } from "../_@turf_invariant@6.5.0@@turf/_@turf_invariant@6.5.0@@turf.0ef69f8c.js";
6
- function along(line, distance$1, options) {
7
- if (options === void 0) {
8
- options = {};
9
- }
10
- var geom = getGeom(line);
11
- var coords = geom.coordinates;
12
- var travelled = 0;
13
- for (var i = 0; i < coords.length; i++) {
14
- if (distance$1 >= travelled && i === coords.length - 1) {
15
- break;
16
- } else if (travelled >= distance$1) {
17
- var overshot = distance$1 - travelled;
18
- if (!overshot) {
19
- return point(coords[i]);
20
- } else {
21
- var direction = bearing(coords[i], coords[i - 1]) - 180;
22
- var interpolated = destination(coords[i], overshot, direction, options);
23
- return interpolated;
24
- }
25
- } else {
26
- travelled += distance(coords[i], coords[i + 1], options);
27
- }
28
- }
29
- return point(coords[coords.length - 1]);
30
- }
31
- export { along as a };
@@ -1,74 +0,0 @@
1
- import { g as geomReduce } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
2
- var RADIUS = 6378137;
3
- function area(geojson) {
4
- return geomReduce(geojson, function(value, geom) {
5
- return value + calculateArea(geom);
6
- }, 0);
7
- }
8
- function calculateArea(geom) {
9
- var total = 0;
10
- var i;
11
- switch (geom.type) {
12
- case "Polygon":
13
- return polygonArea(geom.coordinates);
14
- case "MultiPolygon":
15
- for (i = 0; i < geom.coordinates.length; i++) {
16
- total += polygonArea(geom.coordinates[i]);
17
- }
18
- return total;
19
- case "Point":
20
- case "MultiPoint":
21
- case "LineString":
22
- case "MultiLineString":
23
- return 0;
24
- }
25
- return 0;
26
- }
27
- function polygonArea(coords) {
28
- var total = 0;
29
- if (coords && coords.length > 0) {
30
- total += Math.abs(ringArea(coords[0]));
31
- for (var i = 1; i < coords.length; i++) {
32
- total -= Math.abs(ringArea(coords[i]));
33
- }
34
- }
35
- return total;
36
- }
37
- function ringArea(coords) {
38
- var p1;
39
- var p2;
40
- var p3;
41
- var lowerIndex;
42
- var middleIndex;
43
- var upperIndex;
44
- var i;
45
- var total = 0;
46
- var coordsLength = coords.length;
47
- if (coordsLength > 2) {
48
- for (i = 0; i < coordsLength; i++) {
49
- if (i === coordsLength - 2) {
50
- lowerIndex = coordsLength - 2;
51
- middleIndex = coordsLength - 1;
52
- upperIndex = 0;
53
- } else if (i === coordsLength - 1) {
54
- lowerIndex = coordsLength - 1;
55
- middleIndex = 0;
56
- upperIndex = 1;
57
- } else {
58
- lowerIndex = i;
59
- middleIndex = i + 1;
60
- upperIndex = i + 2;
61
- }
62
- p1 = coords[lowerIndex];
63
- p2 = coords[middleIndex];
64
- p3 = coords[upperIndex];
65
- total += (rad(p3[0]) - rad(p1[0])) * Math.sin(rad(p2[1]));
66
- }
67
- total = total * RADIUS * RADIUS / 2;
68
- }
69
- return total;
70
- }
71
- function rad(num) {
72
- return num * Math.PI / 180;
73
- }
74
- export { area as a };
@@ -1,19 +0,0 @@
1
- import { a as polygon } from "../_@turf_helpers@6.5.0@@turf/_@turf_helpers@6.5.0@@turf.f1480aa1.js";
2
- function bboxPolygon(bbox, options) {
3
- if (options === void 0) {
4
- options = {};
5
- }
6
- var west = Number(bbox[0]);
7
- var south = Number(bbox[1]);
8
- var east = Number(bbox[2]);
9
- var north = Number(bbox[3]);
10
- if (bbox.length === 6) {
11
- throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");
12
- }
13
- var lowLeft = [west, south];
14
- var topLeft = [west, north];
15
- var topRight = [east, north];
16
- var lowRight = [east, south];
17
- return polygon([[lowLeft, lowRight, topRight, topLeft, lowLeft]], options.properties, { bbox, id: options.id });
18
- }
19
- export { bboxPolygon as b };
@@ -1,48 +0,0 @@
1
- import { c as coordEach } from "../_@turf_meta@6.5.0@@turf/_@turf_meta@6.5.0@@turf.1b9d5da5.js";
2
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
3
- function getDefaultExportFromCjs(x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
- }
6
- function getAugmentedNamespace(n) {
7
- if (n.__esModule)
8
- return n;
9
- var a = Object.defineProperty({}, "__esModule", { value: true });
10
- Object.keys(n).forEach(function(k) {
11
- var d = Object.getOwnPropertyDescriptor(n, k);
12
- Object.defineProperty(a, k, d.get ? d : {
13
- enumerable: true,
14
- get: function() {
15
- return n[k];
16
- }
17
- });
18
- });
19
- return a;
20
- }
21
- function commonjsRequire(path) {
22
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
23
- }
24
- function bbox(geojson) {
25
- var result = [Infinity, Infinity, -Infinity, -Infinity];
26
- coordEach(geojson, function(coord) {
27
- if (result[0] > coord[0]) {
28
- result[0] = coord[0];
29
- }
30
- if (result[1] > coord[1]) {
31
- result[1] = coord[1];
32
- }
33
- if (result[2] < coord[0]) {
34
- result[2] = coord[0];
35
- }
36
- if (result[3] < coord[1]) {
37
- result[3] = coord[1];
38
- }
39
- });
40
- return result;
41
- }
42
- bbox["default"] = bbox;
43
- var es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
- __proto__: null,
45
- "default": bbox
46
- }, Symbol.toStringTag, { value: "Module" }));
47
- var require$$3 = /* @__PURE__ */ getAugmentedNamespace(es);
48
- export { commonjsRequire as a, bbox as b, commonjsGlobal as c, getDefaultExportFromCjs as d, getAugmentedNamespace as g, require$$3 as r };