node-red-contrib-tak-registration 0.16.0 → 0.16.3

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 (1065) hide show
  1. package/node_modules/@turf/along/README.md +3 -1
  2. package/node_modules/@turf/along/dist/cjs/index.cjs +2 -2
  3. package/node_modules/@turf/along/dist/cjs/index.cjs.map +1 -1
  4. package/node_modules/@turf/along/dist/cjs/index.d.cts +1 -1
  5. package/node_modules/@turf/along/dist/esm/index.d.ts +1 -1
  6. package/node_modules/@turf/along/dist/esm/index.js +2 -2
  7. package/node_modules/@turf/along/dist/esm/index.js.map +1 -1
  8. package/node_modules/@turf/along/package.json +12 -12
  9. package/node_modules/@turf/angle/dist/cjs/index.cjs +2 -2
  10. package/node_modules/@turf/angle/dist/cjs/index.cjs.map +1 -1
  11. package/node_modules/@turf/angle/dist/esm/index.js +2 -2
  12. package/node_modules/@turf/angle/dist/esm/index.js.map +1 -1
  13. package/node_modules/@turf/angle/package.json +16 -16
  14. package/node_modules/@turf/area/dist/cjs/index.cjs +2 -2
  15. package/node_modules/@turf/area/dist/cjs/index.cjs.map +1 -1
  16. package/node_modules/@turf/area/dist/esm/index.js +2 -2
  17. package/node_modules/@turf/area/dist/esm/index.js.map +1 -1
  18. package/node_modules/@turf/area/package.json +10 -10
  19. package/node_modules/@turf/bbox/dist/cjs/index.cjs +2 -2
  20. package/node_modules/@turf/bbox/dist/cjs/index.cjs.map +1 -1
  21. package/node_modules/@turf/bbox/dist/esm/index.js +2 -2
  22. package/node_modules/@turf/bbox/dist/esm/index.js.map +1 -1
  23. package/node_modules/@turf/bbox/package.json +9 -9
  24. package/node_modules/@turf/bbox-clip/dist/cjs/index.cjs +2 -2
  25. package/node_modules/@turf/bbox-clip/dist/cjs/index.cjs.map +1 -1
  26. package/node_modules/@turf/bbox-clip/dist/esm/index.js +2 -2
  27. package/node_modules/@turf/bbox-clip/dist/esm/index.js.map +1 -1
  28. package/node_modules/@turf/bbox-clip/package.json +11 -11
  29. package/node_modules/@turf/bbox-polygon/dist/cjs/index.cjs +2 -2
  30. package/node_modules/@turf/bbox-polygon/dist/cjs/index.cjs.map +1 -1
  31. package/node_modules/@turf/bbox-polygon/dist/esm/index.js +2 -2
  32. package/node_modules/@turf/bbox-polygon/dist/esm/index.js.map +1 -1
  33. package/node_modules/@turf/bbox-polygon/package.json +8 -8
  34. package/node_modules/@turf/bearing/dist/cjs/index.cjs +2 -2
  35. package/node_modules/@turf/bearing/dist/cjs/index.cjs.map +1 -1
  36. package/node_modules/@turf/bearing/dist/esm/index.js +2 -2
  37. package/node_modules/@turf/bearing/dist/esm/index.js.map +1 -1
  38. package/node_modules/@turf/bearing/package.json +11 -11
  39. package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs +2 -2
  40. package/node_modules/@turf/bezier-spline/dist/cjs/index.cjs.map +1 -1
  41. package/node_modules/@turf/bezier-spline/dist/esm/index.js +2 -2
  42. package/node_modules/@turf/bezier-spline/dist/esm/index.js.map +1 -1
  43. package/node_modules/@turf/bezier-spline/package.json +10 -10
  44. package/node_modules/@turf/boolean-clockwise/dist/cjs/index.cjs +2 -2
  45. package/node_modules/@turf/boolean-clockwise/dist/cjs/index.cjs.map +1 -1
  46. package/node_modules/@turf/boolean-clockwise/dist/esm/index.js +2 -2
  47. package/node_modules/@turf/boolean-clockwise/dist/esm/index.js.map +1 -1
  48. package/node_modules/@turf/boolean-clockwise/package.json +10 -10
  49. package/node_modules/@turf/boolean-concave/dist/cjs/index.cjs +2 -2
  50. package/node_modules/@turf/boolean-concave/dist/cjs/index.cjs.map +1 -1
  51. package/node_modules/@turf/boolean-concave/dist/esm/index.js +2 -2
  52. package/node_modules/@turf/boolean-concave/dist/esm/index.js.map +1 -1
  53. package/node_modules/@turf/boolean-concave/package.json +10 -10
  54. package/node_modules/@turf/boolean-contains/dist/cjs/index.cjs +2 -2
  55. package/node_modules/@turf/boolean-contains/dist/cjs/index.cjs.map +1 -1
  56. package/node_modules/@turf/boolean-contains/dist/esm/index.js +2 -2
  57. package/node_modules/@turf/boolean-contains/dist/esm/index.js.map +1 -1
  58. package/node_modules/@turf/boolean-contains/package.json +13 -13
  59. package/node_modules/@turf/boolean-crosses/dist/cjs/index.cjs +2 -2
  60. package/node_modules/@turf/boolean-crosses/dist/cjs/index.cjs.map +1 -1
  61. package/node_modules/@turf/boolean-crosses/dist/esm/index.js +2 -2
  62. package/node_modules/@turf/boolean-crosses/dist/esm/index.js.map +1 -1
  63. package/node_modules/@turf/boolean-crosses/package.json +13 -13
  64. package/node_modules/@turf/boolean-disjoint/dist/cjs/index.cjs +2 -2
  65. package/node_modules/@turf/boolean-disjoint/dist/cjs/index.cjs.map +1 -1
  66. package/node_modules/@turf/boolean-disjoint/dist/esm/index.js +2 -2
  67. package/node_modules/@turf/boolean-disjoint/dist/esm/index.js.map +1 -1
  68. package/node_modules/@turf/boolean-disjoint/package.json +12 -12
  69. package/node_modules/@turf/boolean-equal/dist/cjs/index.cjs +2 -2
  70. package/node_modules/@turf/boolean-equal/dist/cjs/index.cjs.map +1 -1
  71. package/node_modules/@turf/boolean-equal/dist/esm/index.js +2 -2
  72. package/node_modules/@turf/boolean-equal/dist/esm/index.js.map +1 -1
  73. package/node_modules/@turf/boolean-equal/package.json +11 -11
  74. package/node_modules/@turf/boolean-intersects/README.md +1 -1
  75. package/node_modules/@turf/boolean-intersects/dist/cjs/index.cjs +2 -2
  76. package/node_modules/@turf/boolean-intersects/dist/cjs/index.cjs.map +1 -1
  77. package/node_modules/@turf/boolean-intersects/dist/esm/index.js +2 -2
  78. package/node_modules/@turf/boolean-intersects/dist/esm/index.js.map +1 -1
  79. package/node_modules/@turf/boolean-intersects/package.json +10 -10
  80. package/node_modules/@turf/boolean-overlap/dist/cjs/index.cjs +2 -2
  81. package/node_modules/@turf/boolean-overlap/dist/cjs/index.cjs.map +1 -1
  82. package/node_modules/@turf/boolean-overlap/dist/esm/index.js +2 -2
  83. package/node_modules/@turf/boolean-overlap/dist/esm/index.js.map +1 -1
  84. package/node_modules/@turf/boolean-overlap/package.json +13 -13
  85. package/node_modules/@turf/boolean-parallel/dist/cjs/index.cjs +2 -2
  86. package/node_modules/@turf/boolean-parallel/dist/cjs/index.cjs.map +1 -1
  87. package/node_modules/@turf/boolean-parallel/dist/esm/index.js +2 -2
  88. package/node_modules/@turf/boolean-parallel/dist/esm/index.js.map +1 -1
  89. package/node_modules/@turf/boolean-parallel/package.json +12 -12
  90. package/node_modules/@turf/boolean-point-in-polygon/dist/cjs/index.cjs +2 -2
  91. package/node_modules/@turf/boolean-point-in-polygon/dist/cjs/index.cjs.map +1 -1
  92. package/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js +2 -2
  93. package/node_modules/@turf/boolean-point-in-polygon/dist/esm/index.js.map +1 -1
  94. package/node_modules/@turf/boolean-point-in-polygon/package.json +9 -9
  95. package/node_modules/@turf/boolean-point-on-line/dist/cjs/index.cjs +2 -2
  96. package/node_modules/@turf/boolean-point-on-line/dist/cjs/index.cjs.map +1 -1
  97. package/node_modules/@turf/boolean-point-on-line/dist/esm/index.js +2 -2
  98. package/node_modules/@turf/boolean-point-on-line/dist/esm/index.js.map +1 -1
  99. package/node_modules/@turf/boolean-point-on-line/package.json +11 -11
  100. package/node_modules/@turf/boolean-touches/dist/cjs/index.cjs +2 -2
  101. package/node_modules/@turf/boolean-touches/dist/cjs/index.cjs.map +1 -1
  102. package/node_modules/@turf/boolean-touches/dist/esm/index.js +2 -2
  103. package/node_modules/@turf/boolean-touches/dist/esm/index.js.map +1 -1
  104. package/node_modules/@turf/boolean-touches/package.json +12 -12
  105. package/node_modules/@turf/boolean-valid/dist/cjs/index.cjs +2 -2
  106. package/node_modules/@turf/boolean-valid/dist/cjs/index.cjs.map +1 -1
  107. package/node_modules/@turf/boolean-valid/dist/esm/index.js +2 -2
  108. package/node_modules/@turf/boolean-valid/dist/esm/index.js.map +1 -1
  109. package/node_modules/@turf/boolean-valid/package.json +17 -17
  110. package/node_modules/@turf/boolean-within/dist/cjs/index.cjs +2 -2
  111. package/node_modules/@turf/boolean-within/dist/cjs/index.cjs.map +1 -1
  112. package/node_modules/@turf/boolean-within/dist/esm/index.js +2 -2
  113. package/node_modules/@turf/boolean-within/dist/esm/index.js.map +1 -1
  114. package/node_modules/@turf/boolean-within/package.json +13 -13
  115. package/node_modules/@turf/buffer/README.md +3 -3
  116. package/node_modules/@turf/buffer/dist/cjs/index.cjs +2 -2
  117. package/node_modules/@turf/buffer/dist/cjs/index.cjs.map +1 -1
  118. package/node_modules/@turf/buffer/dist/esm/index.js +2 -2
  119. package/node_modules/@turf/buffer/dist/esm/index.js.map +1 -1
  120. package/node_modules/@turf/buffer/package.json +13 -13
  121. package/node_modules/@turf/center/dist/cjs/index.cjs +2 -2
  122. package/node_modules/@turf/center/dist/cjs/index.cjs.map +1 -1
  123. package/node_modules/@turf/center/dist/esm/index.js +2 -2
  124. package/node_modules/@turf/center/dist/esm/index.js.map +1 -1
  125. package/node_modules/@turf/center/package.json +13 -13
  126. package/node_modules/@turf/center-mean/dist/cjs/index.cjs +2 -2
  127. package/node_modules/@turf/center-mean/dist/cjs/index.cjs.map +1 -1
  128. package/node_modules/@turf/center-mean/dist/esm/index.js +2 -2
  129. package/node_modules/@turf/center-mean/dist/esm/index.js.map +1 -1
  130. package/node_modules/@turf/center-mean/package.json +14 -14
  131. package/node_modules/@turf/center-median/dist/cjs/index.cjs +2 -2
  132. package/node_modules/@turf/center-median/dist/cjs/index.cjs.map +1 -1
  133. package/node_modules/@turf/center-median/dist/esm/index.js +2 -2
  134. package/node_modules/@turf/center-median/dist/esm/index.js.map +1 -1
  135. package/node_modules/@turf/center-median/package.json +17 -17
  136. package/node_modules/@turf/center-of-mass/dist/cjs/index.cjs +2 -2
  137. package/node_modules/@turf/center-of-mass/dist/cjs/index.cjs.map +1 -1
  138. package/node_modules/@turf/center-of-mass/dist/esm/index.js +2 -2
  139. package/node_modules/@turf/center-of-mass/dist/esm/index.js.map +1 -1
  140. package/node_modules/@turf/center-of-mass/package.json +14 -14
  141. package/node_modules/@turf/centroid/dist/cjs/index.cjs +2 -2
  142. package/node_modules/@turf/centroid/dist/cjs/index.cjs.map +1 -1
  143. package/node_modules/@turf/centroid/dist/esm/index.js +2 -2
  144. package/node_modules/@turf/centroid/dist/esm/index.js.map +1 -1
  145. package/node_modules/@turf/centroid/package.json +11 -11
  146. package/node_modules/@turf/circle/README.md +13 -13
  147. package/node_modules/@turf/circle/dist/cjs/index.cjs +2 -2
  148. package/node_modules/@turf/circle/dist/cjs/index.cjs.map +1 -1
  149. package/node_modules/@turf/circle/dist/cjs/index.d.cts +2 -2
  150. package/node_modules/@turf/circle/dist/esm/index.d.ts +2 -2
  151. package/node_modules/@turf/circle/dist/esm/index.js +2 -2
  152. package/node_modules/@turf/circle/dist/esm/index.js.map +1 -1
  153. package/node_modules/@turf/circle/package.json +11 -11
  154. package/node_modules/@turf/clean-coords/dist/cjs/index.cjs +33 -49
  155. package/node_modules/@turf/clean-coords/dist/cjs/index.cjs.map +1 -1
  156. package/node_modules/@turf/clean-coords/dist/esm/index.js +33 -49
  157. package/node_modules/@turf/clean-coords/dist/esm/index.js.map +1 -1
  158. package/node_modules/@turf/clean-coords/package.json +15 -12
  159. package/node_modules/@turf/clone/dist/cjs/index.cjs +2 -2
  160. package/node_modules/@turf/clone/dist/cjs/index.cjs.map +1 -1
  161. package/node_modules/@turf/clone/dist/esm/index.js +2 -2
  162. package/node_modules/@turf/clone/dist/esm/index.js.map +1 -1
  163. package/node_modules/@turf/clone/package.json +9 -9
  164. package/node_modules/@turf/clusters/package.json +9 -9
  165. package/node_modules/@turf/clusters-dbscan/README.md +2 -2
  166. package/node_modules/@turf/clusters-dbscan/dist/cjs/index.cjs +3 -8
  167. package/node_modules/@turf/clusters-dbscan/dist/cjs/index.cjs.map +1 -1
  168. package/node_modules/@turf/clusters-dbscan/dist/cjs/index.d.cts +1 -1
  169. package/node_modules/@turf/clusters-dbscan/dist/esm/index.d.ts +1 -1
  170. package/node_modules/@turf/clusters-dbscan/dist/esm/index.js +4 -9
  171. package/node_modules/@turf/clusters-dbscan/dist/esm/index.js.map +1 -1
  172. package/node_modules/@turf/clusters-dbscan/package.json +15 -15
  173. package/node_modules/@turf/clusters-kmeans/dist/cjs/index.cjs +2 -2
  174. package/node_modules/@turf/clusters-kmeans/dist/cjs/index.cjs.map +1 -1
  175. package/node_modules/@turf/clusters-kmeans/dist/cjs/index.d.cts +1 -1
  176. package/node_modules/@turf/clusters-kmeans/dist/esm/index.d.ts +1 -1
  177. package/node_modules/@turf/clusters-kmeans/dist/esm/index.js +2 -2
  178. package/node_modules/@turf/clusters-kmeans/dist/esm/index.js.map +1 -1
  179. package/node_modules/@turf/clusters-kmeans/package.json +15 -15
  180. package/node_modules/@turf/collect/dist/cjs/index.cjs +3 -8
  181. package/node_modules/@turf/collect/dist/cjs/index.cjs.map +1 -1
  182. package/node_modules/@turf/collect/dist/esm/index.js +3 -8
  183. package/node_modules/@turf/collect/dist/esm/index.js.map +1 -1
  184. package/node_modules/@turf/collect/package.json +11 -11
  185. package/node_modules/@turf/combine/dist/cjs/index.cjs +2 -2
  186. package/node_modules/@turf/combine/dist/cjs/index.cjs.map +1 -1
  187. package/node_modules/@turf/combine/dist/esm/index.js +2 -2
  188. package/node_modules/@turf/combine/dist/esm/index.js.map +1 -1
  189. package/node_modules/@turf/combine/package.json +9 -9
  190. package/node_modules/@turf/concave/README.md +2 -2
  191. package/node_modules/@turf/concave/dist/cjs/index.cjs +2 -2
  192. package/node_modules/@turf/concave/dist/cjs/index.cjs.map +1 -1
  193. package/node_modules/@turf/concave/dist/cjs/index.d.cts +1 -1
  194. package/node_modules/@turf/concave/dist/esm/index.d.ts +1 -1
  195. package/node_modules/@turf/concave/dist/esm/index.js +2 -2
  196. package/node_modules/@turf/concave/dist/esm/index.js.map +1 -1
  197. package/node_modules/@turf/concave/package.json +14 -14
  198. package/node_modules/@turf/convex/dist/cjs/index.cjs +2 -2
  199. package/node_modules/@turf/convex/dist/cjs/index.cjs.map +1 -1
  200. package/node_modules/@turf/convex/dist/esm/index.js +2 -2
  201. package/node_modules/@turf/convex/dist/esm/index.js.map +1 -1
  202. package/node_modules/@turf/convex/package.json +11 -11
  203. package/node_modules/@turf/destination/README.md +2 -2
  204. package/node_modules/@turf/destination/dist/cjs/index.cjs +5 -2
  205. package/node_modules/@turf/destination/dist/cjs/index.cjs.map +1 -1
  206. package/node_modules/@turf/destination/dist/cjs/index.d.cts +1 -1
  207. package/node_modules/@turf/destination/dist/esm/index.d.ts +1 -1
  208. package/node_modules/@turf/destination/dist/esm/index.js +5 -2
  209. package/node_modules/@turf/destination/dist/esm/index.js.map +1 -1
  210. package/node_modules/@turf/destination/package.json +14 -11
  211. package/node_modules/@turf/difference/dist/cjs/index.cjs +2 -2
  212. package/node_modules/@turf/difference/dist/cjs/index.cjs.map +1 -1
  213. package/node_modules/@turf/difference/dist/esm/index.js +2 -2
  214. package/node_modules/@turf/difference/dist/esm/index.js.map +1 -1
  215. package/node_modules/@turf/difference/package.json +11 -11
  216. package/node_modules/@turf/dissolve/dist/cjs/index.cjs +2 -2
  217. package/node_modules/@turf/dissolve/dist/cjs/index.cjs.map +1 -1
  218. package/node_modules/@turf/dissolve/dist/esm/index.js +2 -2
  219. package/node_modules/@turf/dissolve/dist/esm/index.js.map +1 -1
  220. package/node_modules/@turf/dissolve/package.json +12 -12
  221. package/node_modules/@turf/distance/README.md +2 -2
  222. package/node_modules/@turf/distance/dist/cjs/index.cjs +2 -2
  223. package/node_modules/@turf/distance/dist/cjs/index.cjs.map +1 -1
  224. package/node_modules/@turf/distance/dist/cjs/index.d.cts +1 -1
  225. package/node_modules/@turf/distance/dist/esm/index.d.ts +1 -1
  226. package/node_modules/@turf/distance/dist/esm/index.js +2 -2
  227. package/node_modules/@turf/distance/dist/esm/index.js.map +1 -1
  228. package/node_modules/@turf/distance/package.json +10 -10
  229. package/node_modules/@turf/distance-weight/dist/cjs/index.cjs +2 -2
  230. package/node_modules/@turf/distance-weight/dist/cjs/index.cjs.map +1 -1
  231. package/node_modules/@turf/distance-weight/dist/esm/index.js +2 -2
  232. package/node_modules/@turf/distance-weight/dist/esm/index.js.map +1 -1
  233. package/node_modules/@turf/distance-weight/package.json +12 -12
  234. package/node_modules/@turf/ellipse/README.md +2 -2
  235. package/node_modules/@turf/ellipse/dist/cjs/index.cjs +62 -39
  236. package/node_modules/@turf/ellipse/dist/cjs/index.cjs.map +1 -1
  237. package/node_modules/@turf/ellipse/dist/cjs/index.d.cts +1 -1
  238. package/node_modules/@turf/ellipse/dist/esm/index.d.ts +1 -1
  239. package/node_modules/@turf/ellipse/dist/esm/index.js +64 -41
  240. package/node_modules/@turf/ellipse/dist/esm/index.js.map +1 -1
  241. package/node_modules/@turf/ellipse/package.json +21 -18
  242. package/node_modules/@turf/envelope/dist/cjs/index.cjs +2 -2
  243. package/node_modules/@turf/envelope/dist/cjs/index.cjs.map +1 -1
  244. package/node_modules/@turf/envelope/dist/esm/index.js +2 -2
  245. package/node_modules/@turf/envelope/dist/esm/index.js.map +1 -1
  246. package/node_modules/@turf/envelope/package.json +10 -10
  247. package/node_modules/@turf/explode/dist/cjs/index.cjs +2 -2
  248. package/node_modules/@turf/explode/dist/cjs/index.cjs.map +1 -1
  249. package/node_modules/@turf/explode/dist/esm/index.js +2 -2
  250. package/node_modules/@turf/explode/dist/esm/index.js.map +1 -1
  251. package/node_modules/@turf/explode/package.json +10 -10
  252. package/node_modules/@turf/flatten/dist/cjs/index.cjs +2 -2
  253. package/node_modules/@turf/flatten/dist/cjs/index.cjs.map +1 -1
  254. package/node_modules/@turf/flatten/dist/esm/index.js +2 -2
  255. package/node_modules/@turf/flatten/dist/esm/index.js.map +1 -1
  256. package/node_modules/@turf/flatten/package.json +10 -10
  257. package/node_modules/@turf/flip/dist/cjs/index.cjs +2 -2
  258. package/node_modules/@turf/flip/dist/cjs/index.cjs.map +1 -1
  259. package/node_modules/@turf/flip/dist/esm/index.js +2 -2
  260. package/node_modules/@turf/flip/dist/esm/index.js.map +1 -1
  261. package/node_modules/@turf/flip/package.json +11 -11
  262. package/node_modules/@turf/geojson-rbush/dist/cjs/index.cjs +2 -2
  263. package/node_modules/@turf/geojson-rbush/dist/cjs/index.cjs.map +1 -1
  264. package/node_modules/@turf/geojson-rbush/dist/esm/index.js +2 -2
  265. package/node_modules/@turf/geojson-rbush/dist/esm/index.js.map +1 -1
  266. package/node_modules/@turf/geojson-rbush/package.json +12 -12
  267. package/node_modules/@turf/great-circle/dist/cjs/index.cjs +3 -3
  268. package/node_modules/@turf/great-circle/dist/cjs/index.cjs.map +1 -1
  269. package/node_modules/@turf/great-circle/dist/esm/index.js +3 -3
  270. package/node_modules/@turf/great-circle/dist/esm/index.js.map +1 -1
  271. package/node_modules/@turf/great-circle/package.json +10 -10
  272. package/node_modules/@turf/helpers/README.md +1 -1
  273. package/node_modules/@turf/helpers/dist/cjs/index.cjs.map +1 -1
  274. package/node_modules/@turf/helpers/dist/cjs/index.d.cts +1 -1
  275. package/node_modules/@turf/helpers/dist/esm/index.d.ts +1 -1
  276. package/node_modules/@turf/helpers/dist/esm/index.js.map +1 -1
  277. package/node_modules/@turf/helpers/package.json +7 -7
  278. package/node_modules/@turf/hex-grid/README.md +7 -5
  279. package/node_modules/@turf/hex-grid/dist/cjs/index.cjs +2 -2
  280. package/node_modules/@turf/hex-grid/dist/cjs/index.cjs.map +1 -1
  281. package/node_modules/@turf/hex-grid/dist/cjs/index.d.cts +4 -4
  282. package/node_modules/@turf/hex-grid/dist/esm/index.d.ts +4 -4
  283. package/node_modules/@turf/hex-grid/dist/esm/index.js +2 -2
  284. package/node_modules/@turf/hex-grid/dist/esm/index.js.map +1 -1
  285. package/node_modules/@turf/hex-grid/package.json +14 -14
  286. package/node_modules/@turf/interpolate/README.md +7 -5
  287. package/node_modules/@turf/interpolate/dist/cjs/index.cjs +2 -2
  288. package/node_modules/@turf/interpolate/dist/cjs/index.cjs.map +1 -1
  289. package/node_modules/@turf/interpolate/dist/esm/index.js +2 -2
  290. package/node_modules/@turf/interpolate/dist/esm/index.js.map +1 -1
  291. package/node_modules/@turf/interpolate/package.json +19 -19
  292. package/node_modules/@turf/intersect/dist/cjs/index.cjs +2 -2
  293. package/node_modules/@turf/intersect/dist/cjs/index.cjs.map +1 -1
  294. package/node_modules/@turf/intersect/dist/esm/index.js +2 -2
  295. package/node_modules/@turf/intersect/dist/esm/index.js.map +1 -1
  296. package/node_modules/@turf/intersect/package.json +11 -11
  297. package/node_modules/@turf/invariant/package.json +8 -8
  298. package/node_modules/@turf/isobands/README.md +1 -1
  299. package/node_modules/@turf/isobands/dist/cjs/index.cjs +313 -9
  300. package/node_modules/@turf/isobands/dist/cjs/index.cjs.map +1 -1
  301. package/node_modules/@turf/isobands/dist/cjs/index.d.cts +1 -1
  302. package/node_modules/@turf/isobands/dist/esm/index.d.ts +1 -1
  303. package/node_modules/@turf/isobands/dist/esm/index.js +313 -9
  304. package/node_modules/@turf/isobands/dist/esm/index.js.map +1 -1
  305. package/node_modules/@turf/isobands/package.json +22 -22
  306. package/node_modules/@turf/isolines/README.md +1 -1
  307. package/node_modules/@turf/isolines/dist/cjs/index.cjs +192 -7
  308. package/node_modules/@turf/isolines/dist/cjs/index.cjs.map +1 -1
  309. package/node_modules/@turf/isolines/dist/cjs/index.d.cts +1 -1
  310. package/node_modules/@turf/isolines/dist/esm/index.d.ts +1 -1
  311. package/node_modules/@turf/isolines/dist/esm/index.js +192 -7
  312. package/node_modules/@turf/isolines/dist/esm/index.js.map +1 -1
  313. package/node_modules/@turf/isolines/package.json +19 -19
  314. package/node_modules/@turf/kinks/dist/cjs/index.cjs +2 -2
  315. package/node_modules/@turf/kinks/dist/cjs/index.cjs.map +1 -1
  316. package/node_modules/@turf/kinks/dist/esm/index.js +2 -2
  317. package/node_modules/@turf/kinks/dist/esm/index.js.map +1 -1
  318. package/node_modules/@turf/kinks/package.json +10 -10
  319. package/node_modules/@turf/length/README.md +2 -2
  320. package/node_modules/@turf/length/dist/cjs/index.cjs +2 -2
  321. package/node_modules/@turf/length/dist/cjs/index.cjs.map +1 -1
  322. package/node_modules/@turf/length/dist/cjs/index.d.cts +1 -1
  323. package/node_modules/@turf/length/dist/esm/index.d.ts +1 -1
  324. package/node_modules/@turf/length/dist/esm/index.js +2 -2
  325. package/node_modules/@turf/length/dist/esm/index.js.map +1 -1
  326. package/node_modules/@turf/length/package.json +11 -11
  327. package/node_modules/@turf/line-arc/README.md +2 -2
  328. package/node_modules/@turf/line-arc/dist/cjs/index.cjs +2 -2
  329. package/node_modules/@turf/line-arc/dist/cjs/index.cjs.map +1 -1
  330. package/node_modules/@turf/line-arc/dist/cjs/index.d.cts +1 -1
  331. package/node_modules/@turf/line-arc/dist/esm/index.d.ts +1 -1
  332. package/node_modules/@turf/line-arc/dist/esm/index.js +2 -2
  333. package/node_modules/@turf/line-arc/dist/esm/index.js.map +1 -1
  334. package/node_modules/@turf/line-arc/package.json +12 -12
  335. package/node_modules/@turf/line-chunk/README.md +2 -2
  336. package/node_modules/@turf/line-chunk/dist/cjs/index.cjs +2 -2
  337. package/node_modules/@turf/line-chunk/dist/cjs/index.cjs.map +1 -1
  338. package/node_modules/@turf/line-chunk/dist/esm/index.js +2 -2
  339. package/node_modules/@turf/line-chunk/dist/esm/index.js.map +1 -1
  340. package/node_modules/@turf/line-chunk/package.json +12 -12
  341. package/node_modules/@turf/line-intersect/dist/cjs/index.cjs +2 -2
  342. package/node_modules/@turf/line-intersect/dist/cjs/index.cjs.map +1 -1
  343. package/node_modules/@turf/line-intersect/dist/esm/index.js +2 -2
  344. package/node_modules/@turf/line-intersect/dist/esm/index.js.map +1 -1
  345. package/node_modules/@turf/line-intersect/package.json +10 -10
  346. package/node_modules/@turf/line-offset/README.md +2 -2
  347. package/node_modules/@turf/line-offset/dist/cjs/index.cjs +2 -2
  348. package/node_modules/@turf/line-offset/dist/cjs/index.cjs.map +1 -1
  349. package/node_modules/@turf/line-offset/dist/esm/index.js +2 -2
  350. package/node_modules/@turf/line-offset/dist/esm/index.js.map +1 -1
  351. package/node_modules/@turf/line-offset/package.json +11 -11
  352. package/node_modules/@turf/line-overlap/dist/cjs/index.cjs +2 -2
  353. package/node_modules/@turf/line-overlap/dist/cjs/index.cjs.map +1 -1
  354. package/node_modules/@turf/line-overlap/dist/esm/index.js +2 -2
  355. package/node_modules/@turf/line-overlap/dist/esm/index.js.map +1 -1
  356. package/node_modules/@turf/line-overlap/package.json +15 -15
  357. package/node_modules/@turf/line-segment/dist/cjs/index.cjs +2 -2
  358. package/node_modules/@turf/line-segment/dist/cjs/index.cjs.map +1 -1
  359. package/node_modules/@turf/line-segment/dist/esm/index.js +2 -2
  360. package/node_modules/@turf/line-segment/dist/esm/index.js.map +1 -1
  361. package/node_modules/@turf/line-segment/package.json +11 -11
  362. package/node_modules/@turf/line-slice/dist/cjs/index.cjs +2 -2
  363. package/node_modules/@turf/line-slice/dist/cjs/index.cjs.map +1 -1
  364. package/node_modules/@turf/line-slice/dist/esm/index.js +2 -2
  365. package/node_modules/@turf/line-slice/dist/esm/index.js.map +1 -1
  366. package/node_modules/@turf/line-slice/package.json +11 -11
  367. package/node_modules/@turf/line-slice-along/README.md +2 -2
  368. package/node_modules/@turf/line-slice-along/dist/cjs/index.cjs +2 -2
  369. package/node_modules/@turf/line-slice-along/dist/cjs/index.cjs.map +1 -1
  370. package/node_modules/@turf/line-slice-along/dist/esm/index.js +2 -2
  371. package/node_modules/@turf/line-slice-along/dist/esm/index.js.map +1 -1
  372. package/node_modules/@turf/line-slice-along/package.json +12 -12
  373. package/node_modules/@turf/line-split/README.md +4 -1
  374. package/node_modules/@turf/line-split/dist/cjs/index.cjs +2 -7
  375. package/node_modules/@turf/line-split/dist/cjs/index.cjs.map +1 -1
  376. package/node_modules/@turf/line-split/dist/esm/index.js +2 -7
  377. package/node_modules/@turf/line-split/dist/esm/index.js.map +1 -1
  378. package/node_modules/@turf/line-split/package.json +16 -17
  379. package/node_modules/@turf/line-to-polygon/dist/cjs/index.cjs +2 -2
  380. package/node_modules/@turf/line-to-polygon/dist/cjs/index.cjs.map +1 -1
  381. package/node_modules/@turf/line-to-polygon/dist/esm/index.js +2 -2
  382. package/node_modules/@turf/line-to-polygon/dist/esm/index.js.map +1 -1
  383. package/node_modules/@turf/line-to-polygon/package.json +12 -12
  384. package/node_modules/@turf/mask/dist/cjs/index.cjs +2 -2
  385. package/node_modules/@turf/mask/dist/cjs/index.cjs.map +1 -1
  386. package/node_modules/@turf/mask/dist/esm/index.js +2 -2
  387. package/node_modules/@turf/mask/dist/esm/index.js.map +1 -1
  388. package/node_modules/@turf/mask/package.json +10 -10
  389. package/node_modules/@turf/meta/package.json +7 -7
  390. package/node_modules/@turf/midpoint/dist/cjs/index.cjs +2 -2
  391. package/node_modules/@turf/midpoint/dist/cjs/index.cjs.map +1 -1
  392. package/node_modules/@turf/midpoint/dist/esm/index.js +2 -2
  393. package/node_modules/@turf/midpoint/dist/esm/index.js.map +1 -1
  394. package/node_modules/@turf/midpoint/package.json +11 -11
  395. package/node_modules/@turf/moran-index/dist/cjs/index.cjs +2 -2
  396. package/node_modules/@turf/moran-index/dist/cjs/index.cjs.map +1 -1
  397. package/node_modules/@turf/moran-index/dist/esm/index.js +2 -2
  398. package/node_modules/@turf/moran-index/dist/esm/index.js.map +1 -1
  399. package/node_modules/@turf/moran-index/package.json +11 -11
  400. package/node_modules/@turf/nearest-neighbor-analysis/README.md +1 -1
  401. package/node_modules/@turf/nearest-neighbor-analysis/dist/cjs/index.cjs +2 -2
  402. package/node_modules/@turf/nearest-neighbor-analysis/dist/cjs/index.cjs.map +1 -1
  403. package/node_modules/@turf/nearest-neighbor-analysis/dist/cjs/index.d.cts +2 -2
  404. package/node_modules/@turf/nearest-neighbor-analysis/dist/esm/index.d.ts +2 -2
  405. package/node_modules/@turf/nearest-neighbor-analysis/dist/esm/index.js +2 -2
  406. package/node_modules/@turf/nearest-neighbor-analysis/dist/esm/index.js.map +1 -1
  407. package/node_modules/@turf/nearest-neighbor-analysis/package.json +17 -17
  408. package/node_modules/@turf/nearest-point/README.md +2 -2
  409. package/node_modules/@turf/nearest-point/dist/cjs/index.cjs +2 -2
  410. package/node_modules/@turf/nearest-point/dist/cjs/index.cjs.map +1 -1
  411. package/node_modules/@turf/nearest-point/dist/cjs/index.d.cts +6 -7
  412. package/node_modules/@turf/nearest-point/dist/esm/index.d.ts +6 -7
  413. package/node_modules/@turf/nearest-point/dist/esm/index.js +2 -2
  414. package/node_modules/@turf/nearest-point/dist/esm/index.js.map +1 -1
  415. package/node_modules/@turf/nearest-point/package.json +12 -12
  416. package/node_modules/@turf/nearest-point-on-line/README.md +6 -2
  417. package/node_modules/@turf/nearest-point-on-line/dist/cjs/index.cjs +45 -52
  418. package/node_modules/@turf/nearest-point-on-line/dist/cjs/index.cjs.map +1 -1
  419. package/node_modules/@turf/nearest-point-on-line/dist/cjs/index.d.cts +5 -1
  420. package/node_modules/@turf/nearest-point-on-line/dist/esm/index.d.ts +5 -1
  421. package/node_modules/@turf/nearest-point-on-line/dist/esm/index.js +45 -52
  422. package/node_modules/@turf/nearest-point-on-line/dist/esm/index.js.map +1 -1
  423. package/node_modules/@turf/nearest-point-on-line/package.json +20 -15
  424. package/node_modules/@turf/nearest-point-to-line/README.md +2 -2
  425. package/node_modules/@turf/nearest-point-to-line/dist/cjs/index.cjs +2 -2
  426. package/node_modules/@turf/nearest-point-to-line/dist/cjs/index.cjs.map +1 -1
  427. package/node_modules/@turf/nearest-point-to-line/dist/cjs/index.d.cts +1 -1
  428. package/node_modules/@turf/nearest-point-to-line/dist/esm/index.d.ts +1 -1
  429. package/node_modules/@turf/nearest-point-to-line/dist/esm/index.js +2 -2
  430. package/node_modules/@turf/nearest-point-to-line/dist/esm/index.js.map +1 -1
  431. package/node_modules/@turf/nearest-point-to-line/package.json +14 -14
  432. package/node_modules/@turf/planepoint/dist/cjs/index.cjs +2 -2
  433. package/node_modules/@turf/planepoint/dist/cjs/index.cjs.map +1 -1
  434. package/node_modules/@turf/planepoint/dist/esm/index.js +2 -2
  435. package/node_modules/@turf/planepoint/dist/esm/index.js.map +1 -1
  436. package/node_modules/@turf/planepoint/package.json +9 -9
  437. package/node_modules/@turf/point-grid/dist/cjs/index.cjs +2 -2
  438. package/node_modules/@turf/point-grid/dist/cjs/index.cjs.map +1 -1
  439. package/node_modules/@turf/point-grid/dist/esm/index.js +2 -2
  440. package/node_modules/@turf/point-grid/dist/esm/index.js.map +1 -1
  441. package/node_modules/@turf/point-grid/package.json +14 -14
  442. package/node_modules/@turf/point-on-feature/dist/cjs/index.cjs +2 -2
  443. package/node_modules/@turf/point-on-feature/dist/cjs/index.cjs.map +1 -1
  444. package/node_modules/@turf/point-on-feature/dist/esm/index.js +2 -2
  445. package/node_modules/@turf/point-on-feature/dist/esm/index.js.map +1 -1
  446. package/node_modules/@turf/point-on-feature/package.json +15 -15
  447. package/node_modules/@turf/point-to-line-distance/README.md +5 -4
  448. package/node_modules/@turf/point-to-line-distance/dist/cjs/index.cjs +2 -2
  449. package/node_modules/@turf/point-to-line-distance/dist/cjs/index.cjs.map +1 -1
  450. package/node_modules/@turf/point-to-line-distance/dist/cjs/index.d.cts +1 -2
  451. package/node_modules/@turf/point-to-line-distance/dist/esm/index.d.ts +1 -2
  452. package/node_modules/@turf/point-to-line-distance/dist/esm/index.js +2 -2
  453. package/node_modules/@turf/point-to-line-distance/dist/esm/index.js.map +1 -1
  454. package/node_modules/@turf/point-to-line-distance/package.json +18 -18
  455. package/node_modules/@turf/point-to-polygon-distance/dist/cjs/index.cjs +3 -3
  456. package/node_modules/@turf/point-to-polygon-distance/dist/cjs/index.cjs.map +1 -1
  457. package/node_modules/@turf/point-to-polygon-distance/dist/esm/index.js +3 -3
  458. package/node_modules/@turf/point-to-polygon-distance/dist/esm/index.js.map +1 -1
  459. package/node_modules/@turf/point-to-polygon-distance/package.json +14 -14
  460. package/node_modules/@turf/points-within-polygon/dist/cjs/index.cjs +2 -2
  461. package/node_modules/@turf/points-within-polygon/dist/cjs/index.cjs.map +1 -1
  462. package/node_modules/@turf/points-within-polygon/dist/esm/index.js +2 -2
  463. package/node_modules/@turf/points-within-polygon/dist/esm/index.js.map +1 -1
  464. package/node_modules/@turf/points-within-polygon/package.json +10 -10
  465. package/node_modules/@turf/polygon-smooth/README.md +1 -1
  466. package/node_modules/@turf/polygon-smooth/dist/cjs/index.cjs +2 -2
  467. package/node_modules/@turf/polygon-smooth/dist/cjs/index.cjs.map +1 -1
  468. package/node_modules/@turf/polygon-smooth/dist/cjs/index.d.cts +1 -1
  469. package/node_modules/@turf/polygon-smooth/dist/esm/index.d.ts +1 -1
  470. package/node_modules/@turf/polygon-smooth/dist/esm/index.js +2 -2
  471. package/node_modules/@turf/polygon-smooth/dist/esm/index.js.map +1 -1
  472. package/node_modules/@turf/polygon-smooth/package.json +11 -11
  473. package/node_modules/@turf/polygon-tangents/dist/cjs/index.cjs +2 -2
  474. package/node_modules/@turf/polygon-tangents/dist/cjs/index.cjs.map +1 -1
  475. package/node_modules/@turf/polygon-tangents/dist/esm/index.js +2 -2
  476. package/node_modules/@turf/polygon-tangents/dist/esm/index.js.map +1 -1
  477. package/node_modules/@turf/polygon-tangents/package.json +14 -14
  478. package/node_modules/@turf/polygon-to-line/dist/cjs/index.cjs +2 -2
  479. package/node_modules/@turf/polygon-to-line/dist/cjs/index.cjs.map +1 -1
  480. package/node_modules/@turf/polygon-to-line/dist/esm/index.js +2 -2
  481. package/node_modules/@turf/polygon-to-line/dist/esm/index.js.map +1 -1
  482. package/node_modules/@turf/polygon-to-line/package.json +10 -10
  483. package/node_modules/@turf/polygonize/dist/cjs/index.cjs +2 -2
  484. package/node_modules/@turf/polygonize/dist/cjs/index.cjs.map +1 -1
  485. package/node_modules/@turf/polygonize/dist/esm/index.js +2 -2
  486. package/node_modules/@turf/polygonize/dist/esm/index.js.map +1 -1
  487. package/node_modules/@turf/polygonize/package.json +13 -13
  488. package/node_modules/@turf/projection/package.json +12 -12
  489. package/node_modules/@turf/quadrat-analysis/dist/cjs/index.cjs +2 -2
  490. package/node_modules/@turf/quadrat-analysis/dist/cjs/index.cjs.map +1 -1
  491. package/node_modules/@turf/quadrat-analysis/dist/esm/index.js +2 -2
  492. package/node_modules/@turf/quadrat-analysis/dist/esm/index.js.map +1 -1
  493. package/node_modules/@turf/quadrat-analysis/package.json +18 -18
  494. package/node_modules/@turf/random/package.json +9 -9
  495. package/node_modules/@turf/rectangle-grid/dist/cjs/index.cjs +2 -2
  496. package/node_modules/@turf/rectangle-grid/dist/cjs/index.cjs.map +1 -1
  497. package/node_modules/@turf/rectangle-grid/dist/esm/index.js +2 -2
  498. package/node_modules/@turf/rectangle-grid/dist/esm/index.js.map +1 -1
  499. package/node_modules/@turf/rectangle-grid/package.json +13 -13
  500. package/node_modules/@turf/rewind/dist/cjs/index.cjs +2 -2
  501. package/node_modules/@turf/rewind/dist/cjs/index.cjs.map +1 -1
  502. package/node_modules/@turf/rewind/dist/esm/index.js +2 -2
  503. package/node_modules/@turf/rewind/dist/esm/index.js.map +1 -1
  504. package/node_modules/@turf/rewind/package.json +13 -13
  505. package/node_modules/@turf/rhumb-bearing/dist/cjs/index.cjs +2 -2
  506. package/node_modules/@turf/rhumb-bearing/dist/cjs/index.cjs.map +1 -1
  507. package/node_modules/@turf/rhumb-bearing/dist/esm/index.js +2 -2
  508. package/node_modules/@turf/rhumb-bearing/dist/esm/index.js.map +1 -1
  509. package/node_modules/@turf/rhumb-bearing/package.json +11 -11
  510. package/node_modules/@turf/rhumb-destination/README.md +2 -2
  511. package/node_modules/@turf/rhumb-destination/dist/cjs/index.cjs +2 -2
  512. package/node_modules/@turf/rhumb-destination/dist/cjs/index.cjs.map +1 -1
  513. package/node_modules/@turf/rhumb-destination/dist/cjs/index.d.cts +1 -1
  514. package/node_modules/@turf/rhumb-destination/dist/esm/index.d.ts +1 -1
  515. package/node_modules/@turf/rhumb-destination/dist/esm/index.js +2 -2
  516. package/node_modules/@turf/rhumb-destination/dist/esm/index.js.map +1 -1
  517. package/node_modules/@turf/rhumb-destination/package.json +11 -11
  518. package/node_modules/@turf/rhumb-distance/README.md +8 -9
  519. package/node_modules/@turf/rhumb-distance/dist/cjs/index.cjs +2 -2
  520. package/node_modules/@turf/rhumb-distance/dist/cjs/index.cjs.map +1 -1
  521. package/node_modules/@turf/rhumb-distance/dist/cjs/index.d.cts +2 -3
  522. package/node_modules/@turf/rhumb-distance/dist/esm/index.d.ts +2 -3
  523. package/node_modules/@turf/rhumb-distance/dist/esm/index.js +2 -2
  524. package/node_modules/@turf/rhumb-distance/dist/esm/index.js.map +1 -1
  525. package/node_modules/@turf/rhumb-distance/package.json +11 -11
  526. package/node_modules/@turf/sample/dist/cjs/index.cjs +2 -2
  527. package/node_modules/@turf/sample/dist/cjs/index.cjs.map +1 -1
  528. package/node_modules/@turf/sample/dist/esm/index.js +2 -2
  529. package/node_modules/@turf/sample/dist/esm/index.js.map +1 -1
  530. package/node_modules/@turf/sample/package.json +8 -8
  531. package/node_modules/@turf/sector/README.md +2 -2
  532. package/node_modules/@turf/sector/dist/cjs/index.cjs +2 -2
  533. package/node_modules/@turf/sector/dist/cjs/index.cjs.map +1 -1
  534. package/node_modules/@turf/sector/dist/cjs/index.d.cts +1 -1
  535. package/node_modules/@turf/sector/dist/esm/index.d.ts +1 -1
  536. package/node_modules/@turf/sector/dist/esm/index.js +2 -2
  537. package/node_modules/@turf/sector/dist/esm/index.js.map +1 -1
  538. package/node_modules/@turf/sector/package.json +14 -14
  539. package/node_modules/@turf/shortest-path/README.md +5 -3
  540. package/node_modules/@turf/shortest-path/dist/cjs/index.cjs +10 -14
  541. package/node_modules/@turf/shortest-path/dist/cjs/index.cjs.map +1 -1
  542. package/node_modules/@turf/shortest-path/dist/cjs/index.d.cts +1 -1
  543. package/node_modules/@turf/shortest-path/dist/esm/index.d.ts +1 -1
  544. package/node_modules/@turf/shortest-path/dist/esm/index.js +10 -14
  545. package/node_modules/@turf/shortest-path/dist/esm/index.js.map +1 -1
  546. package/node_modules/@turf/shortest-path/package.json +20 -19
  547. package/node_modules/@turf/simplify/README.md +13 -13
  548. package/node_modules/@turf/simplify/dist/cjs/index.cjs +6 -3
  549. package/node_modules/@turf/simplify/dist/cjs/index.cjs.map +1 -1
  550. package/node_modules/@turf/simplify/dist/cjs/index.d.cts +11 -12
  551. package/node_modules/@turf/simplify/dist/esm/index.d.ts +11 -12
  552. package/node_modules/@turf/simplify/dist/esm/index.js +6 -3
  553. package/node_modules/@turf/simplify/dist/esm/index.js.map +1 -1
  554. package/node_modules/@turf/simplify/package.json +13 -13
  555. package/node_modules/@turf/square/dist/cjs/index.cjs +2 -2
  556. package/node_modules/@turf/square/dist/cjs/index.cjs.map +1 -1
  557. package/node_modules/@turf/square/dist/esm/index.js +2 -2
  558. package/node_modules/@turf/square/dist/esm/index.js.map +1 -1
  559. package/node_modules/@turf/square/package.json +9 -9
  560. package/node_modules/@turf/square-grid/dist/cjs/index.cjs +2 -2
  561. package/node_modules/@turf/square-grid/dist/cjs/index.cjs.map +1 -1
  562. package/node_modules/@turf/square-grid/dist/esm/index.js +2 -2
  563. package/node_modules/@turf/square-grid/dist/esm/index.js.map +1 -1
  564. package/node_modules/@turf/square-grid/package.json +12 -12
  565. package/node_modules/@turf/standard-deviational-ellipse/dist/cjs/index.cjs +2 -2
  566. package/node_modules/@turf/standard-deviational-ellipse/dist/cjs/index.cjs.map +1 -1
  567. package/node_modules/@turf/standard-deviational-ellipse/dist/cjs/index.d.cts +1 -1
  568. package/node_modules/@turf/standard-deviational-ellipse/dist/esm/index.d.ts +1 -1
  569. package/node_modules/@turf/standard-deviational-ellipse/dist/esm/index.js +2 -2
  570. package/node_modules/@turf/standard-deviational-ellipse/dist/esm/index.js.map +1 -1
  571. package/node_modules/@turf/standard-deviational-ellipse/package.json +16 -16
  572. package/node_modules/@turf/tag/dist/cjs/index.cjs +2 -2
  573. package/node_modules/@turf/tag/dist/cjs/index.cjs.map +1 -1
  574. package/node_modules/@turf/tag/dist/esm/index.js +2 -2
  575. package/node_modules/@turf/tag/dist/esm/index.js.map +1 -1
  576. package/node_modules/@turf/tag/package.json +11 -11
  577. package/node_modules/@turf/tesselate/dist/cjs/index.cjs +2 -2
  578. package/node_modules/@turf/tesselate/dist/cjs/index.cjs.map +1 -1
  579. package/node_modules/@turf/tesselate/dist/esm/index.js +2 -2
  580. package/node_modules/@turf/tesselate/dist/esm/index.js.map +1 -1
  581. package/node_modules/@turf/tesselate/package.json +8 -8
  582. package/node_modules/@turf/tin/dist/cjs/index.cjs +2 -2
  583. package/node_modules/@turf/tin/dist/cjs/index.cjs.map +1 -1
  584. package/node_modules/@turf/tin/dist/esm/index.js +2 -2
  585. package/node_modules/@turf/tin/dist/esm/index.js.map +1 -1
  586. package/node_modules/@turf/tin/package.json +8 -8
  587. package/node_modules/@turf/transform-rotate/dist/cjs/index.cjs +2 -2
  588. package/node_modules/@turf/transform-rotate/dist/cjs/index.cjs.map +1 -1
  589. package/node_modules/@turf/transform-rotate/dist/esm/index.js +2 -2
  590. package/node_modules/@turf/transform-rotate/dist/esm/index.js.map +1 -1
  591. package/node_modules/@turf/transform-rotate/package.json +17 -17
  592. package/node_modules/@turf/transform-scale/dist/cjs/index.cjs +2 -2
  593. package/node_modules/@turf/transform-scale/dist/cjs/index.cjs.map +1 -1
  594. package/node_modules/@turf/transform-scale/dist/esm/index.js +2 -2
  595. package/node_modules/@turf/transform-scale/dist/esm/index.js.map +1 -1
  596. package/node_modules/@turf/transform-scale/package.json +21 -21
  597. package/node_modules/@turf/transform-translate/README.md +8 -3
  598. package/node_modules/@turf/transform-translate/dist/cjs/index.cjs +2 -2
  599. package/node_modules/@turf/transform-translate/dist/cjs/index.cjs.map +1 -1
  600. package/node_modules/@turf/transform-translate/dist/cjs/index.d.cts +4 -1
  601. package/node_modules/@turf/transform-translate/dist/esm/index.d.ts +4 -1
  602. package/node_modules/@turf/transform-translate/dist/esm/index.js +2 -2
  603. package/node_modules/@turf/transform-translate/dist/esm/index.js.map +1 -1
  604. package/node_modules/@turf/transform-translate/package.json +14 -14
  605. package/node_modules/@turf/triangle-grid/dist/cjs/index.cjs +2 -2
  606. package/node_modules/@turf/triangle-grid/dist/cjs/index.cjs.map +1 -1
  607. package/node_modules/@turf/triangle-grid/dist/esm/index.js +2 -2
  608. package/node_modules/@turf/triangle-grid/dist/esm/index.js.map +1 -1
  609. package/node_modules/@turf/triangle-grid/package.json +13 -13
  610. package/node_modules/@turf/truncate/dist/cjs/index.cjs +2 -2
  611. package/node_modules/@turf/truncate/dist/cjs/index.cjs.map +1 -1
  612. package/node_modules/@turf/truncate/dist/esm/index.js +2 -2
  613. package/node_modules/@turf/truncate/dist/esm/index.js.map +1 -1
  614. package/node_modules/@turf/truncate/package.json +10 -10
  615. package/node_modules/@turf/turf/package.json +125 -125
  616. package/node_modules/@turf/turf/turf.min.js +2 -11
  617. package/node_modules/@turf/union/dist/cjs/index.cjs +2 -2
  618. package/node_modules/@turf/union/dist/cjs/index.cjs.map +1 -1
  619. package/node_modules/@turf/union/dist/esm/index.js +2 -2
  620. package/node_modules/@turf/union/dist/esm/index.js.map +1 -1
  621. package/node_modules/@turf/union/package.json +11 -11
  622. package/node_modules/@turf/unkink-polygon/dist/cjs/index.cjs +2 -2
  623. package/node_modules/@turf/unkink-polygon/dist/cjs/index.cjs.map +1 -1
  624. package/node_modules/@turf/unkink-polygon/dist/esm/index.js +2 -2
  625. package/node_modules/@turf/unkink-polygon/dist/esm/index.js.map +1 -1
  626. package/node_modules/@turf/unkink-polygon/package.json +13 -13
  627. package/node_modules/@turf/voronoi/dist/cjs/index.cjs +2 -2
  628. package/node_modules/@turf/voronoi/dist/cjs/index.cjs.map +1 -1
  629. package/node_modules/@turf/voronoi/dist/esm/index.js +2 -2
  630. package/node_modules/@turf/voronoi/dist/esm/index.js.map +1 -1
  631. package/node_modules/@turf/voronoi/package.json +12 -12
  632. package/node_modules/@types/node/README.md +2 -2
  633. package/node_modules/@types/node/assert/strict.d.ts +105 -2
  634. package/node_modules/@types/node/assert.d.ts +162 -101
  635. package/node_modules/@types/node/async_hooks.d.ts +26 -6
  636. package/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  637. package/node_modules/@types/node/buffer.d.ts +15 -7
  638. package/node_modules/@types/node/child_process.d.ts +91 -164
  639. package/node_modules/@types/node/cluster.d.ts +19 -20
  640. package/node_modules/@types/node/console.d.ts +19 -18
  641. package/node_modules/@types/node/crypto.d.ts +1264 -356
  642. package/node_modules/@types/node/dgram.d.ts +10 -9
  643. package/node_modules/@types/node/diagnostics_channel.d.ts +18 -15
  644. package/node_modules/@types/node/dns/promises.d.ts +36 -9
  645. package/node_modules/@types/node/dns.d.ts +95 -37
  646. package/node_modules/@types/node/domain.d.ts +1 -1
  647. package/node_modules/@types/node/events.d.ts +81 -36
  648. package/node_modules/@types/node/fs/promises.d.ts +104 -59
  649. package/node_modules/@types/node/fs.d.ts +414 -137
  650. package/node_modules/@types/node/globals.d.ts +149 -350
  651. package/node_modules/@types/node/globals.typedarray.d.ts +20 -0
  652. package/node_modules/@types/node/http.d.ts +191 -37
  653. package/node_modules/@types/node/http2.d.ts +266 -67
  654. package/node_modules/@types/node/https.d.ts +97 -63
  655. package/node_modules/@types/node/index.d.ts +16 -7
  656. package/node_modules/@types/node/inspector.d.ts +206 -3931
  657. package/node_modules/@types/node/inspector.generated.d.ts +4233 -0
  658. package/node_modules/@types/node/module.d.ts +153 -31
  659. package/node_modules/@types/node/net.d.ts +36 -17
  660. package/node_modules/@types/node/os.d.ts +22 -10
  661. package/node_modules/@types/node/package.json +14 -84
  662. package/node_modules/@types/node/path.d.ts +1 -1
  663. package/node_modules/@types/node/perf_hooks.d.ts +30 -18
  664. package/node_modules/@types/node/process.d.ts +40 -34
  665. package/node_modules/@types/node/punycode.d.ts +1 -1
  666. package/node_modules/@types/node/querystring.d.ts +1 -1
  667. package/node_modules/@types/node/readline/promises.d.ts +1 -2
  668. package/node_modules/@types/node/readline.d.ts +13 -13
  669. package/node_modules/@types/node/repl.d.ts +25 -17
  670. package/node_modules/@types/node/sea.d.ts +10 -1
  671. package/node_modules/@types/node/sqlite.d.ts +438 -9
  672. package/node_modules/@types/node/stream/consumers.d.ts +2 -2
  673. package/node_modules/@types/node/stream/web.d.ts +13 -54
  674. package/node_modules/@types/node/stream.d.ts +68 -47
  675. package/node_modules/@types/node/string_decoder.d.ts +3 -3
  676. package/node_modules/@types/node/test.d.ts +2034 -1975
  677. package/node_modules/@types/node/timers/promises.d.ts +1 -1
  678. package/node_modules/@types/node/timers.d.ts +1 -3
  679. package/node_modules/@types/node/tls.d.ts +124 -114
  680. package/node_modules/@types/node/trace_events.d.ts +6 -6
  681. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  682. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  683. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +17 -0
  684. package/node_modules/@types/node/ts5.6/index.d.ts +18 -7
  685. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  686. package/node_modules/@types/node/ts5.7/index.d.ts +103 -0
  687. package/node_modules/@types/node/tty.d.ts +1 -1
  688. package/node_modules/@types/node/url.d.ts +119 -34
  689. package/node_modules/@types/node/util.d.ts +46 -305
  690. package/node_modules/@types/node/v8.d.ts +100 -37
  691. package/node_modules/@types/node/vm.d.ts +299 -110
  692. package/node_modules/@types/node/wasi.d.ts +23 -2
  693. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  694. package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
  695. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  696. package/node_modules/@types/node/web-globals/events.d.ts +97 -0
  697. package/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  698. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  699. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  700. package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
  701. package/node_modules/@types/node/worker_threads.d.ts +225 -75
  702. package/node_modules/@types/node/zlib.d.ts +44 -33
  703. package/node_modules/axios/CHANGELOG.md +410 -288
  704. package/node_modules/axios/README.md +156 -51
  705. package/node_modules/axios/dist/axios.js +471 -330
  706. package/node_modules/axios/dist/axios.js.map +1 -1
  707. package/node_modules/axios/dist/axios.min.js +2 -2
  708. package/node_modules/axios/dist/axios.min.js.map +1 -1
  709. package/node_modules/axios/dist/browser/axios.cjs +407 -265
  710. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  711. package/node_modules/axios/dist/esm/axios.js +407 -265
  712. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  713. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  714. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  715. package/node_modules/axios/dist/node/axios.cjs +723 -305
  716. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  717. package/node_modules/axios/index.d.cts +16 -5
  718. package/node_modules/axios/index.d.ts +17 -4
  719. package/node_modules/axios/lib/adapters/adapters.js +89 -42
  720. package/node_modules/axios/lib/adapters/fetch.js +221 -162
  721. package/node_modules/axios/lib/adapters/http.js +242 -42
  722. package/node_modules/axios/lib/adapters/xhr.js +11 -8
  723. package/node_modules/axios/lib/core/Axios.js +0 -2
  724. package/node_modules/axios/lib/core/AxiosError.js +10 -3
  725. package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
  726. package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
  727. package/node_modules/axios/lib/core/mergeConfig.js +4 -4
  728. package/node_modules/axios/lib/defaults/index.js +1 -1
  729. package/node_modules/axios/lib/env/data.js +1 -1
  730. package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
  731. package/node_modules/axios/lib/helpers/bind.js +7 -0
  732. package/node_modules/axios/lib/helpers/buildURL.js +1 -3
  733. package/node_modules/axios/lib/helpers/cookies.js +24 -13
  734. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
  735. package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
  736. package/node_modules/axios/lib/utils.js +5 -3
  737. package/node_modules/axios/package.json +26 -15
  738. package/node_modules/bignumber.js/CHANGELOG.md +6 -1
  739. package/node_modules/bignumber.js/README.md +5 -4
  740. package/node_modules/bignumber.js/bignumber.js +2 -2
  741. package/node_modules/bignumber.js/bignumber.mjs +2 -2
  742. package/node_modules/bignumber.js/package.json +1 -1
  743. package/node_modules/fast-xml-parser/CHANGELOG.md +9 -0
  744. package/node_modules/fast-xml-parser/README.md +1 -1
  745. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  746. package/node_modules/fast-xml-parser/lib/fxp.d.cts +1 -1
  747. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  748. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  749. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  750. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  751. package/node_modules/fast-xml-parser/package.json +1 -1
  752. package/node_modules/fast-xml-parser/src/fxp.d.ts +2 -2
  753. package/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +1 -1
  754. package/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +4 -4
  755. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +297 -287
  756. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +24 -12
  757. package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +4 -4
  758. package/node_modules/follow-redirects/package.json +1 -1
  759. package/node_modules/form-data/CHANGELOG.md +60 -2
  760. package/node_modules/form-data/README.md +4 -4
  761. package/node_modules/form-data/lib/form_data.js +2 -2
  762. package/node_modules/form-data/package.json +4 -4
  763. package/node_modules/protobufjs/dist/light/protobuf.js +2 -2
  764. package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
  765. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  766. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  767. package/node_modules/protobufjs/dist/protobuf.js +2 -2
  768. package/node_modules/protobufjs/dist/protobuf.min.js +2 -2
  769. package/node_modules/protobufjs/google/protobuf/descriptor.json +2 -2
  770. package/node_modules/protobufjs/google/protobuf/descriptor.proto +2 -1
  771. package/node_modules/protobufjs/package.json +1 -1
  772. package/node_modules/undici-types/agent.d.ts +12 -11
  773. package/node_modules/undici-types/api.d.ts +24 -24
  774. package/node_modules/undici-types/balanced-pool.d.ts +11 -11
  775. package/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  776. package/node_modules/undici-types/client-stats.d.ts +15 -0
  777. package/node_modules/undici-types/client.d.ts +18 -18
  778. package/node_modules/undici-types/cookies.d.ts +2 -0
  779. package/node_modules/undici-types/diagnostics-channel.d.ts +18 -10
  780. package/node_modules/undici-types/dispatcher.d.ts +119 -99
  781. package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
  782. package/node_modules/undici-types/errors.d.ts +66 -54
  783. package/node_modules/undici-types/eventsource.d.ts +9 -4
  784. package/node_modules/undici-types/fetch.d.ts +18 -16
  785. package/node_modules/undici-types/formdata.d.ts +7 -7
  786. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  787. package/node_modules/undici-types/global-origin.d.ts +5 -5
  788. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  789. package/node_modules/undici-types/handlers.d.ts +8 -8
  790. package/node_modules/undici-types/header.d.ts +157 -1
  791. package/node_modules/undici-types/index.d.ts +56 -47
  792. package/node_modules/undici-types/interceptors.d.ts +30 -8
  793. package/node_modules/undici-types/mock-agent.d.ts +36 -18
  794. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  795. package/node_modules/undici-types/mock-client.d.ts +6 -4
  796. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  797. package/node_modules/undici-types/mock-interceptor.d.ts +21 -20
  798. package/node_modules/undici-types/mock-pool.d.ts +6 -4
  799. package/node_modules/undici-types/package.json +1 -1
  800. package/node_modules/undici-types/patch.d.ts +0 -4
  801. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  802. package/node_modules/undici-types/pool.d.ts +14 -12
  803. package/node_modules/undici-types/proxy-agent.d.ts +5 -4
  804. package/node_modules/undici-types/readable.d.ts +18 -15
  805. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  806. package/node_modules/undici-types/retry-handler.d.ts +19 -10
  807. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  808. package/node_modules/undici-types/util.d.ts +3 -3
  809. package/node_modules/undici-types/utility.d.ts +7 -0
  810. package/node_modules/undici-types/webidl.d.ts +142 -29
  811. package/node_modules/undici-types/websocket.d.ts +38 -2
  812. package/node_modules/uuid/README.md +8 -19
  813. package/node_modules/uuid/dist/{esm-browser/uuid-bin.js → uuid-bin.js} +1 -1
  814. package/node_modules/uuid/dist/{esm-browser/v4.js → v4.js} +7 -4
  815. package/node_modules/uuid/{dist/esm → dist-node}/md5.js +1 -1
  816. package/node_modules/uuid/dist-node/native.js +2 -0
  817. package/node_modules/uuid/{dist/esm → dist-node}/rng.js +1 -1
  818. package/node_modules/uuid/{dist/esm → dist-node}/sha1.js +1 -1
  819. package/node_modules/uuid/{dist/esm → dist-node}/uuid-bin.js +1 -1
  820. package/node_modules/uuid/{dist/esm → dist-node}/v4.js +7 -4
  821. package/node_modules/uuid/package.json +28 -41
  822. package/package.json +7 -7
  823. package/tak-registration.bak +557 -0
  824. package/tak-registration.js +19 -19
  825. package/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  826. package/node_modules/@types/node/compatibility/index.d.ts +0 -9
  827. package/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  828. package/node_modules/@types/node/dom-events.d.ts +0 -124
  829. package/node_modules/marchingsquares/.eslintrc.json +0 -81
  830. package/node_modules/marchingsquares/Changelog.md +0 -81
  831. package/node_modules/marchingsquares/LICENSE.md +0 -37
  832. package/node_modules/marchingsquares/README.md +0 -312
  833. package/node_modules/marchingsquares/VERSION +0 -1
  834. package/node_modules/marchingsquares/agpl-3.0.txt +0 -661
  835. package/node_modules/marchingsquares/dist/marchingsquares-esm.js +0 -3410
  836. package/node_modules/marchingsquares/dist/marchingsquares-isobands.js +0 -2513
  837. package/node_modules/marchingsquares/dist/marchingsquares-isobands.min.js +0 -9
  838. package/node_modules/marchingsquares/dist/marchingsquares-isocontours.js +0 -1209
  839. package/node_modules/marchingsquares/dist/marchingsquares-isocontours.min.js +0 -9
  840. package/node_modules/marchingsquares/dist/marchingsquares-isolines.js +0 -1209
  841. package/node_modules/marchingsquares/dist/marchingsquares-isolines.min.js +0 -9
  842. package/node_modules/marchingsquares/dist/marchingsquares.js +0 -3424
  843. package/node_modules/marchingsquares/dist/marchingsquares.min.js +0 -9
  844. package/node_modules/marchingsquares/examples/contour/index.html +0 -117
  845. package/node_modules/marchingsquares/examples/editor/draw-lines.js +0 -60
  846. package/node_modules/marchingsquares/examples/editor/index.html +0 -39
  847. package/node_modules/marchingsquares/examples/editor/script.js +0 -110
  848. package/node_modules/marchingsquares/examples/editor/styles.css +0 -37
  849. package/node_modules/marchingsquares/examples/require/app.js +0 -9
  850. package/node_modules/marchingsquares/examples/require/index.html +0 -14
  851. package/node_modules/marchingsquares/examples/require/main.js +0 -98
  852. package/node_modules/marchingsquares/examples/require/require.js +0 -5
  853. package/node_modules/marchingsquares/examples/simple/index.html +0 -115
  854. package/node_modules/marchingsquares/examples/vienna/index.html +0 -229
  855. package/node_modules/marchingsquares/examples/vienna/vienna_basin.png +0 -0
  856. package/node_modules/marchingsquares/examples/vienna/vienna_data.js +0 -514
  857. package/node_modules/marchingsquares/package.json +0 -47
  858. package/node_modules/marchingsquares/rollup.config.js +0 -122
  859. package/node_modules/marchingsquares/rollup.config.test.js +0 -14
  860. package/node_modules/marchingsquares/src/interpolation.js +0 -84
  861. package/node_modules/marchingsquares/src/isobands.js +0 -1883
  862. package/node_modules/marchingsquares/src/isolines.js +0 -638
  863. package/node_modules/marchingsquares/src/main.js +0 -4
  864. package/node_modules/marchingsquares/src/options.js +0 -80
  865. package/node_modules/marchingsquares/src/polygons.js +0 -531
  866. package/node_modules/marchingsquares/src/quadtree.js +0 -228
  867. package/node_modules/marchingsquares/test/data/in/isoBands-example-case.json +0 -14
  868. package/node_modules/marchingsquares/test/data/in/isoBands-issue#6-0_3.json +0 -12
  869. package/node_modules/marchingsquares/test/data/in/isoBands-issue#6-3_5.json +0 -12
  870. package/node_modules/marchingsquares/test/data/in/isoBands-issue#6-5_7.json +0 -12
  871. package/node_modules/marchingsquares/test/data/in/isoBands-minimal.json +0 -8
  872. package/node_modules/marchingsquares/test/data/in/isoBands-simple.json +0 -9
  873. package/node_modules/marchingsquares/test/data/in/isoLines-example-case.json +0 -13
  874. package/node_modules/marchingsquares/test/data/in/isoLines-simple.json +0 -8
  875. package/node_modules/marchingsquares/test/data/out/isoBands-example-case.json +0 -72
  876. package/node_modules/marchingsquares/test/data/out/isoBands-issue#6-0_3.json +0 -9
  877. package/node_modules/marchingsquares/test/data/out/isoBands-issue#6-3_5.json +0 -36
  878. package/node_modules/marchingsquares/test/data/out/isoBands-issue#6-5_7.json +0 -8
  879. package/node_modules/marchingsquares/test/data/out/isoBands-minimal.json +0 -10
  880. package/node_modules/marchingsquares/test/data/out/isoBands-simple.json +0 -25
  881. package/node_modules/marchingsquares/test/data/out/isoLines-example-case.json +0 -481
  882. package/node_modules/marchingsquares/test/data/out/isoLines-simple.json +0 -8
  883. package/node_modules/marchingsquares/test/test.js +0 -152
  884. package/node_modules/undici-types/file.d.ts +0 -39
  885. package/node_modules/undici-types/filereader.d.ts +0 -54
  886. package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
  887. package/node_modules/uuid/dist/cjs/index.js +0 -31
  888. package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
  889. package/node_modules/uuid/dist/cjs/max.js +0 -3
  890. package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
  891. package/node_modules/uuid/dist/cjs/md5.js +0 -13
  892. package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
  893. package/node_modules/uuid/dist/cjs/native.js +0 -4
  894. package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
  895. package/node_modules/uuid/dist/cjs/nil.js +0 -3
  896. package/node_modules/uuid/dist/cjs/package.json +0 -1
  897. package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
  898. package/node_modules/uuid/dist/cjs/parse.js +0 -11
  899. package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
  900. package/node_modules/uuid/dist/cjs/regex.js +0 -3
  901. package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
  902. package/node_modules/uuid/dist/cjs/rng.js +0 -13
  903. package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
  904. package/node_modules/uuid/dist/cjs/sha1.js +0 -13
  905. package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
  906. package/node_modules/uuid/dist/cjs/stringify.js +0 -39
  907. package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
  908. package/node_modules/uuid/dist/cjs/types.js +0 -2
  909. package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
  910. package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
  911. package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
  912. package/node_modules/uuid/dist/cjs/v1.js +0 -87
  913. package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
  914. package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
  915. package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
  916. package/node_modules/uuid/dist/cjs/v3.js +0 -14
  917. package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
  918. package/node_modules/uuid/dist/cjs/v35.js +0 -41
  919. package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
  920. package/node_modules/uuid/dist/cjs/v4.js +0 -29
  921. package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
  922. package/node_modules/uuid/dist/cjs/v5.js +0 -14
  923. package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
  924. package/node_modules/uuid/dist/cjs/v6.js +0 -19
  925. package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
  926. package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
  927. package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
  928. package/node_modules/uuid/dist/cjs/v7.js +0 -69
  929. package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
  930. package/node_modules/uuid/dist/cjs/validate.js +0 -7
  931. package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
  932. package/node_modules/uuid/dist/cjs/version.js +0 -10
  933. package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
  934. package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
  935. package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
  936. package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
  937. package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
  938. package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
  939. package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
  940. package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
  941. package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
  942. package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
  943. package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
  944. package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
  945. package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
  946. package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
  947. package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
  948. package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
  949. package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
  950. package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
  951. package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
  952. package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
  953. package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
  954. package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
  955. package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
  956. package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
  957. package/node_modules/uuid/dist/esm/index.d.ts +0 -15
  958. package/node_modules/uuid/dist/esm/max.d.ts +0 -2
  959. package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
  960. package/node_modules/uuid/dist/esm/native.d.ts +0 -6
  961. package/node_modules/uuid/dist/esm/native.js +0 -2
  962. package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
  963. package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
  964. package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
  965. package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
  966. package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
  967. package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
  968. package/node_modules/uuid/dist/esm/types.d.ts +0 -21
  969. package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
  970. package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
  971. package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
  972. package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
  973. package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
  974. package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
  975. package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
  976. package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
  977. package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
  978. package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
  979. package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
  980. package/node_modules/uuid/dist/esm/version.d.ts +0 -2
  981. package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
  982. package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
  983. package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
  984. package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
  985. package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
  986. package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
  987. package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
  988. package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
  989. package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
  990. package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
  991. package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
  992. package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
  993. package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
  994. package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
  995. package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
  996. package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
  997. package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
  998. package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
  999. package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
  1000. package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
  1001. package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
  1002. package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
  1003. package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
  1004. /package/node_modules/uuid/dist/{cjs-browser/index.d.ts → index.d.ts} +0 -0
  1005. /package/node_modules/uuid/dist/{esm/index.js → index.js} +0 -0
  1006. /package/node_modules/uuid/dist/{cjs-browser/max.d.ts → max.d.ts} +0 -0
  1007. /package/node_modules/uuid/dist/{esm/max.js → max.js} +0 -0
  1008. /package/node_modules/uuid/dist/{cjs-browser/md5.d.ts → md5.d.ts} +0 -0
  1009. /package/node_modules/uuid/dist/{esm-browser/md5.js → md5.js} +0 -0
  1010. /package/node_modules/uuid/dist/{cjs-browser/native.d.ts → native.d.ts} +0 -0
  1011. /package/node_modules/uuid/dist/{esm-browser/native.js → native.js} +0 -0
  1012. /package/node_modules/uuid/dist/{cjs-browser/nil.d.ts → nil.d.ts} +0 -0
  1013. /package/node_modules/uuid/dist/{esm/nil.js → nil.js} +0 -0
  1014. /package/node_modules/uuid/dist/{cjs-browser/parse.d.ts → parse.d.ts} +0 -0
  1015. /package/node_modules/uuid/dist/{esm/parse.js → parse.js} +0 -0
  1016. /package/node_modules/uuid/dist/{cjs-browser/regex.d.ts → regex.d.ts} +0 -0
  1017. /package/node_modules/uuid/dist/{esm/regex.js → regex.js} +0 -0
  1018. /package/node_modules/uuid/dist/{cjs-browser/rng.d.ts → rng.d.ts} +0 -0
  1019. /package/node_modules/uuid/dist/{esm-browser/rng.js → rng.js} +0 -0
  1020. /package/node_modules/uuid/dist/{cjs-browser/sha1.d.ts → sha1.d.ts} +0 -0
  1021. /package/node_modules/uuid/dist/{esm-browser/sha1.js → sha1.js} +0 -0
  1022. /package/node_modules/uuid/dist/{cjs-browser/stringify.d.ts → stringify.d.ts} +0 -0
  1023. /package/node_modules/uuid/dist/{esm/stringify.js → stringify.js} +0 -0
  1024. /package/node_modules/uuid/dist/{cjs-browser/types.d.ts → types.d.ts} +0 -0
  1025. /package/node_modules/uuid/dist/{esm/types.js → types.js} +0 -0
  1026. /package/node_modules/uuid/dist/{cjs-browser/uuid-bin.d.ts → uuid-bin.d.ts} +0 -0
  1027. /package/node_modules/uuid/dist/{cjs-browser/v1.d.ts → v1.d.ts} +0 -0
  1028. /package/node_modules/uuid/dist/{esm/v1.js → v1.js} +0 -0
  1029. /package/node_modules/uuid/dist/{cjs-browser/v1ToV6.d.ts → v1ToV6.d.ts} +0 -0
  1030. /package/node_modules/uuid/dist/{esm/v1ToV6.js → v1ToV6.js} +0 -0
  1031. /package/node_modules/uuid/dist/{cjs-browser/v3.d.ts → v3.d.ts} +0 -0
  1032. /package/node_modules/uuid/dist/{esm/v3.js → v3.js} +0 -0
  1033. /package/node_modules/uuid/dist/{cjs-browser/v35.d.ts → v35.d.ts} +0 -0
  1034. /package/node_modules/uuid/dist/{esm/v35.js → v35.js} +0 -0
  1035. /package/node_modules/uuid/dist/{cjs-browser/v4.d.ts → v4.d.ts} +0 -0
  1036. /package/node_modules/uuid/dist/{cjs-browser/v5.d.ts → v5.d.ts} +0 -0
  1037. /package/node_modules/uuid/dist/{esm/v5.js → v5.js} +0 -0
  1038. /package/node_modules/uuid/dist/{cjs-browser/v6.d.ts → v6.d.ts} +0 -0
  1039. /package/node_modules/uuid/dist/{esm/v6.js → v6.js} +0 -0
  1040. /package/node_modules/uuid/dist/{cjs-browser/v6ToV1.d.ts → v6ToV1.d.ts} +0 -0
  1041. /package/node_modules/uuid/dist/{esm/v6ToV1.js → v6ToV1.js} +0 -0
  1042. /package/node_modules/uuid/dist/{cjs-browser/v7.d.ts → v7.d.ts} +0 -0
  1043. /package/node_modules/uuid/dist/{esm/v7.js → v7.js} +0 -0
  1044. /package/node_modules/uuid/dist/{cjs-browser/validate.d.ts → validate.d.ts} +0 -0
  1045. /package/node_modules/uuid/dist/{esm/validate.js → validate.js} +0 -0
  1046. /package/node_modules/uuid/dist/{cjs-browser/version.d.ts → version.d.ts} +0 -0
  1047. /package/node_modules/uuid/dist/{esm/version.js → version.js} +0 -0
  1048. /package/node_modules/uuid/{dist/esm → dist-node}/bin/uuid +0 -0
  1049. /package/node_modules/uuid/{dist/esm-browser → dist-node}/index.js +0 -0
  1050. /package/node_modules/uuid/{dist/esm-browser → dist-node}/max.js +0 -0
  1051. /package/node_modules/uuid/{dist/esm-browser → dist-node}/nil.js +0 -0
  1052. /package/node_modules/uuid/{dist/esm-browser → dist-node}/parse.js +0 -0
  1053. /package/node_modules/uuid/{dist/esm-browser → dist-node}/regex.js +0 -0
  1054. /package/node_modules/uuid/{dist/esm-browser → dist-node}/stringify.js +0 -0
  1055. /package/node_modules/uuid/{dist/esm-browser → dist-node}/types.js +0 -0
  1056. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1.js +0 -0
  1057. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1ToV6.js +0 -0
  1058. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v3.js +0 -0
  1059. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v35.js +0 -0
  1060. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v5.js +0 -0
  1061. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6.js +0 -0
  1062. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6ToV1.js +0 -0
  1063. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v7.js +0 -0
  1064. /package/node_modules/uuid/{dist/esm-browser → dist-node}/validate.js +0 -0
  1065. /package/node_modules/uuid/{dist/esm-browser → dist-node}/version.js +0 -0
@@ -1,2513 +0,0 @@
1
- /*!
2
- * MarchingSquaresJS
3
- * version 1.3.3
4
- * https://github.com/RaumZeit/MarchingSquares.js
5
- *
6
- * @license GNU Affero General Public License.
7
- * Copyright (c) 2015-2019 Ronny Lorenz <ronny@tbi.univie.ac.at>
8
- */
9
-
10
-
11
- (function (global, factory) {
12
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
13
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
14
- (factory((global.MarchingSquaresJS = global.MarchingSquaresJS || {})));
15
- }(this, (function (exports) { 'use strict';
16
-
17
- /*
18
- * Compute the distance of a pair of values ('v0', 'v1') from 'a' through linear interpolation
19
- * between the values of 'a' and 'b'
20
- *
21
- * This function assumes that exactly one value, 'v0' or 'v1', is actually located
22
- * between 'a' and 'b', and choses the right one automagically
23
- *
24
- * Note, that we assume that 'a' and 'b' have unit distance (i.e. 1)
25
- */
26
- function linear_ab(a, b, v0, v1) {
27
- var tmp;
28
-
29
- if (v0 > v1) {
30
- tmp = v0;
31
- v0 = v1;
32
- v1 = tmp;
33
- }
34
-
35
- if (a < b) {
36
- if (a < v0)
37
- return (v0 - a) / (b - a);
38
- else
39
- return (v1 - a) / (b - a);
40
- } else if (a > v1) {
41
- return (a - v1) / (a - b);
42
- }
43
-
44
- return (a - v0) / (a - b);
45
- }
46
-
47
-
48
- /*
49
- * Compute the distance of a pair of values ('v0', 'v1') from 'a' through linear interpolation
50
- * between the values of 'a' and 'b'
51
- *
52
- * This function automagically choses the value 'vN' that is closer to 'a'
53
- *
54
- * Note, that we assume that 'a' and 'b' have unit distance (i.e. 1)
55
- */
56
- function linear_a(a, b, minV, maxV) {
57
- if (a < b)
58
- return (minV - a) / (b - a);
59
-
60
- return (a - maxV) / (a - b);
61
- }
62
-
63
-
64
- /*
65
- * Compute the distance of a pair of values ('v0', 'v1') from 'a' through linear interpolation
66
- * between the values of 'a' and 'b'
67
- *
68
- * This function automagically choses the value 'vN' that is closer to 'b'
69
- *
70
- * Note, that we assume that 'a' and 'b' have unit distance (i.e. 1)
71
- */
72
- function linear_b(a, b, minV, maxV) {
73
- if (a < b)
74
- return (maxV - a) / (b - a);
75
-
76
- return (a - minV) / (a - b);
77
- }
78
-
79
- function Options() {
80
- /* Settings common to all implemented algorithms */
81
- this.successCallback = null;
82
- this.verbose = false;
83
- this.polygons = false;
84
- this.polygons_full = false;
85
- this.linearRing = true;
86
- this.noQuadTree = false;
87
- this.noFrame = false;
88
- }
89
-
90
-
91
- /* Compose settings specific to IsoBands algorithm */
92
- function isoBandOptions(userSettings) {
93
- var i,
94
- key,
95
- val,
96
- bandOptions,
97
- optionKeys;
98
-
99
- bandOptions = new Options();
100
- userSettings = userSettings ? userSettings : {};
101
- optionKeys = Object.keys(bandOptions);
102
-
103
- for(i = 0; i < optionKeys.length; i++) {
104
- key = optionKeys[i];
105
- val = userSettings[key];
106
- if ((typeof val !== 'undefined') && (val !== null))
107
- bandOptions[key] = val;
108
- }
109
-
110
- /* restore compatibility */
111
- bandOptions.polygons_full = !bandOptions.polygons;
112
-
113
- /* add interpolation functions (not yet user customizable) */
114
- bandOptions.interpolate = linear_ab;
115
- bandOptions.interpolate_a = linear_a;
116
- bandOptions.interpolate_b = linear_b;
117
-
118
- return bandOptions;
119
- }
120
-
121
- function cell2Polygons(cell, x, y, settings) {
122
- var polygons = [];
123
-
124
- cell.polygons.forEach(function(p) {
125
- p.forEach(function(pp) {
126
- pp[0] += x;
127
- pp[1] += y;
128
- });
129
-
130
- if (settings.linearRing)
131
- p.push(p[0]);
132
-
133
- polygons.push(p);
134
- });
135
-
136
- return polygons;
137
- }
138
-
139
- function entry_coordinate(x, y, mode, path) {
140
- if (mode === 0) { /* down */
141
- x += 1;
142
- y += path[0][1];
143
- } else if (mode === 1) { /* left */
144
- x += path[0][0];
145
- } else if (mode === 2) { /* up */
146
- y += path[0][1];
147
- } else if (mode === 3) { /* right */
148
- x += path[0][0];
149
- y += 1;
150
- }
151
-
152
- return [ x, y ];
153
- }
154
-
155
-
156
- function skip_coordinate(x, y, mode) {
157
- if (mode === 0) { /* down */
158
- x++;
159
- } else if (mode === 1) ; else if (mode === 2) { /* up */
160
- y++;
161
- } else if (mode === 3) { /* right */
162
- x++;
163
- y++;
164
- }
165
-
166
- return [ x, y ];
167
- }
168
-
169
-
170
- function requireFrame(data, lowerBound, upperBound) {
171
- var frameRequired,
172
- cols,
173
- rows,
174
- i,
175
- j;
176
-
177
- frameRequired = true;
178
- cols = data[0].length;
179
- rows = data.length;
180
-
181
- for (j = 0; j < rows; j++) {
182
- if ((data[j][0] < lowerBound) ||
183
- (data[j][0] > upperBound) ||
184
- (data[j][cols - 1] < lowerBound) ||
185
- (data[j][cols - 1] > upperBound)) {
186
- frameRequired = false;
187
- break;
188
- }
189
- }
190
-
191
- if ((frameRequired) &&
192
- ((data[rows - 1][0] < lowerBound) ||
193
- (data[rows - 1][0] > upperBound) ||
194
- (data[rows - 1][cols - 1] < lowerBound) ||
195
- (data[rows - 1][cols - 1] > upperBound))) {
196
- frameRequired = false;
197
- }
198
-
199
- if (frameRequired)
200
- for (i = 0; i < cols - 1; i++) {
201
- if ((data[0][i] < lowerBound) ||
202
- (data[0][i] > upperBound) ||
203
- (data[rows - 1][i] < lowerBound) ||
204
- (data[rows - 1][i] > upperBound)) {
205
- frameRequired = false;
206
- break;
207
- }
208
- }
209
-
210
-
211
- return frameRequired;
212
- }
213
-
214
-
215
- function traceBandPaths(data, cellGrid, settings) {
216
- var nextedge,
217
- path,
218
- e,
219
- ee,
220
- s,
221
- ve,
222
- enter,
223
- x,
224
- y,
225
- finalized,
226
- origin,
227
- cc,
228
- dir,
229
- count,
230
- point,
231
- found_entry;
232
-
233
- var polygons = [];
234
- var rows = data.length - 1;
235
- var cols = data[0].length - 1;
236
-
237
- /*
238
- * directions for out-of-grid moves are:
239
- * 0 ... "down",
240
- * 1 ... "left",
241
- * 2 ... "up",
242
- * 3 ... "right"
243
- */
244
- var valid_entries = [ ['rt', 'rb'], /* down */
245
- ['br', 'bl'], /* left */
246
- ['lb', 'lt'], /* up */
247
- ['tl', 'tr'] /* right */
248
- ];
249
- var add_x = [ 0, -1, 0, 1 ];
250
- var add_y = [ -1, 0, 1, 0 ];
251
- var available_starts = [ 'bl', 'lb', 'lt', 'tl', 'tr', 'rt', 'rb', 'br' ];
252
- var entry_dir = {
253
- bl: 1, br: 1,
254
- lb: 2, lt: 2,
255
- tl: 3, tr: 3,
256
- rt: 0, rb: 0
257
- };
258
-
259
- if (requireFrame(data, settings.minV, settings.maxV)) {
260
- if (settings.linearRing)
261
- polygons.push([ [0, 0], [0, rows], [cols, rows], [cols, 0], [0, 0] ]);
262
- else
263
- polygons.push([ [0, 0], [0, rows], [cols, rows], [cols, 0] ]);
264
- }
265
-
266
- /* finally, start tracing back first polygon(s) */
267
- cellGrid.forEach(function(a, i) {
268
- a.forEach(function(cell, j) {
269
- nextedge = null;
270
-
271
- /* trace paths for all available edges that go through this cell */
272
- for (e = 0; e < 8; e++) {
273
- nextedge = available_starts[e];
274
-
275
- if (typeof cell.edges[nextedge] !== 'object')
276
- continue;
277
-
278
- /* start a new, full path */
279
- path = [];
280
- ee = cell.edges[nextedge];
281
- enter = nextedge;
282
- x = i;
283
- y = j;
284
- finalized = false;
285
- origin = [ i + ee.path[0][0], j + ee.path[0][1] ];
286
-
287
- /* add start coordinate */
288
- path.push(origin);
289
-
290
- /* start traceback */
291
- while (!finalized) {
292
- cc = cellGrid[x][y];
293
-
294
- if (typeof cc.edges[enter] !== 'object')
295
- break;
296
-
297
- ee = cc.edges[enter];
298
-
299
- /* remove edge from cell */
300
- delete cc.edges[enter];
301
-
302
- /* add last point of edge to path arra, since we extend a polygon */
303
- point = ee.path[1];
304
- point[0] += x;
305
- point[1] += y;
306
- path.push(point);
307
-
308
- enter = ee.move.enter;
309
- x = x + ee.move.x;
310
- y = y + ee.move.y;
311
-
312
- /* handle out-of-grid moves */
313
- if ((typeof cellGrid[x] === 'undefined') ||
314
- (typeof cellGrid[x][y] === 'undefined')) {
315
- dir = 0;
316
- count = 0;
317
-
318
- if (x === cols) {
319
- x--;
320
- dir = 0; /* move downwards */
321
- } else if (x < 0) {
322
- x++;
323
- dir = 2; /* move upwards */
324
- } else if (y === rows) {
325
- y--;
326
- dir = 3; /* move right */
327
- } else if (y < 0) {
328
- y++;
329
- dir = 1; /* move left */
330
- } else {
331
- throw new Error('Left the grid somewhere in the interior!');
332
- }
333
-
334
- if ((x === i) && (y === j) && (dir === entry_dir[nextedge])) {
335
- finalized = true;
336
- enter = nextedge;
337
- break;
338
- }
339
-
340
- while (1) {
341
- found_entry = false;
342
-
343
- if (count > 4)
344
- throw new Error('Direction change counter overflow! This should never happen!');
345
-
346
- if (!((typeof cellGrid[x] === 'undefined') ||
347
- (typeof cellGrid[x][y] === 'undefined'))) {
348
- cc = cellGrid[x][y];
349
-
350
- /* check for re-entry */
351
- for (s = 0; s < valid_entries[dir].length; s++) {
352
- ve = valid_entries[dir][s];
353
- if (typeof cc.edges[ve] === 'object') {
354
- /* found re-entry */
355
- ee = cc.edges[ve];
356
- path.push(entry_coordinate(x, y, dir, ee.path));
357
- enter = ve;
358
- found_entry = true;
359
- break;
360
- }
361
- }
362
- }
363
-
364
- if (found_entry) {
365
- break;
366
- } else {
367
- path.push(skip_coordinate(x, y, dir));
368
-
369
- x += add_x[dir];
370
- y += add_y[dir];
371
-
372
- /* change direction if we'e moved out of grid again */
373
- if ((typeof cellGrid[x] === 'undefined') ||
374
- (typeof cellGrid[x][y] === 'undefined')) {
375
- if (((dir === 0) && (y < 0)) ||
376
- ((dir === 1) && (x < 0)) ||
377
- ((dir === 2) && (y === rows)) ||
378
- ((dir === 3) && (x === cols))) {
379
- x -= add_x[dir];
380
- y -= add_y[dir];
381
-
382
- dir = (dir + 1) % 4;
383
- count++;
384
- }
385
- }
386
-
387
- if ((x === i) && (y === j) && (dir === entry_dir[nextedge])) {
388
- /* we are back where we started off, so finalize the polygon */
389
- finalized = true;
390
- enter = nextedge;
391
- break;
392
- }
393
- }
394
- }
395
- }
396
- }
397
-
398
- if ((settings.linearRing) &&
399
- ((path[path.length - 1][0] !== origin[0]) ||
400
- (path[path.length - 1][1] !== origin[1])))
401
- path.push(origin);
402
-
403
- polygons.push(path);
404
- } /* end forall entry sites */
405
- }); /* end foreach i */
406
- }); /* end foreach j */
407
-
408
- return polygons;
409
- }
410
-
411
- /* quadTree node constructor */
412
- function TreeNode(data, x, y, dx, dy) {
413
- var dx_tmp = dx,
414
- dy_tmp = dy,
415
- msb_x = 0,
416
- msb_y = 0;
417
-
418
- /* left-bottom corner of current quadrant */
419
- this.x = x;
420
- this.y = y;
421
-
422
- /* minimum value in subtree under this node */
423
- this.lowerBound = null;
424
- /* maximum value in subtree under this node */
425
- this.upperBound = null;
426
-
427
- /*
428
- * child nodes are layed out in the following way:
429
- *
430
- * (x, y + 1) ---- (x + 1, y + 1)
431
- * | | |
432
- * | D | C |
433
- * | | |
434
- * |----------------------------|
435
- * | | |
436
- * | A | B |
437
- * | | |
438
- * (x, y) ------------ (x + 1, y)
439
- */
440
- this.childA = null;
441
- this.childB = null;
442
- this.childC = null;
443
- this.childD = null;
444
-
445
- if ((dx === 1) && (dy === 1)) {
446
- /* do not further subdivision */
447
- this.lowerBound = Math.min(
448
- data[y][x],
449
- data[y][x + 1],
450
- data[y + 1][x + 1],
451
- data[y + 1][x]
452
- );
453
- this.upperBound = Math.max(
454
- data[y][x],
455
- data[y][x + 1],
456
- data[y + 1][x + 1],
457
- data[y + 1][x]
458
- );
459
- } else {
460
- /* get most significant bit from dx */
461
- if (dx > 1) {
462
- while (dx_tmp !== 0) {
463
- dx_tmp = dx_tmp >> 1;
464
- msb_x++;
465
- }
466
-
467
- if (dx === (1 << (msb_x - 1)))
468
- msb_x--;
469
-
470
- dx_tmp = 1 << (msb_x - 1);
471
- }
472
-
473
- /* get most significant bit from dx */
474
- if (dy > 1) {
475
- while (dy_tmp !== 0) {
476
- dy_tmp = dy_tmp >> 1;
477
- msb_y++;
478
- }
479
-
480
- if (dy === (1 << (msb_y - 1)))
481
- msb_y--;
482
-
483
- dy_tmp = 1 << (msb_y - 1);
484
- }
485
-
486
- this.childA = new TreeNode(data, x, y, dx_tmp, dy_tmp);
487
- this.lowerBound = this.childA.lowerBound;
488
- this.upperBound = this.childA.upperBound;
489
-
490
- if (dx - dx_tmp > 0) {
491
- this.childB = new TreeNode(data, x + dx_tmp, y, dx - dx_tmp, dy_tmp);
492
- this.lowerBound = Math.min(this.lowerBound, this.childB.lowerBound);
493
- this.upperBound = Math.max(this.upperBound, this.childB.upperBound);
494
-
495
- if (dy - dy_tmp > 0) {
496
- this.childC = new TreeNode(data, x + dx_tmp, y + dy_tmp, dx - dx_tmp, dy - dy_tmp);
497
- this.lowerBound = Math.min(this.lowerBound, this.childC.lowerBound);
498
- this.upperBound = Math.max(this.upperBound, this.childC.upperBound);
499
- }
500
- }
501
-
502
- if (dy - dy_tmp > 0) {
503
- this.childD = new TreeNode(data, x, y + dy_tmp, dx_tmp, dy - dy_tmp);
504
- this.lowerBound = Math.min(this.lowerBound, this.childD.lowerBound);
505
- this.upperBound = Math.max(this.upperBound, this.childD.upperBound);
506
- }
507
- }
508
- }
509
-
510
-
511
- /**
512
- * Retrieve a list of cells within a particular range of values by
513
- * recursivly traversing the quad tree to it's leaves.
514
- *
515
- * @param subsumed If 'true' include all cells that are completely
516
- * subsumed within the specified range. Otherwise,
517
- * return only cells where at least one corner is
518
- * outside the specified range.
519
- *
520
- * @return An array of objects 'o' where each object has exactly two
521
- * properties: 'o.x' and 'o.y' denoting the left-bottom corner
522
- * of the corresponding cell.
523
- */
524
- TreeNode.prototype.cellsInBand = function(lowerBound, upperBound, subsumed) {
525
- var cells = [];
526
-
527
- subsumed = (typeof subsumed === 'undefined') ? true : subsumed;
528
-
529
- if ((this.lowerBound > upperBound) || (this.upperBound < lowerBound))
530
- return cells;
531
-
532
- if (!(this.childA || this.childB || this.childC || this.childD)) {
533
- if ((subsumed) ||
534
- (this.lowerBound <= lowerBound) ||
535
- (this.upperBound >= upperBound)) {
536
- cells.push({
537
- x: this.x,
538
- y: this.y
539
- });
540
- }
541
- } else {
542
- if (this.childA)
543
- cells = cells.concat(this.childA.cellsInBand(lowerBound, upperBound, subsumed));
544
-
545
- if (this.childB)
546
- cells = cells.concat(this.childB.cellsInBand(lowerBound, upperBound, subsumed));
547
-
548
- if (this.childD)
549
- cells = cells.concat(this.childD.cellsInBand(lowerBound, upperBound, subsumed));
550
-
551
- if (this.childC)
552
- cells = cells.concat(this.childC.cellsInBand(lowerBound, upperBound, subsumed));
553
- }
554
-
555
- return cells;
556
- };
557
-
558
-
559
- TreeNode.prototype.cellsBelowThreshold = function(threshold, subsumed) {
560
- var cells = [];
561
-
562
- subsumed = (typeof subsumed === 'undefined') ? true : subsumed;
563
-
564
- if (this.lowerBound > threshold)
565
- return cells;
566
-
567
- if (!(this.childA || this.childB || this.childC || this.childD)) {
568
- if ((subsumed) ||
569
- (this.upperBound >= threshold)) {
570
- cells.push({
571
- x: this.x,
572
- y: this.y
573
- });
574
- }
575
- } else {
576
- if (this.childA)
577
- cells = cells.concat(this.childA.cellsBelowThreshold(threshold, subsumed));
578
-
579
- if (this.childB)
580
- cells = cells.concat(this.childB.cellsBelowThreshold(threshold, subsumed));
581
-
582
- if (this.childD)
583
- cells = cells.concat(this.childD.cellsBelowThreshold(threshold, subsumed));
584
-
585
- if (this.childC)
586
- cells = cells.concat(this.childC.cellsBelowThreshold(threshold, subsumed));
587
- }
588
-
589
- return cells;
590
- };
591
-
592
-
593
- /*
594
- * Given a scalar field `data` construct a QuadTree
595
- * to efficiently lookup those parts of the scalar
596
- * field where values are within a particular
597
- * range of [lowerbound, upperbound] limits.
598
- */
599
- function QuadTree(data) {
600
- var i, cols;
601
-
602
- /* do some input checking */
603
- if (!data)
604
- throw new Error('data is required');
605
-
606
- if (!Array.isArray(data) ||
607
- !Array.isArray(data[0]))
608
- throw new Error('data must be scalar field, i.e. array of arrays');
609
-
610
- if (data.length < 2)
611
- throw new Error('data must contain at least two rows');
612
-
613
- /* check if we've got a regular grid */
614
- cols = data[0].length;
615
-
616
- if (cols < 2)
617
- throw new Error('data must contain at least two columns');
618
-
619
- for (i = 1; i < data.length; i++) {
620
- if (!Array.isArray(data[i]))
621
- throw new Error('Row ' + i + ' is not an array');
622
-
623
- if (data[i].length != cols)
624
- throw new Error('unequal row lengths detected, please provide a regular grid');
625
- }
626
-
627
- /* create pre-processing object */
628
- this.data = data;
629
- /* root node, i.e. entry to the data */
630
- this.root = new TreeNode(data, 0, 0, data[0].length - 1, data.length - 1);
631
- }
632
-
633
- /* eslint no-console: ["error", { allow: ["log"] }] */
634
-
635
-
636
- /*
637
- * lookup table to generate polygon paths or edges required to
638
- * trace the full polygon(s)
639
- */
640
- var shapeCoordinates = {
641
- square: function(cell, x0, x1, x2, x3, opt) {
642
- if (opt.polygons)
643
- cell.polygons.push([ [0,0], [0, 1], [1, 1], [1, 0] ]);
644
- },
645
-
646
- triangle_bl: function(cell, x0, x1, x2, x3, opt) {
647
- var bottomleft = opt.interpolate(x0, x1, opt.minV, opt.maxV);
648
- var leftbottom = opt.interpolate(x0, x3, opt.minV, opt.maxV);
649
-
650
- if (opt.polygons_full) {
651
- cell.edges.lb = {
652
- path: [ [0, leftbottom], [bottomleft, 0] ],
653
- move: {
654
- x: 0,
655
- y: -1,
656
- enter: 'tl'
657
- }
658
- };
659
- }
660
-
661
- if (opt.polygons)
662
- cell.polygons.push([ [0, leftbottom], [bottomleft, 0], [0, 0] ]);
663
- },
664
-
665
- triangle_br: function(cell, x0, x1, x2, x3, opt) {
666
- var bottomright = opt.interpolate(x0, x1, opt.minV, opt.maxV);
667
- var rightbottom = opt.interpolate(x1, x2, opt.minV, opt.maxV);
668
-
669
- if (opt.polygons_full) {
670
- cell.edges.br = {
671
- path: [ [bottomright, 0], [1, rightbottom] ],
672
- move: {
673
- x: 1,
674
- y: 0,
675
- enter: 'lb'
676
- }
677
- };
678
- }
679
-
680
- if (opt.polygons)
681
- cell.polygons.push([ [bottomright, 0], [1, rightbottom], [1, 0] ]);
682
- },
683
-
684
- triangle_tr: function(cell, x0, x1, x2, x3, opt) {
685
- var righttop = opt.interpolate(x1, x2, opt.minV, opt.maxV);
686
- var topright = opt.interpolate(x3, x2, opt.minV, opt.maxV);
687
-
688
- if (opt.polygons_full) {
689
- cell.edges.rt = {
690
- path: [ [1, righttop], [topright, 1] ],
691
- move: {
692
- x: 0,
693
- y: 1,
694
- enter: 'br'
695
- }
696
- };
697
- }
698
-
699
- if (opt.polygons)
700
- cell.polygons.push([ [1, righttop], [topright, 1], [1, 1] ]);
701
- },
702
-
703
- triangle_tl: function(cell, x0, x1, x2, x3, opt) {
704
- var topleft = opt.interpolate(x3, x2, opt.minV, opt.maxV);
705
- var lefttop = opt.interpolate(x0, x3, opt.minV, opt.maxV);
706
-
707
- if (opt.polygons_full) {
708
- cell.edges.tl = {
709
- path: [ [topleft, 1], [0, lefttop] ],
710
- move: {
711
- x: -1,
712
- y: 0,
713
- enter: 'rt'
714
- }
715
- };
716
- }
717
-
718
- if (opt.polygons)
719
- cell.polygons.push([ [0, lefttop], [0, 1], [topleft, 1] ]);
720
- },
721
-
722
- tetragon_t: function(cell, x0, x1, x2, x3, opt) {
723
- var righttop = opt.interpolate(x1, x2, opt.minV, opt.maxV);
724
- var lefttop = opt.interpolate(x0, x3, opt.minV, opt.maxV);
725
-
726
- if (opt.polygons_full) {
727
- cell.edges.rt = {
728
- path: [ [1, righttop], [0, lefttop] ],
729
- move: {
730
- x: -1,
731
- y: 0,
732
- enter: 'rt'
733
- }
734
- };
735
- }
736
-
737
- if (opt.polygons)
738
- cell.polygons.push([ [0, lefttop], [0, 1], [1, 1], [1, righttop] ]);
739
- },
740
-
741
- tetragon_r: function(cell, x0, x1, x2, x3, opt) {
742
- var bottomright = opt.interpolate(x0, x1, opt.minV, opt.maxV);
743
- var topright = opt.interpolate(x3, x2, opt.minV, opt.maxV);
744
- if (opt.polygons_full) {
745
- cell.edges.br = {
746
- path: [ [bottomright, 0], [topright, 1] ],
747
- move: {
748
- x: 0,
749
- y: 1,
750
- enter: 'br'
751
- }
752
- };
753
- }
754
-
755
- if (opt.polygons)
756
- cell.polygons.push([ [bottomright, 0], [topright, 1], [1, 1], [1, 0] ]);
757
- },
758
-
759
- tetragon_b: function(cell, x0, x1, x2, x3, opt) {
760
- var leftbottom = opt.interpolate(x0, x3, opt.minV, opt.maxV);
761
- var rightbottom = opt.interpolate(x1, x2, opt.minV, opt.maxV);
762
-
763
- if (opt.polygons_full) {
764
- cell.edges.lb = {
765
- path: [ [0, leftbottom], [1, rightbottom] ],
766
- move: {
767
- x: 1,
768
- y: 0,
769
- enter: 'lb'
770
- }
771
- };
772
- }
773
-
774
- if (opt.polygons)
775
- cell.polygons.push([ [0, 0], [0, leftbottom], [1, rightbottom], [1, 0] ]);
776
- },
777
-
778
- tetragon_l: function(cell, x0, x1, x2, x3, opt) {
779
- var topleft = opt.interpolate(x3, x2, opt.minV, opt.maxV);
780
- var bottomleft = opt.interpolate(x0, x1, opt.minV, opt.maxV);
781
-
782
- if (opt.polygons_full) {
783
- cell.edges.tl = {
784
- path: [ [topleft, 1], [bottomleft, 0] ],
785
- move: {
786
- x: 0,
787
- y: -1,
788
- enter: 'tl'
789
- }
790
- };
791
- }
792
-
793
- if (opt.polygons)
794
- cell.polygons.push([ [0, 0], [0, 1], [topleft, 1], [bottomleft, 0] ]);
795
- },
796
-
797
- tetragon_bl: function(cell, x0, x1, x2, x3, opt) {
798
- var bottomleft = opt.interpolate_a(x0, x1, opt.minV, opt.maxV);
799
- var bottomright = opt.interpolate_b(x0, x1, opt.minV, opt.maxV);
800
- var leftbottom = opt.interpolate_a(x0, x3, opt.minV, opt.maxV);
801
- var lefttop = opt.interpolate_b(x0, x3, opt.minV, opt.maxV);
802
-
803
- if (opt.polygons_full) {
804
- cell.edges.bl = {
805
- path: [ [bottomleft, 0], [0, leftbottom] ],
806
- move: {
807
- x: -1,
808
- y: 0,
809
- enter: 'rb'
810
- }
811
- };
812
- cell.edges.lt = {
813
- path: [ [0, lefttop], [bottomright, 0] ],
814
- move: {
815
- x: 0,
816
- y: -1,
817
- enter: 'tr'
818
- }
819
- };
820
- }
821
-
822
- if (opt.polygons)
823
- cell.polygons.push([ [bottomleft, 0], [0, leftbottom], [0, lefttop], [bottomright, 0] ]);
824
- },
825
-
826
- tetragon_br: function(cell, x0, x1, x2, x3, opt) {
827
- var bottomleft = opt.interpolate_a(x0, x1, opt.minV, opt.maxV);
828
- var bottomright = opt.interpolate_b(x0, x1, opt.minV, opt.maxV);
829
- var rightbottom = opt.interpolate_a(x1, x2, opt.minV, opt.maxV);
830
- var righttop = opt.interpolate_b(x1, x2, opt.minV, opt.maxV);
831
-
832
- if (opt.polygons_full) {
833
- cell.edges.bl = {
834
- path: [ [bottomleft, 0], [1, righttop] ],
835
- move: {
836
- x: 1,
837
- y: 0,
838
- enter: 'lt'
839
- }
840
- };
841
- cell.edges.rb = {
842
- path: [ [1, rightbottom], [bottomright, 0] ],
843
- move: {
844
- x: 0,
845
- y: -1,
846
- enter: 'tr'
847
- }
848
- };
849
- }
850
-
851
- if (opt.polygons)
852
- cell.polygons.push([ [bottomleft, 0], [1, righttop], [1, rightbottom], [bottomright, 0] ]);
853
- },
854
-
855
- tetragon_tr: function(cell, x0, x1, x2, x3, opt) {
856
- var topleft = opt.interpolate_a(x3, x2, opt.minV, opt.maxV);
857
- var topright = opt.interpolate_b(x3, x2, opt.minV, opt.maxV);
858
- var righttop = opt.interpolate_b(x1, x2, opt.minV, opt.maxV);
859
- var rightbottom = opt.interpolate_a(x1, x2, opt.minV, opt.maxV);
860
-
861
- if (opt.polygons_full) {
862
- cell.edges.rb = {
863
- path: [ [1, rightbottom], [topleft, 1] ],
864
- move: {
865
- x: 0,
866
- y: 1,
867
- enter: 'bl'
868
- }
869
- };
870
- cell.edges.tr = {
871
- path: [ [topright, 1], [1, righttop] ],
872
- move: {
873
- x: 1,
874
- y: 0,
875
- enter: 'lt'
876
- }
877
- };
878
- }
879
-
880
- if (opt.polygons)
881
- cell.polygons.push([ [1, rightbottom], [topleft, 1], [topright, 1], [1, righttop] ]);
882
- },
883
-
884
- tetragon_tl: function(cell, x0, x1, x2, x3, opt) {
885
- var topleft = opt.interpolate_a(x3, x2, opt.minV, opt.maxV);
886
- var topright = opt.interpolate_b(x3, x2, opt.minV, opt.maxV);
887
- var lefttop = opt.interpolate_b(x0, x3, opt.minV, opt.maxV);
888
- var leftbottom = opt.interpolate_a(x0, x3, opt.minV, opt.maxV);
889
-
890
- if (opt.polygons_full) {
891
- cell.edges.tr = {
892
- path: [ [topright, 1], [0, leftbottom] ],
893
- move: {
894
- x: -1,
895
- y: 0,
896
- enter: 'rb'
897
- }
898
- };
899
- cell.edges.lt = {
900
- path: [ [0, lefttop], [topleft, 1] ],
901
- move: {
902
- x: 0,
903
- y: 1,
904
- enter: 'bl'
905
- }
906
- };
907
- }
908
-
909
- if (opt.polygons)
910
- cell.polygons.push([ [topright, 1], [0, leftbottom], [0, lefttop], [topleft, 1] ]);
911
- },
912
-
913
- tetragon_lr: function(cell, x0, x1, x2, x3, opt) {
914
- var leftbottom = opt.interpolate_a(x0, x3, opt.minV, opt.maxV);
915
- var lefttop = opt.interpolate_b(x0, x3, opt.minV, opt.maxV);
916
- var righttop = opt.interpolate_b(x1, x2, opt.minV, opt.maxV);
917
- var rightbottom = opt.interpolate_a(x1, x2, opt.minV, opt.maxV);
918
-
919
- if (opt.polygons_full) {
920
- cell.edges.lt = {
921
- path: [ [0, lefttop], [1, righttop] ],
922
- move: {
923
- x: 1,
924
- y: 0,
925
- enter: 'lt'
926
- }
927
- };
928
- cell.edges.rb = {
929
- path: [ [1, rightbottom], [0, leftbottom] ],
930
- move: {
931
- x: -1,
932
- y: 0,
933
- enter: 'rb'
934
- }
935
- };
936
- }
937
-
938
- if (opt.polygons)
939
- cell.polygons.push([ [0, leftbottom], [0, lefttop], [1, righttop], [1, rightbottom] ]);
940
- },
941
-
942
- tetragon_tb: function(cell, x0, x1, x2, x3, opt) {
943
- var topleft = opt.interpolate_a(x3, x2, opt.minV, opt.maxV);
944
- var topright = opt.interpolate_b(x3, x2, opt.minV, opt.maxV);
945
- var bottomright = opt.interpolate_b(x0, x1, opt.minV, opt.maxV);
946
- var bottomleft = opt.interpolate_a(x0, x1, opt.minV, opt.maxV);
947
-
948
- if (opt.polygons_full) {
949
- cell.edges.tr = {
950
- path: [ [topright, 1], [bottomright, 0] ],
951
- move: {
952
- x: 0,
953
- y: -1,
954
- enter: 'tr'
955
- }
956
- };
957
- cell.edges.bl = {
958
- path: [ [bottomleft, 0], [topleft, 1] ],
959
- move: {
960
- x: 0,
961
- y: 1,
962
- enter: 'bl'
963
- }
964
- };
965
- }
966
-
967
- if (opt.polygons)
968
- cell.polygons.push([ [bottomleft, 0], [topleft, 1], [topright, 1], [bottomright, 0] ]);
969
- },
970
-
971
- pentagon_tr: function(cell, x0, x1, x2, x3, opt) {
972
- var topleft = opt.interpolate(x3, x2, opt.minV, opt.maxV);
973
- var rightbottom = opt.interpolate(x1, x2, opt.minV, opt.maxV);
974
-
975
- if (opt.polygons_full) {
976
- cell.edges.tl = {
977
- path: [[topleft, 1], [1, rightbottom]],
978
- move: {
979
- x: 1,
980
- y: 0,
981
- enter: 'lb'
982
- }
983
- };
984
- }
985
-
986
- if (opt.polygons)
987
- cell.polygons.push([ [0, 0], [0, 1], [topleft, 1], [1, rightbottom], [1, 0] ]);
988
- },
989
-
990
- pentagon_tl: function(cell, x0, x1, x2, x3, opt) {
991
- var leftbottom = opt.interpolate(x0, x3, opt.minV, opt.maxV);
992
- var topright = opt.interpolate(x3, x2, opt.minV, opt.maxV);
993
-
994
- if (opt.polygons_full) {
995
- cell.edges.lb = {
996
- path: [ [0, leftbottom], [topright, 1] ],
997
- move: {
998
- x: 0,
999
- y: 1,
1000
- enter: 'br'
1001
- }
1002
- };
1003
- }
1004
-
1005
- if (opt.polygons)
1006
- cell.polygons.push([ [0, 0], [0, leftbottom], [topright, 1], [1, 1], [1, 0] ]);
1007
- },
1008
-
1009
- pentagon_br: function(cell, x0, x1, x2, x3, opt) {
1010
- var bottomleft = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1011
- var righttop = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1012
-
1013
- if (opt.polygons_full) {
1014
- cell.edges.rt = {
1015
- path: [ [1, righttop], [bottomleft, 0] ],
1016
- move: {
1017
- x: 0,
1018
- y: -1,
1019
- enter: 'tl'
1020
- }
1021
- };
1022
- }
1023
- if (opt.polygons)
1024
- cell.polygons.push([ [0, 0], [0, 1], [1, 1], [1, righttop], [bottomleft, 0] ]);
1025
- },
1026
-
1027
- pentagon_bl: function(cell, x0, x1, x2, x3, opt) {
1028
- var lefttop = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1029
- var bottomright = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1030
-
1031
- if (opt.polygons_full) {
1032
- cell.edges.br = {
1033
- path: [ [bottomright, 0], [0, lefttop] ],
1034
- move: {
1035
- x: -1,
1036
- y: 0,
1037
- enter: 'rt'
1038
- }
1039
- };
1040
- }
1041
-
1042
- if (opt.polygons)
1043
- cell.polygons.push([ [0, lefttop], [0, 1], [1, 1], [1, 0], [bottomright, 0] ]);
1044
- },
1045
-
1046
- pentagon_tr_rl: function(cell, x0, x1, x2, x3, opt) {
1047
- var lefttop = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1048
- var topleft = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1049
- var righttop = opt.interpolate_b(x1, x2, opt.minV, opt.maxV);
1050
- var rightbottom = opt.interpolate_a(x1, x2, opt.minV, opt.maxV);
1051
-
1052
- if (opt.polygons_full) {
1053
- cell.edges.tl = {
1054
- path: [ [topleft, 1], [1, righttop] ],
1055
- move: {
1056
- x: 1,
1057
- y: 0,
1058
- enter: 'lt'
1059
- }
1060
- };
1061
- cell.edges.rb = {
1062
- path: [ [1, rightbottom], [0, lefttop] ],
1063
- move: {
1064
- x: -1,
1065
- y: 0,
1066
- enter: 'rt'
1067
- }
1068
- };
1069
- }
1070
-
1071
- if (opt.polygons)
1072
- cell.polygons.push([ [0, lefttop], [0, 1], [topleft, 1], [1, righttop], [1, rightbottom] ]);
1073
- },
1074
-
1075
- pentagon_rb_bt: function(cell, x0, x1, x2, x3, opt) {
1076
- var righttop = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1077
- var bottomright = opt.interpolate_b(x0, x1, opt.minV, opt.maxV);
1078
- var bottomleft = opt.interpolate_a(x0, x1, opt.minV, opt.maxV);
1079
- var topright = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1080
-
1081
- if (opt.polygons_full) {
1082
- cell.edges.rt = {
1083
- path: [ [1, righttop], [bottomright, 0] ],
1084
- move: {
1085
- x: 0,
1086
- y: -1,
1087
- enter: 'tr'
1088
- }
1089
- };
1090
- cell.edges.bl = {
1091
- path: [ [bottomleft, 0], [topright, 1] ],
1092
- move: {
1093
- x: 0,
1094
- y: 1,
1095
- enter: 'br'
1096
- }
1097
- };
1098
- }
1099
-
1100
- if (opt.polygons)
1101
- cell.polygons.push([ [topright, 1], [1, 1], [1, righttop], [bottomright, 0], [bottomleft, 0] ]);
1102
- },
1103
-
1104
- pentagon_bl_lr: function(cell, x0, x1, x2, x3, opt) {
1105
- var bottomright = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1106
- var leftbottom = opt.interpolate_a(x0, x3, opt.minV, opt.maxV);
1107
- var lefttop = opt.interpolate_b(x0, x3, opt.minV, opt.maxV);
1108
- var rightbottom = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1109
-
1110
- if (opt.polygons_full) {
1111
- cell.edges.br = {
1112
- path: [ [bottomright, 0], [0, leftbottom] ],
1113
- move: {
1114
- x: -1,
1115
- y: 0,
1116
- enter: 'rb'
1117
- }
1118
- };
1119
- cell.edges.lt = {
1120
- path: [ [0, lefttop], [1, rightbottom] ],
1121
- move: {
1122
- x: 1,
1123
- y: 0,
1124
- enter: 'lb'
1125
- }
1126
- };
1127
- }
1128
-
1129
- if (opt.polygons)
1130
- cell.polygons.push([ [bottomright, 0], [0, leftbottom], [0, lefttop], [1, rightbottom], [1, 0] ]);
1131
- },
1132
-
1133
- pentagon_lt_tb: function(cell, x0, x1, x2, x3, opt) {
1134
- var leftbottom = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1135
- var topleft = opt.interpolate_a(x3, x2, opt.minV, opt.maxV);
1136
- var topright = opt.interpolate_b(x3, x2, opt.minV, opt.maxV);
1137
- var bottomleft = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1138
-
1139
- if (opt.polygons_full) {
1140
- cell.edges.lb = {
1141
- path: [ [0, leftbottom], [topleft, 1] ],
1142
- move: {
1143
- x: 0,
1144
- y: 1,
1145
- enter: 'bl'
1146
- }
1147
- };
1148
- cell.edges.tr = {
1149
- path: [ [topright, 1], [bottomleft, 0] ],
1150
- move: {
1151
- x: 0,
1152
- y: -1,
1153
- enter: 'tl'
1154
- }
1155
- };
1156
- }
1157
-
1158
- if (opt.polygons)
1159
- cell.polygons.push([ [0, 0], [0, leftbottom], [topleft, 1], [topright, 1], [bottomleft, 0] ]);
1160
- },
1161
-
1162
- pentagon_bl_tb: function(cell, x0, x1, x2, x3, opt) {
1163
- var lefttop = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1164
- var topleft = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1165
- var bottomright = opt.interpolate_b(x0, x1, opt.minV, opt.maxV);
1166
- var bottomleft = opt.interpolate_a(x0, x1, opt.minV, opt.maxV);
1167
-
1168
- if (opt.polygons_full) {
1169
- cell.edges.bl = {
1170
- path: [ [bottomleft, 0], [0, lefttop] ],
1171
- move: {
1172
- x: -1,
1173
- y: 0,
1174
- enter: 'rt'
1175
- }
1176
- };
1177
- cell.edges.tl = {
1178
- path: [ [ topleft, 1], [bottomright, 0] ],
1179
- move: {
1180
- x: 0,
1181
- y: -1,
1182
- enter: 'tr'
1183
- }
1184
- };
1185
- }
1186
-
1187
- if (opt.polygons)
1188
- cell.polygons.push([ [0, lefttop], [0, 1], [topleft, 1], [bottomright, 0], [bottomleft, 0] ]);
1189
- },
1190
-
1191
- pentagon_lt_rl: function(cell, x0, x1, x2, x3, opt) {
1192
- var leftbottom = opt.interpolate_a(x0, x3, opt.minV, opt.maxV);
1193
- var lefttop = opt.interpolate_b(x0, x3, opt.minV, opt.maxV);
1194
- var topright = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1195
- var righttop = opt.interpolate(x1, x3, opt.minV, opt.maxV);
1196
-
1197
- if (opt.polygons_full) {
1198
- cell.edges.lt = {
1199
- path: [ [0, lefttop], [topright, 1] ],
1200
- move: {
1201
- x: 0,
1202
- y: 1,
1203
- enter: 'br'
1204
- }
1205
- };
1206
- cell.edges.rt = {
1207
- path: [ [1, righttop], [0, leftbottom] ],
1208
- move: {
1209
- x: -1,
1210
- y: 0,
1211
- enter: 'rb'
1212
- }
1213
- };
1214
- }
1215
-
1216
- if (opt.polygons)
1217
- cell.polygons.push([ [0, leftbottom], [0, lefttop], [topright, 1], [1, 1], [1, righttop] ]);
1218
- },
1219
-
1220
- pentagon_tr_bt: function(cell, x0, x1, x2, x3, opt) {
1221
- var topleft = opt.interpolate_a(x3, x2, opt.minV, opt.maxV);
1222
- var topright = opt.interpolate_b(x3, x2, opt.minV, opt.maxV);
1223
- var rightbottom = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1224
- var bottomright = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1225
-
1226
- if (opt.polygons_full) {
1227
- cell.edges.br = {
1228
- path: [ [bottomright, 0], [topleft, 1] ],
1229
- move: {
1230
- x: 0,
1231
- y: 1,
1232
- enter: 'bl'
1233
- }
1234
- };
1235
- cell.edges.tr = {
1236
- path: [ [topright, 1], [1, rightbottom] ],
1237
- move: {
1238
- x: 1,
1239
- y: 0,
1240
- enter: 'lb'
1241
- }
1242
- };
1243
- }
1244
-
1245
- if (opt.polygons)
1246
- cell.polygons.push([ [topleft, 1], [topright, 1], [1, rightbottom], [1, 0], [bottomright, 0] ]);
1247
- },
1248
-
1249
- pentagon_rb_lr: function(cell, x0, x1, x2, x3, opt) {
1250
- var leftbottom = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1251
- var righttop = opt.interpolate_b(x1, x2, opt.minV, opt.maxV);
1252
- var rightbottom = opt.interpolate_a(x1, x2, opt.minV, opt.maxV);
1253
- var bottomleft = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1254
-
1255
- if (opt.polygons_full) {
1256
- cell.edges.lb = {
1257
- path: [ [0, leftbottom], [1, righttop] ],
1258
- move: {
1259
- x: 1,
1260
- y: 0,
1261
- enter: 'lt'
1262
- }
1263
- };
1264
- cell.edges.rb = {
1265
- path: [ [1, rightbottom], [bottomleft, 0] ],
1266
- move: {
1267
- x: 0,
1268
- y: -1,
1269
- enter: 'tl'
1270
- }
1271
- };
1272
- }
1273
- if (opt.polygons)
1274
- cell.polygons.push([ [0, 0], [0, leftbottom], [1, righttop], [1, rightbottom], [bottomleft, 0] ]);
1275
- },
1276
-
1277
- hexagon_lt_tr: function(cell, x0, x1, x2, x3, opt) {
1278
- var leftbottom = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1279
- var topleft = opt.interpolate_a(x3, x2, opt.minV, opt.maxV);
1280
- var topright = opt.interpolate_b(x3, x2, opt.minV, opt.maxV);
1281
- var rightbottom = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1282
-
1283
- if (opt.polygons_full) {
1284
- cell.edges.lb = {
1285
- path: [ [0, leftbottom], [topleft, 1] ],
1286
- move: {
1287
- x: 0,
1288
- y: 1,
1289
- enter: 'bl'
1290
- }
1291
- };
1292
- cell.edges.tr = {
1293
- path: [ [topright, 1], [1, rightbottom] ],
1294
- move: {
1295
- x: 1,
1296
- y: 0,
1297
- enter: 'lb'
1298
- }
1299
- };
1300
- }
1301
-
1302
- if (opt.polygons)
1303
- cell.polygons.push([ [0, 0], [0, leftbottom], [topleft, 1], [topright, 1], [1, rightbottom], [1, 0] ]);
1304
- },
1305
-
1306
- hexagon_bl_lt: function(cell, x0, x1, x2, x3, opt) {
1307
- var bottomright = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1308
- var leftbottom = opt.interpolate_a(x0, x3, opt.minV, opt.maxV);
1309
- var lefttop = opt.interpolate_b(x0, x3, opt.minV, opt.maxV);
1310
- var topright = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1311
-
1312
- if (opt.polygons_full) {
1313
- cell.edges.br = {
1314
- path: [ [bottomright, 0], [0, leftbottom] ],
1315
- move: {
1316
- x: -1,
1317
- y: 0,
1318
- enter: 'rb'
1319
- }
1320
- };
1321
- cell.edges.lt = {
1322
- path: [ [0, lefttop], [topright, 1] ],
1323
- move: {
1324
- x: 0,
1325
- y: 1,
1326
- enter: 'br'
1327
- }
1328
- };
1329
- }
1330
-
1331
- if (opt.polygons)
1332
- cell.polygons.push([ [bottomright, 0], [0, leftbottom], [0, lefttop], [topright, 1], [1, 1], [1, 0] ]);
1333
- },
1334
-
1335
- hexagon_bl_rb: function(cell, x0, x1, x2, x3, opt) {
1336
- var bottomleft = opt.interpolate_a(x0, x1, opt.minV, opt.maxV);
1337
- var bottomright = opt.interpolate_b(x0, x1, opt.minV, opt.maxV);
1338
- var lefttop = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1339
- var righttop = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1340
-
1341
- if (opt.polygons_full) {
1342
- cell.edges.bl = {
1343
- path: [ [bottomleft, 0], [0, lefttop] ],
1344
- move: {
1345
- x: -1,
1346
- y: 0,
1347
- enter: 'rt'
1348
- }
1349
- };
1350
- cell.edges.rt = {
1351
- path: [ [1, righttop], [bottomright, 0] ],
1352
- move: {
1353
- x: 0,
1354
- y: -1,
1355
- enter: 'tr'
1356
- }
1357
- };
1358
- }
1359
-
1360
- if (opt.polygons)
1361
- cell.polygons.push([ [bottomleft, 0], [0, lefttop], [0, 1], [1, 1], [1, righttop], [bottomright, 0] ]);
1362
- },
1363
-
1364
- hexagon_tr_rb: function(cell, x0, x1, x2, x3, opt) {
1365
- var bottomleft = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1366
- var topleft = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1367
- var righttop = opt.interpolate_b(x1, x2, opt.minV, opt.maxV);
1368
- var rightbottom = opt.interpolate_a(x1, x2, opt.minV, opt.maxV);
1369
-
1370
- if (opt.polygons_full) {
1371
- cell.edges.tl = {
1372
- path: [ [topleft, 1], [1, righttop] ],
1373
- move: {
1374
- x: 1,
1375
- y: 0,
1376
- enter: 'lt'
1377
- }
1378
- };
1379
- cell.edges.rb = {
1380
- path: [ [1, rightbottom], [bottomleft, 0] ],
1381
- move: {
1382
- x: 0,
1383
- y: -1,
1384
- enter: 'tl'
1385
- }
1386
- };
1387
- }
1388
-
1389
- if (opt.polygons)
1390
- cell.polygons.push([ [0, 0], [0, 1], [topleft, 1], [1, righttop], [1, rightbottom], [bottomleft, 0] ]);
1391
- },
1392
-
1393
- hexagon_lt_rb: function(cell, x0, x1, x2, x3, opt) {
1394
- var leftbottom = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1395
- var topright = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1396
- var righttop = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1397
- var bottomleft = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1398
-
1399
- if (opt.polygons_full) {
1400
- cell.edges.lb = {
1401
- path: [ [0, leftbottom], [topright, 1] ],
1402
- move: {
1403
- x: 0,
1404
- y: 1,
1405
- enter: 'br'
1406
- }
1407
- };
1408
- cell.edges.rt = {
1409
- path: [ [1, righttop], [bottomleft, 0] ],
1410
- move: {
1411
- x: 0,
1412
- y: -1,
1413
- enter: 'tl'
1414
- }
1415
- };
1416
- }
1417
-
1418
- if (opt.polygons)
1419
- cell.polygons.push([ [0, 0], [0, leftbottom], [topright, 1], [1, 1], [1, righttop], [bottomleft, 0] ]);
1420
- },
1421
-
1422
- hexagon_bl_tr: function(cell, x0, x1, x2, x3, opt) {
1423
- var bottomright = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1424
- var lefttop = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1425
- var topleft = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1426
- var rightbottom = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1427
-
1428
- if (opt.polygons_full) {
1429
- cell.edges.br = {
1430
- path: [ [bottomright, 0], [0, lefttop] ],
1431
- move: {
1432
- x: -1,
1433
- y: 0,
1434
- enter: 'rt'
1435
- }
1436
- };
1437
- cell.edges.tl = {
1438
- path: [ [topleft, 1], [1, rightbottom] ],
1439
- move: {
1440
- x: 1,
1441
- y: 0,
1442
- enter: 'lb'
1443
- }
1444
- };
1445
- }
1446
-
1447
- if (opt.polygons)
1448
- cell.polygons.push([ [bottomright, 0], [0, lefttop], [0, 1], [topleft, 1], [1, rightbottom], [1, 0] ]);
1449
- },
1450
-
1451
- heptagon_tr: function(cell, x0, x1, x2, x3, opt) {
1452
- var bottomleft = opt.interpolate_a(x0, x1, opt.minV, opt.maxV);
1453
- var bottomright = opt.interpolate_b(x0, x1, opt.minV, opt.maxV);
1454
- var leftbottom = opt.interpolate_a(x0, x3, opt.minV, opt.maxV);
1455
- var lefttop = opt.interpolate_b(x0, x3, opt.minV, opt.maxV);
1456
- var topright = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1457
- var righttop = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1458
-
1459
- if (opt.polygons_full) {
1460
- cell.edges.bl = {
1461
- path: [ [bottomleft, 0], [0, leftbottom] ],
1462
- move: {
1463
- x: -1,
1464
- y: 0,
1465
- enter: 'rb'
1466
- }
1467
- };
1468
- cell.edges.lt = {
1469
- path: [ [0, lefttop], [topright, 1] ],
1470
- move: {
1471
- x: 0,
1472
- y: 1,
1473
- enter: 'br'
1474
- }
1475
- };
1476
- cell.edges.rt = {
1477
- path: [ [1, righttop], [bottomright, 0] ],
1478
- move: {
1479
- x: 0,
1480
- y: -1,
1481
- enter: 'tr'
1482
- }
1483
- };
1484
- }
1485
-
1486
- if (opt.polygons)
1487
- cell.polygons.push([ [bottomleft, 0], [0, leftbottom], [0, lefttop], [topright, 1], [1, 1], [1, righttop], [bottomright, 0] ]);
1488
- },
1489
-
1490
- heptagon_bl: function(cell, x0, x1, x2, x3, opt) {
1491
- var bottomleft = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1492
- var leftbottom = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1493
- var topleft = opt.interpolate_a(x3, x2, opt.minV, opt.maxV);
1494
- var topright = opt.interpolate_b(x3, x2, opt.minV, opt.maxV);
1495
- var righttop = opt.interpolate_b(x1, x2, opt.minV, opt.maxV);
1496
- var rightbottom = opt.interpolate_a(x1, x2, opt.minV, opt.maxV);
1497
-
1498
- if (opt.polygons_full) {
1499
- cell.edges.lb = {
1500
- path: [ [0, leftbottom], [topleft, 1] ],
1501
- move: {
1502
- x: 0,
1503
- y: 1,
1504
- enter: 'bl'
1505
- }
1506
- };
1507
- cell.edges.tr = {
1508
- path: [ [topright, 1], [1, righttop] ],
1509
- move: {
1510
- x: 1,
1511
- y: 0,
1512
- enter: 'lt'
1513
- }
1514
- };
1515
- cell.edges.rb = {
1516
- path: [ [1, rightbottom], [bottomleft, 0] ],
1517
- move: {
1518
- x: 0,
1519
- y: -1,
1520
- enter: 'tl'
1521
- }
1522
- };
1523
- }
1524
-
1525
- if (opt.polygons)
1526
- cell.polygons.push([ [0, 0], [0, leftbottom], [topleft, 1], [topright, 1], [1, righttop], [1, rightbottom], [bottomleft, 0] ]);
1527
- },
1528
-
1529
- heptagon_tl: function(cell, x0, x1, x2, x3, opt) {
1530
- var bottomleft = opt.interpolate_a(x0, x1, opt.minV, opt.maxV);
1531
- var bottomright = opt.interpolate_b(x0, x1, opt.minV, opt.maxV);
1532
- var lefttop = opt.interpolate(x0, x3, opt.minV, opt.maxV);
1533
- var topleft = opt.interpolate(x3, x2, opt.minV, opt.maxV);
1534
- var righttop = opt.interpolate_b(x1, x2, opt.minV, opt.maxV);
1535
- var rightbottom = opt.interpolate_a(x1, x2, opt.minV, opt.maxV);
1536
-
1537
- if (opt.polygons_full) {
1538
- cell.edges.bl = {
1539
- path: [ [bottomleft, 0], [0, lefttop] ],
1540
- move: {
1541
- x: -1,
1542
- y: 0,
1543
- enter: 'rt'
1544
- }
1545
- };
1546
- cell.edges.tl = {
1547
- path: [ [topleft, 1], [1, righttop] ],
1548
- move: {
1549
- x: 1,
1550
- y: 0,
1551
- enter: 'lt'
1552
- }
1553
- };
1554
- cell.edges.rb = {
1555
- path: [ [1, rightbottom], [bottomright, 0] ],
1556
- move: {
1557
- x: 0,
1558
- y: -1,
1559
- enter: 'tr'
1560
- }
1561
- };
1562
- }
1563
-
1564
- if (opt.polygons)
1565
- cell.polygons.push([ [bottomleft, 0], [0, lefttop], [0, 1], [topleft, 1], [1, righttop], [1, rightbottom], [bottomright, 0] ]);
1566
- },
1567
-
1568
- heptagon_br: function(cell, x0, x1, x2, x3, opt) {
1569
- var bottomright = opt.interpolate(x0, x1, opt.minV, opt.maxV);
1570
- var leftbottom = opt.interpolate_a(x0, x3, opt.minV, opt.maxV);
1571
- var lefttop = opt.interpolate_b(x0, x3, opt.minV, opt.maxV);
1572
- var topleft = opt.interpolate_a(x3, x2, opt.minV, opt.maxV);
1573
- var topright = opt.interpolate_b(x3, x2, opt.minV, opt.maxV);
1574
- var rightbottom = opt.interpolate(x1, x2, opt.minV, opt.maxV);
1575
-
1576
- if (opt.polygons_full) {
1577
- cell.edges.br = {
1578
- path: [ [bottomright, 0], [0, leftbottom] ],
1579
- move: {
1580
- x: -1,
1581
- y: 0,
1582
- enter: 'rb'
1583
- }
1584
- };
1585
- cell.edges.lt = {
1586
- path: [ [0, lefttop], [topleft, 1] ],
1587
- move: {
1588
- x: 0,
1589
- y: 1,
1590
- enter: 'bl'
1591
- }
1592
- };
1593
- cell.edges.tr = {
1594
- path: [ [topright, 1], [1, rightbottom] ],
1595
- move: {
1596
- x: 1,
1597
- y: 0,
1598
- enter: 'lb'
1599
- }
1600
- };
1601
- }
1602
-
1603
- if (opt.polygons)
1604
- cell.polygons.push([ [bottomright,0], [0, leftbottom], [0, lefttop], [topleft, 1], [topright, 1], [1, rightbottom], [1, 0] ]);
1605
- },
1606
-
1607
- octagon: function(cell, x0, x1, x2, x3, opt) {
1608
- var bottomleft = opt.interpolate_a(x0, x1, opt.minV, opt.maxV);
1609
- var bottomright = opt.interpolate_b(x0, x1, opt.minV, opt.maxV);
1610
- var leftbottom = opt.interpolate_a(x0, x3, opt.minV, opt.maxV);
1611
- var lefttop = opt.interpolate_b(x0, x3, opt.minV, opt.maxV);
1612
- var topleft = opt.interpolate_a(x3, x2, opt.minV, opt.maxV);
1613
- var topright = opt.interpolate_b(x3, x2, opt.minV, opt.maxV);
1614
- var righttop = opt.interpolate_b(x1, x2, opt.minV, opt.maxV);
1615
- var rightbottom = opt.interpolate_a(x1, x2, opt.minV, opt.maxV);
1616
-
1617
- if (opt.polygons_full) {
1618
- cell.edges.bl = {
1619
- path: [ [bottomleft, 0], [0, leftbottom] ],
1620
- move: {
1621
- x: -1,
1622
- y: 0,
1623
- enter: 'rb'
1624
- }
1625
- };
1626
- cell.edges.lt = {
1627
- path: [ [0, lefttop], [topleft, 1] ],
1628
- move: {
1629
- x: 0,
1630
- y: 1,
1631
- enter: 'bl'
1632
- }
1633
- };
1634
- cell.edges.tr = {
1635
- path: [ [topright, 1], [1, righttop] ],
1636
- move: {
1637
- x: 1,
1638
- y: 0,
1639
- enter: 'lt'
1640
- }
1641
- };
1642
- cell.edges.rb = {
1643
- path: [ [1, rightbottom], [bottomright, 0] ],
1644
- move: {
1645
- x: 0,
1646
- y: -1,
1647
- enter: 'tr'
1648
- }
1649
- };
1650
- }
1651
-
1652
- if (opt.polygons)
1653
- cell.polygons.push([ [bottomleft, 0], [0, leftbottom], [0, lefttop], [topleft, 1], [topright, 1], [1, righttop], [1, rightbottom], [bottomright, 0] ]);
1654
- }
1655
- };
1656
-
1657
-
1658
- /*
1659
- * Compute isobands(s) for a scalar 2D field given a certain
1660
- * threshold and a bandwidth by applying the Marching Squares
1661
- * Algorithm. The function returns a list of path coordinates
1662
- * either for individual polygons within each grid cell, or the
1663
- * outline of connected polygons.
1664
- */
1665
- function isoBands(input, minV, bandWidth, options) {
1666
- var i,
1667
- j,
1668
- settings,
1669
- useQuadTree = false,
1670
- tree = null,
1671
- root = null,
1672
- data = null,
1673
- cellGrid = null,
1674
- multiBand = false,
1675
- bw = [],
1676
- bandPolygons = [],
1677
- ret = [];
1678
-
1679
- /* basic input validation */
1680
- if (!input) throw new Error('data is required');
1681
- if (minV === undefined || minV === null) throw new Error('lowerBound is required');
1682
- if (bandWidth === undefined || bandWidth === null) throw new Error('bandWidth is required');
1683
- if ((!!options) && (typeof options !== 'object')) throw new Error('options must be an object');
1684
-
1685
- settings = isoBandOptions(options);
1686
-
1687
- /* check for input data */
1688
- if (input instanceof QuadTree) {
1689
- tree = input;
1690
- root = input.root;
1691
- data = input.data;
1692
- if (!settings.noQuadTree)
1693
- useQuadTree = true;
1694
- } else if (Array.isArray(input) && Array.isArray(input[0])) {
1695
- data = input;
1696
- } else {
1697
- throw new Error('input is neither array of arrays nor object retrieved from \'QuadTree()\'');
1698
- }
1699
-
1700
- /* check and prepare input thresholds */
1701
- if (Array.isArray(minV)) {
1702
- multiBand = true;
1703
-
1704
- /* activate QuadTree optimization if not explicitly forbidden by user settings */
1705
- if (!settings.noQuadTree)
1706
- useQuadTree = true;
1707
-
1708
- /* check if all minV are numbers */
1709
- for (i = 0; i < minV.length; i++)
1710
- if (isNaN(+minV[i]))
1711
- throw new Error('lowerBound[' + i + '] is not a number');
1712
-
1713
- if (Array.isArray(bandWidth)) {
1714
- if (minV.length !== bandWidth.length)
1715
- throw new Error('lowerBound and bandWidth have unequal lengths');
1716
-
1717
- /* check bandwidth values */
1718
- for (i = 0; i < bandWidth.length; i++)
1719
- if (isNaN(+bandWidth[i]))
1720
- throw new Error('bandWidth[' + i + '] is not a number');
1721
- } else {
1722
- if (isNaN(+bandWidth))
1723
- throw new Error('bandWidth must be a number');
1724
-
1725
- bw = [];
1726
- for (i = 0; i < minV.length; i++) {
1727
- bw.push(bandWidth);
1728
- }
1729
- bandWidth = bw;
1730
- }
1731
- } else {
1732
- if (isNaN(+minV))
1733
- throw new Error('lowerBound must be a number');
1734
-
1735
- minV = [ minV ];
1736
-
1737
- if (isNaN(+bandWidth))
1738
- throw new Error('bandWidth must be a number');
1739
-
1740
- bandWidth = [ bandWidth ];
1741
- }
1742
-
1743
- /* create QuadTree root node if not already present */
1744
- if ((useQuadTree) && (!root)) {
1745
- tree = new QuadTree(data);
1746
- root = tree.root;
1747
- data = tree.data;
1748
- }
1749
-
1750
- if (settings.verbose) {
1751
- if(settings.polygons)
1752
- console.log('MarchingSquaresJS-isoBands: returning single polygons for each grid cell');
1753
- else
1754
- console.log('MarchingSquaresJS-isoBands: returning polygon paths for entire data grid');
1755
-
1756
- if (multiBand)
1757
- console.log('MarchingSquaresJS-isoBands: multiple bands requested, returning array of band polygons instead of polygons for a single band');
1758
- }
1759
-
1760
- /* Done with all input validation, now let's start computing stuff */
1761
-
1762
- /* loop over all minV values */
1763
- minV.forEach(function(lowerBound, b) {
1764
- bandPolygons = [];
1765
-
1766
- /* store bounds for current computation in settings object */
1767
- settings.minV = lowerBound;
1768
- settings.maxV = lowerBound + bandWidth[b];
1769
-
1770
- if(settings.verbose)
1771
- console.log('MarchingSquaresJS-isoBands: computing isobands for [' + lowerBound + ':' + (lowerBound + bandWidth[b]) + ']');
1772
-
1773
- if (settings.polygons) {
1774
- /* compose list of polygons for each single cell */
1775
- if (useQuadTree) {
1776
- /* go through list of cells retrieved from QuadTree */
1777
- root
1778
- .cellsInBand(settings.minV, settings.maxV, true)
1779
- .forEach(function(c) {
1780
- bandPolygons = bandPolygons.concat(
1781
- cell2Polygons(
1782
- prepareCell(data,
1783
- c.x,
1784
- c.y,
1785
- settings),
1786
- c.x,
1787
- c.y,
1788
- settings
1789
- ));
1790
- });
1791
- } else {
1792
- /* go through entire array of input data */
1793
- for (j = 0; j < data.length - 1; ++j) {
1794
- for (i = 0; i < data[0].length - 1; ++i)
1795
- bandPolygons = bandPolygons.concat(
1796
- cell2Polygons(
1797
- prepareCell(data,
1798
- i,
1799
- j,
1800
- settings),
1801
- i,
1802
- j,
1803
- settings
1804
- ));
1805
- }
1806
- }
1807
- } else {
1808
- /* sparse grid of input data cells */
1809
- cellGrid = [];
1810
- for (i = 0; i < data[0].length - 1; ++i)
1811
- cellGrid[i] = [];
1812
-
1813
- /* compose list of polygons for entire input grid */
1814
- if (useQuadTree) {
1815
- /* collect the cells */
1816
- root
1817
- .cellsInBand(settings.minV, settings.maxV, false)
1818
- .forEach(function(c) {
1819
- cellGrid[c.x][c.y] = prepareCell(data,
1820
- c.x,
1821
- c.y,
1822
- settings);
1823
- });
1824
- } else {
1825
- /* prepare cells */
1826
- for (i = 0; i < data[0].length - 1; ++i) {
1827
- for (j = 0; j < data.length - 1; ++j) {
1828
- cellGrid[i][j] = prepareCell(data,
1829
- i,
1830
- j,
1831
- settings);
1832
- }
1833
- }
1834
- }
1835
-
1836
- bandPolygons = traceBandPaths(data, cellGrid, settings);
1837
- }
1838
-
1839
- /* finally, add polygons to output array */
1840
- if (multiBand)
1841
- ret.push(bandPolygons);
1842
- else
1843
- ret = bandPolygons;
1844
-
1845
- if(typeof settings.successCallback === 'function')
1846
- settings.successCallback(ret, lowerBound, bandWidth[b]);
1847
- });
1848
-
1849
- return ret;
1850
- }
1851
-
1852
- /*
1853
- * Thats all for the public interface, below follows the actual
1854
- * implementation
1855
- */
1856
-
1857
- /*
1858
- * For isoBands, each square is defined by the three states
1859
- * of its corner points. However, since computers use power-2
1860
- * values, we use 2bits per trit, i.e.:
1861
- *
1862
- * 00 ... below minV
1863
- * 01 ... between minV and maxV
1864
- * 10 ... above maxV
1865
- *
1866
- * Hence we map the 4-trit configurations as follows:
1867
- *
1868
- * 0000 => 0
1869
- * 0001 => 1
1870
- * 0002 => 2
1871
- * 0010 => 4
1872
- * 0011 => 5
1873
- * 0012 => 6
1874
- * 0020 => 8
1875
- * 0021 => 9
1876
- * 0022 => 10
1877
- * 0100 => 16
1878
- * 0101 => 17
1879
- * 0102 => 18
1880
- * 0110 => 20
1881
- * 0111 => 21
1882
- * 0112 => 22
1883
- * 0120 => 24
1884
- * 0121 => 25
1885
- * 0122 => 26
1886
- * 0200 => 32
1887
- * 0201 => 33
1888
- * 0202 => 34
1889
- * 0210 => 36
1890
- * 0211 => 37
1891
- * 0212 => 38
1892
- * 0220 => 40
1893
- * 0221 => 41
1894
- * 0222 => 42
1895
- * 1000 => 64
1896
- * 1001 => 65
1897
- * 1002 => 66
1898
- * 1010 => 68
1899
- * 1011 => 69
1900
- * 1012 => 70
1901
- * 1020 => 72
1902
- * 1021 => 73
1903
- * 1022 => 74
1904
- * 1100 => 80
1905
- * 1101 => 81
1906
- * 1102 => 82
1907
- * 1110 => 84
1908
- * 1111 => 85
1909
- * 1112 => 86
1910
- * 1120 => 88
1911
- * 1121 => 89
1912
- * 1122 => 90
1913
- * 1200 => 96
1914
- * 1201 => 97
1915
- * 1202 => 98
1916
- * 1210 => 100
1917
- * 1211 => 101
1918
- * 1212 => 102
1919
- * 1220 => 104
1920
- * 1221 => 105
1921
- * 1222 => 106
1922
- * 2000 => 128
1923
- * 2001 => 129
1924
- * 2002 => 130
1925
- * 2010 => 132
1926
- * 2011 => 133
1927
- * 2012 => 134
1928
- * 2020 => 136
1929
- * 2021 => 137
1930
- * 2022 => 138
1931
- * 2100 => 144
1932
- * 2101 => 145
1933
- * 2102 => 146
1934
- * 2110 => 148
1935
- * 2111 => 149
1936
- * 2112 => 150
1937
- * 2120 => 152
1938
- * 2121 => 153
1939
- * 2122 => 154
1940
- * 2200 => 160
1941
- * 2201 => 161
1942
- * 2202 => 162
1943
- * 2210 => 164
1944
- * 2211 => 165
1945
- * 2212 => 166
1946
- * 2220 => 168
1947
- * 2221 => 169
1948
- * 2222 => 170
1949
- */
1950
-
1951
- /*
1952
- * ####################################
1953
- * Some small helper functions
1954
- * ####################################
1955
- */
1956
-
1957
- function computeCenterAverage(bl, br, tr, tl, minV, maxV) {
1958
- var average = (tl + tr + br + bl) / 4;
1959
-
1960
- if (average > maxV)
1961
- return 2; /* above isoband limits */
1962
-
1963
- if (average < minV)
1964
- return 0; /* below isoband limits */
1965
-
1966
- return 1; /* within isoband limits */
1967
- }
1968
-
1969
-
1970
- function prepareCell(grid, x, y, opt) {
1971
- var cell,
1972
- center_avg;
1973
-
1974
- /* compose the 4-trit corner representation */
1975
- var cval = 0;
1976
- var x3 = grid[y + 1][x];
1977
- var x2 = grid[y + 1][x + 1];
1978
- var x1 = grid[y][x + 1];
1979
- var x0 = grid[y][x];
1980
- var minV = opt.minV;
1981
- var maxV = opt.maxV;
1982
-
1983
- /*
1984
- * Note that missing data within the grid will result
1985
- * in horribly failing to trace full polygon paths
1986
- */
1987
- if(isNaN(x0) || isNaN(x1) || isNaN(x2) || isNaN(x3)) {
1988
- return;
1989
- }
1990
-
1991
- /*
1992
- * Here we detect the type of the cell
1993
- *
1994
- * x3 ---- x2
1995
- * | |
1996
- * | |
1997
- * x0 ---- x1
1998
- *
1999
- * with edge points
2000
- *
2001
- * x0 = (x,y),
2002
- * x1 = (x + 1, y),
2003
- * x2 = (x + 1, y + 1), and
2004
- * x3 = (x, y + 1)
2005
- *
2006
- * and compute the polygon intersections with the edges
2007
- * of the cell. Each edge value may be (i) below, (ii) within,
2008
- * or (iii) above the values of the isoband limits. We
2009
- * encode this property using 2 bits of information, where
2010
- *
2011
- * 00 ... below,
2012
- * 01 ... within, and
2013
- * 10 ... above
2014
- *
2015
- * Then we store the cells value as vector
2016
- *
2017
- * cval = (x0, x1, x2, x3)
2018
- *
2019
- * where x0 are the two least significant bits (0th, 1st),
2020
- * x1 the 2nd and 3rd bit, and so on. This essentially
2021
- * enables us to work with a single integer number
2022
- */
2023
-
2024
- cval |= (x3 < minV) ? 0 : (x3 > maxV) ? 128 : 64;
2025
- cval |= (x2 < minV) ? 0 : (x2 > maxV) ? 32 : 16;
2026
- cval |= (x1 < minV) ? 0 : (x1 > maxV) ? 8 : 4;
2027
- cval |= (x0 < minV) ? 0 : (x0 > maxV) ? 2 : 1;
2028
-
2029
- /* make sure cval is a number */
2030
- cval = +cval;
2031
-
2032
- /*
2033
- * cell center average trit for ambiguous cases, where
2034
- * 0 ... below iso band
2035
- * 1 ... within iso band
2036
- * 2 ... above isoband
2037
- */
2038
- center_avg = 0;
2039
-
2040
- cell = {
2041
- cval: cval,
2042
- polygons: [],
2043
- edges: {},
2044
- x0: x0,
2045
- x1: x1,
2046
- x2: x2,
2047
- x3: x3,
2048
- x: x,
2049
- y: y
2050
- };
2051
-
2052
- /*
2053
- * Compute interpolated intersections of the polygon(s)
2054
- * with the cell borders and (i) add edges for polygon
2055
- * trace-back, or (ii) a list of small closed polygons
2056
- * according to look-up table
2057
- */
2058
- switch (cval) {
2059
- case 85: /* 1111 */
2060
- shapeCoordinates.square(cell, x0, x1, x2, x3, opt);
2061
- /* fall through */
2062
- case 0: /* 0000 */
2063
- /* fall through */
2064
- case 170: /* 2222 */
2065
- break;
2066
-
2067
- /* single triangle cases */
2068
-
2069
- case 169: /* 2221 */
2070
- shapeCoordinates.triangle_bl(cell, x0, x1, x2, x3, opt);
2071
- break;
2072
-
2073
- case 166: /* 2212 */
2074
- shapeCoordinates.triangle_br(cell, x0, x1, x2, x3, opt);
2075
- break;
2076
-
2077
- case 154: /* 2122 */
2078
- shapeCoordinates.triangle_tr(cell, x0, x1, x2, x3, opt);
2079
- break;
2080
-
2081
- case 106: /* 1222 */
2082
- shapeCoordinates.triangle_tl(cell, x0, x1, x2, x3, opt);
2083
- break;
2084
-
2085
- case 1: /* 0001 */
2086
- shapeCoordinates.triangle_bl(cell, x0, x1, x2, x3, opt);
2087
- break;
2088
-
2089
- case 4: /* 0010 */
2090
- shapeCoordinates.triangle_br(cell, x0, x1, x2, x3, opt);
2091
- break;
2092
-
2093
- case 16: /* 0100 */
2094
- shapeCoordinates.triangle_tr(cell, x0, x1, x2, x3, opt);
2095
- break;
2096
-
2097
- case 64: /* 1000 */
2098
- shapeCoordinates.triangle_tl(cell, x0, x1, x2, x3, opt);
2099
- break;
2100
-
2101
-
2102
- /* single trapezoid cases */
2103
-
2104
- case 168: /* 2220 */
2105
- shapeCoordinates.tetragon_bl(cell, x0, x1, x2, x3, opt);
2106
- break;
2107
-
2108
- case 162: /* 2202 */
2109
- shapeCoordinates.tetragon_br(cell, x0, x1, x2, x3, opt);
2110
- break;
2111
-
2112
- case 138: /* 2022 */
2113
- shapeCoordinates.tetragon_tr(cell, x0, x1, x2, x3, opt);
2114
- break;
2115
-
2116
- case 42: /* 0222 */
2117
- shapeCoordinates.tetragon_tl(cell, x0, x1, x2, x3, opt);
2118
- break;
2119
-
2120
- case 2: /* 0002 */
2121
- shapeCoordinates.tetragon_bl(cell, x0, x1, x2, x3, opt);
2122
- break;
2123
-
2124
- case 8: /* 0020 */
2125
- shapeCoordinates.tetragon_br(cell, x0, x1, x2, x3, opt);
2126
- break;
2127
-
2128
- case 32: /* 0200 */
2129
- shapeCoordinates.tetragon_tr(cell, x0, x1, x2, x3, opt);
2130
- break;
2131
-
2132
- case 128: /* 2000 */
2133
- shapeCoordinates.tetragon_tl(cell, x0, x1, x2, x3, opt);
2134
- break;
2135
-
2136
-
2137
- /* single rectangle cases */
2138
-
2139
- case 5: /* 0011 */
2140
- shapeCoordinates.tetragon_b(cell, x0, x1, x2, x3, opt);
2141
- break;
2142
-
2143
- case 20: /* 0110 */
2144
- shapeCoordinates.tetragon_r(cell, x0, x1, x2, x3, opt);
2145
- break;
2146
-
2147
- case 80: /* 1100 */
2148
- shapeCoordinates.tetragon_t(cell, x0, x1, x2, x3, opt);
2149
- break;
2150
-
2151
- case 65: /* 1001 */
2152
- shapeCoordinates.tetragon_l(cell, x0, x1, x2, x3, opt);
2153
- break;
2154
-
2155
- case 165: /* 2211 */
2156
- shapeCoordinates.tetragon_b(cell, x0, x1, x2, x3, opt);
2157
- break;
2158
-
2159
- case 150: /* 2112 */
2160
- shapeCoordinates.tetragon_r(cell, x0, x1, x2, x3, opt);
2161
- break;
2162
-
2163
- case 90: /* 1122 */
2164
- shapeCoordinates.tetragon_t(cell, x0, x1, x2, x3, opt);
2165
- break;
2166
-
2167
- case 105: /* 1221 */
2168
- shapeCoordinates.tetragon_l(cell, x0, x1, x2, x3, opt);
2169
- break;
2170
-
2171
- case 160: /* 2200 */
2172
- shapeCoordinates.tetragon_lr(cell, x0, x1, x2, x3, opt);
2173
- break;
2174
-
2175
- case 130: /* 2002 */
2176
- shapeCoordinates.tetragon_tb(cell, x0, x1, x2, x3, opt);
2177
- break;
2178
-
2179
- case 10: /* 0022 */
2180
- shapeCoordinates.tetragon_lr(cell, x0, x1, x2, x3, opt);
2181
- break;
2182
-
2183
- case 40: /* 0220 */
2184
- shapeCoordinates.tetragon_tb(cell, x0, x1, x2, x3, opt);
2185
- break;
2186
-
2187
-
2188
- /* single pentagon cases */
2189
-
2190
- case 101: /* 1211 */
2191
- shapeCoordinates.pentagon_tr(cell, x0, x1, x2, x3, opt);
2192
- break;
2193
-
2194
- case 149: /* 2111 */
2195
- shapeCoordinates.pentagon_tl(cell, x0, x1, x2, x3, opt);
2196
- break;
2197
-
2198
- case 86: /* 1112 */
2199
- shapeCoordinates.pentagon_bl(cell, x0, x1, x2, x3, opt);
2200
- break;
2201
-
2202
- case 89: /* 1121 */
2203
- shapeCoordinates.pentagon_br(cell, x0, x1, x2, x3, opt);
2204
- break;
2205
-
2206
- case 69: /* 1011 */
2207
- shapeCoordinates.pentagon_tr(cell, x0, x1, x2, x3, opt);
2208
- break;
2209
-
2210
- case 21: /* 0111 */
2211
- shapeCoordinates.pentagon_tl(cell, x0, x1, x2, x3, opt);
2212
- break;
2213
-
2214
- case 84: /* 1110 */
2215
- shapeCoordinates.pentagon_bl(cell, x0, x1, x2, x3, opt);
2216
- break;
2217
-
2218
- case 81: /* 1101 */
2219
- shapeCoordinates.pentagon_br(cell, x0, x1, x2, x3, opt);
2220
- break;
2221
-
2222
- case 96: /* 1200 */
2223
- shapeCoordinates.pentagon_tr_rl(cell, x0, x1, x2, x3, opt);
2224
- break;
2225
-
2226
- case 24: /* 0120 */
2227
- shapeCoordinates.pentagon_rb_bt(cell, x0, x1, x2, x3, opt);
2228
- break;
2229
-
2230
- case 6: /* 0012 */
2231
- shapeCoordinates.pentagon_bl_lr(cell, x0, x1, x2, x3, opt);
2232
- break;
2233
-
2234
- case 129: /* 2001 */
2235
- shapeCoordinates.pentagon_lt_tb(cell, x0, x1, x2, x3, opt);
2236
- break;
2237
-
2238
- case 74: /* 1022 */
2239
- shapeCoordinates.pentagon_tr_rl(cell, x0, x1, x2, x3, opt);
2240
- break;
2241
-
2242
- case 146: /* 2102 */
2243
- shapeCoordinates.pentagon_rb_bt(cell, x0, x1, x2, x3, opt);
2244
- break;
2245
-
2246
- case 164: /* 2210 */
2247
- shapeCoordinates.pentagon_bl_lr(cell, x0, x1, x2, x3, opt);
2248
- break;
2249
-
2250
- case 41: /* 0221 */
2251
- shapeCoordinates.pentagon_lt_tb(cell, x0, x1, x2, x3, opt);
2252
- break;
2253
-
2254
- case 66: /* 1002 */
2255
- shapeCoordinates.pentagon_bl_tb(cell, x0, x1, x2, x3, opt);
2256
- break;
2257
-
2258
- case 144: /* 2100 */
2259
- shapeCoordinates.pentagon_lt_rl(cell, x0, x1, x2, x3, opt);
2260
- break;
2261
-
2262
- case 36: /* 0210 */
2263
- shapeCoordinates.pentagon_tr_bt(cell, x0, x1, x2, x3, opt);
2264
- break;
2265
-
2266
- case 9: /* 0021 */
2267
- shapeCoordinates.pentagon_rb_lr(cell, x0, x1, x2, x3, opt);
2268
- break;
2269
-
2270
- case 104: /* 1220 */
2271
- shapeCoordinates.pentagon_bl_tb(cell, x0, x1, x2, x3, opt);
2272
- break;
2273
-
2274
- case 26: /* 0122 */
2275
- shapeCoordinates.pentagon_lt_rl(cell, x0, x1, x2, x3, opt);
2276
- break;
2277
-
2278
- case 134: /* 2012 */
2279
- shapeCoordinates.pentagon_tr_bt(cell, x0, x1, x2, x3, opt);
2280
- break;
2281
-
2282
- case 161: /* 2201 */
2283
- shapeCoordinates.pentagon_rb_lr(cell, x0, x1, x2, x3, opt);
2284
- break;
2285
-
2286
-
2287
- /* single hexagon cases */
2288
-
2289
- case 37: /* 0211 */
2290
- shapeCoordinates.hexagon_lt_tr(cell, x0, x1, x2, x3, opt);
2291
- break;
2292
-
2293
- case 148: /* 2110 */
2294
- shapeCoordinates.hexagon_bl_lt(cell, x0, x1, x2, x3, opt);
2295
- break;
2296
-
2297
- case 82: /* 1102 */
2298
- shapeCoordinates.hexagon_bl_rb(cell, x0, x1, x2, x3, opt);
2299
- break;
2300
-
2301
- case 73: /* 1021 */
2302
- shapeCoordinates.hexagon_tr_rb(cell, x0, x1, x2, x3, opt);
2303
- break;
2304
-
2305
- case 133: /* 2011 */
2306
- shapeCoordinates.hexagon_lt_tr(cell, x0, x1, x2, x3, opt);
2307
- break;
2308
-
2309
- case 22: /* 0112 */
2310
- shapeCoordinates.hexagon_bl_lt(cell, x0, x1, x2, x3, opt);
2311
- break;
2312
-
2313
- case 88: /* 1120 */
2314
- shapeCoordinates.hexagon_bl_rb(cell, x0, x1, x2, x3, opt);
2315
- break;
2316
-
2317
- case 97: /* 1201 */
2318
- shapeCoordinates.hexagon_tr_rb(cell, x0, x1, x2, x3, opt);
2319
- break;
2320
-
2321
- case 145: /* 2101 */
2322
- shapeCoordinates.hexagon_lt_rb(cell, x0, x1, x2, x3, opt);
2323
- break;
2324
-
2325
- case 25: /* 0121 */
2326
- shapeCoordinates.hexagon_lt_rb(cell, x0, x1, x2, x3, opt);
2327
- break;
2328
-
2329
- case 70: /* 1012 */
2330
- shapeCoordinates.hexagon_bl_tr(cell, x0, x1, x2, x3, opt);
2331
- break;
2332
-
2333
- case 100: /* 1210 */
2334
- shapeCoordinates.hexagon_bl_tr(cell, x0, x1, x2, x3, opt);
2335
- break;
2336
-
2337
-
2338
- /* 6-sided saddles */
2339
-
2340
- case 17: /* 0101 */
2341
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2342
- /* should never be center_avg === 2 */
2343
- if (center_avg === 0) {
2344
- shapeCoordinates.triangle_bl(cell, x0, x1, x2, x3, opt);
2345
- shapeCoordinates.triangle_tr(cell, x0, x1, x2, x3, opt);
2346
- } else {
2347
- shapeCoordinates.hexagon_lt_rb(cell, x0, x1, x2, x3, opt);
2348
- }
2349
- break;
2350
-
2351
- case 68: /* 1010 */
2352
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2353
- /* should never be center_avg === 2 */
2354
- if (center_avg === 0) {
2355
- shapeCoordinates.triangle_tl(cell, x0, x1, x2, x3, opt);
2356
- shapeCoordinates.triangle_br(cell, x0, x1, x2, x3, opt);
2357
- } else {
2358
- shapeCoordinates.hexagon_bl_tr(cell, x0, x1, x2, x3, opt);
2359
- }
2360
- break;
2361
-
2362
- case 153: /* 2121 */
2363
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2364
- /* should never be center_avg === 0 */
2365
- if (center_avg === 2) {
2366
- shapeCoordinates.triangle_bl(cell, x0, x1, x2, x3, opt);
2367
- shapeCoordinates.triangle_tr(cell, x0, x1, x2, x3, opt);
2368
- } else {
2369
- shapeCoordinates.hexagon_lt_rb(cell, x0, x1, x2, x3, opt);
2370
- }
2371
- break;
2372
-
2373
- case 102: /* 1212 */
2374
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2375
- /* should never be center_avg === 0 */
2376
- if (center_avg === 2) {
2377
- shapeCoordinates.triangle_tl(cell, x0, x1, x2, x3, opt);
2378
- shapeCoordinates.triangle_br(cell, x0, x1, x2, x3, opt);
2379
- } else {
2380
- shapeCoordinates.hexagon_bl_tr(cell, x0, x1, x2, x3, opt);
2381
- }
2382
- break;
2383
-
2384
-
2385
- /* 7-sided saddles */
2386
-
2387
- case 152: /* 2120 */
2388
-
2389
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2390
- /* should never be center_avg === 0 */
2391
- if (center_avg === 2) {
2392
- shapeCoordinates.triangle_tr(cell, x0, x1, x2, x3, opt);
2393
- shapeCoordinates.tetragon_bl(cell, x0, x1, x2, x3, opt);
2394
- } else {
2395
- shapeCoordinates.heptagon_tr(cell, x0, x1, x2, x3, opt);
2396
- }
2397
- break;
2398
-
2399
- case 137: /* 2021 */
2400
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2401
- /* should never be center_avg === 0 */
2402
- if (center_avg === 2) {
2403
- shapeCoordinates.triangle_bl(cell, x0, x1, x2, x3, opt);
2404
- shapeCoordinates.tetragon_tr(cell, x0, x1, x2, x3, opt);
2405
- } else {
2406
- shapeCoordinates.heptagon_bl(cell, x0, x1, x2, x3, opt);
2407
- }
2408
- break;
2409
-
2410
- case 98: /* 1202 */
2411
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2412
- /* should never be center_avg === 0 */
2413
- if (center_avg === 2) {
2414
- shapeCoordinates.triangle_tl(cell, x0, x1, x2, x3, opt);
2415
- shapeCoordinates.tetragon_br(cell, x0, x1, x2, x3, opt);
2416
- } else {
2417
- shapeCoordinates.heptagon_tl(cell, x0, x1, x2, x3, opt);
2418
- }
2419
- break;
2420
-
2421
- case 38: /* 0212 */
2422
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2423
- /* should never be center_avg === 0 */
2424
- if (center_avg === 2) {
2425
- shapeCoordinates.triangle_br(cell, x0, x1, x2, x3, opt);
2426
- shapeCoordinates.tetragon_tl(cell, x0, x1, x2, x3, opt);
2427
- } else {
2428
- shapeCoordinates.heptagon_br(cell, x0, x1, x2, x3, opt);
2429
- }
2430
- break;
2431
-
2432
- case 18: /* 0102 */
2433
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2434
- /* should never be center_avg === 2 */
2435
- if (center_avg === 0) {
2436
- shapeCoordinates.triangle_tr(cell, x0, x1, x2, x3, opt);
2437
- shapeCoordinates.tetragon_bl(cell, x0, x1, x2, x3, opt);
2438
- } else {
2439
- shapeCoordinates.heptagon_tr(cell, x0, x1, x2, x3, opt);
2440
- }
2441
- break;
2442
-
2443
- case 33: /* 0201 */
2444
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2445
- /* should never be center_avg === 2 */
2446
- if (center_avg === 0) {
2447
- shapeCoordinates.triangle_bl(cell, x0, x1, x2, x3, opt);
2448
- shapeCoordinates.tetragon_tr(cell, x0, x1, x2, x3, opt);
2449
- } else {
2450
- shapeCoordinates.heptagon_bl(cell, x0, x1, x2, x3, opt);
2451
- }
2452
- break;
2453
-
2454
- case 72: /* 1020 */
2455
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2456
- /* should never be center_avg === 2 */
2457
- if (center_avg === 0) {
2458
- shapeCoordinates.triangle_tl(cell, x0, x1, x2, x3, opt);
2459
- shapeCoordinates.tetragon_br(cell, x0, x1, x2, x3, opt);
2460
- } else {
2461
- shapeCoordinates.heptagon_tl(cell, x0, x1, x2, x3, opt);
2462
- }
2463
- break;
2464
-
2465
- case 132: /* 2010 */
2466
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2467
- /* should never be center_avg === 2 */
2468
- if (center_avg === 0) {
2469
- shapeCoordinates.triangle_br(cell, x0, x1, x2, x3, opt);
2470
- shapeCoordinates.tetragon_tl(cell, x0, x1, x2, x3, opt);
2471
- } else {
2472
- shapeCoordinates.heptagon_br(cell, x0, x1, x2, x3, opt);
2473
- }
2474
- break;
2475
-
2476
-
2477
- /* 8-sided saddles */
2478
-
2479
- case 136: /* 2020 */
2480
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2481
- if (center_avg === 0) {
2482
- shapeCoordinates.tetragon_tl(cell, x0, x1, x2, x3, opt);
2483
- shapeCoordinates.tetragon_br(cell, x0, x1, x2, x3, opt);
2484
- } else if (center_avg === 1) {
2485
- shapeCoordinates.octagon(cell, x0, x1, x2, x3, opt);
2486
- } else {
2487
- shapeCoordinates.tetragon_bl(cell, x0, x1, x2, x3, opt);
2488
- shapeCoordinates.tetragon_tr(cell, x0, x1, x2, x3, opt);
2489
- }
2490
- break;
2491
-
2492
- case 34: /* 0202 */
2493
- center_avg = computeCenterAverage(x0, x1, x2, x3, minV, maxV);
2494
- if (center_avg === 0) {
2495
- shapeCoordinates.tetragon_bl(cell, x0, x1, x2, x3, opt);
2496
- shapeCoordinates.tetragon_tr(cell, x0, x1, x2, x3, opt);
2497
- } else if (center_avg === 1) {
2498
- shapeCoordinates.octagon(cell, x0, x1, x2, x3, opt);
2499
- } else {
2500
- shapeCoordinates.tetragon_tl(cell, x0, x1, x2, x3, opt);
2501
- shapeCoordinates.tetragon_br(cell, x0, x1, x2, x3, opt);
2502
- }
2503
- break;
2504
- }
2505
-
2506
- return cell;
2507
- }
2508
-
2509
- exports.isoBands = isoBands;
2510
-
2511
- Object.defineProperty(exports, '__esModule', { value: true });
2512
-
2513
- })));