@performant-software/geospatial 2.2.6 → 2.2.7

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 (905) hide show
  1. package/dist/index.cjs10.js +1 -1
  2. package/dist/index.cjs100.js +1 -1
  3. package/dist/index.cjs100.js.map +1 -1
  4. package/dist/index.cjs101.js +1 -1
  5. package/dist/index.cjs101.js.map +1 -1
  6. package/dist/index.cjs102.js +1 -1
  7. package/dist/index.cjs102.js.map +1 -1
  8. package/dist/index.cjs103.js +1 -1
  9. package/dist/index.cjs103.js.map +1 -1
  10. package/dist/index.cjs104.js +1 -1
  11. package/dist/index.cjs104.js.map +1 -1
  12. package/dist/index.cjs105.js +1 -1
  13. package/dist/index.cjs105.js.map +1 -1
  14. package/dist/index.cjs106.js +1 -1
  15. package/dist/index.cjs106.js.map +1 -1
  16. package/dist/index.cjs107.js +1 -1
  17. package/dist/index.cjs107.js.map +1 -1
  18. package/dist/index.cjs108.js +1 -1
  19. package/dist/index.cjs108.js.map +1 -1
  20. package/dist/index.cjs109.js +1 -1
  21. package/dist/index.cjs109.js.map +1 -1
  22. package/dist/index.cjs110.js +1 -1
  23. package/dist/index.cjs110.js.map +1 -1
  24. package/dist/index.cjs111.js +1 -1
  25. package/dist/index.cjs111.js.map +1 -1
  26. package/dist/index.cjs112.js +1 -1
  27. package/dist/index.cjs112.js.map +1 -1
  28. package/dist/index.cjs113.js +1 -1
  29. package/dist/index.cjs113.js.map +1 -1
  30. package/dist/index.cjs114.js +1 -1
  31. package/dist/index.cjs114.js.map +1 -1
  32. package/dist/index.cjs115.js +1 -1
  33. package/dist/index.cjs115.js.map +1 -1
  34. package/dist/index.cjs116.js +1 -1
  35. package/dist/index.cjs116.js.map +1 -1
  36. package/dist/index.cjs117.js +1 -1
  37. package/dist/index.cjs117.js.map +1 -1
  38. package/dist/index.cjs118.js +1 -1
  39. package/dist/index.cjs118.js.map +1 -1
  40. package/dist/index.cjs119.js +1 -1
  41. package/dist/index.cjs119.js.map +1 -1
  42. package/dist/index.cjs12.js +1 -1
  43. package/dist/index.cjs120.js +1 -1
  44. package/dist/index.cjs120.js.map +1 -1
  45. package/dist/index.cjs121.js +1 -1
  46. package/dist/index.cjs121.js.map +1 -1
  47. package/dist/index.cjs122.js +1 -1
  48. package/dist/index.cjs122.js.map +1 -1
  49. package/dist/index.cjs123.js +1 -1
  50. package/dist/index.cjs123.js.map +1 -1
  51. package/dist/index.cjs124.js +1 -13
  52. package/dist/index.cjs124.js.map +1 -1
  53. package/dist/index.cjs125.js +13 -1
  54. package/dist/index.cjs125.js.map +1 -1
  55. package/dist/index.cjs126.js +1 -1
  56. package/dist/index.cjs126.js.map +1 -1
  57. package/dist/index.cjs127.js +1 -1
  58. package/dist/index.cjs127.js.map +1 -1
  59. package/dist/index.cjs128.js +1 -1
  60. package/dist/index.cjs128.js.map +1 -1
  61. package/dist/index.cjs129.js +1 -1
  62. package/dist/index.cjs129.js.map +1 -1
  63. package/dist/index.cjs13.js +1 -1
  64. package/dist/index.cjs13.js.map +1 -1
  65. package/dist/index.cjs130.js +1 -1
  66. package/dist/index.cjs130.js.map +1 -1
  67. package/dist/index.cjs131.js +1 -1
  68. package/dist/index.cjs131.js.map +1 -1
  69. package/dist/index.cjs132.js +1 -1
  70. package/dist/index.cjs132.js.map +1 -1
  71. package/dist/index.cjs133.js +1 -1
  72. package/dist/index.cjs133.js.map +1 -1
  73. package/dist/index.cjs134.js +1 -1
  74. package/dist/index.cjs134.js.map +1 -1
  75. package/dist/index.cjs135.js +1 -1
  76. package/dist/index.cjs135.js.map +1 -1
  77. package/dist/index.cjs136.js +1 -1
  78. package/dist/index.cjs136.js.map +1 -1
  79. package/dist/index.cjs137.js +1 -1
  80. package/dist/index.cjs137.js.map +1 -1
  81. package/dist/index.cjs138.js +1 -1
  82. package/dist/index.cjs138.js.map +1 -1
  83. package/dist/index.cjs139.js +1 -1
  84. package/dist/index.cjs139.js.map +1 -1
  85. package/dist/index.cjs14.js +1 -1
  86. package/dist/index.cjs140.js +1 -1
  87. package/dist/index.cjs140.js.map +1 -1
  88. package/dist/index.cjs141.js +1 -1
  89. package/dist/index.cjs141.js.map +1 -1
  90. package/dist/index.cjs142.js +1 -1
  91. package/dist/index.cjs142.js.map +1 -1
  92. package/dist/index.cjs143.js +1 -1
  93. package/dist/index.cjs143.js.map +1 -1
  94. package/dist/index.cjs144.js +1 -1
  95. package/dist/index.cjs144.js.map +1 -1
  96. package/dist/index.cjs145.js +1 -1
  97. package/dist/index.cjs145.js.map +1 -1
  98. package/dist/index.cjs146.js +1 -1
  99. package/dist/index.cjs146.js.map +1 -1
  100. package/dist/index.cjs147.js +1 -1
  101. package/dist/index.cjs147.js.map +1 -1
  102. package/dist/index.cjs148.js +1 -1
  103. package/dist/index.cjs148.js.map +1 -1
  104. package/dist/index.cjs149.js +1 -1
  105. package/dist/index.cjs149.js.map +1 -1
  106. package/dist/index.cjs15.js +1 -1
  107. package/dist/index.cjs150.js +1 -1
  108. package/dist/index.cjs150.js.map +1 -1
  109. package/dist/index.cjs151.js +1 -1
  110. package/dist/index.cjs151.js.map +1 -1
  111. package/dist/index.cjs152.js +1 -1
  112. package/dist/index.cjs152.js.map +1 -1
  113. package/dist/index.cjs153.js +1 -1
  114. package/dist/index.cjs153.js.map +1 -1
  115. package/dist/index.cjs154.js +1 -1
  116. package/dist/index.cjs154.js.map +1 -1
  117. package/dist/index.cjs155.js +1 -1
  118. package/dist/index.cjs155.js.map +1 -1
  119. package/dist/index.cjs156.js +1 -1
  120. package/dist/index.cjs156.js.map +1 -1
  121. package/dist/index.cjs157.js +1 -1
  122. package/dist/index.cjs157.js.map +1 -1
  123. package/dist/index.cjs158.js +1 -1
  124. package/dist/index.cjs158.js.map +1 -1
  125. package/dist/index.cjs159.js +1 -1
  126. package/dist/index.cjs159.js.map +1 -1
  127. package/dist/index.cjs16.js +5 -5
  128. package/dist/index.cjs16.js.map +1 -1
  129. package/dist/index.cjs160.js +1 -1
  130. package/dist/index.cjs160.js.map +1 -1
  131. package/dist/index.cjs161.js +1 -1
  132. package/dist/index.cjs161.js.map +1 -1
  133. package/dist/index.cjs162.js +1 -1
  134. package/dist/index.cjs162.js.map +1 -1
  135. package/dist/index.cjs163.js +1 -1
  136. package/dist/index.cjs163.js.map +1 -1
  137. package/dist/index.cjs164.js +1 -1
  138. package/dist/index.cjs164.js.map +1 -1
  139. package/dist/index.cjs165.js +1 -1
  140. package/dist/index.cjs165.js.map +1 -1
  141. package/dist/index.cjs166.js +1 -1
  142. package/dist/index.cjs166.js.map +1 -1
  143. package/dist/index.cjs167.js +1 -1
  144. package/dist/index.cjs167.js.map +1 -1
  145. package/dist/index.cjs168.js +1 -1
  146. package/dist/index.cjs168.js.map +1 -1
  147. package/dist/index.cjs169.js +1 -1
  148. package/dist/index.cjs169.js.map +1 -1
  149. package/dist/index.cjs17.js +6 -6
  150. package/dist/index.cjs17.js.map +1 -1
  151. package/dist/index.cjs170.js +1 -1
  152. package/dist/index.cjs170.js.map +1 -1
  153. package/dist/index.cjs171.js +1 -1
  154. package/dist/index.cjs171.js.map +1 -1
  155. package/dist/index.cjs172.js +1 -1
  156. package/dist/index.cjs172.js.map +1 -1
  157. package/dist/index.cjs173.js +1 -1
  158. package/dist/index.cjs173.js.map +1 -1
  159. package/dist/index.cjs174.js +1 -1
  160. package/dist/index.cjs174.js.map +1 -1
  161. package/dist/index.cjs175.js +1 -1
  162. package/dist/index.cjs175.js.map +1 -1
  163. package/dist/index.cjs176.js +1 -1
  164. package/dist/index.cjs176.js.map +1 -1
  165. package/dist/index.cjs177.js +1 -1
  166. package/dist/index.cjs177.js.map +1 -1
  167. package/dist/index.cjs178.js +1 -1
  168. package/dist/index.cjs178.js.map +1 -1
  169. package/dist/index.cjs179.js +1 -1
  170. package/dist/index.cjs179.js.map +1 -1
  171. package/dist/index.cjs18.js +1 -1
  172. package/dist/index.cjs180.js +1 -4
  173. package/dist/index.cjs180.js.map +1 -1
  174. package/dist/index.cjs181.js +1 -1
  175. package/dist/index.cjs181.js.map +1 -1
  176. package/dist/index.cjs182.js +1 -1
  177. package/dist/index.cjs182.js.map +1 -1
  178. package/dist/index.cjs183.js +1 -1
  179. package/dist/index.cjs183.js.map +1 -1
  180. package/dist/index.cjs184.js +1 -1
  181. package/dist/index.cjs184.js.map +1 -1
  182. package/dist/index.cjs185.js +1 -1
  183. package/dist/index.cjs185.js.map +1 -1
  184. package/dist/index.cjs186.js +1 -1
  185. package/dist/index.cjs186.js.map +1 -1
  186. package/dist/index.cjs187.js +1 -1
  187. package/dist/index.cjs187.js.map +1 -1
  188. package/dist/index.cjs188.js +4 -1
  189. package/dist/index.cjs188.js.map +1 -1
  190. package/dist/index.cjs189.js +1 -1
  191. package/dist/index.cjs189.js.map +1 -1
  192. package/dist/index.cjs19.js +1 -1
  193. package/dist/index.cjs190.js +1 -1
  194. package/dist/index.cjs190.js.map +1 -1
  195. package/dist/index.cjs191.js +1 -1
  196. package/dist/index.cjs191.js.map +1 -1
  197. package/dist/index.cjs192.js +1 -1
  198. package/dist/index.cjs192.js.map +1 -1
  199. package/dist/index.cjs193.js +1 -1
  200. package/dist/index.cjs193.js.map +1 -1
  201. package/dist/index.cjs194.js +1 -1
  202. package/dist/index.cjs194.js.map +1 -1
  203. package/dist/index.cjs195.js +1 -1
  204. package/dist/index.cjs195.js.map +1 -1
  205. package/dist/index.cjs196.js +1 -1
  206. package/dist/index.cjs196.js.map +1 -1
  207. package/dist/index.cjs197.js +1 -1
  208. package/dist/index.cjs197.js.map +1 -1
  209. package/dist/index.cjs198.js +1 -1
  210. package/dist/index.cjs198.js.map +1 -1
  211. package/dist/index.cjs199.js +1 -1
  212. package/dist/index.cjs199.js.map +1 -1
  213. package/dist/index.cjs20.js +1 -1
  214. package/dist/index.cjs200.js +1 -1
  215. package/dist/index.cjs200.js.map +1 -1
  216. package/dist/index.cjs201.js +1 -1
  217. package/dist/index.cjs201.js.map +1 -1
  218. package/dist/index.cjs202.js +1 -1
  219. package/dist/index.cjs202.js.map +1 -1
  220. package/dist/index.cjs203.js +1 -1
  221. package/dist/index.cjs203.js.map +1 -1
  222. package/dist/index.cjs204.js +1 -1
  223. package/dist/index.cjs204.js.map +1 -1
  224. package/dist/index.cjs205.js +1 -1
  225. package/dist/index.cjs205.js.map +1 -1
  226. package/dist/index.cjs206.js +1 -1
  227. package/dist/index.cjs206.js.map +1 -1
  228. package/dist/index.cjs207.js +1 -1
  229. package/dist/index.cjs207.js.map +1 -1
  230. package/dist/index.cjs208.js +1 -1
  231. package/dist/index.cjs208.js.map +1 -1
  232. package/dist/index.cjs209.js +1 -1
  233. package/dist/index.cjs209.js.map +1 -1
  234. package/dist/index.cjs210.js +1 -1
  235. package/dist/index.cjs210.js.map +1 -1
  236. package/dist/index.cjs211.js +1 -1
  237. package/dist/index.cjs211.js.map +1 -1
  238. package/dist/index.cjs212.js +1 -1
  239. package/dist/index.cjs212.js.map +1 -1
  240. package/dist/index.cjs213.js +1 -1
  241. package/dist/index.cjs213.js.map +1 -1
  242. package/dist/index.cjs214.js +1 -1
  243. package/dist/index.cjs214.js.map +1 -1
  244. package/dist/index.cjs215.js +1 -1
  245. package/dist/index.cjs215.js.map +1 -1
  246. package/dist/index.cjs216.js +1 -1
  247. package/dist/index.cjs216.js.map +1 -1
  248. package/dist/index.cjs217.js +1 -1
  249. package/dist/index.cjs217.js.map +1 -1
  250. package/dist/index.cjs218.js +1 -1
  251. package/dist/index.cjs218.js.map +1 -1
  252. package/dist/index.cjs219.js +1 -1
  253. package/dist/index.cjs219.js.map +1 -1
  254. package/dist/index.cjs22.js +1 -1
  255. package/dist/index.cjs220.js +1 -1
  256. package/dist/index.cjs220.js.map +1 -1
  257. package/dist/index.cjs221.js +1 -1
  258. package/dist/index.cjs221.js.map +1 -1
  259. package/dist/index.cjs222.js +1 -1
  260. package/dist/index.cjs222.js.map +1 -1
  261. package/dist/index.cjs223.js +1 -1
  262. package/dist/index.cjs223.js.map +1 -1
  263. package/dist/index.cjs224.js +1 -1
  264. package/dist/index.cjs224.js.map +1 -1
  265. package/dist/index.cjs225.js +1 -1
  266. package/dist/index.cjs225.js.map +1 -1
  267. package/dist/index.cjs226.js +1 -1
  268. package/dist/index.cjs226.js.map +1 -1
  269. package/dist/index.cjs227.js +1 -1
  270. package/dist/index.cjs227.js.map +1 -1
  271. package/dist/index.cjs228.js +1 -1
  272. package/dist/index.cjs228.js.map +1 -1
  273. package/dist/index.cjs229.js +1 -1
  274. package/dist/index.cjs229.js.map +1 -1
  275. package/dist/index.cjs230.js +1 -1
  276. package/dist/index.cjs230.js.map +1 -1
  277. package/dist/index.cjs231.js +1 -1
  278. package/dist/index.cjs232.js +1 -1
  279. package/dist/index.cjs232.js.map +1 -1
  280. package/dist/index.cjs233.js +1 -1
  281. package/dist/index.cjs233.js.map +1 -1
  282. package/dist/index.cjs234.js +1 -1
  283. package/dist/index.cjs234.js.map +1 -1
  284. package/dist/index.cjs235.js +1 -1
  285. package/dist/index.cjs235.js.map +1 -1
  286. package/dist/index.cjs236.js +1 -1
  287. package/dist/index.cjs236.js.map +1 -1
  288. package/dist/index.cjs237.js +1 -1
  289. package/dist/index.cjs237.js.map +1 -1
  290. package/dist/index.cjs238.js +1 -1
  291. package/dist/index.cjs238.js.map +1 -1
  292. package/dist/index.cjs239.js +1 -1
  293. package/dist/index.cjs239.js.map +1 -1
  294. package/dist/index.cjs24.js +1 -1
  295. package/dist/index.cjs240.js +1 -1
  296. package/dist/index.cjs240.js.map +1 -1
  297. package/dist/index.cjs241.js +1 -1
  298. package/dist/index.cjs241.js.map +1 -1
  299. package/dist/index.cjs242.js +1 -1
  300. package/dist/index.cjs242.js.map +1 -1
  301. package/dist/index.cjs243.js +1 -1
  302. package/dist/index.cjs243.js.map +1 -1
  303. package/dist/index.cjs244.js +1 -1
  304. package/dist/index.cjs244.js.map +1 -1
  305. package/dist/index.cjs245.js +1 -1
  306. package/dist/index.cjs245.js.map +1 -1
  307. package/dist/index.cjs246.js +1 -1
  308. package/dist/index.cjs246.js.map +1 -1
  309. package/dist/index.cjs247.js +1 -1
  310. package/dist/index.cjs247.js.map +1 -1
  311. package/dist/index.cjs248.js +1 -1
  312. package/dist/index.cjs248.js.map +1 -1
  313. package/dist/index.cjs249.js +1 -1
  314. package/dist/index.cjs249.js.map +1 -1
  315. package/dist/index.cjs250.js +1 -1
  316. package/dist/index.cjs250.js.map +1 -1
  317. package/dist/index.cjs251.js +1 -1
  318. package/dist/index.cjs251.js.map +1 -1
  319. package/dist/index.cjs252.js +1 -1
  320. package/dist/index.cjs252.js.map +1 -1
  321. package/dist/index.cjs253.js +1 -1
  322. package/dist/index.cjs253.js.map +1 -1
  323. package/dist/index.cjs254.js +1 -1
  324. package/dist/index.cjs254.js.map +1 -1
  325. package/dist/index.cjs255.js +1 -1
  326. package/dist/index.cjs255.js.map +1 -1
  327. package/dist/index.cjs256.js +1 -1
  328. package/dist/index.cjs256.js.map +1 -1
  329. package/dist/index.cjs257.js +2 -0
  330. package/dist/index.cjs257.js.map +1 -0
  331. package/dist/index.cjs26.js +1 -1
  332. package/dist/index.cjs27.js +1 -1
  333. package/dist/index.cjs28.js +1 -1
  334. package/dist/index.cjs29.js +1 -1
  335. package/dist/index.cjs30.js +1 -1
  336. package/dist/index.cjs31.js +1 -1
  337. package/dist/index.cjs32.js +1 -1
  338. package/dist/index.cjs34.js +1 -1
  339. package/dist/index.cjs35.js +1 -1
  340. package/dist/index.cjs36.js +1 -1
  341. package/dist/index.cjs37.js +1 -1
  342. package/dist/index.cjs39.js +1 -1
  343. package/dist/index.cjs4.js +1 -1
  344. package/dist/index.cjs4.js.map +1 -1
  345. package/dist/index.cjs40.js +1 -1
  346. package/dist/index.cjs41.js +1 -1
  347. package/dist/index.cjs42.js +1 -1
  348. package/dist/index.cjs43.js +1 -1
  349. package/dist/index.cjs44.js +1 -1
  350. package/dist/index.cjs45.js +1 -1
  351. package/dist/index.cjs46.js +1 -1
  352. package/dist/index.cjs47.js +1 -1
  353. package/dist/index.cjs49.js +1 -1
  354. package/dist/index.cjs49.js.map +1 -1
  355. package/dist/index.cjs50.js +1 -1
  356. package/dist/index.cjs50.js.map +1 -1
  357. package/dist/index.cjs51.js +1 -1
  358. package/dist/index.cjs51.js.map +1 -1
  359. package/dist/index.cjs52.js +1 -1
  360. package/dist/index.cjs52.js.map +1 -1
  361. package/dist/index.cjs53.js +1 -1
  362. package/dist/index.cjs53.js.map +1 -1
  363. package/dist/index.cjs54.js +1 -1
  364. package/dist/index.cjs54.js.map +1 -1
  365. package/dist/index.cjs55.js +1 -9
  366. package/dist/index.cjs55.js.map +1 -1
  367. package/dist/index.cjs56.js +3 -13
  368. package/dist/index.cjs56.js.map +1 -1
  369. package/dist/index.cjs57.js +19 -1
  370. package/dist/index.cjs57.js.map +1 -1
  371. package/dist/index.cjs58.js +1 -1
  372. package/dist/index.cjs58.js.map +1 -1
  373. package/dist/index.cjs59.js +1 -1
  374. package/dist/index.cjs60.js +1 -1
  375. package/dist/index.cjs60.js.map +1 -1
  376. package/dist/index.cjs61.js +1 -1
  377. package/dist/index.cjs61.js.map +1 -1
  378. package/dist/index.cjs62.js +1 -1
  379. package/dist/index.cjs64.js +1 -1
  380. package/dist/index.cjs64.js.map +1 -1
  381. package/dist/index.cjs65.js +1 -1
  382. package/dist/index.cjs65.js.map +1 -1
  383. package/dist/index.cjs66.js +1 -1
  384. package/dist/index.cjs66.js.map +1 -1
  385. package/dist/index.cjs67.js +1 -1
  386. package/dist/index.cjs67.js.map +1 -1
  387. package/dist/index.cjs68.js +1 -1
  388. package/dist/index.cjs68.js.map +1 -1
  389. package/dist/index.cjs69.js +1 -1
  390. package/dist/index.cjs69.js.map +1 -1
  391. package/dist/index.cjs70.js +1 -1
  392. package/dist/index.cjs70.js.map +1 -1
  393. package/dist/index.cjs71.js +1 -1
  394. package/dist/index.cjs71.js.map +1 -1
  395. package/dist/index.cjs72.js +1 -1
  396. package/dist/index.cjs72.js.map +1 -1
  397. package/dist/index.cjs73.js +1 -1
  398. package/dist/index.cjs73.js.map +1 -1
  399. package/dist/index.cjs74.js +1 -1
  400. package/dist/index.cjs74.js.map +1 -1
  401. package/dist/index.cjs75.js +1 -1
  402. package/dist/index.cjs75.js.map +1 -1
  403. package/dist/index.cjs76.js +1 -1
  404. package/dist/index.cjs76.js.map +1 -1
  405. package/dist/index.cjs77.js +1 -1
  406. package/dist/index.cjs77.js.map +1 -1
  407. package/dist/index.cjs78.js +1 -1
  408. package/dist/index.cjs78.js.map +1 -1
  409. package/dist/index.cjs79.js +1 -1
  410. package/dist/index.cjs79.js.map +1 -1
  411. package/dist/index.cjs8.js +1 -1
  412. package/dist/index.cjs8.js.map +1 -1
  413. package/dist/index.cjs80.js +1 -1
  414. package/dist/index.cjs80.js.map +1 -1
  415. package/dist/index.cjs81.js +1 -1
  416. package/dist/index.cjs81.js.map +1 -1
  417. package/dist/index.cjs82.js +1 -1
  418. package/dist/index.cjs82.js.map +1 -1
  419. package/dist/index.cjs83.js +1 -1
  420. package/dist/index.cjs83.js.map +1 -1
  421. package/dist/index.cjs84.js +1 -1
  422. package/dist/index.cjs84.js.map +1 -1
  423. package/dist/index.cjs85.js +1 -1
  424. package/dist/index.cjs85.js.map +1 -1
  425. package/dist/index.cjs86.js +1 -1
  426. package/dist/index.cjs86.js.map +1 -1
  427. package/dist/index.cjs87.js +1 -1
  428. package/dist/index.cjs87.js.map +1 -1
  429. package/dist/index.cjs88.js +1 -1
  430. package/dist/index.cjs88.js.map +1 -1
  431. package/dist/index.cjs89.js +1 -1
  432. package/dist/index.cjs89.js.map +1 -1
  433. package/dist/index.cjs90.js +1 -1
  434. package/dist/index.cjs90.js.map +1 -1
  435. package/dist/index.cjs91.js +1 -1
  436. package/dist/index.cjs91.js.map +1 -1
  437. package/dist/index.cjs92.js +1 -1
  438. package/dist/index.cjs92.js.map +1 -1
  439. package/dist/index.cjs93.js +1 -1
  440. package/dist/index.cjs93.js.map +1 -1
  441. package/dist/index.cjs94.js +1 -1
  442. package/dist/index.cjs94.js.map +1 -1
  443. package/dist/index.cjs95.js +1 -1
  444. package/dist/index.cjs95.js.map +1 -1
  445. package/dist/index.cjs96.js +1 -1
  446. package/dist/index.cjs96.js.map +1 -1
  447. package/dist/index.cjs97.js +1 -1
  448. package/dist/index.cjs97.js.map +1 -1
  449. package/dist/index.cjs98.js +1 -1
  450. package/dist/index.cjs98.js.map +1 -1
  451. package/dist/index.cjs99.js +1 -1
  452. package/dist/index.cjs99.js.map +1 -1
  453. package/dist/index.es10.js +3 -3
  454. package/dist/index.es100.js +3 -15
  455. package/dist/index.es100.js.map +1 -1
  456. package/dist/index.es101.js +12 -9
  457. package/dist/index.es101.js.map +1 -1
  458. package/dist/index.es102.js +10 -5
  459. package/dist/index.es102.js.map +1 -1
  460. package/dist/index.es103.js +6 -6
  461. package/dist/index.es103.js.map +1 -1
  462. package/dist/index.es104.js +6 -6
  463. package/dist/index.es104.js.map +1 -1
  464. package/dist/index.es105.js +6 -7
  465. package/dist/index.es105.js.map +1 -1
  466. package/dist/index.es106.js +8 -4
  467. package/dist/index.es106.js.map +1 -1
  468. package/dist/index.es107.js +2 -2
  469. package/dist/index.es107.js.map +1 -1
  470. package/dist/index.es108.js +2 -2
  471. package/dist/index.es108.js.map +1 -1
  472. package/dist/index.es109.js +4 -7
  473. package/dist/index.es109.js.map +1 -1
  474. package/dist/index.es110.js +6 -6
  475. package/dist/index.es110.js.map +1 -1
  476. package/dist/index.es111.js +6 -3
  477. package/dist/index.es111.js.map +1 -1
  478. package/dist/index.es112.js +3 -7
  479. package/dist/index.es112.js.map +1 -1
  480. package/dist/index.es113.js +7 -12
  481. package/dist/index.es113.js.map +1 -1
  482. package/dist/index.es114.js +11 -9
  483. package/dist/index.es114.js.map +1 -1
  484. package/dist/index.es115.js +10 -3
  485. package/dist/index.es115.js.map +1 -1
  486. package/dist/index.es116.js +3 -5
  487. package/dist/index.es116.js.map +1 -1
  488. package/dist/index.es117.js +5 -2
  489. package/dist/index.es117.js.map +1 -1
  490. package/dist/index.es118.js +2 -7
  491. package/dist/index.es118.js.map +1 -1
  492. package/dist/index.es119.js +4 -4
  493. package/dist/index.es119.js.map +1 -1
  494. package/dist/index.es12.js +2 -2
  495. package/dist/index.es120.js +6 -6
  496. package/dist/index.es120.js.map +1 -1
  497. package/dist/index.es121.js +7 -8
  498. package/dist/index.es121.js.map +1 -1
  499. package/dist/index.es122.js +8 -3
  500. package/dist/index.es122.js.map +1 -1
  501. package/dist/index.es123.js +4 -4
  502. package/dist/index.es123.js.map +1 -1
  503. package/dist/index.es124.js +4 -58
  504. package/dist/index.es124.js.map +1 -1
  505. package/dist/index.es125.js +56 -12
  506. package/dist/index.es125.js.map +1 -1
  507. package/dist/index.es126.js +13 -5
  508. package/dist/index.es126.js.map +1 -1
  509. package/dist/index.es127.js +5 -5
  510. package/dist/index.es127.js.map +1 -1
  511. package/dist/index.es128.js +5 -8
  512. package/dist/index.es128.js.map +1 -1
  513. package/dist/index.es129.js +7 -15
  514. package/dist/index.es129.js.map +1 -1
  515. package/dist/index.es13.js +14 -13
  516. package/dist/index.es13.js.map +1 -1
  517. package/dist/index.es130.js +16 -13
  518. package/dist/index.es130.js.map +1 -1
  519. package/dist/index.es131.js +13 -4
  520. package/dist/index.es131.js.map +1 -1
  521. package/dist/index.es132.js +4 -5
  522. package/dist/index.es132.js.map +1 -1
  523. package/dist/index.es133.js +2 -5
  524. package/dist/index.es133.js.map +1 -1
  525. package/dist/index.es134.js +6 -4
  526. package/dist/index.es134.js.map +1 -1
  527. package/dist/index.es135.js +4 -4
  528. package/dist/index.es135.js.map +1 -1
  529. package/dist/index.es136.js +6 -8
  530. package/dist/index.es136.js.map +1 -1
  531. package/dist/index.es137.js +9 -3
  532. package/dist/index.es137.js.map +1 -1
  533. package/dist/index.es138.js +3 -3
  534. package/dist/index.es138.js.map +1 -1
  535. package/dist/index.es139.js +3 -11
  536. package/dist/index.es139.js.map +1 -1
  537. package/dist/index.es14.js +1 -1
  538. package/dist/index.es140.js +11 -5
  539. package/dist/index.es140.js.map +1 -1
  540. package/dist/index.es141.js +5 -4
  541. package/dist/index.es141.js.map +1 -1
  542. package/dist/index.es142.js +4 -9
  543. package/dist/index.es142.js.map +1 -1
  544. package/dist/index.es143.js +8 -5
  545. package/dist/index.es143.js.map +1 -1
  546. package/dist/index.es144.js +5 -16
  547. package/dist/index.es144.js.map +1 -1
  548. package/dist/index.es145.js +15 -10
  549. package/dist/index.es145.js.map +1 -1
  550. package/dist/index.es146.js +12 -3
  551. package/dist/index.es146.js.map +1 -1
  552. package/dist/index.es147.js +3 -3
  553. package/dist/index.es147.js.map +1 -1
  554. package/dist/index.es148.js +3 -9
  555. package/dist/index.es148.js.map +1 -1
  556. package/dist/index.es149.js +8 -6
  557. package/dist/index.es149.js.map +1 -1
  558. package/dist/index.es15.js +3 -3
  559. package/dist/index.es150.js +6 -12
  560. package/dist/index.es150.js.map +1 -1
  561. package/dist/index.es151.js +11 -11
  562. package/dist/index.es151.js.map +1 -1
  563. package/dist/index.es152.js +12 -6
  564. package/dist/index.es152.js.map +1 -1
  565. package/dist/index.es153.js +6 -5
  566. package/dist/index.es153.js.map +1 -1
  567. package/dist/index.es154.js +5 -5
  568. package/dist/index.es154.js.map +1 -1
  569. package/dist/index.es155.js +5 -16
  570. package/dist/index.es155.js.map +1 -1
  571. package/dist/index.es156.js +12 -12
  572. package/dist/index.es156.js.map +1 -1
  573. package/dist/index.es157.js +16 -4
  574. package/dist/index.es157.js.map +1 -1
  575. package/dist/index.es158.js +4 -16
  576. package/dist/index.es158.js.map +1 -1
  577. package/dist/index.es159.js +16 -22
  578. package/dist/index.es159.js.map +1 -1
  579. package/dist/index.es160.js +23 -6
  580. package/dist/index.es160.js.map +1 -1
  581. package/dist/index.es161.js +5 -4
  582. package/dist/index.es161.js.map +1 -1
  583. package/dist/index.es162.js +4 -5
  584. package/dist/index.es162.js.map +1 -1
  585. package/dist/index.es163.js +6 -5
  586. package/dist/index.es163.js.map +1 -1
  587. package/dist/index.es164.js +5 -12
  588. package/dist/index.es164.js.map +1 -1
  589. package/dist/index.es165.js +11 -5
  590. package/dist/index.es165.js.map +1 -1
  591. package/dist/index.es166.js +5 -4
  592. package/dist/index.es166.js.map +1 -1
  593. package/dist/index.es167.js +4 -4
  594. package/dist/index.es167.js.map +1 -1
  595. package/dist/index.es168.js +4 -4
  596. package/dist/index.es168.js.map +1 -1
  597. package/dist/index.es169.js +4 -4
  598. package/dist/index.es169.js.map +1 -1
  599. package/dist/index.es17.js +1862 -1842
  600. package/dist/index.es17.js.map +1 -1
  601. package/dist/index.es170.js +4 -4
  602. package/dist/index.es170.js.map +1 -1
  603. package/dist/index.es171.js +4 -4
  604. package/dist/index.es171.js.map +1 -1
  605. package/dist/index.es172.js +4 -12
  606. package/dist/index.es172.js.map +1 -1
  607. package/dist/index.es173.js +11 -13
  608. package/dist/index.es173.js.map +1 -1
  609. package/dist/index.es174.js +14 -8
  610. package/dist/index.es174.js.map +1 -1
  611. package/dist/index.es175.js +8 -6
  612. package/dist/index.es175.js.map +1 -1
  613. package/dist/index.es176.js +5 -5
  614. package/dist/index.es176.js.map +1 -1
  615. package/dist/index.es177.js +6 -8
  616. package/dist/index.es177.js.map +1 -1
  617. package/dist/index.es178.js +8 -7
  618. package/dist/index.es178.js.map +1 -1
  619. package/dist/index.es179.js +315 -142
  620. package/dist/index.es179.js.map +1 -1
  621. package/dist/index.es18.js +2 -2
  622. package/dist/index.es180.js +73 -12195
  623. package/dist/index.es180.js.map +1 -1
  624. package/dist/index.es181.js +5 -3
  625. package/dist/index.es181.js.map +1 -1
  626. package/dist/index.es182.js +18 -3
  627. package/dist/index.es182.js.map +1 -1
  628. package/dist/index.es183.js +9 -34
  629. package/dist/index.es183.js.map +1 -1
  630. package/dist/index.es184.js +33 -3
  631. package/dist/index.es184.js.map +1 -1
  632. package/dist/index.es185.js +4 -22
  633. package/dist/index.es185.js.map +1 -1
  634. package/dist/index.es186.js +10 -2
  635. package/dist/index.es186.js.map +1 -1
  636. package/dist/index.es187.js +150 -3
  637. package/dist/index.es187.js.map +1 -1
  638. package/dist/index.es188.js +12199 -2
  639. package/dist/index.es188.js.map +1 -1
  640. package/dist/index.es189.js +3 -34
  641. package/dist/index.es189.js.map +1 -1
  642. package/dist/index.es19.js +2 -2
  643. package/dist/index.es190.js +2 -14
  644. package/dist/index.es190.js.map +1 -1
  645. package/dist/index.es191.js +35 -13
  646. package/dist/index.es191.js.map +1 -1
  647. package/dist/index.es192.js +3 -11
  648. package/dist/index.es192.js.map +1 -1
  649. package/dist/index.es193.js +21 -319
  650. package/dist/index.es193.js.map +1 -1
  651. package/dist/index.es194.js +2 -77
  652. package/dist/index.es194.js.map +1 -1
  653. package/dist/index.es195.js +3 -5
  654. package/dist/index.es195.js.map +1 -1
  655. package/dist/index.es196.js +2 -18
  656. package/dist/index.es196.js.map +1 -1
  657. package/dist/index.es197.js +31 -10
  658. package/dist/index.es197.js.map +1 -1
  659. package/dist/index.es198.js +13 -31
  660. package/dist/index.es198.js.map +1 -1
  661. package/dist/index.es199.js +13 -4
  662. package/dist/index.es199.js.map +1 -1
  663. package/dist/index.es20.js +2 -2
  664. package/dist/index.es200.js +9 -2
  665. package/dist/index.es200.js.map +1 -1
  666. package/dist/index.es201.js +2 -8
  667. package/dist/index.es201.js.map +1 -1
  668. package/dist/index.es202.js +7 -4
  669. package/dist/index.es202.js.map +1 -1
  670. package/dist/index.es203.js +5 -4
  671. package/dist/index.es203.js.map +1 -1
  672. package/dist/index.es204.js +4 -3
  673. package/dist/index.es204.js.map +1 -1
  674. package/dist/index.es205.js +2 -2
  675. package/dist/index.es205.js.map +1 -1
  676. package/dist/index.es206.js +3 -9
  677. package/dist/index.es206.js.map +1 -1
  678. package/dist/index.es207.js +8 -21
  679. package/dist/index.es207.js.map +1 -1
  680. package/dist/index.es208.js +20 -20
  681. package/dist/index.es208.js.map +1 -1
  682. package/dist/index.es209.js +20 -12
  683. package/dist/index.es209.js.map +1 -1
  684. package/dist/index.es210.js +12 -15
  685. package/dist/index.es210.js.map +1 -1
  686. package/dist/index.es211.js +16 -5
  687. package/dist/index.es211.js.map +1 -1
  688. package/dist/index.es212.js +5 -8
  689. package/dist/index.es212.js.map +1 -1
  690. package/dist/index.es213.js +8 -6
  691. package/dist/index.es213.js.map +1 -1
  692. package/dist/index.es214.js +6 -21
  693. package/dist/index.es214.js.map +1 -1
  694. package/dist/index.es215.js +20 -8
  695. package/dist/index.es215.js.map +1 -1
  696. package/dist/index.es216.js +10 -9
  697. package/dist/index.es216.js.map +1 -1
  698. package/dist/index.es217.js +9 -4
  699. package/dist/index.es217.js.map +1 -1
  700. package/dist/index.es218.js +4 -11
  701. package/dist/index.es218.js.map +1 -1
  702. package/dist/index.es219.js +10 -8
  703. package/dist/index.es219.js.map +1 -1
  704. package/dist/index.es22.js +1 -1
  705. package/dist/index.es220.js +8 -22
  706. package/dist/index.es220.js.map +1 -1
  707. package/dist/index.es221.js +22 -11
  708. package/dist/index.es221.js.map +1 -1
  709. package/dist/index.es222.js +9 -16
  710. package/dist/index.es222.js.map +1 -1
  711. package/dist/index.es223.js +19 -4
  712. package/dist/index.es223.js.map +1 -1
  713. package/dist/index.es224.js +4 -18
  714. package/dist/index.es224.js.map +1 -1
  715. package/dist/index.es225.js +16 -10
  716. package/dist/index.es225.js.map +1 -1
  717. package/dist/index.es226.js +11 -3
  718. package/dist/index.es226.js.map +1 -1
  719. package/dist/index.es227.js +3 -4
  720. package/dist/index.es227.js.map +1 -1
  721. package/dist/index.es228.js +4 -45
  722. package/dist/index.es228.js.map +1 -1
  723. package/dist/index.es229.js +45 -22
  724. package/dist/index.es229.js.map +1 -1
  725. package/dist/index.es230.js +22 -7
  726. package/dist/index.es230.js.map +1 -1
  727. package/dist/index.es231.js +1 -1
  728. package/dist/index.es232.js +6 -4
  729. package/dist/index.es232.js.map +1 -1
  730. package/dist/index.es233.js +5 -24
  731. package/dist/index.es233.js.map +1 -1
  732. package/dist/index.es234.js +23 -15
  733. package/dist/index.es234.js.map +1 -1
  734. package/dist/index.es235.js +15 -29
  735. package/dist/index.es235.js.map +1 -1
  736. package/dist/index.es236.js +29 -20
  737. package/dist/index.es236.js.map +1 -1
  738. package/dist/index.es237.js +21 -75
  739. package/dist/index.es237.js.map +1 -1
  740. package/dist/index.es238.js +73 -18
  741. package/dist/index.es238.js.map +1 -1
  742. package/dist/index.es239.js +19 -47
  743. package/dist/index.es239.js.map +1 -1
  744. package/dist/index.es24.js +2 -2
  745. package/dist/index.es240.js +42 -48
  746. package/dist/index.es240.js.map +1 -1
  747. package/dist/index.es241.js +54 -8
  748. package/dist/index.es241.js.map +1 -1
  749. package/dist/index.es242.js +8 -20
  750. package/dist/index.es242.js.map +1 -1
  751. package/dist/index.es243.js +18 -63
  752. package/dist/index.es243.js.map +1 -1
  753. package/dist/index.es244.js +64 -41
  754. package/dist/index.es244.js.map +1 -1
  755. package/dist/index.es245.js +41 -64
  756. package/dist/index.es245.js.map +1 -1
  757. package/dist/index.es246.js +64 -7
  758. package/dist/index.es246.js.map +1 -1
  759. package/dist/index.es247.js +8 -3
  760. package/dist/index.es247.js.map +1 -1
  761. package/dist/index.es248.js +3 -12
  762. package/dist/index.es248.js.map +1 -1
  763. package/dist/index.es249.js +11 -58
  764. package/dist/index.es249.js.map +1 -1
  765. package/dist/index.es250.js +57 -54
  766. package/dist/index.es250.js.map +1 -1
  767. package/dist/index.es251.js +56 -2
  768. package/dist/index.es251.js.map +1 -1
  769. package/dist/index.es252.js +2 -15
  770. package/dist/index.es252.js.map +1 -1
  771. package/dist/index.es253.js +15 -4
  772. package/dist/index.es253.js.map +1 -1
  773. package/dist/index.es254.js +4 -70
  774. package/dist/index.es254.js.map +1 -1
  775. package/dist/index.es255.js +70 -3
  776. package/dist/index.es255.js.map +1 -1
  777. package/dist/index.es256.js +3 -24
  778. package/dist/index.es256.js.map +1 -1
  779. package/dist/index.es257.js +28 -0
  780. package/dist/index.es257.js.map +1 -0
  781. package/dist/index.es26.js +2 -2
  782. package/dist/index.es27.js +2 -2
  783. package/dist/index.es28.js +2 -2
  784. package/dist/index.es29.js +1 -1
  785. package/dist/index.es30.js +1 -1
  786. package/dist/index.es31.js +2 -2
  787. package/dist/index.es32.js +2 -2
  788. package/dist/index.es34.js +2 -2
  789. package/dist/index.es35.js +2 -2
  790. package/dist/index.es36.js +2 -2
  791. package/dist/index.es37.js +1 -1
  792. package/dist/index.es39.js +1 -1
  793. package/dist/index.es40.js +4 -4
  794. package/dist/index.es41.js +5 -5
  795. package/dist/index.es42.js +5 -5
  796. package/dist/index.es43.js +1 -1
  797. package/dist/index.es44.js +3 -3
  798. package/dist/index.es45.js +4 -4
  799. package/dist/index.es46.js +2 -2
  800. package/dist/index.es47.js +2 -2
  801. package/dist/index.es49.js +18 -1
  802. package/dist/index.es49.js.map +1 -1
  803. package/dist/index.es50.js +1 -86
  804. package/dist/index.es50.js.map +1 -1
  805. package/dist/index.es51.js +84 -9
  806. package/dist/index.es51.js.map +1 -1
  807. package/dist/index.es52.js +8 -9
  808. package/dist/index.es52.js.map +1 -1
  809. package/dist/index.es53.js +9 -84
  810. package/dist/index.es53.js.map +1 -1
  811. package/dist/index.es54.js +85 -2
  812. package/dist/index.es54.js.map +1 -1
  813. package/dist/index.es55.js +2 -30
  814. package/dist/index.es55.js.map +1 -1
  815. package/dist/index.es56.js +21 -593
  816. package/dist/index.es56.js.map +1 -1
  817. package/dist/index.es57.js +601 -106
  818. package/dist/index.es57.js.map +1 -1
  819. package/dist/index.es58.js +6 -10
  820. package/dist/index.es58.js.map +1 -1
  821. package/dist/index.es59.js +2 -6
  822. package/dist/index.es59.js.map +1 -1
  823. package/dist/index.es60.js +107 -2
  824. package/dist/index.es60.js.map +1 -1
  825. package/dist/index.es61.js +10 -2
  826. package/dist/index.es61.js.map +1 -1
  827. package/dist/index.es62.js +2 -2
  828. package/dist/index.es63.js +2 -2
  829. package/dist/index.es64.js +2 -28
  830. package/dist/index.es64.js.map +1 -1
  831. package/dist/index.es65.js +27 -54
  832. package/dist/index.es65.js.map +1 -1
  833. package/dist/index.es66.js +56 -47
  834. package/dist/index.es66.js.map +1 -1
  835. package/dist/index.es67.js +46 -37
  836. package/dist/index.es67.js.map +1 -1
  837. package/dist/index.es68.js +38 -11
  838. package/dist/index.es68.js.map +1 -1
  839. package/dist/index.es69.js +10 -10
  840. package/dist/index.es69.js.map +1 -1
  841. package/dist/index.es70.js +14 -29
  842. package/dist/index.es70.js.map +1 -1
  843. package/dist/index.es71.js +29 -11
  844. package/dist/index.es71.js.map +1 -1
  845. package/dist/index.es72.js +13 -12
  846. package/dist/index.es72.js.map +1 -1
  847. package/dist/index.es73.js +13 -52
  848. package/dist/index.es73.js.map +1 -1
  849. package/dist/index.es74.js +44 -58
  850. package/dist/index.es74.js.map +1 -1
  851. package/dist/index.es75.js +65 -4
  852. package/dist/index.es75.js.map +1 -1
  853. package/dist/index.es76.js +4 -273
  854. package/dist/index.es76.js.map +1 -1
  855. package/dist/index.es77.js +273 -15
  856. package/dist/index.es77.js.map +1 -1
  857. package/dist/index.es78.js +14 -18
  858. package/dist/index.es78.js.map +1 -1
  859. package/dist/index.es79.js +18 -4
  860. package/dist/index.es79.js.map +1 -1
  861. package/dist/index.es8.js +37 -32
  862. package/dist/index.es8.js.map +1 -1
  863. package/dist/index.es80.js +4 -3
  864. package/dist/index.es80.js.map +1 -1
  865. package/dist/index.es81.js +3 -3
  866. package/dist/index.es81.js.map +1 -1
  867. package/dist/index.es82.js +3 -4
  868. package/dist/index.es82.js.map +1 -1
  869. package/dist/index.es83.js +4 -3
  870. package/dist/index.es83.js.map +1 -1
  871. package/dist/index.es84.js +4 -3
  872. package/dist/index.es84.js.map +1 -1
  873. package/dist/index.es85.js +3 -3
  874. package/dist/index.es85.js.map +1 -1
  875. package/dist/index.es86.js +3 -3
  876. package/dist/index.es86.js.map +1 -1
  877. package/dist/index.es87.js +3 -3
  878. package/dist/index.es87.js.map +1 -1
  879. package/dist/index.es88.js +3 -3
  880. package/dist/index.es88.js.map +1 -1
  881. package/dist/index.es89.js +3 -3
  882. package/dist/index.es89.js.map +1 -1
  883. package/dist/index.es90.js +3 -3
  884. package/dist/index.es90.js.map +1 -1
  885. package/dist/index.es91.js +3 -10
  886. package/dist/index.es91.js.map +1 -1
  887. package/dist/index.es92.js +10 -4
  888. package/dist/index.es92.js.map +1 -1
  889. package/dist/index.es93.js +4 -6
  890. package/dist/index.es93.js.map +1 -1
  891. package/dist/index.es94.js +5 -5
  892. package/dist/index.es94.js.map +1 -1
  893. package/dist/index.es95.js +5 -9
  894. package/dist/index.es95.js.map +1 -1
  895. package/dist/index.es96.js +9 -11
  896. package/dist/index.es96.js.map +1 -1
  897. package/dist/index.es97.js +11 -12
  898. package/dist/index.es97.js.map +1 -1
  899. package/dist/index.es98.js +10 -83
  900. package/dist/index.es98.js.map +1 -1
  901. package/dist/index.es99.js +86 -3
  902. package/dist/index.es99.js.map +1 -1
  903. package/package.json +1 -1
  904. package/src/components/MapDraw.js +25 -1
  905. package/types/components/MapDraw.js.flow +25 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.es50.js","sources":["../../../node_modules/@turf/helpers/dist/es/index.js"],"sourcesContent":["/**\n * @module helpers\n */\n/**\n * Earth Radius used with the Harvesine formula and approximates using a spherical (non-ellipsoid) Earth.\n *\n * @memberof helpers\n * @type {number}\n */\nexport var earthRadius = 6371008.8;\n/**\n * Unit of measurement factors using a spherical (non-ellipsoid) earth radius.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var factors = {\n centimeters: earthRadius * 100,\n centimetres: earthRadius * 100,\n degrees: earthRadius / 111325,\n feet: earthRadius * 3.28084,\n inches: earthRadius * 39.37,\n kilometers: earthRadius / 1000,\n kilometres: earthRadius / 1000,\n meters: earthRadius,\n metres: earthRadius,\n miles: earthRadius / 1609.344,\n millimeters: earthRadius * 1000,\n millimetres: earthRadius * 1000,\n nauticalmiles: earthRadius / 1852,\n radians: 1,\n yards: earthRadius * 1.0936,\n};\n/**\n * Units of measurement factors based on 1 meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var unitsFactors = {\n centimeters: 100,\n centimetres: 100,\n degrees: 1 / 111325,\n feet: 3.28084,\n inches: 39.37,\n kilometers: 1 / 1000,\n kilometres: 1 / 1000,\n meters: 1,\n metres: 1,\n miles: 1 / 1609.344,\n millimeters: 1000,\n millimetres: 1000,\n nauticalmiles: 1 / 1852,\n radians: 1 / earthRadius,\n yards: 1.0936133,\n};\n/**\n * Area of measurement factors based on 1 square meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var areaFactors = {\n acres: 0.000247105,\n centimeters: 10000,\n centimetres: 10000,\n feet: 10.763910417,\n hectares: 0.0001,\n inches: 1550.003100006,\n kilometers: 0.000001,\n kilometres: 0.000001,\n meters: 1,\n metres: 1,\n miles: 3.86e-7,\n millimeters: 1000000,\n millimetres: 1000000,\n yards: 1.195990046,\n};\n/**\n * Wraps a GeoJSON {@link Geometry} in a GeoJSON {@link Feature}.\n *\n * @name feature\n * @param {Geometry} geometry input geometry\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a GeoJSON Feature\n * @example\n * var geometry = {\n * \"type\": \"Point\",\n * \"coordinates\": [110, 50]\n * };\n *\n * var feature = turf.feature(geometry);\n *\n * //=feature\n */\nexport function feature(geom, properties, options) {\n if (options === void 0) { options = {}; }\n var feat = { type: \"Feature\" };\n if (options.id === 0 || options.id) {\n feat.id = options.id;\n }\n if (options.bbox) {\n feat.bbox = options.bbox;\n }\n feat.properties = properties || {};\n feat.geometry = geom;\n return feat;\n}\n/**\n * Creates a GeoJSON {@link Geometry} from a Geometry string type & coordinates.\n * For GeometryCollection type use `helpers.geometryCollection`\n *\n * @name geometry\n * @param {string} type Geometry Type\n * @param {Array<any>} coordinates Coordinates\n * @param {Object} [options={}] Optional Parameters\n * @returns {Geometry} a GeoJSON Geometry\n * @example\n * var type = \"Point\";\n * var coordinates = [110, 50];\n * var geometry = turf.geometry(type, coordinates);\n * // => geometry\n */\nexport function geometry(type, coordinates, _options) {\n if (_options === void 0) { _options = {}; }\n switch (type) {\n case \"Point\":\n return point(coordinates).geometry;\n case \"LineString\":\n return lineString(coordinates).geometry;\n case \"Polygon\":\n return polygon(coordinates).geometry;\n case \"MultiPoint\":\n return multiPoint(coordinates).geometry;\n case \"MultiLineString\":\n return multiLineString(coordinates).geometry;\n case \"MultiPolygon\":\n return multiPolygon(coordinates).geometry;\n default:\n throw new Error(type + \" is invalid\");\n }\n}\n/**\n * Creates a {@link Point} {@link Feature} from a Position.\n *\n * @name point\n * @param {Array<number>} coordinates longitude, latitude position (each in decimal degrees)\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<Point>} a Point feature\n * @example\n * var point = turf.point([-75.343, 39.984]);\n *\n * //=point\n */\nexport function point(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (!coordinates) {\n throw new Error(\"coordinates is required\");\n }\n if (!Array.isArray(coordinates)) {\n throw new Error(\"coordinates must be an Array\");\n }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be at least 2 numbers long\");\n }\n if (!isNumber(coordinates[0]) || !isNumber(coordinates[1])) {\n throw new Error(\"coordinates must contain numbers\");\n }\n var geom = {\n type: \"Point\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Point} {@link FeatureCollection} from an Array of Point coordinates.\n *\n * @name points\n * @param {Array<Array<number>>} coordinates an array of Points\n * @param {Object} [properties={}] Translate these properties to each Feature\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<Point>} Point Feature\n * @example\n * var points = turf.points([\n * [-75, 39],\n * [-80, 45],\n * [-78, 50]\n * ]);\n *\n * //=points\n */\nexport function points(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return point(coords, properties);\n }), options);\n}\n/**\n * Creates a {@link Polygon} {@link Feature} from an Array of LinearRings.\n *\n * @name polygon\n * @param {Array<Array<Array<number>>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<Polygon>} Polygon Feature\n * @example\n * var polygon = turf.polygon([[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]], { name: 'poly1' });\n *\n * //=polygon\n */\nexport function polygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n for (var _i = 0, coordinates_1 = coordinates; _i < coordinates_1.length; _i++) {\n var ring = coordinates_1[_i];\n if (ring.length < 4) {\n throw new Error(\"Each LinearRing of a Polygon must have 4 or more Positions.\");\n }\n for (var j = 0; j < ring[ring.length - 1].length; j++) {\n // Check if first point of Polygon contains two numbers\n if (ring[ring.length - 1][j] !== ring[0][j]) {\n throw new Error(\"First and last Position are not equivalent.\");\n }\n }\n }\n var geom = {\n type: \"Polygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Polygon} {@link FeatureCollection} from an Array of Polygon coordinates.\n *\n * @name polygons\n * @param {Array<Array<Array<Array<number>>>>} coordinates an array of Polygon coordinates\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<Polygon>} Polygon FeatureCollection\n * @example\n * var polygons = turf.polygons([\n * [[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]],\n * [[[-15, 42], [-14, 46], [-12, 41], [-17, 44], [-15, 42]]],\n * ]);\n *\n * //=polygons\n */\nexport function polygons(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return polygon(coords, properties);\n }), options);\n}\n/**\n * Creates a {@link LineString} {@link Feature} from an Array of Positions.\n *\n * @name lineString\n * @param {Array<Array<number>>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<LineString>} LineString Feature\n * @example\n * var linestring1 = turf.lineString([[-24, 63], [-23, 60], [-25, 65], [-20, 69]], {name: 'line 1'});\n * var linestring2 = turf.lineString([[-14, 43], [-13, 40], [-15, 45], [-10, 49]], {name: 'line 2'});\n *\n * //=linestring1\n * //=linestring2\n */\nexport function lineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be an array of two or more positions\");\n }\n var geom = {\n type: \"LineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link LineString} {@link FeatureCollection} from an Array of LineString coordinates.\n *\n * @name lineStrings\n * @param {Array<Array<Array<number>>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<LineString>} LineString FeatureCollection\n * @example\n * var linestrings = turf.lineStrings([\n * [[-24, 63], [-23, 60], [-25, 65], [-20, 69]],\n * [[-14, 43], [-13, 40], [-15, 45], [-10, 49]]\n * ]);\n *\n * //=linestrings\n */\nexport function lineStrings(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return lineString(coords, properties);\n }), options);\n}\n/**\n * Takes one or more {@link Feature|Features} and creates a {@link FeatureCollection}.\n *\n * @name featureCollection\n * @param {Feature[]} features input features\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {FeatureCollection} FeatureCollection of Features\n * @example\n * var locationA = turf.point([-75.343, 39.984], {name: 'Location A'});\n * var locationB = turf.point([-75.833, 39.284], {name: 'Location B'});\n * var locationC = turf.point([-75.534, 39.123], {name: 'Location C'});\n *\n * var collection = turf.featureCollection([\n * locationA,\n * locationB,\n * locationC\n * ]);\n *\n * //=collection\n */\nexport function featureCollection(features, options) {\n if (options === void 0) { options = {}; }\n var fc = { type: \"FeatureCollection\" };\n if (options.id) {\n fc.id = options.id;\n }\n if (options.bbox) {\n fc.bbox = options.bbox;\n }\n fc.features = features;\n return fc;\n}\n/**\n * Creates a {@link Feature<MultiLineString>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiLineString\n * @param {Array<Array<Array<number>>>} coordinates an array of LineStrings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiLineString>} a MultiLineString feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiLine = turf.multiLineString([[[0,0],[10,10]]]);\n *\n * //=multiLine\n */\nexport function multiLineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiLineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<MultiPoint>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPoint\n * @param {Array<Array<number>>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiPoint>} a MultiPoint feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPt = turf.multiPoint([[0,0],[10,10]]);\n *\n * //=multiPt\n */\nexport function multiPoint(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPoint\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<MultiPolygon>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPolygon\n * @param {Array<Array<Array<Array<number>>>>} coordinates an array of Polygons\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiPolygon>} a multipolygon feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPoly = turf.multiPolygon([[[[0,0],[0,10],[10,10],[10,0],[0,0]]]]);\n *\n * //=multiPoly\n *\n */\nexport function multiPolygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPolygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<GeometryCollection>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name geometryCollection\n * @param {Array<Geometry>} geometries an array of GeoJSON Geometries\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<GeometryCollection>} a GeoJSON GeometryCollection Feature\n * @example\n * var pt = turf.geometry(\"Point\", [100, 0]);\n * var line = turf.geometry(\"LineString\", [[101, 0], [102, 1]]);\n * var collection = turf.geometryCollection([pt, line]);\n *\n * // => collection\n */\nexport function geometryCollection(geometries, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"GeometryCollection\",\n geometries: geometries,\n };\n return feature(geom, properties, options);\n}\n/**\n * Round number to precision\n *\n * @param {number} num Number\n * @param {number} [precision=0] Precision\n * @returns {number} rounded number\n * @example\n * turf.round(120.4321)\n * //=120\n *\n * turf.round(120.4321, 2)\n * //=120.43\n */\nexport function round(num, precision) {\n if (precision === void 0) { precision = 0; }\n if (precision && !(precision >= 0)) {\n throw new Error(\"precision must be a positive number\");\n }\n var multiplier = Math.pow(10, precision || 0);\n return Math.round(num * multiplier) / multiplier;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from radians to a more friendly unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name radiansToLength\n * @param {number} radians in radians across the sphere\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} distance\n */\nexport function radiansToLength(radians, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return radians * factor;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into radians\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name lengthToRadians\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} radians\n */\nexport function lengthToRadians(distance, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return distance / factor;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into degrees\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, centimeters, kilometres, feet\n *\n * @name lengthToDegrees\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} degrees\n */\nexport function lengthToDegrees(distance, units) {\n return radiansToDegrees(lengthToRadians(distance, units));\n}\n/**\n * Converts any bearing angle from the north line direction (positive clockwise)\n * and returns an angle between 0-360 degrees (positive clockwise), 0 being the north line\n *\n * @name bearingToAzimuth\n * @param {number} bearing angle, between -180 and +180 degrees\n * @returns {number} angle between 0 and 360 degrees\n */\nexport function bearingToAzimuth(bearing) {\n var angle = bearing % 360;\n if (angle < 0) {\n angle += 360;\n }\n return angle;\n}\n/**\n * Converts an angle in radians to degrees\n *\n * @name radiansToDegrees\n * @param {number} radians angle in radians\n * @returns {number} degrees between 0 and 360 degrees\n */\nexport function radiansToDegrees(radians) {\n var degrees = radians % (2 * Math.PI);\n return (degrees * 180) / Math.PI;\n}\n/**\n * Converts an angle in degrees to radians\n *\n * @name degreesToRadians\n * @param {number} degrees angle between 0 and 360 degrees\n * @returns {number} angle in radians\n */\nexport function degreesToRadians(degrees) {\n var radians = degrees % 360;\n return (radians * Math.PI) / 180;\n}\n/**\n * Converts a length to the requested unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @param {number} length to be converted\n * @param {Units} [originalUnit=\"kilometers\"] of the length\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted length\n */\nexport function convertLength(length, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"kilometers\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(length >= 0)) {\n throw new Error(\"length must be a positive number\");\n }\n return radiansToLength(lengthToRadians(length, originalUnit), finalUnit);\n}\n/**\n * Converts a area to the requested unit.\n * Valid units: kilometers, kilometres, meters, metres, centimetres, millimeters, acres, miles, yards, feet, inches, hectares\n * @param {number} area to be converted\n * @param {Units} [originalUnit=\"meters\"] of the distance\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted area\n */\nexport function convertArea(area, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"meters\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(area >= 0)) {\n throw new Error(\"area must be a positive number\");\n }\n var startFactor = areaFactors[originalUnit];\n if (!startFactor) {\n throw new Error(\"invalid original units\");\n }\n var finalFactor = areaFactors[finalUnit];\n if (!finalFactor) {\n throw new Error(\"invalid final units\");\n }\n return (area / startFactor) * finalFactor;\n}\n/**\n * isNumber\n *\n * @param {*} num Number to validate\n * @returns {boolean} true/false\n * @example\n * turf.isNumber(123)\n * //=true\n * turf.isNumber('foo')\n * //=false\n */\nexport function isNumber(num) {\n return !isNaN(num) && num !== null && !Array.isArray(num);\n}\n/**\n * isObject\n *\n * @param {*} input variable to validate\n * @returns {boolean} true/false\n * @example\n * turf.isObject({elevation: 10})\n * //=true\n * turf.isObject('foo')\n * //=false\n */\nexport function isObject(input) {\n return !!input && input.constructor === Object;\n}\n/**\n * Validate BBox\n *\n * @private\n * @param {Array<number>} bbox BBox to validate\n * @returns {void}\n * @throws Error if BBox is not valid\n * @example\n * validateBBox([-180, -40, 110, 50])\n * //=OK\n * validateBBox([-180, -40])\n * //=Error\n * validateBBox('Foo')\n * //=Error\n * validateBBox(5)\n * //=Error\n * validateBBox(null)\n * //=Error\n * validateBBox(undefined)\n * //=Error\n */\nexport function validateBBox(bbox) {\n if (!bbox) {\n throw new Error(\"bbox is required\");\n }\n if (!Array.isArray(bbox)) {\n throw new Error(\"bbox must be an Array\");\n }\n if (bbox.length !== 4 && bbox.length !== 6) {\n throw new Error(\"bbox must be an Array of 4 or 6 numbers\");\n }\n bbox.forEach(function (num) {\n if (!isNumber(num)) {\n throw new Error(\"bbox must only contain numbers\");\n }\n });\n}\n/**\n * Validate Id\n *\n * @private\n * @param {string|number} id Id to validate\n * @returns {void}\n * @throws Error if Id is not valid\n * @example\n * validateId([-180, -40, 110, 50])\n * //=Error\n * validateId([-180, -40])\n * //=Error\n * validateId('Foo')\n * //=OK\n * validateId(5)\n * //=OK\n * validateId(null)\n * //=Error\n * validateId(undefined)\n * //=Error\n */\nexport function validateId(id) {\n if (!id) {\n throw new Error(\"id is required\");\n }\n if ([\"string\", \"number\"].indexOf(typeof id) === -1) {\n throw new Error(\"id must be a number or a string\");\n }\n}\n"],"names":["earthRadius","factors","feature","geom","properties","options","feat","point","coordinates","isNumber","polygon","_i","coordinates_1","ring","j","featureCollection","features","fc","radiansToLength","radians","units","factor","lengthToRadians","distance","num"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es50.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,12 +1,87 @@
1
- import { coordEach as u } from "./index.es179.js";
2
- function n(t) {
3
- var i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
4
- return u(t, function(f) {
5
- i[0] > f[0] && (i[0] = f[0]), i[1] > f[1] && (i[1] = f[1]), i[2] < f[0] && (i[2] = f[0]), i[3] < f[1] && (i[3] = f[1]);
6
- }), i;
7
- }
8
- n.default = n;
1
+ var i = 63710088e-1, u = {
2
+ centimeters: i * 100,
3
+ centimetres: i * 100,
4
+ degrees: i / 111325,
5
+ feet: i * 3.28084,
6
+ inches: i * 39.37,
7
+ kilometers: i / 1e3,
8
+ kilometres: i / 1e3,
9
+ meters: i,
10
+ metres: i,
11
+ miles: i / 1609.344,
12
+ millimeters: i * 1e3,
13
+ millimetres: i * 1e3,
14
+ nauticalmiles: i / 1852,
15
+ radians: 1,
16
+ yards: i * 1.0936
17
+ };
18
+ function m(t, e, r) {
19
+ r === void 0 && (r = {});
20
+ var a = { type: "Feature" };
21
+ return (r.id === 0 || r.id) && (a.id = r.id), r.bbox && (a.bbox = r.bbox), a.properties = e || {}, a.geometry = t, a;
22
+ }
23
+ function d(t, e, r) {
24
+ if (r === void 0 && (r = {}), !t)
25
+ throw new Error("coordinates is required");
26
+ if (!Array.isArray(t))
27
+ throw new Error("coordinates must be an Array");
28
+ if (t.length < 2)
29
+ throw new Error("coordinates must be at least 2 numbers long");
30
+ if (!l(t[0]) || !l(t[1]))
31
+ throw new Error("coordinates must contain numbers");
32
+ var a = {
33
+ type: "Point",
34
+ coordinates: t
35
+ };
36
+ return m(a, e, r);
37
+ }
38
+ function h(t, e, r) {
39
+ r === void 0 && (r = {});
40
+ for (var a = 0, o = t; a < o.length; a++) {
41
+ var n = o[a];
42
+ if (n.length < 4)
43
+ throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");
44
+ for (var f = 0; f < n[n.length - 1].length; f++)
45
+ if (n[n.length - 1][f] !== n[0][f])
46
+ throw new Error("First and last Position are not equivalent.");
47
+ }
48
+ var v = {
49
+ type: "Polygon",
50
+ coordinates: t
51
+ };
52
+ return m(v, e, r);
53
+ }
54
+ function s(t, e) {
55
+ e === void 0 && (e = {});
56
+ var r = { type: "FeatureCollection" };
57
+ return e.id && (r.id = e.id), e.bbox && (r.bbox = e.bbox), r.features = t, r;
58
+ }
59
+ function b(t, e) {
60
+ e === void 0 && (e = "kilometers");
61
+ var r = u[e];
62
+ if (!r)
63
+ throw new Error(e + " units is invalid");
64
+ return t * r;
65
+ }
66
+ function c(t, e) {
67
+ e === void 0 && (e = "kilometers");
68
+ var r = u[e];
69
+ if (!r)
70
+ throw new Error(e + " units is invalid");
71
+ return t / r;
72
+ }
73
+ function l(t) {
74
+ return !isNaN(t) && t !== null && !Array.isArray(t);
75
+ }
9
76
  export {
10
- n as default
77
+ i as earthRadius,
78
+ u as factors,
79
+ m as feature,
80
+ s as featureCollection,
81
+ l as isNumber,
82
+ c as lengthToRadians,
83
+ d as point,
84
+ h as polygon,
85
+ b as radiansToLength
11
86
  };
12
87
  //# sourceMappingURL=index.es51.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es51.js","sources":["../../../node_modules/@turf/bbox/dist/es/index.js"],"sourcesContent":["import { coordEach } from \"@turf/meta\";\n/**\n * Takes a set of features, calculates the bbox of all input features, and returns a bounding box.\n *\n * @name bbox\n * @param {GeoJSON} geojson any GeoJSON object\n * @returns {BBox} bbox extent in [minX, minY, maxX, maxY] order\n * @example\n * var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]);\n * var bbox = turf.bbox(line);\n * var bboxPolygon = turf.bboxPolygon(bbox);\n *\n * //addToMap\n * var addToMap = [line, bboxPolygon]\n */\nfunction bbox(geojson) {\n var result = [Infinity, Infinity, -Infinity, -Infinity];\n coordEach(geojson, function (coord) {\n if (result[0] > coord[0]) {\n result[0] = coord[0];\n }\n if (result[1] > coord[1]) {\n result[1] = coord[1];\n }\n if (result[2] < coord[0]) {\n result[2] = coord[0];\n }\n if (result[3] < coord[1]) {\n result[3] = coord[1];\n }\n });\n return result;\n}\nbbox[\"default\"] = bbox;\nexport default bbox;\n"],"names":["bbox","geojson","result","coordEach","coord"],"mappings":";AAeA,SAASA,EAAKC,GAAS;AACnB,MAAIC,IAAS,CAAC,OAAU,OAAU,QAAW,MAAS;AAC5C,SAAAC,EAAAF,GAAS,SAAUG,GAAO;AAChC,IAAIF,EAAO,CAAC,IAAIE,EAAM,CAAC,MACZF,EAAA,CAAC,IAAIE,EAAM,CAAC,IAEnBF,EAAO,CAAC,IAAIE,EAAM,CAAC,MACZF,EAAA,CAAC,IAAIE,EAAM,CAAC,IAEnBF,EAAO,CAAC,IAAIE,EAAM,CAAC,MACZF,EAAA,CAAC,IAAIE,EAAM,CAAC,IAEnBF,EAAO,CAAC,IAAIE,EAAM,CAAC,MACZF,EAAA,CAAC,IAAIE,EAAM,CAAC;AAAA,EACvB,CACH,GACMF;AACX;AACAF,EAAK,UAAaA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es51.js","sources":["../../../node_modules/@turf/helpers/dist/es/index.js"],"sourcesContent":["/**\n * @module helpers\n */\n/**\n * Earth Radius used with the Harvesine formula and approximates using a spherical (non-ellipsoid) Earth.\n *\n * @memberof helpers\n * @type {number}\n */\nexport var earthRadius = 6371008.8;\n/**\n * Unit of measurement factors using a spherical (non-ellipsoid) earth radius.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var factors = {\n centimeters: earthRadius * 100,\n centimetres: earthRadius * 100,\n degrees: earthRadius / 111325,\n feet: earthRadius * 3.28084,\n inches: earthRadius * 39.37,\n kilometers: earthRadius / 1000,\n kilometres: earthRadius / 1000,\n meters: earthRadius,\n metres: earthRadius,\n miles: earthRadius / 1609.344,\n millimeters: earthRadius * 1000,\n millimetres: earthRadius * 1000,\n nauticalmiles: earthRadius / 1852,\n radians: 1,\n yards: earthRadius * 1.0936,\n};\n/**\n * Units of measurement factors based on 1 meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var unitsFactors = {\n centimeters: 100,\n centimetres: 100,\n degrees: 1 / 111325,\n feet: 3.28084,\n inches: 39.37,\n kilometers: 1 / 1000,\n kilometres: 1 / 1000,\n meters: 1,\n metres: 1,\n miles: 1 / 1609.344,\n millimeters: 1000,\n millimetres: 1000,\n nauticalmiles: 1 / 1852,\n radians: 1 / earthRadius,\n yards: 1.0936133,\n};\n/**\n * Area of measurement factors based on 1 square meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var areaFactors = {\n acres: 0.000247105,\n centimeters: 10000,\n centimetres: 10000,\n feet: 10.763910417,\n hectares: 0.0001,\n inches: 1550.003100006,\n kilometers: 0.000001,\n kilometres: 0.000001,\n meters: 1,\n metres: 1,\n miles: 3.86e-7,\n millimeters: 1000000,\n millimetres: 1000000,\n yards: 1.195990046,\n};\n/**\n * Wraps a GeoJSON {@link Geometry} in a GeoJSON {@link Feature}.\n *\n * @name feature\n * @param {Geometry} geometry input geometry\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a GeoJSON Feature\n * @example\n * var geometry = {\n * \"type\": \"Point\",\n * \"coordinates\": [110, 50]\n * };\n *\n * var feature = turf.feature(geometry);\n *\n * //=feature\n */\nexport function feature(geom, properties, options) {\n if (options === void 0) { options = {}; }\n var feat = { type: \"Feature\" };\n if (options.id === 0 || options.id) {\n feat.id = options.id;\n }\n if (options.bbox) {\n feat.bbox = options.bbox;\n }\n feat.properties = properties || {};\n feat.geometry = geom;\n return feat;\n}\n/**\n * Creates a GeoJSON {@link Geometry} from a Geometry string type & coordinates.\n * For GeometryCollection type use `helpers.geometryCollection`\n *\n * @name geometry\n * @param {string} type Geometry Type\n * @param {Array<any>} coordinates Coordinates\n * @param {Object} [options={}] Optional Parameters\n * @returns {Geometry} a GeoJSON Geometry\n * @example\n * var type = \"Point\";\n * var coordinates = [110, 50];\n * var geometry = turf.geometry(type, coordinates);\n * // => geometry\n */\nexport function geometry(type, coordinates, _options) {\n if (_options === void 0) { _options = {}; }\n switch (type) {\n case \"Point\":\n return point(coordinates).geometry;\n case \"LineString\":\n return lineString(coordinates).geometry;\n case \"Polygon\":\n return polygon(coordinates).geometry;\n case \"MultiPoint\":\n return multiPoint(coordinates).geometry;\n case \"MultiLineString\":\n return multiLineString(coordinates).geometry;\n case \"MultiPolygon\":\n return multiPolygon(coordinates).geometry;\n default:\n throw new Error(type + \" is invalid\");\n }\n}\n/**\n * Creates a {@link Point} {@link Feature} from a Position.\n *\n * @name point\n * @param {Array<number>} coordinates longitude, latitude position (each in decimal degrees)\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<Point>} a Point feature\n * @example\n * var point = turf.point([-75.343, 39.984]);\n *\n * //=point\n */\nexport function point(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (!coordinates) {\n throw new Error(\"coordinates is required\");\n }\n if (!Array.isArray(coordinates)) {\n throw new Error(\"coordinates must be an Array\");\n }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be at least 2 numbers long\");\n }\n if (!isNumber(coordinates[0]) || !isNumber(coordinates[1])) {\n throw new Error(\"coordinates must contain numbers\");\n }\n var geom = {\n type: \"Point\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Point} {@link FeatureCollection} from an Array of Point coordinates.\n *\n * @name points\n * @param {Array<Array<number>>} coordinates an array of Points\n * @param {Object} [properties={}] Translate these properties to each Feature\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<Point>} Point Feature\n * @example\n * var points = turf.points([\n * [-75, 39],\n * [-80, 45],\n * [-78, 50]\n * ]);\n *\n * //=points\n */\nexport function points(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return point(coords, properties);\n }), options);\n}\n/**\n * Creates a {@link Polygon} {@link Feature} from an Array of LinearRings.\n *\n * @name polygon\n * @param {Array<Array<Array<number>>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<Polygon>} Polygon Feature\n * @example\n * var polygon = turf.polygon([[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]], { name: 'poly1' });\n *\n * //=polygon\n */\nexport function polygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n for (var _i = 0, coordinates_1 = coordinates; _i < coordinates_1.length; _i++) {\n var ring = coordinates_1[_i];\n if (ring.length < 4) {\n throw new Error(\"Each LinearRing of a Polygon must have 4 or more Positions.\");\n }\n for (var j = 0; j < ring[ring.length - 1].length; j++) {\n // Check if first point of Polygon contains two numbers\n if (ring[ring.length - 1][j] !== ring[0][j]) {\n throw new Error(\"First and last Position are not equivalent.\");\n }\n }\n }\n var geom = {\n type: \"Polygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Polygon} {@link FeatureCollection} from an Array of Polygon coordinates.\n *\n * @name polygons\n * @param {Array<Array<Array<Array<number>>>>} coordinates an array of Polygon coordinates\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<Polygon>} Polygon FeatureCollection\n * @example\n * var polygons = turf.polygons([\n * [[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]],\n * [[[-15, 42], [-14, 46], [-12, 41], [-17, 44], [-15, 42]]],\n * ]);\n *\n * //=polygons\n */\nexport function polygons(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return polygon(coords, properties);\n }), options);\n}\n/**\n * Creates a {@link LineString} {@link Feature} from an Array of Positions.\n *\n * @name lineString\n * @param {Array<Array<number>>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<LineString>} LineString Feature\n * @example\n * var linestring1 = turf.lineString([[-24, 63], [-23, 60], [-25, 65], [-20, 69]], {name: 'line 1'});\n * var linestring2 = turf.lineString([[-14, 43], [-13, 40], [-15, 45], [-10, 49]], {name: 'line 2'});\n *\n * //=linestring1\n * //=linestring2\n */\nexport function lineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be an array of two or more positions\");\n }\n var geom = {\n type: \"LineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link LineString} {@link FeatureCollection} from an Array of LineString coordinates.\n *\n * @name lineStrings\n * @param {Array<Array<Array<number>>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<LineString>} LineString FeatureCollection\n * @example\n * var linestrings = turf.lineStrings([\n * [[-24, 63], [-23, 60], [-25, 65], [-20, 69]],\n * [[-14, 43], [-13, 40], [-15, 45], [-10, 49]]\n * ]);\n *\n * //=linestrings\n */\nexport function lineStrings(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return lineString(coords, properties);\n }), options);\n}\n/**\n * Takes one or more {@link Feature|Features} and creates a {@link FeatureCollection}.\n *\n * @name featureCollection\n * @param {Feature[]} features input features\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {FeatureCollection} FeatureCollection of Features\n * @example\n * var locationA = turf.point([-75.343, 39.984], {name: 'Location A'});\n * var locationB = turf.point([-75.833, 39.284], {name: 'Location B'});\n * var locationC = turf.point([-75.534, 39.123], {name: 'Location C'});\n *\n * var collection = turf.featureCollection([\n * locationA,\n * locationB,\n * locationC\n * ]);\n *\n * //=collection\n */\nexport function featureCollection(features, options) {\n if (options === void 0) { options = {}; }\n var fc = { type: \"FeatureCollection\" };\n if (options.id) {\n fc.id = options.id;\n }\n if (options.bbox) {\n fc.bbox = options.bbox;\n }\n fc.features = features;\n return fc;\n}\n/**\n * Creates a {@link Feature<MultiLineString>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiLineString\n * @param {Array<Array<Array<number>>>} coordinates an array of LineStrings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiLineString>} a MultiLineString feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiLine = turf.multiLineString([[[0,0],[10,10]]]);\n *\n * //=multiLine\n */\nexport function multiLineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiLineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<MultiPoint>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPoint\n * @param {Array<Array<number>>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiPoint>} a MultiPoint feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPt = turf.multiPoint([[0,0],[10,10]]);\n *\n * //=multiPt\n */\nexport function multiPoint(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPoint\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<MultiPolygon>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPolygon\n * @param {Array<Array<Array<Array<number>>>>} coordinates an array of Polygons\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiPolygon>} a multipolygon feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPoly = turf.multiPolygon([[[[0,0],[0,10],[10,10],[10,0],[0,0]]]]);\n *\n * //=multiPoly\n *\n */\nexport function multiPolygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPolygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<GeometryCollection>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name geometryCollection\n * @param {Array<Geometry>} geometries an array of GeoJSON Geometries\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<GeometryCollection>} a GeoJSON GeometryCollection Feature\n * @example\n * var pt = turf.geometry(\"Point\", [100, 0]);\n * var line = turf.geometry(\"LineString\", [[101, 0], [102, 1]]);\n * var collection = turf.geometryCollection([pt, line]);\n *\n * // => collection\n */\nexport function geometryCollection(geometries, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"GeometryCollection\",\n geometries: geometries,\n };\n return feature(geom, properties, options);\n}\n/**\n * Round number to precision\n *\n * @param {number} num Number\n * @param {number} [precision=0] Precision\n * @returns {number} rounded number\n * @example\n * turf.round(120.4321)\n * //=120\n *\n * turf.round(120.4321, 2)\n * //=120.43\n */\nexport function round(num, precision) {\n if (precision === void 0) { precision = 0; }\n if (precision && !(precision >= 0)) {\n throw new Error(\"precision must be a positive number\");\n }\n var multiplier = Math.pow(10, precision || 0);\n return Math.round(num * multiplier) / multiplier;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from radians to a more friendly unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name radiansToLength\n * @param {number} radians in radians across the sphere\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} distance\n */\nexport function radiansToLength(radians, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return radians * factor;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into radians\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name lengthToRadians\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} radians\n */\nexport function lengthToRadians(distance, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return distance / factor;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into degrees\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, centimeters, kilometres, feet\n *\n * @name lengthToDegrees\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} degrees\n */\nexport function lengthToDegrees(distance, units) {\n return radiansToDegrees(lengthToRadians(distance, units));\n}\n/**\n * Converts any bearing angle from the north line direction (positive clockwise)\n * and returns an angle between 0-360 degrees (positive clockwise), 0 being the north line\n *\n * @name bearingToAzimuth\n * @param {number} bearing angle, between -180 and +180 degrees\n * @returns {number} angle between 0 and 360 degrees\n */\nexport function bearingToAzimuth(bearing) {\n var angle = bearing % 360;\n if (angle < 0) {\n angle += 360;\n }\n return angle;\n}\n/**\n * Converts an angle in radians to degrees\n *\n * @name radiansToDegrees\n * @param {number} radians angle in radians\n * @returns {number} degrees between 0 and 360 degrees\n */\nexport function radiansToDegrees(radians) {\n var degrees = radians % (2 * Math.PI);\n return (degrees * 180) / Math.PI;\n}\n/**\n * Converts an angle in degrees to radians\n *\n * @name degreesToRadians\n * @param {number} degrees angle between 0 and 360 degrees\n * @returns {number} angle in radians\n */\nexport function degreesToRadians(degrees) {\n var radians = degrees % 360;\n return (radians * Math.PI) / 180;\n}\n/**\n * Converts a length to the requested unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @param {number} length to be converted\n * @param {Units} [originalUnit=\"kilometers\"] of the length\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted length\n */\nexport function convertLength(length, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"kilometers\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(length >= 0)) {\n throw new Error(\"length must be a positive number\");\n }\n return radiansToLength(lengthToRadians(length, originalUnit), finalUnit);\n}\n/**\n * Converts a area to the requested unit.\n * Valid units: kilometers, kilometres, meters, metres, centimetres, millimeters, acres, miles, yards, feet, inches, hectares\n * @param {number} area to be converted\n * @param {Units} [originalUnit=\"meters\"] of the distance\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted area\n */\nexport function convertArea(area, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"meters\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(area >= 0)) {\n throw new Error(\"area must be a positive number\");\n }\n var startFactor = areaFactors[originalUnit];\n if (!startFactor) {\n throw new Error(\"invalid original units\");\n }\n var finalFactor = areaFactors[finalUnit];\n if (!finalFactor) {\n throw new Error(\"invalid final units\");\n }\n return (area / startFactor) * finalFactor;\n}\n/**\n * isNumber\n *\n * @param {*} num Number to validate\n * @returns {boolean} true/false\n * @example\n * turf.isNumber(123)\n * //=true\n * turf.isNumber('foo')\n * //=false\n */\nexport function isNumber(num) {\n return !isNaN(num) && num !== null && !Array.isArray(num);\n}\n/**\n * isObject\n *\n * @param {*} input variable to validate\n * @returns {boolean} true/false\n * @example\n * turf.isObject({elevation: 10})\n * //=true\n * turf.isObject('foo')\n * //=false\n */\nexport function isObject(input) {\n return !!input && input.constructor === Object;\n}\n/**\n * Validate BBox\n *\n * @private\n * @param {Array<number>} bbox BBox to validate\n * @returns {void}\n * @throws Error if BBox is not valid\n * @example\n * validateBBox([-180, -40, 110, 50])\n * //=OK\n * validateBBox([-180, -40])\n * //=Error\n * validateBBox('Foo')\n * //=Error\n * validateBBox(5)\n * //=Error\n * validateBBox(null)\n * //=Error\n * validateBBox(undefined)\n * //=Error\n */\nexport function validateBBox(bbox) {\n if (!bbox) {\n throw new Error(\"bbox is required\");\n }\n if (!Array.isArray(bbox)) {\n throw new Error(\"bbox must be an Array\");\n }\n if (bbox.length !== 4 && bbox.length !== 6) {\n throw new Error(\"bbox must be an Array of 4 or 6 numbers\");\n }\n bbox.forEach(function (num) {\n if (!isNumber(num)) {\n throw new Error(\"bbox must only contain numbers\");\n }\n });\n}\n/**\n * Validate Id\n *\n * @private\n * @param {string|number} id Id to validate\n * @returns {void}\n * @throws Error if Id is not valid\n * @example\n * validateId([-180, -40, 110, 50])\n * //=Error\n * validateId([-180, -40])\n * //=Error\n * validateId('Foo')\n * //=OK\n * validateId(5)\n * //=OK\n * validateId(null)\n * //=Error\n * validateId(undefined)\n * //=Error\n */\nexport function validateId(id) {\n if (!id) {\n throw new Error(\"id is required\");\n }\n if ([\"string\", \"number\"].indexOf(typeof id) === -1) {\n throw new Error(\"id must be a number or a string\");\n }\n}\n"],"names":["earthRadius","factors","feature","geom","properties","options","feat","point","coordinates","isNumber","polygon","_i","coordinates_1","ring","j","featureCollection","features","fc","radiansToLength","radians","units","factor","lengthToRadians","distance","num"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,13 +1,12 @@
1
- import { polygon as p } from "./index.es50.js";
2
- function l(r, t) {
3
- t === void 0 && (t = {});
4
- var o = Number(r[0]), e = Number(r[1]), a = Number(r[2]), i = Number(r[3]);
5
- if (r.length === 6)
6
- throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");
7
- var u = [o, e], v = [o, i], f = [a, i], n = [a, e];
8
- return p([[u, n, f, v, u]], t.properties, { bbox: r, id: t.id });
1
+ import { coordEach as u } from "./index.es187.js";
2
+ function n(t) {
3
+ var i = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
4
+ return u(t, function(f) {
5
+ i[0] > f[0] && (i[0] = f[0]), i[1] > f[1] && (i[1] = f[1]), i[2] < f[0] && (i[2] = f[0]), i[3] < f[1] && (i[3] = f[1]);
6
+ }), i;
9
7
  }
8
+ n.default = n;
10
9
  export {
11
- l as default
10
+ n as default
12
11
  };
13
12
  //# sourceMappingURL=index.es52.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es52.js","sources":["../../../node_modules/@turf/bbox-polygon/dist/es/index.js"],"sourcesContent":["import { polygon } from \"@turf/helpers\";\n/**\n * Takes a bbox and returns an equivalent {@link Polygon|polygon}.\n *\n * @name bboxPolygon\n * @param {BBox} bbox extent in [minX, minY, maxX, maxY] order\n * @param {Object} [options={}] Optional parameters\n * @param {Properties} [options.properties={}] Translate properties to Polygon\n * @param {string|number} [options.id={}] Translate Id to Polygon\n * @returns {Feature<Polygon>} a Polygon representation of the bounding box\n * @example\n * var bbox = [0, 0, 10, 10];\n *\n * var poly = turf.bboxPolygon(bbox);\n *\n * //addToMap\n * var addToMap = [poly]\n */\nexport default function bboxPolygon(bbox, options) {\n if (options === void 0) { options = {}; }\n // Convert BBox positions to Numbers\n // No performance loss for including Number()\n // https://github.com/Turfjs/turf/issues/1119\n var west = Number(bbox[0]);\n var south = Number(bbox[1]);\n var east = Number(bbox[2]);\n var north = Number(bbox[3]);\n if (bbox.length === 6) {\n throw new Error(\"@turf/bbox-polygon does not support BBox with 6 positions\");\n }\n var lowLeft = [west, south];\n var topLeft = [west, north];\n var topRight = [east, north];\n var lowRight = [east, south];\n return polygon([[lowLeft, lowRight, topRight, topLeft, lowLeft]], options.properties, { bbox: bbox, id: options.id });\n}\n"],"names":["bboxPolygon","bbox","options","west","south","east","north","lowLeft","topLeft","topRight","lowRight","polygon"],"mappings":";AAkBwB,SAAAA,EAAYC,GAAMC,GAAS;AAC/C,EAAIA,MAAY,WAAUA,IAAU,CAAA;AAIpC,MAAIC,IAAO,OAAOF,EAAK,CAAC,CAAC,GACrBG,IAAQ,OAAOH,EAAK,CAAC,CAAC,GACtBI,IAAO,OAAOJ,EAAK,CAAC,CAAC,GACrBK,IAAQ,OAAOL,EAAK,CAAC,CAAC;AACtB,MAAAA,EAAK,WAAW;AACV,UAAA,IAAI,MAAM,2DAA2D;AAE3E,MAAAM,IAAU,CAACJ,GAAMC,CAAK,GACtBI,IAAU,CAACL,GAAMG,CAAK,GACtBG,IAAW,CAACJ,GAAMC,CAAK,GACvBI,IAAW,CAACL,GAAMD,CAAK;AAC3B,SAAOO,EAAQ,CAAC,CAACJ,GAASG,GAAUD,GAAUD,GAASD,CAAO,CAAC,GAAGL,EAAQ,YAAY,EAAE,MAAAD,GAAY,IAAIC,EAAQ,IAAI;AACxH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es52.js","sources":["../../../node_modules/@turf/bbox/dist/es/index.js"],"sourcesContent":["import { coordEach } from \"@turf/meta\";\n/**\n * Takes a set of features, calculates the bbox of all input features, and returns a bounding box.\n *\n * @name bbox\n * @param {GeoJSON} geojson any GeoJSON object\n * @returns {BBox} bbox extent in [minX, minY, maxX, maxY] order\n * @example\n * var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]);\n * var bbox = turf.bbox(line);\n * var bboxPolygon = turf.bboxPolygon(bbox);\n *\n * //addToMap\n * var addToMap = [line, bboxPolygon]\n */\nfunction bbox(geojson) {\n var result = [Infinity, Infinity, -Infinity, -Infinity];\n coordEach(geojson, function (coord) {\n if (result[0] > coord[0]) {\n result[0] = coord[0];\n }\n if (result[1] > coord[1]) {\n result[1] = coord[1];\n }\n if (result[2] < coord[0]) {\n result[2] = coord[0];\n }\n if (result[3] < coord[1]) {\n result[3] = coord[1];\n }\n });\n return result;\n}\nbbox[\"default\"] = bbox;\nexport default bbox;\n"],"names":["bbox","geojson","result","coordEach","coord"],"mappings":";AAeA,SAASA,EAAKC,GAAS;AACnB,MAAIC,IAAS,CAAC,OAAU,OAAU,QAAW,MAAS;AAC5C,SAAAC,EAAAF,GAAS,SAAUG,GAAO;AAChC,IAAIF,EAAO,CAAC,IAAIE,EAAM,CAAC,MACZF,EAAA,CAAC,IAAIE,EAAM,CAAC,IAEnBF,EAAO,CAAC,IAAIE,EAAM,CAAC,MACZF,EAAA,CAAC,IAAIE,EAAM,CAAC,IAEnBF,EAAO,CAAC,IAAIE,EAAM,CAAC,MACZF,EAAA,CAAC,IAAIE,EAAM,CAAC,IAEnBF,EAAO,CAAC,IAAIE,EAAM,CAAC,MACZF,EAAA,CAAC,IAAIE,EAAM,CAAC;AAAA,EACvB,CACH,GACMF;AACX;AACAF,EAAK,UAAaA;","x_google_ignoreList":[0]}
@@ -1,88 +1,13 @@
1
- import O from "./index.es178.js";
2
- import { GeoJSONReader as q, BufferOp as A, GeoJSONWriter as F } from "./index.es180.js";
3
- import { featureEach as v, geomEach as d } from "./index.es179.js";
4
- import "./index.es181.js";
5
- import "./index.es182.js";
6
- import "./index.es183.js";
7
- import "./index.es184.js";
8
- import "./index.es185.js";
9
- import "./index.es186.js";
10
- import "./index.es187.js";
11
- import "./index.es188.js";
12
- import "./index.es189.js";
13
- import "./index.es190.js";
14
- import R from "./index.es191.js";
15
- import "./index.es192.js";
16
- import { featureCollection as c, radiansToLength as g, lengthToRadians as B, feature as J, earthRadius as S } from "./index.es50.js";
17
- function Y(r, e, t) {
18
- t = t || {};
19
- var a = t.units || "kilometers", n = t.steps || 8;
20
- if (!r)
21
- throw new Error("geojson is required");
22
- if (typeof t != "object")
23
- throw new Error("options must be an object");
24
- if (typeof n != "number")
25
- throw new Error("steps must be an number");
26
- if (e === void 0)
27
- throw new Error("radius is required");
28
- if (n <= 0)
29
- throw new Error("steps must be greater than 0");
30
- var i = [];
31
- switch (r.type) {
32
- case "GeometryCollection":
33
- return d(r, function(u) {
34
- var o = m(u, e, a, n);
35
- o && i.push(o);
36
- }), c(i);
37
- case "FeatureCollection":
38
- return v(r, function(u) {
39
- var o = m(u, e, a, n);
40
- o && v(o, function(p) {
41
- p && i.push(p);
42
- });
43
- }), c(i);
44
- }
45
- return m(r, e, a, n);
46
- }
47
- function m(r, e, t, a) {
48
- var n = r.properties || {}, i = r.type === "Feature" ? r.geometry : r;
49
- if (i.type === "GeometryCollection") {
50
- var u = [];
51
- return d(r, function(G) {
52
- var s = m(G, e, t, a);
53
- s && u.push(s);
54
- }), c(u);
55
- }
56
- var o = T(i), p = {
57
- type: i.type,
58
- coordinates: h(i.coordinates, o)
59
- }, w = new q(), b = w.read(p), E = g(B(e, t), "meters"), f = A.bufferOp(b, E, a), C = new F();
60
- if (f = C.write(f), !y(f.coordinates)) {
61
- var N = {
62
- type: f.type,
63
- coordinates: l(f.coordinates, o)
64
- };
65
- return J(N, n);
66
- }
67
- }
68
- function y(r) {
69
- return Array.isArray(r[0]) ? y(r[0]) : isNaN(r[0]);
70
- }
71
- function h(r, e) {
72
- return typeof r[0] != "object" ? e(r) : r.map(function(t) {
73
- return h(t, e);
74
- });
75
- }
76
- function l(r, e) {
77
- return typeof r[0] != "object" ? e.invert(r) : r.map(function(t) {
78
- return l(t, e);
79
- });
80
- }
81
- function T(r) {
82
- var e = O(r).geometry.coordinates, t = [-e[0], -e[1]];
83
- return R().rotate(t).scale(S);
1
+ import { polygon as p } from "./index.es51.js";
2
+ function l(r, t) {
3
+ t === void 0 && (t = {});
4
+ var o = Number(r[0]), e = Number(r[1]), a = Number(r[2]), i = Number(r[3]);
5
+ if (r.length === 6)
6
+ throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");
7
+ var u = [o, e], v = [o, i], f = [a, i], n = [a, e];
8
+ return p([[u, n, f, v, u]], t.properties, { bbox: r, id: t.id });
84
9
  }
85
10
  export {
86
- Y as default
11
+ l as default
87
12
  };
88
13
  //# sourceMappingURL=index.es53.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es53.js","sources":["../../../node_modules/@turf/buffer/dist/es/index.js"],"sourcesContent":["import center from '@turf/center';\nimport { GeoJSONReader, BufferOp, GeoJSONWriter } from 'turf-jsts';\nimport { featureEach, geomEach } from '@turf/meta';\nimport { geoAzimuthalEquidistant } from 'd3-geo';\nimport { featureCollection, earthRadius, radiansToLength, lengthToRadians, feature } from '@turf/helpers';\n\n/**\n * Calculates a buffer for input features for a given radius. Units supported are miles, kilometers, and degrees.\n *\n * When using a negative radius, the resulting geometry may be invalid if\n * it's too small compared to the radius magnitude. If the input is a\n * FeatureCollection, only valid members will be returned in the output\n * FeatureCollection - i.e., the output collection may have fewer members than\n * the input, or even be empty.\n *\n * @name buffer\n * @param {FeatureCollection|Geometry|Feature<any>} geojson input to be buffered\n * @param {number} radius distance to draw the buffer (negative values are allowed)\n * @param {Object} [options={}] Optional parameters\n * @param {string} [options.units=\"kilometers\"] any of the options supported by turf units\n * @param {number} [options.steps=8] number of steps\n * @returns {FeatureCollection|Feature<Polygon|MultiPolygon>|undefined} buffered features\n * @example\n * var point = turf.point([-90.548630, 14.616599]);\n * var buffered = turf.buffer(point, 500, {units: 'miles'});\n *\n * //addToMap\n * var addToMap = [point, buffered]\n */\nfunction buffer(geojson, radius, options) {\n // Optional params\n options = options || {};\n\n // use user supplied options or default values\n var units = options.units || \"kilometers\";\n var steps = options.steps || 8;\n\n // validation\n if (!geojson) throw new Error(\"geojson is required\");\n if (typeof options !== \"object\") throw new Error(\"options must be an object\");\n if (typeof steps !== \"number\") throw new Error(\"steps must be an number\");\n\n // Allow negative buffers (\"erosion\") or zero-sized buffers (\"repair geometry\")\n if (radius === undefined) throw new Error(\"radius is required\");\n if (steps <= 0) throw new Error(\"steps must be greater than 0\");\n\n var results = [];\n switch (geojson.type) {\n case \"GeometryCollection\":\n geomEach(geojson, function (geometry) {\n var buffered = bufferFeature(geometry, radius, units, steps);\n if (buffered) results.push(buffered);\n });\n return featureCollection(results);\n case \"FeatureCollection\":\n featureEach(geojson, function (feature) {\n var multiBuffered = bufferFeature(feature, radius, units, steps);\n if (multiBuffered) {\n featureEach(multiBuffered, function (buffered) {\n if (buffered) results.push(buffered);\n });\n }\n });\n return featureCollection(results);\n }\n return bufferFeature(geojson, radius, units, steps);\n}\n\n/**\n * Buffer single Feature/Geometry\n *\n * @private\n * @param {Feature<any>} geojson input to be buffered\n * @param {number} radius distance to draw the buffer\n * @param {string} [units='kilometers'] any of the options supported by turf units\n * @param {number} [steps=8] number of steps\n * @returns {Feature<Polygon|MultiPolygon>} buffered feature\n */\nfunction bufferFeature(geojson, radius, units, steps) {\n var properties = geojson.properties || {};\n var geometry = geojson.type === \"Feature\" ? geojson.geometry : geojson;\n\n // Geometry Types faster than jsts\n if (geometry.type === \"GeometryCollection\") {\n var results = [];\n geomEach(geojson, function (geometry) {\n var buffered = bufferFeature(geometry, radius, units, steps);\n if (buffered) results.push(buffered);\n });\n return featureCollection(results);\n }\n\n // Project GeoJSON to Azimuthal Equidistant projection (convert to Meters)\n var projection = defineProjection(geometry);\n var projected = {\n type: geometry.type,\n coordinates: projectCoords(geometry.coordinates, projection),\n };\n\n // JSTS buffer operation\n var reader = new GeoJSONReader();\n var geom = reader.read(projected);\n var distance = radiansToLength(lengthToRadians(radius, units), \"meters\");\n var buffered = BufferOp.bufferOp(geom, distance, steps);\n var writer = new GeoJSONWriter();\n buffered = writer.write(buffered);\n\n // Detect if empty geometries\n if (coordsIsNaN(buffered.coordinates)) return undefined;\n\n // Unproject coordinates (convert to Degrees)\n var result = {\n type: buffered.type,\n coordinates: unprojectCoords(buffered.coordinates, projection),\n };\n\n return feature(result, properties);\n}\n\n/**\n * Coordinates isNaN\n *\n * @private\n * @param {Array<any>} coords GeoJSON Coordinates\n * @returns {boolean} if NaN exists\n */\nfunction coordsIsNaN(coords) {\n if (Array.isArray(coords[0])) return coordsIsNaN(coords[0]);\n return isNaN(coords[0]);\n}\n\n/**\n * Project coordinates to projection\n *\n * @private\n * @param {Array<any>} coords to project\n * @param {GeoProjection} proj D3 Geo Projection\n * @returns {Array<any>} projected coordinates\n */\nfunction projectCoords(coords, proj) {\n if (typeof coords[0] !== \"object\") return proj(coords);\n return coords.map(function (coord) {\n return projectCoords(coord, proj);\n });\n}\n\n/**\n * Un-Project coordinates to projection\n *\n * @private\n * @param {Array<any>} coords to un-project\n * @param {GeoProjection} proj D3 Geo Projection\n * @returns {Array<any>} un-projected coordinates\n */\nfunction unprojectCoords(coords, proj) {\n if (typeof coords[0] !== \"object\") return proj.invert(coords);\n return coords.map(function (coord) {\n return unprojectCoords(coord, proj);\n });\n}\n\n/**\n * Define Azimuthal Equidistant projection\n *\n * @private\n * @param {Geometry|Feature<any>} geojson Base projection on center of GeoJSON\n * @returns {GeoProjection} D3 Geo Azimuthal Equidistant Projection\n */\nfunction defineProjection(geojson) {\n var coords = center(geojson).geometry.coordinates;\n var rotation = [-coords[0], -coords[1]];\n return geoAzimuthalEquidistant().rotate(rotation).scale(earthRadius);\n}\n\nexport default buffer;\n"],"names":["buffer","geojson","radius","options","units","steps","results","geomEach","geometry","buffered","bufferFeature","featureCollection","featureEach","feature","multiBuffered","properties","projection","defineProjection","projected","projectCoords","reader","GeoJSONReader","geom","distance","radiansToLength","lengthToRadians","BufferOp","writer","GeoJSONWriter","coordsIsNaN","result","unprojectCoords","coords","proj","coord","center","rotation","geoAzimuthalEquidistant","earthRadius"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es53.js","sources":["../../../node_modules/@turf/bbox-polygon/dist/es/index.js"],"sourcesContent":["import { polygon } from \"@turf/helpers\";\n/**\n * Takes a bbox and returns an equivalent {@link Polygon|polygon}.\n *\n * @name bboxPolygon\n * @param {BBox} bbox extent in [minX, minY, maxX, maxY] order\n * @param {Object} [options={}] Optional parameters\n * @param {Properties} [options.properties={}] Translate properties to Polygon\n * @param {string|number} [options.id={}] Translate Id to Polygon\n * @returns {Feature<Polygon>} a Polygon representation of the bounding box\n * @example\n * var bbox = [0, 0, 10, 10];\n *\n * var poly = turf.bboxPolygon(bbox);\n *\n * //addToMap\n * var addToMap = [poly]\n */\nexport default function bboxPolygon(bbox, options) {\n if (options === void 0) { options = {}; }\n // Convert BBox positions to Numbers\n // No performance loss for including Number()\n // https://github.com/Turfjs/turf/issues/1119\n var west = Number(bbox[0]);\n var south = Number(bbox[1]);\n var east = Number(bbox[2]);\n var north = Number(bbox[3]);\n if (bbox.length === 6) {\n throw new Error(\"@turf/bbox-polygon does not support BBox with 6 positions\");\n }\n var lowLeft = [west, south];\n var topLeft = [west, north];\n var topRight = [east, north];\n var lowRight = [east, south];\n return polygon([[lowLeft, lowRight, topRight, topLeft, lowLeft]], options.properties, { bbox: bbox, id: options.id });\n}\n"],"names":["bboxPolygon","bbox","options","west","south","east","north","lowLeft","topLeft","topRight","lowRight","polygon"],"mappings":";AAkBwB,SAAAA,EAAYC,GAAMC,GAAS;AAC/C,EAAIA,MAAY,WAAUA,IAAU,CAAA;AAIpC,MAAIC,IAAO,OAAOF,EAAK,CAAC,CAAC,GACrBG,IAAQ,OAAOH,EAAK,CAAC,CAAC,GACtBI,IAAO,OAAOJ,EAAK,CAAC,CAAC,GACrBK,IAAQ,OAAOL,EAAK,CAAC,CAAC;AACtB,MAAAA,EAAK,WAAW;AACV,UAAA,IAAI,MAAM,2DAA2D;AAE3E,MAAAM,IAAU,CAACJ,GAAMC,CAAK,GACtBI,IAAU,CAACL,GAAMG,CAAK,GACtBG,IAAW,CAACJ,GAAMC,CAAK,GACvBI,IAAW,CAACL,GAAMD,CAAK;AAC3B,SAAOO,EAAQ,CAAC,CAACJ,GAASG,GAAUD,GAAUD,GAASD,CAAO,CAAC,GAAGL,EAAQ,YAAY,EAAE,MAAAD,GAAY,IAAIC,EAAQ,IAAI;AACxH;","x_google_ignoreList":[0]}
@@ -1,5 +1,88 @@
1
- var e = { exports: {} };
1
+ import O from "./index.es186.js";
2
+ import { GeoJSONReader as q, BufferOp as A, GeoJSONWriter as F } from "./index.es188.js";
3
+ import { featureEach as v, geomEach as d } from "./index.es187.js";
4
+ import "./index.es189.js";
5
+ import "./index.es190.js";
6
+ import "./index.es191.js";
7
+ import "./index.es192.js";
8
+ import "./index.es193.js";
9
+ import "./index.es194.js";
10
+ import "./index.es195.js";
11
+ import "./index.es196.js";
12
+ import "./index.es197.js";
13
+ import "./index.es198.js";
14
+ import R from "./index.es199.js";
15
+ import "./index.es200.js";
16
+ import { featureCollection as c, radiansToLength as g, lengthToRadians as B, feature as J, earthRadius as S } from "./index.es51.js";
17
+ function Y(r, e, t) {
18
+ t = t || {};
19
+ var a = t.units || "kilometers", n = t.steps || 8;
20
+ if (!r)
21
+ throw new Error("geojson is required");
22
+ if (typeof t != "object")
23
+ throw new Error("options must be an object");
24
+ if (typeof n != "number")
25
+ throw new Error("steps must be an number");
26
+ if (e === void 0)
27
+ throw new Error("radius is required");
28
+ if (n <= 0)
29
+ throw new Error("steps must be greater than 0");
30
+ var i = [];
31
+ switch (r.type) {
32
+ case "GeometryCollection":
33
+ return d(r, function(u) {
34
+ var o = m(u, e, a, n);
35
+ o && i.push(o);
36
+ }), c(i);
37
+ case "FeatureCollection":
38
+ return v(r, function(u) {
39
+ var o = m(u, e, a, n);
40
+ o && v(o, function(p) {
41
+ p && i.push(p);
42
+ });
43
+ }), c(i);
44
+ }
45
+ return m(r, e, a, n);
46
+ }
47
+ function m(r, e, t, a) {
48
+ var n = r.properties || {}, i = r.type === "Feature" ? r.geometry : r;
49
+ if (i.type === "GeometryCollection") {
50
+ var u = [];
51
+ return d(r, function(G) {
52
+ var s = m(G, e, t, a);
53
+ s && u.push(s);
54
+ }), c(u);
55
+ }
56
+ var o = T(i), p = {
57
+ type: i.type,
58
+ coordinates: h(i.coordinates, o)
59
+ }, w = new q(), b = w.read(p), E = g(B(e, t), "meters"), f = A.bufferOp(b, E, a), C = new F();
60
+ if (f = C.write(f), !y(f.coordinates)) {
61
+ var N = {
62
+ type: f.type,
63
+ coordinates: l(f.coordinates, o)
64
+ };
65
+ return J(N, n);
66
+ }
67
+ }
68
+ function y(r) {
69
+ return Array.isArray(r[0]) ? y(r[0]) : isNaN(r[0]);
70
+ }
71
+ function h(r, e) {
72
+ return typeof r[0] != "object" ? e(r) : r.map(function(t) {
73
+ return h(t, e);
74
+ });
75
+ }
76
+ function l(r, e) {
77
+ return typeof r[0] != "object" ? e.invert(r) : r.map(function(t) {
78
+ return l(t, e);
79
+ });
80
+ }
81
+ function T(r) {
82
+ var e = O(r).geometry.coordinates, t = [-e[0], -e[1]];
83
+ return R().rotate(t).scale(S);
84
+ }
2
85
  export {
3
- e as __module
86
+ Y as default
4
87
  };
5
88
  //# sourceMappingURL=index.es54.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es54.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.es54.js","sources":["../../../node_modules/@turf/buffer/dist/es/index.js"],"sourcesContent":["import center from '@turf/center';\nimport { GeoJSONReader, BufferOp, GeoJSONWriter } from 'turf-jsts';\nimport { featureEach, geomEach } from '@turf/meta';\nimport { geoAzimuthalEquidistant } from 'd3-geo';\nimport { featureCollection, earthRadius, radiansToLength, lengthToRadians, feature } from '@turf/helpers';\n\n/**\n * Calculates a buffer for input features for a given radius. Units supported are miles, kilometers, and degrees.\n *\n * When using a negative radius, the resulting geometry may be invalid if\n * it's too small compared to the radius magnitude. If the input is a\n * FeatureCollection, only valid members will be returned in the output\n * FeatureCollection - i.e., the output collection may have fewer members than\n * the input, or even be empty.\n *\n * @name buffer\n * @param {FeatureCollection|Geometry|Feature<any>} geojson input to be buffered\n * @param {number} radius distance to draw the buffer (negative values are allowed)\n * @param {Object} [options={}] Optional parameters\n * @param {string} [options.units=\"kilometers\"] any of the options supported by turf units\n * @param {number} [options.steps=8] number of steps\n * @returns {FeatureCollection|Feature<Polygon|MultiPolygon>|undefined} buffered features\n * @example\n * var point = turf.point([-90.548630, 14.616599]);\n * var buffered = turf.buffer(point, 500, {units: 'miles'});\n *\n * //addToMap\n * var addToMap = [point, buffered]\n */\nfunction buffer(geojson, radius, options) {\n // Optional params\n options = options || {};\n\n // use user supplied options or default values\n var units = options.units || \"kilometers\";\n var steps = options.steps || 8;\n\n // validation\n if (!geojson) throw new Error(\"geojson is required\");\n if (typeof options !== \"object\") throw new Error(\"options must be an object\");\n if (typeof steps !== \"number\") throw new Error(\"steps must be an number\");\n\n // Allow negative buffers (\"erosion\") or zero-sized buffers (\"repair geometry\")\n if (radius === undefined) throw new Error(\"radius is required\");\n if (steps <= 0) throw new Error(\"steps must be greater than 0\");\n\n var results = [];\n switch (geojson.type) {\n case \"GeometryCollection\":\n geomEach(geojson, function (geometry) {\n var buffered = bufferFeature(geometry, radius, units, steps);\n if (buffered) results.push(buffered);\n });\n return featureCollection(results);\n case \"FeatureCollection\":\n featureEach(geojson, function (feature) {\n var multiBuffered = bufferFeature(feature, radius, units, steps);\n if (multiBuffered) {\n featureEach(multiBuffered, function (buffered) {\n if (buffered) results.push(buffered);\n });\n }\n });\n return featureCollection(results);\n }\n return bufferFeature(geojson, radius, units, steps);\n}\n\n/**\n * Buffer single Feature/Geometry\n *\n * @private\n * @param {Feature<any>} geojson input to be buffered\n * @param {number} radius distance to draw the buffer\n * @param {string} [units='kilometers'] any of the options supported by turf units\n * @param {number} [steps=8] number of steps\n * @returns {Feature<Polygon|MultiPolygon>} buffered feature\n */\nfunction bufferFeature(geojson, radius, units, steps) {\n var properties = geojson.properties || {};\n var geometry = geojson.type === \"Feature\" ? geojson.geometry : geojson;\n\n // Geometry Types faster than jsts\n if (geometry.type === \"GeometryCollection\") {\n var results = [];\n geomEach(geojson, function (geometry) {\n var buffered = bufferFeature(geometry, radius, units, steps);\n if (buffered) results.push(buffered);\n });\n return featureCollection(results);\n }\n\n // Project GeoJSON to Azimuthal Equidistant projection (convert to Meters)\n var projection = defineProjection(geometry);\n var projected = {\n type: geometry.type,\n coordinates: projectCoords(geometry.coordinates, projection),\n };\n\n // JSTS buffer operation\n var reader = new GeoJSONReader();\n var geom = reader.read(projected);\n var distance = radiansToLength(lengthToRadians(radius, units), \"meters\");\n var buffered = BufferOp.bufferOp(geom, distance, steps);\n var writer = new GeoJSONWriter();\n buffered = writer.write(buffered);\n\n // Detect if empty geometries\n if (coordsIsNaN(buffered.coordinates)) return undefined;\n\n // Unproject coordinates (convert to Degrees)\n var result = {\n type: buffered.type,\n coordinates: unprojectCoords(buffered.coordinates, projection),\n };\n\n return feature(result, properties);\n}\n\n/**\n * Coordinates isNaN\n *\n * @private\n * @param {Array<any>} coords GeoJSON Coordinates\n * @returns {boolean} if NaN exists\n */\nfunction coordsIsNaN(coords) {\n if (Array.isArray(coords[0])) return coordsIsNaN(coords[0]);\n return isNaN(coords[0]);\n}\n\n/**\n * Project coordinates to projection\n *\n * @private\n * @param {Array<any>} coords to project\n * @param {GeoProjection} proj D3 Geo Projection\n * @returns {Array<any>} projected coordinates\n */\nfunction projectCoords(coords, proj) {\n if (typeof coords[0] !== \"object\") return proj(coords);\n return coords.map(function (coord) {\n return projectCoords(coord, proj);\n });\n}\n\n/**\n * Un-Project coordinates to projection\n *\n * @private\n * @param {Array<any>} coords to un-project\n * @param {GeoProjection} proj D3 Geo Projection\n * @returns {Array<any>} un-projected coordinates\n */\nfunction unprojectCoords(coords, proj) {\n if (typeof coords[0] !== \"object\") return proj.invert(coords);\n return coords.map(function (coord) {\n return unprojectCoords(coord, proj);\n });\n}\n\n/**\n * Define Azimuthal Equidistant projection\n *\n * @private\n * @param {Geometry|Feature<any>} geojson Base projection on center of GeoJSON\n * @returns {GeoProjection} D3 Geo Azimuthal Equidistant Projection\n */\nfunction defineProjection(geojson) {\n var coords = center(geojson).geometry.coordinates;\n var rotation = [-coords[0], -coords[1]];\n return geoAzimuthalEquidistant().rotate(rotation).scale(earthRadius);\n}\n\nexport default buffer;\n"],"names":["buffer","geojson","radius","options","units","steps","results","geomEach","geometry","buffered","bufferFeature","featureCollection","featureEach","feature","multiBuffered","properties","projection","defineProjection","projected","projectCoords","reader","GeoJSONReader","geom","distance","radiansToLength","lengthToRadians","BufferOp","writer","GeoJSONWriter","coordsIsNaN","result","unprojectCoords","coords","proj","coord","center","rotation","geoAzimuthalEquidistant","earthRadius"],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,33 +1,5 @@
1
- import { __exports as t } from "./index.es62.js";
2
- import R from "react";
3
- var p;
4
- function v() {
5
- if (p)
6
- return t;
7
- p = 1;
8
- /**
9
- * @license React
10
- * react-jsx-runtime.production.min.js
11
- *
12
- * Copyright (c) Facebook, Inc. and its affiliates.
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- */
17
- var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function u(o, r, i) {
19
- var e, n = {}, _ = null, f = null;
20
- i !== void 0 && (_ = "" + i), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
21
- for (e in r)
22
- c.call(r, e) && !d.hasOwnProperty(e) && (n[e] = r[e]);
23
- if (o && o.defaultProps)
24
- for (e in r = o.defaultProps, r)
25
- n[e] === void 0 && (n[e] = r[e]);
26
- return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current };
27
- }
28
- return t.Fragment = l, t.jsx = u, t.jsxs = u, t;
29
- }
1
+ var e = { exports: {} };
30
2
  export {
31
- v as __require
3
+ e as __module
32
4
  };
33
5
  //# sourceMappingURL=index.es55.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es55.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":["f","require$$0","k","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min"],"mappings":";;;;;;;EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASa,MAAIA,IAAEC,GAAiBC,IAAE,OAAO,IAAI,eAAe,GAAE,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAAE,OAAO,UAAU,gBAAeC,IAAEJ,EAAE,mDAAmD,mBAAkBK,IAAE,EAAC,KAAI,IAAG,KAAI,IAAG,QAAO,IAAG,UAAS,GAAE;AAClP,WAASC,EAAEC,GAAEC,GAAEC,GAAE;AAAC,QAAIC,GAAEC,IAAE,CAAG,GAAAC,IAAE,MAAKC,IAAE;AAAc,IAAAJ,MAAA,WAAIG,IAAE,KAAGH,IAAYD,EAAE,QAAX,WAAiBI,IAAE,KAAGJ,EAAE,MAAcA,EAAE,QAAF,WAAQK,IAAEL,EAAE;AAAK,SAAIE,KAAKF;AAAE,MAAAL,EAAE,KAAKK,GAAEE,CAAC,KAAG,CAACL,EAAE,eAAeK,CAAC,MAAIC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,QAAGH,KAAGA,EAAE;AAAiB,WAAAG,KAAKF,IAAED,EAAE,cAAaC;AAAE,QAASG,EAAED,CAAC,MAAZ,WAAgBC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,WAAM,EAAC,UAASR,GAAE,MAAKK,GAAE,KAAIK,GAAE,KAAIC,GAAE,OAAMF,GAAE,QAAOP,EAAE,QAAO;AAAA,EAAC;AAAkB,SAAAU,EAAA,WAAA,GAAcA,EAAA,MAAAR,GAAEQ,EAAA,OAAaR;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es55.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}