@macrostrat/column-views 2.4.3 → 3.0.0

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 (658) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/age-axis.cjs +123 -0
  3. package/dist/age-axis.cjs.map +1 -0
  4. package/dist/age-axis.d.ts +33 -0
  5. package/dist/age-axis.js +123 -0
  6. package/dist/age-axis.js.map +1 -0
  7. package/dist/age-axis.module.sass.cjs +18 -0
  8. package/dist/age-axis.module.sass.cjs.map +1 -0
  9. package/dist/age-axis.module.sass.js +18 -0
  10. package/dist/age-axis.module.sass.js.map +1 -0
  11. package/dist/age-model-overlay.cjs +48 -0
  12. package/dist/age-model-overlay.cjs.map +1 -0
  13. package/dist/age-model-overlay.d.ts +24 -0
  14. package/dist/age-model-overlay.js +48 -0
  15. package/dist/age-model-overlay.js.map +1 -0
  16. package/dist/age-model-overlay.module.sass.cjs +8 -0
  17. package/dist/age-model-overlay.module.sass.cjs.map +1 -0
  18. package/dist/age-model-overlay.module.sass.js +8 -0
  19. package/dist/age-model-overlay.module.sass.js.map +1 -0
  20. package/dist/column-views.css +685 -0
  21. package/dist/column.cjs +247 -0
  22. package/dist/column.cjs.map +1 -0
  23. package/dist/column.d.ts +44 -0
  24. package/dist/column.js +247 -0
  25. package/dist/column.js.map +1 -0
  26. package/dist/column.module.sass.cjs +33 -0
  27. package/dist/column.module.sass.cjs.map +1 -0
  28. package/dist/column.module.sass.js +33 -0
  29. package/dist/column.module.sass.js.map +1 -0
  30. package/dist/correlation-chart/hash-string.cjs +46 -0
  31. package/dist/correlation-chart/hash-string.cjs.map +1 -0
  32. package/dist/correlation-chart/hash-string.d.ts +3 -0
  33. package/dist/correlation-chart/hash-string.js +46 -0
  34. package/dist/correlation-chart/hash-string.js.map +1 -0
  35. package/dist/correlation-chart/index.d.ts +2 -0
  36. package/dist/correlation-chart/main.cjs +202 -0
  37. package/dist/correlation-chart/main.cjs.map +1 -0
  38. package/dist/correlation-chart/main.d.ts +15 -0
  39. package/dist/correlation-chart/main.js +202 -0
  40. package/dist/correlation-chart/main.js.map +1 -0
  41. package/dist/correlation-chart/main.module.sass.cjs +28 -0
  42. package/dist/correlation-chart/main.module.sass.cjs.map +1 -0
  43. package/dist/correlation-chart/main.module.sass.js +28 -0
  44. package/dist/correlation-chart/main.module.sass.js.map +1 -0
  45. package/dist/correlation-chart/prepare-data.cjs +62 -0
  46. package/dist/correlation-chart/prepare-data.cjs.map +1 -0
  47. package/dist/correlation-chart/prepare-data.d.ts +52 -0
  48. package/dist/correlation-chart/prepare-data.js +62 -0
  49. package/dist/correlation-chart/prepare-data.js.map +1 -0
  50. package/dist/correlation-chart/stories/utils.d.ts +6 -0
  51. package/dist/correlation-chart/unconformity-line.d.ts +3 -0
  52. package/dist/data-provider/base.cjs +349 -0
  53. package/dist/data-provider/base.cjs.map +1 -0
  54. package/dist/data-provider/base.d.ts +65 -0
  55. package/dist/data-provider/base.js +349 -0
  56. package/dist/data-provider/base.js.map +1 -0
  57. package/dist/data-provider/column-nav.cjs +36 -0
  58. package/dist/data-provider/column-nav.cjs.map +1 -0
  59. package/dist/data-provider/column-nav.d.ts +13 -0
  60. package/dist/data-provider/column-nav.js +36 -0
  61. package/dist/data-provider/column-nav.js.map +1 -0
  62. package/dist/data-provider/core.cjs +56 -0
  63. package/dist/data-provider/core.cjs.map +1 -0
  64. package/dist/data-provider/core.d.ts +31 -0
  65. package/dist/data-provider/core.js +56 -0
  66. package/dist/{esm/column-views.67804ce5.js.map → data-provider/core.js.map} +1 -1
  67. package/dist/data-provider/fetch.cjs +210 -0
  68. package/dist/data-provider/fetch.cjs.map +1 -0
  69. package/dist/data-provider/fetch.d.ts +27 -0
  70. package/dist/data-provider/fetch.js +210 -0
  71. package/dist/data-provider/fetch.js.map +1 -0
  72. package/dist/data-provider/index.d.ts +5 -0
  73. package/dist/data-provider/store.cjs +107 -0
  74. package/dist/data-provider/store.cjs.map +1 -0
  75. package/dist/data-provider/store.d.ts +34 -0
  76. package/dist/data-provider/store.js +107 -0
  77. package/dist/data-provider/store.js.map +1 -0
  78. package/dist/data-provider/unit-selection.cjs +225 -0
  79. package/dist/data-provider/unit-selection.cjs.map +1 -0
  80. package/dist/data-provider/unit-selection.d.ts +49 -0
  81. package/dist/data-provider/unit-selection.js +225 -0
  82. package/dist/data-provider/unit-selection.js.map +1 -0
  83. package/dist/facets/carbon-isotopes/data-area.cjs +64 -0
  84. package/dist/facets/carbon-isotopes/data-area.cjs.map +1 -0
  85. package/dist/facets/carbon-isotopes/data-area.d.ts +13 -0
  86. package/dist/facets/carbon-isotopes/data-area.js +64 -0
  87. package/dist/facets/carbon-isotopes/data-area.js.map +1 -0
  88. package/dist/facets/carbon-isotopes/data-provider.cjs +20 -0
  89. package/dist/facets/carbon-isotopes/data-provider.cjs.map +1 -0
  90. package/dist/facets/carbon-isotopes/data-provider.d.ts +4 -0
  91. package/dist/facets/carbon-isotopes/data-provider.js +20 -0
  92. package/dist/facets/carbon-isotopes/data-provider.js.map +1 -0
  93. package/dist/facets/carbon-isotopes/index.d.ts +2 -0
  94. package/dist/facets/carbon-isotopes/isotopes-column.cjs +174 -0
  95. package/dist/facets/carbon-isotopes/isotopes-column.cjs.map +1 -0
  96. package/dist/facets/carbon-isotopes/isotopes-column.d.ts +19 -0
  97. package/dist/facets/carbon-isotopes/isotopes-column.js +174 -0
  98. package/dist/facets/carbon-isotopes/isotopes-column.js.map +1 -0
  99. package/dist/facets/carbon-isotopes/isotopes-column.module.sass.cjs +15 -0
  100. package/dist/facets/carbon-isotopes/isotopes-column.module.sass.cjs.map +1 -0
  101. package/dist/facets/carbon-isotopes/isotopes-column.module.sass.js +15 -0
  102. package/dist/facets/carbon-isotopes/isotopes-column.module.sass.js.map +1 -0
  103. package/dist/facets/detrital-zircon/index.cjs +108 -0
  104. package/dist/facets/detrital-zircon/index.cjs.map +1 -0
  105. package/dist/facets/detrital-zircon/index.d.ts +24 -0
  106. package/dist/facets/detrital-zircon/index.js +108 -0
  107. package/dist/facets/detrital-zircon/index.js.map +1 -0
  108. package/dist/facets/detrital-zircon/index.module.sass.cjs +11 -0
  109. package/dist/facets/detrital-zircon/index.module.sass.cjs.map +1 -0
  110. package/dist/facets/detrital-zircon/index.module.sass.js +11 -0
  111. package/dist/facets/detrital-zircon/index.module.sass.js.map +1 -0
  112. package/dist/facets/detrital-zircon/provider.cjs +22 -0
  113. package/dist/facets/detrital-zircon/provider.cjs.map +1 -0
  114. package/dist/facets/detrital-zircon/provider.d.ts +31 -0
  115. package/dist/facets/detrital-zircon/provider.js +22 -0
  116. package/dist/facets/detrital-zircon/provider.js.map +1 -0
  117. package/dist/facets/fossils/index.cjs +120 -0
  118. package/dist/facets/fossils/index.cjs.map +1 -0
  119. package/dist/facets/fossils/index.d.ts +7 -0
  120. package/dist/facets/fossils/index.js +120 -0
  121. package/dist/facets/fossils/index.js.map +1 -0
  122. package/dist/facets/fossils/provider.cjs +99 -0
  123. package/dist/facets/fossils/provider.cjs.map +1 -0
  124. package/dist/facets/fossils/provider.d.ts +29 -0
  125. package/dist/facets/fossils/provider.js +99 -0
  126. package/dist/facets/fossils/provider.js.map +1 -0
  127. package/dist/facets/fossils/taxon-ranges.cjs +145 -0
  128. package/dist/facets/fossils/taxon-ranges.cjs.map +1 -0
  129. package/dist/facets/fossils/taxon-ranges.d.ts +3 -0
  130. package/dist/facets/fossils/taxon-ranges.js +145 -0
  131. package/dist/facets/fossils/taxon-ranges.js.map +1 -0
  132. package/dist/facets/fossils/taxon-ranges.module.sass.cjs +13 -0
  133. package/dist/facets/fossils/taxon-ranges.module.sass.cjs.map +1 -0
  134. package/dist/facets/fossils/taxon-ranges.module.sass.js +13 -0
  135. package/dist/facets/fossils/taxon-ranges.module.sass.js.map +1 -0
  136. package/dist/facets/index.d.ts +4 -0
  137. package/dist/facets/measurements/base.cjs +128 -0
  138. package/dist/facets/measurements/base.cjs.map +1 -0
  139. package/dist/facets/measurements/base.d.ts +46 -0
  140. package/dist/facets/measurements/base.js +128 -0
  141. package/dist/facets/measurements/base.js.map +1 -0
  142. package/dist/facets/measurements/base.module.sass.cjs +8 -0
  143. package/dist/facets/measurements/base.module.sass.cjs.map +1 -0
  144. package/dist/facets/measurements/base.module.sass.js +8 -0
  145. package/dist/facets/measurements/base.module.sass.js.map +1 -0
  146. package/dist/facets/measurements/index.d.ts +2 -0
  147. package/dist/facets/measurements/sgp.cjs +62 -0
  148. package/dist/facets/measurements/sgp.cjs.map +1 -0
  149. package/dist/facets/measurements/sgp.d.ts +3 -0
  150. package/dist/facets/measurements/sgp.js +62 -0
  151. package/dist/facets/measurements/sgp.js.map +1 -0
  152. package/dist/index.cjs +164 -0
  153. package/dist/index.cjs.map +1 -0
  154. package/dist/index.d.ts +11 -0
  155. package/dist/index.js +164 -0
  156. package/dist/index.js.map +1 -0
  157. package/dist/maps/_shared/index.d.ts +2 -0
  158. package/dist/maps/_shared/inset-map.cjs +69 -0
  159. package/dist/maps/_shared/inset-map.cjs.map +1 -0
  160. package/dist/maps/_shared/inset-map.d.ts +16 -0
  161. package/dist/maps/_shared/inset-map.js +69 -0
  162. package/dist/maps/_shared/inset-map.js.map +1 -0
  163. package/dist/maps/_shared/styles.cjs +68 -0
  164. package/dist/maps/_shared/styles.cjs.map +1 -0
  165. package/dist/maps/_shared/styles.d.ts +2 -0
  166. package/dist/maps/_shared/styles.js +68 -0
  167. package/dist/maps/_shared/styles.js.map +1 -0
  168. package/dist/maps/column-correlation/core.cjs +185 -0
  169. package/dist/maps/column-correlation/core.cjs.map +1 -0
  170. package/dist/maps/column-correlation/core.d.ts +9 -0
  171. package/dist/maps/column-correlation/core.js +185 -0
  172. package/dist/maps/column-correlation/core.js.map +1 -0
  173. package/dist/maps/column-correlation/index.d.ts +2 -0
  174. package/dist/maps/column-correlation/state.cjs +129 -0
  175. package/dist/maps/column-correlation/state.cjs.map +1 -0
  176. package/dist/maps/column-correlation/state.d.ts +31 -0
  177. package/dist/maps/column-correlation/state.js +129 -0
  178. package/dist/maps/column-correlation/state.js.map +1 -0
  179. package/dist/maps/column-navigation/index.d.ts +2 -0
  180. package/dist/maps/column-navigation/mapbox/index.cjs +175 -0
  181. package/dist/maps/column-navigation/mapbox/index.cjs.map +1 -0
  182. package/dist/maps/column-navigation/mapbox/index.d.ts +17 -0
  183. package/dist/maps/column-navigation/mapbox/index.js +175 -0
  184. package/dist/maps/column-navigation/mapbox/index.js.map +1 -0
  185. package/dist/maps/column-navigation/mapbox/keyboard-navigation.cjs +99 -0
  186. package/dist/maps/column-navigation/mapbox/keyboard-navigation.cjs.map +1 -0
  187. package/dist/maps/column-navigation/mapbox/keyboard-navigation.d.ts +31 -0
  188. package/dist/maps/column-navigation/mapbox/keyboard-navigation.js +99 -0
  189. package/dist/maps/column-navigation/mapbox/keyboard-navigation.js.map +1 -0
  190. package/dist/maps/column-navigation/mapbox/state.cjs +71 -0
  191. package/dist/maps/column-navigation/mapbox/state.cjs.map +1 -0
  192. package/dist/maps/column-navigation/mapbox/state.d.ts +23 -0
  193. package/dist/maps/column-navigation/mapbox/state.js +71 -0
  194. package/dist/maps/column-navigation/mapbox/state.js.map +1 -0
  195. package/dist/maps/column-navigation/svg/animated.d.ts +1 -0
  196. package/dist/maps/column-navigation/svg/index.cjs +92 -0
  197. package/dist/maps/column-navigation/svg/index.cjs.map +1 -0
  198. package/dist/maps/column-navigation/svg/index.d.ts +9 -0
  199. package/dist/maps/column-navigation/svg/index.js +93 -0
  200. package/dist/maps/column-navigation/svg/index.js.map +1 -0
  201. package/dist/maps/column-navigation/svg/layers.cjs +175 -0
  202. package/dist/maps/column-navigation/svg/layers.cjs.map +1 -0
  203. package/dist/maps/column-navigation/svg/layers.d.ts +54 -0
  204. package/dist/maps/column-navigation/svg/layers.js +175 -0
  205. package/dist/maps/column-navigation/svg/layers.js.map +1 -0
  206. package/dist/maps/column-navigation/utils/keyboard-navigation.cjs +50 -0
  207. package/dist/maps/column-navigation/utils/keyboard-navigation.cjs.map +1 -0
  208. package/dist/maps/column-navigation/utils/keyboard-navigation.d.ts +10 -0
  209. package/dist/maps/column-navigation/utils/keyboard-navigation.js +50 -0
  210. package/dist/maps/column-navigation/utils/keyboard-navigation.js.map +1 -0
  211. package/dist/maps/index.d.ts +3 -0
  212. package/dist/notes.cjs +41 -0
  213. package/dist/notes.cjs.map +1 -0
  214. package/dist/notes.d.ts +12 -0
  215. package/dist/notes.js +41 -0
  216. package/dist/notes.js.map +1 -0
  217. package/dist/prepare-units/composite-scale.cjs +284 -0
  218. package/dist/prepare-units/composite-scale.cjs.map +1 -0
  219. package/dist/prepare-units/composite-scale.d.ts +19 -0
  220. package/dist/prepare-units/composite-scale.js +284 -0
  221. package/dist/prepare-units/composite-scale.js.map +1 -0
  222. package/dist/prepare-units/dynamic-scales.cjs +190 -0
  223. package/dist/prepare-units/dynamic-scales.cjs.map +1 -0
  224. package/dist/prepare-units/dynamic-scales.d.ts +13 -0
  225. package/dist/prepare-units/dynamic-scales.js +190 -0
  226. package/dist/prepare-units/dynamic-scales.js.map +1 -0
  227. package/dist/prepare-units/helpers.cjs +198 -0
  228. package/dist/prepare-units/helpers.cjs.map +1 -0
  229. package/dist/prepare-units/helpers.d.ts +10 -0
  230. package/dist/prepare-units/helpers.js +198 -0
  231. package/dist/prepare-units/helpers.js.map +1 -0
  232. package/dist/prepare-units/index.cjs +130 -0
  233. package/dist/prepare-units/index.cjs.map +1 -0
  234. package/dist/prepare-units/index.d.ts +10 -0
  235. package/dist/prepare-units/index.js +131 -0
  236. package/dist/prepare-units/index.js.map +1 -0
  237. package/dist/prepare-units/types.cjs +16 -0
  238. package/dist/prepare-units/types.cjs.map +1 -0
  239. package/dist/prepare-units/types.d.ts +99 -0
  240. package/dist/prepare-units/types.js +16 -0
  241. package/dist/prepare-units/types.js.map +1 -0
  242. package/dist/prepare-units/utils.cjs +99 -0
  243. package/dist/prepare-units/utils.cjs.map +1 -0
  244. package/dist/prepare-units/utils.d.ts +39 -0
  245. package/dist/prepare-units/utils.js +99 -0
  246. package/dist/prepare-units/utils.js.map +1 -0
  247. package/dist/section.cjs +269 -0
  248. package/dist/section.cjs.map +1 -0
  249. package/dist/section.d.ts +45 -0
  250. package/dist/section.js +269 -0
  251. package/dist/section.js.map +1 -0
  252. package/dist/unit-details/index.d.ts +3 -0
  253. package/dist/unit-details/modal-panel.cjs +57 -0
  254. package/dist/unit-details/modal-panel.cjs.map +1 -0
  255. package/dist/unit-details/modal-panel.d.ts +1 -0
  256. package/dist/unit-details/modal-panel.js +57 -0
  257. package/dist/unit-details/modal-panel.js.map +1 -0
  258. package/dist/unit-details/panel.cjs +627 -0
  259. package/dist/unit-details/panel.cjs.map +1 -0
  260. package/dist/unit-details/panel.d.ts +87 -0
  261. package/dist/unit-details/panel.js +627 -0
  262. package/dist/unit-details/panel.js.map +1 -0
  263. package/dist/unit-details/panel.module.sass.cjs +42 -0
  264. package/dist/unit-details/panel.module.sass.cjs.map +1 -0
  265. package/dist/unit-details/panel.module.sass.js +42 -0
  266. package/dist/unit-details/panel.module.sass.js.map +1 -0
  267. package/dist/unit-details/popover.cjs +81 -0
  268. package/dist/unit-details/popover.cjs.map +1 -0
  269. package/dist/unit-details/popover.d.ts +9 -0
  270. package/dist/unit-details/popover.js +81 -0
  271. package/dist/unit-details/popover.js.map +1 -0
  272. package/dist/unit-details/popover.module.sass.cjs +10 -0
  273. package/dist/unit-details/popover.module.sass.cjs.map +1 -0
  274. package/dist/unit-details/popover.module.sass.js +10 -0
  275. package/dist/unit-details/popover.module.sass.js.map +1 -0
  276. package/dist/units/boxes.cjs +187 -0
  277. package/dist/units/boxes.cjs.map +1 -0
  278. package/dist/units/boxes.d.ts +54 -0
  279. package/dist/units/boxes.js +187 -0
  280. package/dist/units/boxes.js.map +1 -0
  281. package/dist/units/boxes.module.sass.cjs +11 -0
  282. package/dist/units/boxes.module.sass.cjs.map +1 -0
  283. package/dist/units/boxes.module.sass.js +11 -0
  284. package/dist/units/boxes.module.sass.js.map +1 -0
  285. package/dist/units/colors.cjs +52 -0
  286. package/dist/units/colors.cjs.map +1 -0
  287. package/dist/units/colors.d.ts +7 -0
  288. package/dist/units/colors.js +52 -0
  289. package/dist/units/colors.js.map +1 -0
  290. package/dist/units/composite.cjs +157 -0
  291. package/dist/units/composite.cjs.map +1 -0
  292. package/dist/units/composite.d.ts +39 -0
  293. package/dist/units/composite.js +157 -0
  294. package/dist/units/composite.js.map +1 -0
  295. package/dist/units/composite.module.sass.cjs +7 -0
  296. package/dist/units/composite.module.sass.cjs.map +1 -0
  297. package/dist/units/composite.module.sass.js +7 -0
  298. package/dist/units/composite.module.sass.js.map +1 -0
  299. package/dist/units/index.cjs +117 -0
  300. package/dist/units/index.cjs.map +1 -0
  301. package/dist/units/index.d.ts +40 -0
  302. package/dist/units/index.js +118 -0
  303. package/dist/units/index.js.map +1 -0
  304. package/dist/units/names.cjs +72 -0
  305. package/dist/units/names.cjs.map +1 -0
  306. package/dist/units/names.d.ts +33 -0
  307. package/dist/units/names.js +72 -0
  308. package/dist/units/names.js.map +1 -0
  309. package/dist/units/resolvers.cjs +114 -0
  310. package/dist/units/resolvers.cjs.map +1 -0
  311. package/dist/units/resolvers.d.ts +3 -0
  312. package/dist/units/resolvers.js +114 -0
  313. package/dist/units/resolvers.js.map +1 -0
  314. package/dist/units/types.d.ts +16 -0
  315. package/package.json +52 -55
  316. package/src/facets/measurements/sgp.ts +10 -3
  317. package/src/unit-details/popover.module.sass +3 -3
  318. package/dist/esm/column-views.006d5180.js +0 -97
  319. package/dist/esm/column-views.006d5180.js.map +0 -1
  320. package/dist/esm/column-views.052498a6.js +0 -93
  321. package/dist/esm/column-views.052498a6.js.map +0 -1
  322. package/dist/esm/column-views.079119f4.js +0 -17
  323. package/dist/esm/column-views.079119f4.js.map +0 -1
  324. package/dist/esm/column-views.0b3c0d18.js +0 -322
  325. package/dist/esm/column-views.0b3c0d18.js.map +0 -1
  326. package/dist/esm/column-views.0ed9da35.js +0 -141
  327. package/dist/esm/column-views.0ed9da35.js.map +0 -1
  328. package/dist/esm/column-views.0faf79a9.js +0 -142
  329. package/dist/esm/column-views.0faf79a9.js.map +0 -1
  330. package/dist/esm/column-views.16cc7a58.css +0 -37
  331. package/dist/esm/column-views.16cc7a58.css.map +0 -1
  332. package/dist/esm/column-views.17a70358.js +0 -16
  333. package/dist/esm/column-views.17a70358.js.map +0 -1
  334. package/dist/esm/column-views.19539293.js +0 -86
  335. package/dist/esm/column-views.19539293.js.map +0 -1
  336. package/dist/esm/column-views.1af3ec1f.js +0 -139
  337. package/dist/esm/column-views.1af3ec1f.js.map +0 -1
  338. package/dist/esm/column-views.1cd55918.js +0 -206
  339. package/dist/esm/column-views.1cd55918.js.map +0 -1
  340. package/dist/esm/column-views.22ec902b.js +0 -34
  341. package/dist/esm/column-views.22ec902b.js.map +0 -1
  342. package/dist/esm/column-views.2a0010a3.js +0 -15
  343. package/dist/esm/column-views.2a0010a3.js.map +0 -1
  344. package/dist/esm/column-views.2c45a7b5.js +0 -25
  345. package/dist/esm/column-views.2c45a7b5.js.map +0 -1
  346. package/dist/esm/column-views.321af3ae.css +0 -59
  347. package/dist/esm/column-views.321af3ae.css.map +0 -1
  348. package/dist/esm/column-views.334c3947.js +0 -75
  349. package/dist/esm/column-views.334c3947.js.map +0 -1
  350. package/dist/esm/column-views.33796541.js +0 -88
  351. package/dist/esm/column-views.33796541.js.map +0 -1
  352. package/dist/esm/column-views.337b40a2.js +0 -199
  353. package/dist/esm/column-views.337b40a2.js.map +0 -1
  354. package/dist/esm/column-views.338a7a83.css +0 -134
  355. package/dist/esm/column-views.338a7a83.css.map +0 -1
  356. package/dist/esm/column-views.33d35a44.js +0 -118
  357. package/dist/esm/column-views.33d35a44.js.map +0 -1
  358. package/dist/esm/column-views.3465c8ad.js +0 -16
  359. package/dist/esm/column-views.3465c8ad.js.map +0 -1
  360. package/dist/esm/column-views.362aae9a.js +0 -113
  361. package/dist/esm/column-views.362aae9a.js.map +0 -1
  362. package/dist/esm/column-views.3b972a9b.css +0 -4
  363. package/dist/esm/column-views.3b972a9b.css.map +0 -1
  364. package/dist/esm/column-views.3de4dc43.js +0 -66
  365. package/dist/esm/column-views.3de4dc43.js.map +0 -1
  366. package/dist/esm/column-views.40cd59b5.js +0 -13
  367. package/dist/esm/column-views.40cd59b5.js.map +0 -1
  368. package/dist/esm/column-views.4252a555.js +0 -248
  369. package/dist/esm/column-views.4252a555.js.map +0 -1
  370. package/dist/esm/column-views.45c70ba4.js +0 -38
  371. package/dist/esm/column-views.45c70ba4.js.map +0 -1
  372. package/dist/esm/column-views.47b7d9ca.js +0 -206
  373. package/dist/esm/column-views.47b7d9ca.js.map +0 -1
  374. package/dist/esm/column-views.47ca059d.js +0 -225
  375. package/dist/esm/column-views.47ca059d.js.map +0 -1
  376. package/dist/esm/column-views.4d374a35.js +0 -19
  377. package/dist/esm/column-views.4d374a35.js.map +0 -1
  378. package/dist/esm/column-views.54c1f382.css +0 -23
  379. package/dist/esm/column-views.54c1f382.css.map +0 -1
  380. package/dist/esm/column-views.562db43a.css +0 -148
  381. package/dist/esm/column-views.562db43a.css.map +0 -1
  382. package/dist/esm/column-views.5e1c216f.js +0 -180
  383. package/dist/esm/column-views.5e1c216f.js.map +0 -1
  384. package/dist/esm/column-views.60e97132.js +0 -20
  385. package/dist/esm/column-views.60e97132.js.map +0 -1
  386. package/dist/esm/column-views.636d6553.js +0 -343
  387. package/dist/esm/column-views.636d6553.js.map +0 -1
  388. package/dist/esm/column-views.64f6ddd3.js +0 -9
  389. package/dist/esm/column-views.64f6ddd3.js.map +0 -1
  390. package/dist/esm/column-views.6519a353.js +0 -9
  391. package/dist/esm/column-views.6519a353.js.map +0 -1
  392. package/dist/esm/column-views.67804ce5.js +0 -68
  393. package/dist/esm/column-views.6992ca88.js +0 -25
  394. package/dist/esm/column-views.6992ca88.js.map +0 -1
  395. package/dist/esm/column-views.6a954628.js +0 -70
  396. package/dist/esm/column-views.6a954628.js.map +0 -1
  397. package/dist/esm/column-views.6c670c13.css +0 -26
  398. package/dist/esm/column-views.6c670c13.css.map +0 -1
  399. package/dist/esm/column-views.6cff6659.js +0 -11
  400. package/dist/esm/column-views.6cff6659.js.map +0 -1
  401. package/dist/esm/column-views.6d6b73b4.js +0 -55
  402. package/dist/esm/column-views.6d6b73b4.js.map +0 -1
  403. package/dist/esm/column-views.6f9511d1.css +0 -25
  404. package/dist/esm/column-views.6f9511d1.css.map +0 -1
  405. package/dist/esm/column-views.6fff7602.js +0 -94
  406. package/dist/esm/column-views.6fff7602.js.map +0 -1
  407. package/dist/esm/column-views.70387120.js +0 -9
  408. package/dist/esm/column-views.70387120.js.map +0 -1
  409. package/dist/esm/column-views.708140ab.css +0 -36
  410. package/dist/esm/column-views.708140ab.css.map +0 -1
  411. package/dist/esm/column-views.74837922.js +0 -112
  412. package/dist/esm/column-views.74837922.js.map +0 -1
  413. package/dist/esm/column-views.76fb9948.js +0 -169
  414. package/dist/esm/column-views.76fb9948.js.map +0 -1
  415. package/dist/esm/column-views.7bfb4318.js +0 -161
  416. package/dist/esm/column-views.7bfb4318.js.map +0 -1
  417. package/dist/esm/column-views.7dc53f1b.js +0 -168
  418. package/dist/esm/column-views.7dc53f1b.js.map +0 -1
  419. package/dist/esm/column-views.85df21ec.js +0 -567
  420. package/dist/esm/column-views.85df21ec.js.map +0 -1
  421. package/dist/esm/column-views.87c589b7.js +0 -72
  422. package/dist/esm/column-views.87c589b7.js.map +0 -1
  423. package/dist/esm/column-views.8da2b857.js +0 -81
  424. package/dist/esm/column-views.8da2b857.js.map +0 -1
  425. package/dist/esm/column-views.8fb37de7.js +0 -9
  426. package/dist/esm/column-views.8fb37de7.js.map +0 -1
  427. package/dist/esm/column-views.905ddea0.js +0 -9
  428. package/dist/esm/column-views.905ddea0.js.map +0 -1
  429. package/dist/esm/column-views.9512c5d5.js +0 -240
  430. package/dist/esm/column-views.9512c5d5.js.map +0 -1
  431. package/dist/esm/column-views.9905b91c.js +0 -11
  432. package/dist/esm/column-views.9905b91c.js.map +0 -1
  433. package/dist/esm/column-views.9b77388d.js +0 -41
  434. package/dist/esm/column-views.9b77388d.js.map +0 -1
  435. package/dist/esm/column-views.a4f394fe.js +0 -127
  436. package/dist/esm/column-views.a4f394fe.js.map +0 -1
  437. package/dist/esm/column-views.a7c5ae16.js +0 -25
  438. package/dist/esm/column-views.a7c5ae16.js.map +0 -1
  439. package/dist/esm/column-views.aa9ede4d.js +0 -206
  440. package/dist/esm/column-views.aa9ede4d.js.map +0 -1
  441. package/dist/esm/column-views.b2142cd8.js +0 -13
  442. package/dist/esm/column-views.b2142cd8.js.map +0 -1
  443. package/dist/esm/column-views.b7cf0da2.js +0 -60
  444. package/dist/esm/column-views.b7cf0da2.js.map +0 -1
  445. package/dist/esm/column-views.b88d4bbe.js +0 -61
  446. package/dist/esm/column-views.b88d4bbe.js.map +0 -1
  447. package/dist/esm/column-views.beb54e95.js +0 -39
  448. package/dist/esm/column-views.beb54e95.js.map +0 -1
  449. package/dist/esm/column-views.c750a6df.js +0 -9
  450. package/dist/esm/column-views.c750a6df.js.map +0 -1
  451. package/dist/esm/column-views.cb1cc9f2.js +0 -134
  452. package/dist/esm/column-views.cb1cc9f2.js.map +0 -1
  453. package/dist/esm/column-views.cb6fc808.css +0 -54
  454. package/dist/esm/column-views.cb6fc808.css.map +0 -1
  455. package/dist/esm/column-views.cc733361.js +0 -55
  456. package/dist/esm/column-views.cc733361.js.map +0 -1
  457. package/dist/esm/column-views.ce000969.js +0 -187
  458. package/dist/esm/column-views.ce000969.js.map +0 -1
  459. package/dist/esm/column-views.d5e788e8.js +0 -31
  460. package/dist/esm/column-views.d5e788e8.js.map +0 -1
  461. package/dist/esm/column-views.d7740949.js +0 -152
  462. package/dist/esm/column-views.d7740949.js.map +0 -1
  463. package/dist/esm/column-views.d7e6bf67.js +0 -70
  464. package/dist/esm/column-views.d7e6bf67.js.map +0 -1
  465. package/dist/esm/column-views.dac0a3bb.js +0 -149
  466. package/dist/esm/column-views.dac0a3bb.js.map +0 -1
  467. package/dist/esm/column-views.dc42f5d0.js +0 -48
  468. package/dist/esm/column-views.dc42f5d0.js.map +0 -1
  469. package/dist/esm/column-views.e13a0a76.js +0 -138
  470. package/dist/esm/column-views.e13a0a76.js.map +0 -1
  471. package/dist/esm/column-views.e40b8bfb.css +0 -14
  472. package/dist/esm/column-views.e40b8bfb.css.map +0 -1
  473. package/dist/esm/column-views.e93478c3.css +0 -194
  474. package/dist/esm/column-views.e93478c3.css.map +0 -1
  475. package/dist/esm/column-views.ea08f667.js +0 -218
  476. package/dist/esm/column-views.ea08f667.js.map +0 -1
  477. package/dist/esm/column-views.edf77621.js +0 -22
  478. package/dist/esm/column-views.edf77621.js.map +0 -1
  479. package/dist/esm/column-views.f9dab157.js +0 -3
  480. package/dist/esm/column-views.f9dab157.js.map +0 -1
  481. package/dist/esm/column-views.fcf25ec6.js +0 -76
  482. package/dist/esm/column-views.fcf25ec6.js.map +0 -1
  483. package/dist/esm/column-views.fe42d2fc.js +0 -134
  484. package/dist/esm/column-views.fe42d2fc.js.map +0 -1
  485. package/dist/esm/index.d.ts +0 -1008
  486. package/dist/esm/index.d.ts.map +0 -1
  487. package/dist/esm/index.js +0 -27
  488. package/dist/esm/index.js.map +0 -1
  489. package/dist/node/column-views.012fa10c.js +0 -2
  490. package/dist/node/column-views.012fa10c.js.map +0 -1
  491. package/dist/node/column-views.048fdcaf.js +0 -2
  492. package/dist/node/column-views.048fdcaf.js.map +0 -1
  493. package/dist/node/column-views.04a72b35.js +0 -2
  494. package/dist/node/column-views.04a72b35.js.map +0 -1
  495. package/dist/node/column-views.0619e2da.js +0 -2
  496. package/dist/node/column-views.0619e2da.js.map +0 -1
  497. package/dist/node/column-views.0840b115.css +0 -2
  498. package/dist/node/column-views.0840b115.css.map +0 -1
  499. package/dist/node/column-views.0af5912d.js +0 -2
  500. package/dist/node/column-views.0af5912d.js.map +0 -1
  501. package/dist/node/column-views.0bd15ee4.js +0 -2
  502. package/dist/node/column-views.0bd15ee4.js.map +0 -1
  503. package/dist/node/column-views.0d254fd3.js +0 -2
  504. package/dist/node/column-views.0d254fd3.js.map +0 -1
  505. package/dist/node/column-views.109cb0c8.js +0 -2
  506. package/dist/node/column-views.109cb0c8.js.map +0 -1
  507. package/dist/node/column-views.1261be59.js +0 -2
  508. package/dist/node/column-views.1261be59.js.map +0 -1
  509. package/dist/node/column-views.15b5cecc.js +0 -2
  510. package/dist/node/column-views.15b5cecc.js.map +0 -1
  511. package/dist/node/column-views.183745c0.js +0 -2
  512. package/dist/node/column-views.183745c0.js.map +0 -1
  513. package/dist/node/column-views.2e2158f5.js +0 -2
  514. package/dist/node/column-views.2e2158f5.js.map +0 -1
  515. package/dist/node/column-views.306acd3f.js +0 -2
  516. package/dist/node/column-views.306acd3f.js.map +0 -1
  517. package/dist/node/column-views.31153f29.js +0 -2
  518. package/dist/node/column-views.31153f29.js.map +0 -1
  519. package/dist/node/column-views.31da008b.js +0 -2
  520. package/dist/node/column-views.31da008b.js.map +0 -1
  521. package/dist/node/column-views.3a079e34.css +0 -2
  522. package/dist/node/column-views.3a079e34.css.map +0 -1
  523. package/dist/node/column-views.40e758b3.js +0 -2
  524. package/dist/node/column-views.40e758b3.js.map +0 -1
  525. package/dist/node/column-views.41876859.js +0 -2
  526. package/dist/node/column-views.41876859.js.map +0 -1
  527. package/dist/node/column-views.4a28d695.js +0 -2
  528. package/dist/node/column-views.4a28d695.js.map +0 -1
  529. package/dist/node/column-views.4ec769a6.js +0 -2
  530. package/dist/node/column-views.4ec769a6.js.map +0 -1
  531. package/dist/node/column-views.50a992d3.css +0 -2
  532. package/dist/node/column-views.50a992d3.css.map +0 -1
  533. package/dist/node/column-views.51fbed89.js +0 -2
  534. package/dist/node/column-views.51fbed89.js.map +0 -1
  535. package/dist/node/column-views.5987bc26.js +0 -2
  536. package/dist/node/column-views.5987bc26.js.map +0 -1
  537. package/dist/node/column-views.5a9331a9.js +0 -2
  538. package/dist/node/column-views.5a9331a9.js.map +0 -1
  539. package/dist/node/column-views.5bb858c9.js +0 -2
  540. package/dist/node/column-views.5bb858c9.js.map +0 -1
  541. package/dist/node/column-views.5c1b0eeb.css +0 -2
  542. package/dist/node/column-views.5c1b0eeb.css.map +0 -1
  543. package/dist/node/column-views.5cbada24.js +0 -2
  544. package/dist/node/column-views.5cbada24.js.map +0 -1
  545. package/dist/node/column-views.5fcd2be6.js +0 -2
  546. package/dist/node/column-views.5fcd2be6.js.map +0 -1
  547. package/dist/node/column-views.672b683c.js +0 -2
  548. package/dist/node/column-views.672b683c.js.map +0 -1
  549. package/dist/node/column-views.6a0a35e7.js +0 -2
  550. package/dist/node/column-views.6a0a35e7.js.map +0 -1
  551. package/dist/node/column-views.6a4c2100.css +0 -2
  552. package/dist/node/column-views.6a4c2100.css.map +0 -1
  553. package/dist/node/column-views.6a9da051.js +0 -2
  554. package/dist/node/column-views.6a9da051.js.map +0 -1
  555. package/dist/node/column-views.6bba8c57.js +0 -2
  556. package/dist/node/column-views.6bba8c57.js.map +0 -1
  557. package/dist/node/column-views.75ba0464.css +0 -2
  558. package/dist/node/column-views.75ba0464.css.map +0 -1
  559. package/dist/node/column-views.78b2d234.js +0 -2
  560. package/dist/node/column-views.78b2d234.js.map +0 -1
  561. package/dist/node/column-views.7b6e7d82.js +0 -2
  562. package/dist/node/column-views.7b6e7d82.js.map +0 -1
  563. package/dist/node/column-views.7b9bd06e.css +0 -2
  564. package/dist/node/column-views.7b9bd06e.css.map +0 -1
  565. package/dist/node/column-views.7d45bbeb.js +0 -2
  566. package/dist/node/column-views.7d45bbeb.js.map +0 -1
  567. package/dist/node/column-views.7f9c7448.js +0 -2
  568. package/dist/node/column-views.7f9c7448.js.map +0 -1
  569. package/dist/node/column-views.82cf7c0d.js +0 -2
  570. package/dist/node/column-views.82cf7c0d.js.map +0 -1
  571. package/dist/node/column-views.869c7199.js +0 -2
  572. package/dist/node/column-views.869c7199.js.map +0 -1
  573. package/dist/node/column-views.8bee789c.js +0 -2
  574. package/dist/node/column-views.8bee789c.js.map +0 -1
  575. package/dist/node/column-views.90c36c0b.js +0 -2
  576. package/dist/node/column-views.90c36c0b.js.map +0 -1
  577. package/dist/node/column-views.951e3e9a.js +0 -2
  578. package/dist/node/column-views.951e3e9a.js.map +0 -1
  579. package/dist/node/column-views.95411f1b.js +0 -2
  580. package/dist/node/column-views.95411f1b.js.map +0 -1
  581. package/dist/node/column-views.9cb13e51.css +0 -2
  582. package/dist/node/column-views.9cb13e51.css.map +0 -1
  583. package/dist/node/column-views.a0969fc8.js +0 -2
  584. package/dist/node/column-views.a0969fc8.js.map +0 -1
  585. package/dist/node/column-views.a2476e39.js +0 -2
  586. package/dist/node/column-views.a2476e39.js.map +0 -1
  587. package/dist/node/column-views.a8f5ee28.js +0 -2
  588. package/dist/node/column-views.a8f5ee28.js.map +0 -1
  589. package/dist/node/column-views.ad60c02f.js +0 -2
  590. package/dist/node/column-views.ad60c02f.js.map +0 -1
  591. package/dist/node/column-views.add5e42b.js +0 -2
  592. package/dist/node/column-views.add5e42b.js.map +0 -1
  593. package/dist/node/column-views.aff55599.js +0 -2
  594. package/dist/node/column-views.aff55599.js.map +0 -1
  595. package/dist/node/column-views.b169b4b5.css +0 -2
  596. package/dist/node/column-views.b169b4b5.css.map +0 -1
  597. package/dist/node/column-views.b2e5f823.js +0 -2
  598. package/dist/node/column-views.b2e5f823.js.map +0 -1
  599. package/dist/node/column-views.b57e5e6e.js +0 -2
  600. package/dist/node/column-views.b57e5e6e.js.map +0 -1
  601. package/dist/node/column-views.b762c9a8.js +0 -2
  602. package/dist/node/column-views.b762c9a8.js.map +0 -1
  603. package/dist/node/column-views.ba9108fe.js +0 -2
  604. package/dist/node/column-views.ba9108fe.js.map +0 -1
  605. package/dist/node/column-views.c16a19fb.js +0 -2
  606. package/dist/node/column-views.c16a19fb.js.map +0 -1
  607. package/dist/node/column-views.c3097d9a.js +0 -2
  608. package/dist/node/column-views.c3097d9a.js.map +0 -1
  609. package/dist/node/column-views.c4c15e2b.js +0 -2
  610. package/dist/node/column-views.c4c15e2b.js.map +0 -1
  611. package/dist/node/column-views.c651b684.js +0 -2
  612. package/dist/node/column-views.c651b684.js.map +0 -1
  613. package/dist/node/column-views.c968a185.css +0 -2
  614. package/dist/node/column-views.c968a185.css.map +0 -1
  615. package/dist/node/column-views.ccfb9afb.css +0 -2
  616. package/dist/node/column-views.ccfb9afb.css.map +0 -1
  617. package/dist/node/column-views.cdcce702.js +0 -2
  618. package/dist/node/column-views.cdcce702.js.map +0 -1
  619. package/dist/node/column-views.cf41a6d7.js +0 -2
  620. package/dist/node/column-views.cf41a6d7.js.map +0 -1
  621. package/dist/node/column-views.d22bf15c.js +0 -2
  622. package/dist/node/column-views.d22bf15c.js.map +0 -1
  623. package/dist/node/column-views.d737de1e.js +0 -2
  624. package/dist/node/column-views.d737de1e.js.map +0 -1
  625. package/dist/node/column-views.da902c44.js +0 -2
  626. package/dist/node/column-views.da902c44.js.map +0 -1
  627. package/dist/node/column-views.db3377d8.js +0 -2
  628. package/dist/node/column-views.db3377d8.js.map +0 -1
  629. package/dist/node/column-views.dbb4a46b.js +0 -2
  630. package/dist/node/column-views.dbb4a46b.js.map +0 -1
  631. package/dist/node/column-views.ddc6184e.css +0 -2
  632. package/dist/node/column-views.ddc6184e.css.map +0 -1
  633. package/dist/node/column-views.e0e20136.js +0 -2
  634. package/dist/node/column-views.e0e20136.js.map +0 -1
  635. package/dist/node/column-views.e2562224.js +0 -2
  636. package/dist/node/column-views.e2562224.js.map +0 -1
  637. package/dist/node/column-views.e6720522.js +0 -2
  638. package/dist/node/column-views.e6720522.js.map +0 -1
  639. package/dist/node/column-views.e7e26765.js +0 -2
  640. package/dist/node/column-views.e7e26765.js.map +0 -1
  641. package/dist/node/column-views.e93b3bdb.js +0 -2
  642. package/dist/node/column-views.e93b3bdb.js.map +0 -1
  643. package/dist/node/column-views.ebb44b7d.js +0 -2
  644. package/dist/node/column-views.ebb44b7d.js.map +0 -1
  645. package/dist/node/column-views.ec0087a2.js +0 -2
  646. package/dist/node/column-views.ec0087a2.js.map +0 -1
  647. package/dist/node/column-views.eea80478.js +0 -2
  648. package/dist/node/column-views.eea80478.js.map +0 -1
  649. package/dist/node/column-views.f2e82230.js +0 -2
  650. package/dist/node/column-views.f2e82230.js.map +0 -1
  651. package/dist/node/column-views.fb3ed7cc.js +0 -2
  652. package/dist/node/column-views.fb3ed7cc.js.map +0 -1
  653. package/dist/node/column-views.fcb243a2.js +0 -2
  654. package/dist/node/column-views.fcb243a2.js.map +0 -1
  655. package/dist/node/column-views.fea32686.js +0 -2
  656. package/dist/node/column-views.fea32686.js.map +0 -1
  657. package/dist/node/index.js +0 -2
  658. package/dist/node/index.js.map +0 -1
@@ -1,1008 +0,0 @@
1
- import { ColumnGeoJSONRecord, MacrostratRef, StratName, UnitLong, BaseUnit, ColumnGeoJSONRecordWithID, Environment, Interval, Lithology } from "@macrostrat/api-types";
2
- import { ScaleContinuousNumeric } from "d3-scale";
3
- import { WritableAtom, PrimitiveAtom } from "jotai";
4
- import React, { ReactNode, FunctionComponentElement, Context, ProviderProps, DOMAttributes, DOMElement, JSXElementConstructor, ReactElement, DetailedReactHTMLElement, FunctionComponent, HTMLAttributes, CSSProperties, JSX, ElementType, MutableRefObject, ComponentType, ComponentElement } from "react";
5
- import { APIConfig, APIConfigOptions } from "@macrostrat/ui-components";
6
- import { AxiosRequestConfig, AxiosInstance } from "axios";
7
- import { ColumnDivision, ColumnProviderProps, LithologyColumnProps, ColumnCtx } from "@macrostrat/column-components";
8
- import { UnitDetailsPanelProps as _UnitDetailsPanelProps1, ColumnDataProviderProps as _ColumnDataProviderProps1, ColumnContainerProps as _ColumnContainerProps1, BaseMeasurementsColumnProps as _BaseMeasurementsColumnProps1 } from "column-views/src";
9
- import { BoxProps } from "ui-box";
10
- import { Style } from "mapbox-gl";
11
- import { ExtendedFeature } from "d3-geo";
12
- import { Polygon, LineString, Point } from "geojson";
13
- import { IFeature } from "@macrostrat/svg-map-components";
14
- import { StoreApi } from "zustand";
15
- import { NonIdealState, NonIdealStateProps } from "@blueprintjs/core";
16
- enum ColumnAxisType {
17
- AGE = "age",
18
- HEIGHT = "height",
19
- DEPTH = "depth",
20
- ORDINAL = "ordinal"
21
- }
22
- interface StrictPadding {
23
- paddingLeft: number;
24
- paddingRight: number;
25
- paddingTop: number;
26
- paddingBottom: number;
27
- }
28
- interface Padding extends Partial<StrictPadding> {
29
- paddingV?: number;
30
- paddingH?: number;
31
- padding?: number;
32
- }
33
- interface Clickable {
34
- onClick?: (evt: MouseEvent) => void;
35
- }
36
- declare namespace ThreeColumnLayout {
37
- var Panels: typeof SidePanel;
38
- }
39
- export interface IUnit {
40
- unit_id: number;
41
- col_id: number;
42
- section_id: number;
43
- t_age: number;
44
- b_age: number;
45
- [x: string]: any;
46
- patternID?: string | number;
47
- color?: string;
48
- }
49
- export interface RectBounds {
50
- x: number;
51
- y: number;
52
- width: number;
53
- height: number;
54
- }
55
- export type ColumnStatusCode = "in process" | "active" | "obsolete";
56
- export interface ColumnFetchOptions {
57
- apiBaseURL?: string;
58
- projectID?: number;
59
- statusCode?: ColumnStatusCode | ColumnStatusCode[];
60
- format?: "geojson" | "topojson" | "geojson_bare";
61
- fetch?: any;
62
- }
63
- export function fetchAllColumns(options?: ColumnFetchOptions): Promise<ColumnGeoJSONRecord[]>;
64
- export function useColumnFeatures({ apiRoute, status_code, project_id, format, }: {
65
- apiRoute?: string;
66
- status_code: any;
67
- project_id: any;
68
- format?: string;
69
- }): unknown;
70
- export function fetchLithologies(fetch?: (url: string, options?: RequestInit | undefined) => Promise<Response>): Promise<any>;
71
- export function fetchIntervals(timescaleID: number | null, fetch?: (url: string, options?: RequestInit | undefined) => Promise<Response>): Promise<any>;
72
- export function fetchEnvironments(fetch?: (url: string, options?: RequestInit | undefined) => Promise<Response>): Promise<any>;
73
- export function fetchRefs(refs: number[], fetch?: (url: string, options?: RequestInit | undefined) => Promise<Response>): Promise<MacrostratRef[]>;
74
- export function fetchStratNames(names: number[], fetch?: (url: string, options?: RequestInit | undefined) => Promise<Response>): Promise<StratName[]>;
75
- export type ColumnData = {
76
- units: UnitLong[];
77
- columnID: number;
78
- };
79
- export function fetchUnits(columns: number[], fetch?: (url: string, options?: RequestInit | undefined) => Promise<Response>): Promise<ColumnData[]>;
80
- export function fetchColumnUnits(col_id: number, fetch?: (url: string, options?: RequestInit | undefined) => Promise<Response>): Promise<ColumnData>;
81
- export interface ColumnHeightScaleOptions {
82
- /** A fixed pixel scale to use for the section (pixels per Myr) */
83
- pixelScale?: number;
84
- /** The target height of a constituent unit in pixels, for dynamic
85
- * scale generation */
86
- targetUnitHeight?: number;
87
- /** Min height of a section in pixels. Will override minPixelScale in some cases. */
88
- minSectionHeight?: number;
89
- /** The minimum pixel scale to use for the section (pixels per Myr). This is mostly
90
- * needed because small sections (<1-2 units) don't necessarily have space to comfortably
91
- * render two axis labels */
92
- minPixelScale?: number;
93
- axisType?: ColumnAxisType;
94
- unconformityHeight?: number;
95
- collapseSmallUnconformities?: boolean | number;
96
- scale?: ScaleContinuousNumeric<number, number>;
97
- hybridScale?: HybridScaleDefinition;
98
- }
99
- export enum HybridScaleType {
100
- EquidistantSurfaces = "equidistant-surfaces",
101
- ApproximateHeight = "approximate-height"
102
- }
103
- export enum HeightMethod {
104
- Minimum = "minimum",
105
- Average = "average",
106
- Maximum = "maximum"
107
- }
108
- export interface HybridScaleOptions {
109
- pixelOffset?: number;
110
- pixelScale?: number;
111
- }
112
- export type ApproxHeightScaleOptions = {
113
- minHeight?: number;
114
- defaultHeight?: number;
115
- heightMethod?: HeightMethod;
116
- };
117
- export type HybridScaleDefinition = ({
118
- type: HybridScaleType.ApproximateHeight;
119
- } & ApproxHeightScaleOptions) | {
120
- type: HybridScaleType.EquidistantSurfaces;
121
- };
122
- export interface SectionScaleOptions extends ColumnHeightScaleOptions {
123
- axisType: ColumnAxisType;
124
- domain: [number, number];
125
- }
126
- /** Output of a section scale. For now, this assumes that the
127
- * mapping is linear, but it could be extended to support arbitrary
128
- * scale functions.
129
- */
130
- export interface PackageScaleInfo {
131
- domain: [number, number];
132
- pixelHeight: number;
133
- scale: ScaleContinuousNumeric<number, number>;
134
- pixelScale?: number;
135
- heightScale?: ScaleContinuousNumeric<number, number>;
136
- }
137
- export type PackageScaleLayoutData = PackageScaleInfo & {
138
- key: string;
139
- offset: number;
140
- paddingTop: number;
141
- };
142
- export interface StratigraphicPackage {
143
- /** A collection of stratigraphic information organized in time, corresponding
144
- * to single or multiple columns. */
145
- t_age: number;
146
- b_age: number;
147
- }
148
- export interface SectionInfo<T extends UnitLong = ExtUnit> extends StratigraphicPackage {
149
- /** A time-bounded part of a single stratigraphic column. */
150
- section_id: number | number[];
151
- units: T[];
152
- b_pos?: number;
153
- t_pos?: number;
154
- }
155
- export interface ExtUnit extends UnitLong {
156
- bottomOverlap: boolean;
157
- overlappingUnits: number[];
158
- column?: number;
159
- t_clip_pos?: number;
160
- b_clip_pos?: number;
161
- }
162
- export type PackageLayoutData<T extends UnitLong = ExtUnit> = SectionInfo<T> & {
163
- scaleInfo: PackageScaleLayoutData;
164
- key: string;
165
- };
166
- export interface CompositeScaleData {
167
- totalHeight: number;
168
- sections: PackageScaleLayoutData[];
169
- }
170
- export interface ColumnScaleOptions extends ColumnHeightScaleOptions {
171
- axisType: ColumnAxisType;
172
- unconformityHeight: number;
173
- }
174
- export interface CompositeColumnData<T extends UnitLong = ExtUnit> extends Omit<CompositeScaleData, "sections"> {
175
- sections: PackageLayoutData<T>[];
176
- }
177
- export interface PrepareColumnOptions extends ColumnScaleOptions {
178
- axisType: ColumnAxisType;
179
- t_age?: number;
180
- b_age?: number;
181
- t_pos?: number;
182
- b_pos?: number;
183
- mergeSections?: MergeSectionsMode;
184
- collapseSmallUnconformities?: boolean | number;
185
- scale?: ScaleContinuousNumeric<any, any>;
186
- }
187
- export enum MergeSectionsMode {
188
- ALL = "all",
189
- OVERLAPPING = "overlapping"
190
- }
191
- export interface PreparedColumnData extends CompositeColumnData {
192
- sections: PackageLayoutData[];
193
- units: ExtUnit[];
194
- }
195
- interface UnitsOverlap {
196
- (a: StratigraphicPackage, b: StratigraphicPackage, axisType?: ColumnAxisType.AGE, tolerance?: number): boolean;
197
- (a: BaseUnit, b: BaseUnit, axisType: ColumnAxisType, tolerance?: number): boolean;
198
- }
199
- export const unitsOverlap: UnitsOverlap;
200
- /** A more permissive overlap function in the age space */
201
- export function agesOverlap(a: StratigraphicPackage, b: StratigraphicPackage, tolerance?: number): boolean;
202
- export interface PossiblyClippedUnit extends BaseUnit {
203
- t_clip_pos?: number;
204
- b_clip_pos?: number;
205
- }
206
- export function getUnitHeightRange(unit: PossiblyClippedUnit, axisType: ColumnAxisType, clipped?: boolean): [number, number];
207
- export function getPositionWithinUnit(position: number, unit: PossiblyClippedUnit, axisType: ColumnAxisType): number | null;
208
- export const createUnitSorter: (axisType: ColumnAxisType) => (a: BaseUnit, b: BaseUnit) => number;
209
- export function ensureArray<T>(x: T | T[]): T[];
210
- export function ensureRealFloat(x: number | string | null): number | null;
211
- export interface CompositeColumnScale {
212
- (age: number): number | null;
213
- copy(): CompositeColumnScale;
214
- domain(): [number, number];
215
- invert(pixelHeight: number): number | null;
216
- clamp(clamp: boolean): void;
217
- }
218
- export function preprocessUnits<T extends UnitLong = UnitLong>(section: SectionInfo<T>, axisType?: ColumnAxisType): ExtUnit[];
219
- export function usePreparedColumnUnits(data: UnitLong[], options: PrepareColumnOptions): PreparedColumnData;
220
- export function prepareColumnUnits(units: UnitLong[], options: PrepareColumnOptions): PreparedColumnData;
221
- type AtomMap = [WritableAtom<any, any, any>, any][];
222
- type UnitSelectDispatch = (unit: number | BaseUnit | null, target: HTMLElement | null) => void;
223
- export function useUnitSelectionDispatch(): UnitSelectDispatch;
224
- export function useSelectedUnit(): any;
225
- export interface ColumnClickData {
226
- unitID: number | null;
227
- unit: BaseUnit | null;
228
- target: HTMLElement | null;
229
- height: number;
230
- }
231
- export interface UnitSelectionCallbacks {
232
- onClickedColumn?: (columnClickData: ColumnClickData, event: Event) => void;
233
- onUnitSelected?: <T extends BaseUnit>(unitID: number | null, unit: T | null) => void;
234
- }
235
- export const allowUnitSelectionAtom: PrimitiveAtom<boolean> & {
236
- init: boolean;
237
- };
238
- export const selectedUnitIDAtom: PrimitiveAtom<number> & {
239
- init: number;
240
- };
241
- export function useColumnRef(): any;
242
- export function useAtomOverlayPosition(): any;
243
- export function UnitSelectionCallbackManager({ onUnitSelected, }: UnitSelectionCallbacks): any;
244
- /** TODO: figure out if onClickedColumn is still needed
245
- /** This is not the natural place to get positions within the column,
246
- * but it will work for now.
247
- if (props.onClickedColumn) {
248
- // Infer height from top and bottom height of unit (because that's passed back with the call)
249
- //const py = event.y;
250
- //const [bottom, top] = getUnitHeightRange(unit, axisType);
251
- //const height = Math.abs(bottom - top);
252
-
253
- const columnClickData: ColumnClickData = {
254
- unitID: unit?.unit_id,
255
- unit,
256
- target,
257
- height: el?.getBoundingClientRect().height || 0,
258
- };
259
- props.onClickedColumn(columnClickData, event);
260
- }*/
261
- export function useUnitSelectionTarget(unit: IUnit): [React.RefObject<HTMLElement>, boolean, (evt: Event) => void];
262
- export function UnitKeyboardNavigation({ columnData, units, allowHorizontalNavigation, }: {
263
- columnData?: ColumnData[];
264
- units?: UnitLong[];
265
- allowHorizontalNavigation?: boolean;
266
- }): any;
267
- export interface ColumnStateProviderProps<T extends BaseUnit> extends Partial<UnitSelectionCallbacks> {
268
- children: ReactNode;
269
- units: T[];
270
- selectedUnit: number | null;
271
- allowUnitSelection?: boolean;
272
- }
273
- export function MacrostratColumnStateProvider<T extends BaseUnit>({ children, units, allowUnitSelection, onUnitSelected, selectedUnit, }: ColumnStateProviderProps<T>): FunctionComponentElement<{
274
- children: ReactNode;
275
- atoms?: AtomMap;
276
- shouldUpdateAtoms?: boolean;
277
- }>;
278
- export interface MacrostratColumnDataContext<T extends BaseUnit> {
279
- units: T[];
280
- sections: PackageLayoutData[];
281
- totalHeight?: number;
282
- axisType?: ColumnAxisType;
283
- allowUnitSelection?: boolean;
284
- }
285
- export interface ColumnDataProviderProps<T extends BaseUnit> extends MacrostratColumnDataContext<T>, ColumnStateProviderProps<T> {
286
- children: ReactNode;
287
- }
288
- export function MacrostratColumnDataProvider<T extends BaseUnit>({ children, units, sections, totalHeight, axisType, allowUnitSelection, onUnitSelected, selectedUnit, }: ColumnDataProviderProps<T>): FunctionComponentElement<ColumnStateProviderProps<BaseUnit>>;
289
- export function UnitSelectionProvider(props: ColumnStateProviderProps<any>): FunctionComponentElement<ColumnStateProviderProps<BaseUnit>>;
290
- export function useMacrostratColumnData(): MacrostratColumnDataContext<any>;
291
- export function useMacrostratUnits(): any;
292
- export function useColumnUnitsMap(): Map<number, ExtUnit> | null;
293
- export function useCompositeScale(): CompositeColumnScale;
294
- export interface MacrostratDataProviderProps {
295
- baseURL: string;
296
- children: React.ReactNode;
297
- }
298
- interface ColumnFootprintsStorage {
299
- project_id: number;
300
- inProcess: boolean;
301
- columns: ColumnGeoJSONRecordWithID[];
302
- }
303
- interface RefsSlice {
304
- refs: Map<number, MacrostratRef>;
305
- inFlightRequests: Set<string>;
306
- getRefs(ids: number[]): Promise<MacrostratRef[]>;
307
- }
308
- interface MacrostratStore extends RefsSlice {
309
- baseURL: string;
310
- fetch: any;
311
- lithologies: Map<number, any> | null;
312
- getLithologies(ids: number[] | null): Promise<any>;
313
- intervals: Map<number, any> | null;
314
- getIntervals(ids: number[] | null, timescaleID: number | null): Promise<Interval[]>;
315
- environments: Map<number, Environment> | null;
316
- getEnvironments(ids: number[] | null): Promise<Environment[]>;
317
- columnFootprints: Map<number, ColumnFootprintsStorage>;
318
- getColumns(projectID: number | null, inProcess: boolean): Promise<ColumnGeoJSONRecord[]>;
319
- stratNames: Map<number, StratName> | null;
320
- getStratNames(ids: number[] | null): Promise<StratName[]>;
321
- }
322
- type MacrostratSelector = (store: MacrostratStore) => any;
323
- export function useMacrostratStore(selector: MacrostratSelector | "api"): any;
324
- export function useMacrostratBaseURL(defaultURL?: string): string;
325
- export function useMacrostratFetch(): any;
326
- type DataTypeKey = "lithologies" | "intervals" | "columns" | "environments" | "refs" | "strat_names";
327
- export function useMacrostratDefs(dataType: string): Map<number, any> | null;
328
- export function useMacrostratColumns(projectID: number | null, inProcess: boolean): any;
329
- export function useMacrostratColumnInfo(columnID: number): ColumnGeoJSONRecord["properties"] | null;
330
- export function useMacrostratData(dataType: DataTypeKey, ...args: any[]): any;
331
- export function MacrostratDataProvider(props: MacrostratDataProviderProps): FunctionComponentElement<APIProviderProps>;
332
- /** Legacy API provider so useAPIResult can work */
333
- type APIProviderProps = {
334
- children: ReactNode;
335
- useDev?: boolean;
336
- baseURL?: string;
337
- };
338
- export function MacrostratAPIProvider({ children, useDev, baseURL, }: APIProviderProps): FunctionComponentElement<Partial<APIConfig> & AxiosRequestConfig<any> & Partial<AxiosRequestConfig<any>> & {
339
- config?: Partial<APIConfigOptions>;
340
- } & {
341
- context?: Context<{
342
- baseURL: string;
343
- axiosInstance: AxiosInstance;
344
- } & {
345
- config: APIConfig;
346
- }>;
347
- children?: React.ReactChild;
348
- }>;
349
- export function MacrostratColumnProvider(props: any): FunctionComponentElement<ColumnProviderProps<ColumnDivision>>;
350
- /** This is now a legacy provider */
351
- export function LithologiesProvider({ children }: {
352
- children: any;
353
- }): any;
354
- export function useLithologies(): any;
355
- export function useEnvironments(): any;
356
- export interface ColumnArgs {
357
- col_id?: number;
358
- unit_id?: number;
359
- project_id?: number;
360
- status_code?: "in process";
361
- }
362
- type ColumnManagerData = [ColumnArgs, (c: ColumnArgs) => void];
363
- export function useColumnNav(defaultArgs?: ColumnArgs): ColumnManagerData;
364
- export function ColumnNavProvider({ children, ...defaultArgs }: {
365
- [x: string]: any;
366
- children: any;
367
- }): FunctionComponentElement<ProviderProps<ColumnManagerData>>;
368
- interface KeyOptions {
369
- key?: string;
370
- id_key?: string;
371
- }
372
- export function getMixedUnitColor(unit: UnitLong, lithMap: any, inDarkMode?: boolean, asBackground?: boolean, keyOpts?: KeyOptions): string | null;
373
- interface UnitRectOptions {
374
- widthFraction?: number;
375
- axisType?: ColumnAxisType;
376
- padding?: number;
377
- }
378
- interface LabeledUnitProps extends UnitRectOptions, Clickable, Partial<RectBounds> {
379
- division: IUnit;
380
- patternID?: string | number;
381
- label: string;
382
- onLabelUpdated?(label: string, shown: boolean): any;
383
- halfWidth?: boolean;
384
- showLabel?: boolean;
385
- backgroundColor?: string;
386
- }
387
- export function LabelTrackerProvider(props: any): FunctionComponentElement<ProviderProps<any>>;
388
- export function TrackedLabeledUnit({ division, nameForDivision, ...rest }: {
389
- [x: string]: any;
390
- division: any;
391
- nameForDivision?: (div: any) => any;
392
- }): FunctionComponentElement<LabeledUnitProps>;
393
- export const CompositeUnitComponent: typeof TrackedLabeledUnit;
394
- type BaseUnitProps = {
395
- width: number;
396
- showLabels?: boolean;
397
- columnWidth?: number;
398
- clipToFrame?: boolean;
399
- };
400
- export type ICompositeUnitProps = BaseUnitProps & {
401
- gutterWidth?: number;
402
- labelOffset?: number;
403
- paddingLeft?: number;
404
- nameForDivision?: (division: BaseUnit) => string;
405
- children?: React.ReactNode;
406
- unitComponent?: React.FC<any>;
407
- unitComponentProps?: any;
408
- noteMode?: "labeled" | "unlabeled";
409
- showLabelColumn?: boolean;
410
- noteComponent?: React.FC<any>;
411
- shouldRenderNote?: (d: any) => boolean;
412
- };
413
- interface CompositeUnitProps {
414
- unitComponent: React.FC<any>;
415
- unitComponentProps?: any;
416
- width: number;
417
- showLabels?: boolean;
418
- clipToFrame?: boolean;
419
- }
420
- export function CompositeUnitsColumn(props: CompositeUnitProps): FunctionComponentElement<LithologyColumnProps>;
421
- export function AnnotatedUnitsColumn(props: ICompositeUnitProps): any;
422
- export function SectionLabelsColumn(props: ICompositeUnitProps): DOMElement<DOMAttributes<Element>, Element>;
423
- export function ColumnNotesProvider(props: any): FunctionComponentElement<ProviderProps<ColumnCtx<ColumnDivision>>>;
424
- export function UnitsColumn({ width }: {
425
- width?: number;
426
- }): FunctionComponentElement<LithologyColumnProps>;
427
- export function SimpleUnitsColumn(props: ICompositeUnitProps): ReactElement<any, string | JSXElementConstructor<any>>;
428
- export function BasicUnitComponent({ division, ...rest }: {
429
- [x: string]: any;
430
- division: any;
431
- }): FunctionComponentElement<{
432
- [x: string]: any;
433
- division: any;
434
- nColumns?: number;
435
- }>;
436
- export function UnitComponent({ division, nColumns, ...rest }: {
437
- [x: string]: any;
438
- division: any;
439
- nColumns?: number;
440
- }): FunctionComponentElement<{
441
- [x: string]: any;
442
- division: any;
443
- nameForDivision?: (div: any) => any;
444
- }>;
445
- interface UnitColorOptions {
446
- asBackground?: boolean;
447
- }
448
- export function useUnitColor(unit: any, opts?: UnitColorOptions): string | null;
449
- export function ColoredUnitComponent(props: any): FunctionComponentElement<{
450
- [x: string]: any;
451
- division: any;
452
- nColumns?: number;
453
- }>;
454
- export function useUnitColorByEnvironment(unit: any, opts?: UnitColorOptions): string | null;
455
- export function EnvironmentColoredUnitComponent(props: any): FunctionComponentElement<{
456
- [x: string]: any;
457
- division: any;
458
- nColumns?: number;
459
- }>;
460
- enum LithologyTagFeature {
461
- Proportion = "proportion",
462
- Attributes = "attributes"
463
- }
464
- type LatLng = {
465
- lng: number;
466
- lat: number;
467
- };
468
- type TargetPosition = LatLng & {
469
- zoom: number;
470
- };
471
- type CameraPosition = LatLng & {
472
- bearing?: number;
473
- pitch?: number;
474
- altitude: number;
475
- };
476
- type MapPosition = {
477
- camera: CameraPosition;
478
- target?: TargetPosition;
479
- };
480
- export interface UnitDetailsPanelProps {
481
- unit: any;
482
- onClose?: any;
483
- className?: string;
484
- actions?: ReactNode;
485
- hiddenActions?: ReactNode;
486
- features?: Set<UnitDetailsFeature>;
487
- lithologyFeatures?: Set<LithologyTagFeature>;
488
- onSelectUnit?: (unitID: number) => void;
489
- onClickItem?: MacrostratItemClickHandler;
490
- }
491
- export function UnitDetailsPanel({ unit, onClose, className, features, lithologyFeatures, actions, hiddenActions, onSelectUnit, onClickItem, }: UnitDetailsPanelProps): ReactElement<{
492
- className: string;
493
- }, string | JSXElementConstructor<any>>;
494
- export function LegendPanelHeader({ title, id, onClose, actions, hiddenActions, }: {
495
- title?: string | null;
496
- id?: number | null;
497
- onClose?: () => void;
498
- actions?: ReactNode | null;
499
- hiddenActions?: ReactNode | null;
500
- }): DOMElement<DOMAttributes<Element>, Element>;
501
- export enum UnitDetailsFeature {
502
- AdjacentUnits = "adjacent-units",
503
- Color = "color",
504
- OutcropType = "outcrop-type",
505
- JSONToggle = "json-toggle",
506
- DepthRange = "depth-range",
507
- ColumnName = "column-name"
508
- }
509
- export type MacrostratItemClickHandler = (event: MouseEvent, item: Lithology | Environment | UnitLong | Interval | {
510
- strat_name_id: number;
511
- }) => void;
512
- export function ReferencesField({ refs, className, ...rest }: {
513
- [x: string]: any;
514
- refs: any;
515
- className?: any;
516
- }): FunctionComponentElement<{
517
- label?: string;
518
- value?: any;
519
- inline?: boolean;
520
- showIfEmpty?: boolean;
521
- className?: string;
522
- children?: any;
523
- unit?: string;
524
- row?: boolean;
525
- }>;
526
- export function AgeLabel({ age, maximumFractionDigits, minimumFractionDigits, className, }: {
527
- age: number;
528
- className?: string;
529
- maximumFractionDigits?: number;
530
- minimumFractionDigits?: number;
531
- }): FunctionComponentElement<{
532
- value?: any;
533
- unit?: string;
534
- children?: any;
535
- className?: string;
536
- }>;
537
- export function Duration({ value, maximumFractionDigits, minimumFractionDigits, }: {
538
- value: any;
539
- maximumFractionDigits?: number;
540
- minimumFractionDigits?: number;
541
- }): FunctionComponentElement<{
542
- value?: any;
543
- unit?: string;
544
- children?: any;
545
- className?: string;
546
- }>;
547
- export function ClickableText({ onClick, className, children, }: {
548
- onClick: () => void;
549
- className?: string;
550
- children: ReactNode;
551
- }): DetailedReactHTMLElement<{
552
- onClick: () => void;
553
- className: string;
554
- }, HTMLElement>;
555
- export function Identifier({ id, onClick, className, }: {
556
- id: number | string;
557
- onClick?: (id: number | string) => void;
558
- className?: string;
559
- }): FunctionComponentElement<{
560
- onClick: () => void;
561
- className?: string;
562
- children: ReactNode;
563
- }>;
564
- export function UnitDetailsPopover({ style, children, viewportPadding, }: {
565
- style: object;
566
- viewportPadding?: number;
567
- children: React.ReactNode;
568
- }): ReactElement<{
569
- style: object;
570
- }, string | JSXElementConstructor<any>>;
571
- export function UnitSelectionPopover(props: Omit<UnitDetailsPanelProps, "onSelectUnit" | "unit">): DOMElement<DOMAttributes<Element>, Element>;
572
- export function UnitDetailsPanelWithNavigation(props: any): FunctionComponentElement<_UnitDetailsPanelProps1>;
573
- export function VerticalAxisLabel(props: any): ReactElement<{
574
- className: any;
575
- style: {
576
- height: any;
577
- };
578
- }, string | JSXElementConstructor<any>>;
579
- interface CompositeAgeAxisProps {
580
- className?: string;
581
- style?: React.CSSProperties;
582
- }
583
- export function CompositeAgeAxis(rest: CompositeAgeAxisProps): FunctionComponentElement<CompositeStratigraphicScaleInfo>;
584
- export function ApproximateHeightAxis(rest: CompositeAgeAxisProps): FunctionComponentElement<CompositeStratigraphicScaleInfo>;
585
- export interface CompositeStratigraphicScaleInfo extends CompositeAgeAxisProps {
586
- axisType: ColumnAxisType;
587
- axisLabel?: string;
588
- axisUnit?: string;
589
- totalHeight: number;
590
- packages: PackageScaleLayoutData[];
591
- }
592
- export function CompositeAgeAxisCore(props: CompositeStratigraphicScaleInfo): ReactElement<{
593
- className?: string;
594
- style?: React.CSSProperties;
595
- }, string | JSXElementConstructor<any>>;
596
- export function AgeCursor({ age }: {
597
- age: any;
598
- }): ReactElement<{
599
- style: {
600
- top: number;
601
- };
602
- }, string | JSXElementConstructor<any>>;
603
- declare namespace AgeAxis {
604
- var defaultProps: {
605
- width: number;
606
- margin: number;
607
- };
608
- }
609
- interface SectionSharedProps {
610
- unitComponent?: FunctionComponent<any>;
611
- unitComponentProps?: any;
612
- showLabels?: boolean;
613
- width?: number;
614
- columnWidth?: number;
615
- children?: ReactNode;
616
- showLabelColumn?: boolean;
617
- axisType?: ColumnAxisType;
618
- className?: string;
619
- clipUnits?: boolean;
620
- maxInternalColumns?: number;
621
- verticalSpacing?: number;
622
- unconformityLabels?: boolean;
623
- }
624
- interface BaseColumnProps extends Omit<SectionSharedProps, "unconformityLabels"> {
625
- className?: string;
626
- showLabelColumn?: boolean;
627
- keyboardNavigation?: boolean;
628
- showLabels?: boolean;
629
- maxInternalColumns?: number;
630
- showTimescale?: boolean;
631
- timescaleLevels?: number | [number, number];
632
- unconformityLabels?: boolean | UnconformityLabelPlacement;
633
- onMouseOver?: (unit: UnitLong | null, height: number | null, evt: MouseEvent) => void;
634
- }
635
- export type UnconformityLabelPlacement = "minimal" | "prominent" | "none";
636
- export interface ColumnProps extends Padding, BaseColumnProps, ColumnHeightScaleOptions {
637
- units: UnitLong[];
638
- t_age?: number;
639
- b_age?: number;
640
- t_pos?: number;
641
- b_pos?: number;
642
- mergeSections?: MergeSectionsMode;
643
- showUnitPopover?: boolean;
644
- allowUnitSelection?: boolean;
645
- selectedUnit?: number | null;
646
- onUnitSelected?: (unitID: number | null, unit: any) => void;
647
- unconformityHeight?: number;
648
- scale?: ScaleContinuousNumeric<number, number>;
649
- }
650
- export function Column(props: ColumnProps): DOMElement<DOMAttributes<Element>, Element> | FunctionComponentElement<_ColumnDataProviderProps1<BaseUnit>>;
651
- export interface ColumnContainerProps extends HTMLAttributes<HTMLDivElement> {
652
- className?: string;
653
- style?: CSSProperties;
654
- }
655
- export function ColumnContainer(props: ColumnContainerProps): FunctionComponentElement<BoxProps<ElementType<any, keyof JSX.IntrinsicElements>>>;
656
- export function ColumnBasicInfo({ data, showColumnID, showReferences, }: {
657
- data: any;
658
- showColumnID?: boolean;
659
- showReferences?: boolean;
660
- }): DOMElement<DOMAttributes<Element>, Element>;
661
- type MapboxCoreOptions = Omit<mapboxgl.MapboxOptions, "container">;
662
- interface MapViewProps extends MapboxCoreOptions {
663
- showLineSymbols?: boolean;
664
- children?: React.ReactNode;
665
- mapboxToken?: string;
666
- accessToken?: string;
667
- terrainSourceID?: string;
668
- enableTerrain?: boolean;
669
- infoMarkerPosition?: mapboxgl.LngLatLike;
670
- mapPosition?: MapPosition;
671
- initializeMap?: (container: HTMLElement, args: MapboxOptionsExt) => mapboxgl.Map;
672
- onMapLoaded?: (map: mapboxgl.Map) => void;
673
- onStyleLoaded?: (map: mapboxgl.Map) => void;
674
- onMapMoved?: (mapPosition: MapPosition, map: mapboxgl.Map) => void;
675
- /** This map sets its own viewport, rather than being positioned by a parent.
676
- * This is a hack to ensure that the map can overflow its "safe area" when false */
677
- standalone?: boolean;
678
- /** Overlay styles to apply to the map: a list of mapbox style objects or fragments to
679
- * overlay on top of the main map style at runtime */
680
- overlayStyles?: Partial<mapboxgl.StyleSpecification>[];
681
- /** A function to transform the map style before it is loaded */
682
- transformStyle?: (style: mapboxgl.StyleSpecification) => mapboxgl.StyleSpecification;
683
- loadingIgnoredSources?: string[];
684
- id?: string;
685
- className?: string;
686
- }
687
- interface MapboxOptionsExt extends MapboxCoreOptions {
688
- mapPosition?: MapPosition;
689
- }
690
- export interface InsetMapProps extends Omit<MapViewProps, "style"> {
691
- controls?: ReactNode;
692
- className?: string;
693
- children?: ReactNode;
694
- style?: CSSProperties;
695
- mapStyle?: mapboxgl.Style | string;
696
- showLabels?: boolean;
697
- showAdmin?: boolean;
698
- showRoads?: boolean;
699
- }
700
- export function InsetMap({ controls, className, children, style, mapStyle, accessToken, showLabels, showAdmin, showRoads, ...rest }: InsetMapProps): ReactElement<{
701
- className: string;
702
- style: CSSProperties;
703
- }, string | JSXElementConstructor<any>>;
704
- export function buildColumnsStyle(color: string): Style;
705
- interface NavigationProviderProps {
706
- projectID?: number;
707
- inProcess?: boolean;
708
- selectedColumn?: number | null;
709
- hoveredColumn?: number | null;
710
- columns?: ColumnGeoJSONRecordWithID[] | null;
711
- columnIDs?: number[] | null;
712
- children: ReactNode;
713
- onSelectColumn?: (col_id: number | null, column: any) => void;
714
- onHoverColumn?: (col_id: number | null, column: any) => void;
715
- }
716
- export interface ColumnNavigationMapProps extends InsetMapProps {
717
- padding?: number;
718
- children?: ReactNode;
719
- accessToken?: string;
720
- selectedColumn?: number;
721
- hoveredColumn?: number;
722
- onSelectColumn?: (colID: number | null) => void;
723
- onHoverColumn?: (colID: number | null) => void;
724
- showTriangulation?: boolean;
725
- columnColor?: string;
726
- triangulationColor?: string;
727
- keyboardNavigation?: boolean;
728
- }
729
- export function ColumnNavigationMap(props: ColumnNavigationMapProps & NavigationProviderProps): FunctionComponentElement<NavigationProviderProps>;
730
- export function MeasurementsLayer(props: any): FunctionComponentElement<{
731
- [k: string]: any;
732
- geometry?: object;
733
- features?: IFeature[];
734
- useCanvas?: boolean;
735
- } & {
736
- children?: ReactNode | undefined;
737
- }>;
738
- type _ColumnProps1 = {
739
- col_id: number;
740
- };
741
- type ColumnFeature = ExtendedFeature<Polygon, _ColumnProps1>;
742
- export function ColumnFeatures(props: any): FunctionComponentElement<{
743
- [k: string]: any;
744
- geometry?: object;
745
- features?: IFeature[];
746
- useCanvas?: boolean;
747
- } & {
748
- children?: ReactNode | undefined;
749
- }>;
750
- enum MacrostratStatusCode {
751
- InProcess = "in process"
752
- }
753
- interface ColumnNavProps {
754
- col_id: number;
755
- status_code?: MacrostratStatusCode;
756
- project_id?: number;
757
- onChange(col_id: number): void;
758
- }
759
- interface KeyboardNavProps extends ColumnNavProps {
760
- features: ColumnFeature[];
761
- showLayers: boolean;
762
- }
763
- export function ColumnKeyboardNavigation(props: KeyboardNavProps): ReactElement<any, string | JSXElementConstructor<any>>;
764
- interface ColumnExtraInfo {
765
- apiRoute?: string;
766
- color?: string;
767
- filterColumns?(d: ColumnFeature): boolean;
768
- showDebugLayers?: boolean;
769
- format?: "topojson" | "geojson";
770
- }
771
- export const Columns: (props: ColumnNavProps & ColumnExtraInfo) => ReactElement<any, string | JSXElementConstructor<any>>;
772
- export const ColumnCenters: (props: ColumnNavProps) => FunctionComponentElement<ColumnNavProps & ColumnExtraInfo>;
773
- export const CurrentColumn: (props: any) => FunctionComponentElement<{
774
- [k: string]: any;
775
- geometry?: object;
776
- features?: IFeature[];
777
- useCanvas?: boolean;
778
- } & {
779
- children?: ReactNode | undefined;
780
- }>;
781
- export function ResizableMapFrame(props: any): ReactElement<{
782
- ref: MutableRefObject<any>;
783
- style: any;
784
- className: any;
785
- }, string | JSXElementConstructor<any>>;
786
- export type ColumnNavigationSVGMapProps = any;
787
- export function ColumnNavigationSVGMap(props: any): FunctionComponentElement<any>;
788
- export interface CorrelationMapInput {
789
- columns: ColumnGeoJSONRecord[];
790
- focusedLine: LineString | null;
791
- }
792
- export interface CorrelationMapStore extends CorrelationMapInput {
793
- onClickMap: (event: mapboxgl.MapMouseEvent, point: Point) => void;
794
- }
795
- export interface CorrelationProviderProps extends CorrelationMapInput {
796
- projectID?: number;
797
- inProcess?: boolean;
798
- columns: ColumnGeoJSONRecord[] | null;
799
- children: ReactNode;
800
- onSelectColumns?: (columns: FocusedColumnGeoJSONRecord[], line: LineString | null) => void;
801
- }
802
- type ComputedStore = {
803
- focusedColumns: FocusedColumnGeoJSONRecord[];
804
- };
805
- export function ColumnCorrelationProvider({ children, columns, projectID, inProcess, focusedLine, onSelectColumns, }: CorrelationProviderProps): FunctionComponentElement<ProviderProps<StoreApi<CorrelationMapStore>>>;
806
- export function useCorrelationMapStore(selector: (state: CorrelationMapStore & ComputedStore) => any): any;
807
- interface FocusedColumnGeoJSONRecord extends ColumnGeoJSONRecord {
808
- properties: {
809
- centroid: Point;
810
- nearestPointOnLine: Point;
811
- distanceAlongLine: number;
812
- } & ColumnGeoJSONRecord["properties"];
813
- }
814
- export interface CorrelationMapProps extends InsetMapProps {
815
- padding?: number;
816
- children?: ReactNode;
817
- accessToken?: string;
818
- columnColor?: string;
819
- }
820
- export function ColumnCorrelationMap(props: CorrelationMapProps): FunctionComponentElement<InsetMapProps>;
821
- export function BoundaryAgeModelOverlay(): DOMElement<any, Element>;
822
- export function ComputedSurfacesOverlay(): DOMElement<DOMAttributes<Element>, Element>;
823
- interface CorrelationChartSettings extends Omit<PrepareColumnOptions, "axisType"> {
824
- targetUnitHeight?: number;
825
- }
826
- export interface CorrelationChartProps extends CorrelationChartSettings {
827
- data: ColumnData[];
828
- columnWidth?: number;
829
- columnSpacing?: number;
830
- targetUnitHeight?: number;
831
- unconformityLabels?: boolean;
832
- selectedUnit?: number | null;
833
- showUnitPopover?: boolean;
834
- unitComponent?: any;
835
- onUnitSelected?: (unitID: number | null, unit: BaseUnit | null) => void;
836
- }
837
- export function CorrelationChart({ data, columnSpacing, columnWidth, unconformityLabels, showUnitPopover, selectedUnit, onUnitSelected, unitComponent, ...scaleProps }: CorrelationChartProps): FunctionComponentElement<_ColumnContainerProps1>;
838
- export function parseLineFromString(section: string): LineString | null;
839
- export function stringifyLine(line: LineString | null): string | null;
840
- interface ColumnNotesProps {
841
- notes: any[];
842
- width?: number;
843
- noteComponent?: any;
844
- paddingLeft?: number;
845
- deltaConnectorAttachment?: number;
846
- children?: ReactNode;
847
- focusedNoteComponent?: ComponentType<any> | null;
848
- }
849
- export function ColumnNotes({ notes, width, noteComponent, paddingLeft, deltaConnectorAttachment, focusedNoteComponent, children, }: ColumnNotesProps): FunctionComponentElement<any>;
850
- export enum FossilDataType {
851
- Occurrences = "occs",
852
- Collections = "colls"
853
- }
854
- export interface PBDBEntity {
855
- unit_id: number;
856
- col_id: number;
857
- cltn_id: number;
858
- slb?: string;
859
- slu?: string;
860
- }
861
- export interface PBDBCollection extends PBDBEntity {
862
- cltn_name: string;
863
- pbdb_occs: number;
864
- t_age: number;
865
- b_age: number;
866
- [key: string]: any;
867
- }
868
- export interface PBDBOccurrence extends PBDBEntity {
869
- occ_id: number;
870
- cltn_id: number;
871
- taxon_name: string;
872
- best_name: string;
873
- [key: string]: any;
874
- }
875
- export function useFossilData<T extends PBDBEntity>(col_id: number, type?: FossilDataType): T[];
876
- type GetHeightRangeFn<T> = (data: T, unit: UnitLong | null, axisType: ColumnAxisType) => MeasurementHeightData;
877
- export interface BaseMeasurementsColumnProps<T> {
878
- data: T[];
879
- noteComponent?: any;
880
- width?: number;
881
- paddingLeft?: number;
882
- className?: string;
883
- getUnitID?: (d: T) => number | string;
884
- isMatchingUnit?: (d: T, unit: UnitLong) => boolean;
885
- getHeightRange?: GetHeightRangeFn<T>;
886
- deltaConnectorAttachment?: number;
887
- focusedNoteComponent?: any;
888
- }
889
- export interface ColumnMeasurementData<T = any> extends MeasurementHeightData {
890
- data: T;
891
- id: string | number;
892
- }
893
- type MeasurementPositionInformation = MeasurementHeightData | {
894
- unit_id: number;
895
- unit_rel_pos?: number;
896
- };
897
- export function standardizeMeasurementHeight(pos: MeasurementPositionInformation, units: UnitLong[], axisType: ColumnAxisType): MeasurementHeightData | null;
898
- export function mergeHeightRanges(data: MeasurementHeightData[], axisType: ColumnAxisType): MeasurementHeightData;
899
- export type MeasurementHeightData = {
900
- height: number;
901
- top_height?: number | null;
902
- };
903
- export function BaseMeasurementsColumn({ data, noteComponent, width, paddingLeft, className, deltaConnectorAttachment, focusedNoteComponent, }: BaseMeasurementsColumnProps<any>): ReactElement<{
904
- className: string;
905
- }, string | JSXElementConstructor<any>>;
906
- interface TruncatedListProps {
907
- data: any[];
908
- className?: string;
909
- maxItems?: number;
910
- itemRenderer?: (props: {
911
- data: any;
912
- }) => any;
913
- }
914
- export function TruncatedList({ data, className, maxItems, itemRenderer, }: TruncatedListProps): ReactElement<{
915
- className: string;
916
- }, string | JSXElementConstructor<any>>;
917
- export function groupNotesByPixelDistance<T = any>(data: ColumnMeasurementData<T[]>[], scale: CompositeColumnScale, axisType: ColumnAxisType, groupDistance: number): ColumnMeasurementData<T[]>[];
918
- export function SGPMeasurementsColumn({ columnID }: {
919
- columnID: any;
920
- }): FunctionComponentElement<_BaseMeasurementsColumnProps1<any>>;
921
- export function PBDBOccurrencesMatrix({ columnID }: {
922
- columnID: any;
923
- }): FunctionComponentElement<BoxProps<ElementType<any, keyof JSX.IntrinsicElements>>>;
924
- export function PBDBFossilsColumn({ columnID, type, }: {
925
- columnID: number;
926
- type: FossilDataType;
927
- }): FunctionComponentElement<_BaseMeasurementsColumnProps1<any>>;
928
- interface MeasurementInfo {
929
- measurement_id: number;
930
- measuremeta_id: number;
931
- measurement: string;
932
- measure_units: string;
933
- measure_phase: string;
934
- method: string;
935
- n: number;
936
- ref_id: number;
937
- sample_name: string;
938
- geo_unit: string;
939
- samp_lith: string;
940
- samp_lith_id: number;
941
- samp_desc: string;
942
- samp_age: string;
943
- lat: number;
944
- lng: number;
945
- unit_id: number;
946
- unit_rel_pos?: any;
947
- col_id: number;
948
- strat_name_id: number;
949
- match_basis: string;
950
- ref: string;
951
- measure_value: number[];
952
- measure_error: number[];
953
- measure_position: any[];
954
- measure_n: number[];
955
- sample_no: string[];
956
- error_units: string;
957
- }
958
- interface DetritalItemProps {
959
- note: DZMeasurementInfo;
960
- spacing?: {
961
- below?: number;
962
- above?: number;
963
- };
964
- width?: number;
965
- height?: number;
966
- color?: string;
967
- }
968
- interface DZMeasurementInfo extends ColumnMeasurementData<MeasurementInfo[]> {
969
- units: IUnit[];
970
- }
971
- export function DetritalColumn({ columnID, color }: {
972
- columnID: any;
973
- color?: string;
974
- }): ComponentElement<NonIdealStateProps, NonIdealState> | FunctionComponentElement<_BaseMeasurementsColumnProps1<any>>;
975
- export function DetritalGroup(props: DetritalItemProps): ReactElement<{
976
- className: string;
977
- }, string | JSXElementConstructor<any>>;
978
- export const MeasurementDataContext: Context<any>;
979
- export function MeasurementDataProvider(props: any): FunctionComponentElement<ProviderProps<any>>;
980
- export const useMeasurementData: () => any;
981
- interface DataAreaProps {
982
- clipY: boolean;
983
- parameter: string;
984
- corrected: boolean;
985
- system: string;
986
- children: React.ReactNode;
987
- getHeight?: Function;
988
- }
989
- interface IsotopesDatasetProps {
990
- color?: string;
991
- parameter: string;
992
- }
993
- interface IsotopeColumnProps extends IsotopesDatasetProps {
994
- width: number;
995
- tickValues?: number[];
996
- label: string;
997
- domain?: [number, number];
998
- transform?: string;
999
- getHeight?: Function;
1000
- nTicks?: number;
1001
- showAxis?: boolean;
1002
- }
1003
- export function IsotopesDataset(props: any): FunctionComponentElement<DataAreaProps>;
1004
- export function IsotopesColumn(props: IsotopeColumnProps & {
1005
- children?: React.ReactNode;
1006
- }): DOMElement<DOMAttributes<Element>, Element>;
1007
-
1008
- //# sourceMappingURL=index.d.ts.map