@macrostrat/column-views 1.0.0 → 1.0.1

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 (80) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{age-axis.7ce58d66.js → esm/age-axis.64c509ee.js} +11 -11
  3. package/dist/{age-axis.7ce58d66.js.map → esm/age-axis.64c509ee.js.map} +1 -1
  4. package/dist/{boxes.6d3192e6.js → esm/boxes.13968b76.js} +26 -26
  5. package/dist/{boxes.6d3192e6.js.map → esm/boxes.13968b76.js.map} +1 -1
  6. package/dist/{boxes.module.dd631fe3.css → esm/boxes.module.28873d08.css} +1 -1
  7. package/dist/{boxes.module.dd631fe3.css.map → esm/boxes.module.28873d08.css.map} +1 -1
  8. package/dist/{boxes.module.998ff312.js → esm/boxes.module.605bdcd6.js} +1 -1
  9. package/dist/{boxes.module.998ff312.js.map → esm/boxes.module.605bdcd6.js.map} +1 -1
  10. package/dist/esm/carbon-isotopes.3b502a9e.js +11 -0
  11. package/dist/{carbon-isotopes.6d9bddcf.js.map → esm/carbon-isotopes.3b502a9e.js.map} +1 -1
  12. package/dist/{column.e35a471f.js → esm/column.97e31037.js} +21 -21
  13. package/dist/{column.e35a471f.js.map → esm/column.97e31037.js.map} +1 -1
  14. package/dist/{column.e901b5d4.js → esm/column.db058031.js} +17 -17
  15. package/dist/{column.e901b5d4.js.map → esm/column.db058031.js.map} +1 -1
  16. package/dist/{column.module.35ba04e7.js → esm/column.module.7f47d25a.js} +1 -1
  17. package/dist/{column.module.35ba04e7.js.map → esm/column.module.7f47d25a.js.map} +1 -1
  18. package/dist/{column.module.2e29259c.js → esm/column.module.9b8ce99d.js} +1 -1
  19. package/dist/{column.module.2e29259c.js.map → esm/column.module.9b8ce99d.js.map} +1 -1
  20. package/dist/{column.module.c9df6edf.css → esm/column.module.b5e18f0c.css} +1 -1
  21. package/dist/{column.module.c9df6edf.css.map → esm/column.module.b5e18f0c.css.map} +1 -1
  22. package/dist/{column.module.35184ea7.css → esm/column.module.cbb072df.css} +1 -1
  23. package/dist/{column.module.35184ea7.css.map → esm/column.module.cbb072df.css.map} +1 -1
  24. package/dist/{composite.494beffc.js → esm/composite.608a4ca2.js} +20 -20
  25. package/dist/{composite.494beffc.js.map → esm/composite.608a4ca2.js.map} +1 -1
  26. package/dist/{composite.module.6359deba.js → esm/composite.module.0638e7ee.js} +1 -1
  27. package/dist/{composite.module.6359deba.js.map → esm/composite.module.0638e7ee.js.map} +1 -1
  28. package/dist/esm/composite.module.69a38fd1.css +4 -0
  29. package/dist/{composite.module.5cc0e747.css.map → esm/composite.module.69a38fd1.css.map} +1 -1
  30. package/dist/{core.f3824dd8.js → esm/core.4db8e452.js} +15 -15
  31. package/dist/{core.f3824dd8.js.map → esm/core.4db8e452.js.map} +1 -1
  32. package/dist/{data-area.f9bb9ad9.js → esm/data-area.daff8da0.js} +15 -15
  33. package/dist/{data-area.f9bb9ad9.js.map → esm/data-area.daff8da0.js.map} +1 -1
  34. package/dist/{data-provider.61ef7f9a.js → esm/data-provider.1506eb64.js} +8 -8
  35. package/dist/{data-provider.61ef7f9a.js.map → esm/data-provider.1506eb64.js.map} +1 -1
  36. package/dist/{helpers.2af05ee4.js → esm/helpers.8a03cfc7.js} +6 -6
  37. package/dist/{helpers.2af05ee4.js.map → esm/helpers.8a03cfc7.js.map} +1 -1
  38. package/dist/{index.js → esm/index.js} +8 -8
  39. package/dist/{index.module.de76feb2.css → esm/index.module.0844afd8.css} +1 -1
  40. package/dist/{index.module.de76feb2.css.map → esm/index.module.0844afd8.css.map} +1 -1
  41. package/dist/{index.module.8fad0020.js → esm/index.module.24fe3a2e.js} +1 -1
  42. package/dist/{index.module.8fad0020.js.map → esm/index.module.24fe3a2e.js.map} +1 -1
  43. package/dist/{isotopes-column.b5442b4d.js → esm/isotopes-column.7cb5cc45.js} +33 -33
  44. package/dist/{isotopes-column.b5442b4d.js.map → esm/isotopes-column.7cb5cc45.js.map} +1 -1
  45. package/dist/{layers.946aaa37.js → esm/layers.ad5fd25d.js} +31 -31
  46. package/dist/{layers.946aaa37.js.map → esm/layers.ad5fd25d.js.map} +1 -1
  47. package/dist/{map.e782010f.js → esm/map.7aa26f17.js} +17 -17
  48. package/dist/{map.e782010f.js.map → esm/map.7aa26f17.js.map} +1 -1
  49. package/dist/{names.ab14789e.js → esm/names.f6a4e9a4.js} +11 -11
  50. package/dist/{names.ab14789e.js.map → esm/names.f6a4e9a4.js.map} +1 -1
  51. package/dist/{providers.abcb2cbe.js → esm/providers.cd1e652f.js} +7 -7
  52. package/dist/{providers.abcb2cbe.js.map → esm/providers.cd1e652f.js.map} +1 -1
  53. package/dist/{resolvers.2949c4c0.js → esm/resolvers.b5c82b78.js} +1 -1
  54. package/dist/{resolvers.2949c4c0.js.map → esm/resolvers.b5c82b78.js.map} +1 -1
  55. package/dist/{section.6f6fc929.js → esm/section.2513d610.js} +19 -19
  56. package/dist/{section.6f6fc929.js.map → esm/section.2513d610.js.map} +1 -1
  57. package/dist/{selection-popover.7e008544.js → esm/selection-popover.17d1bd55.js} +9 -9
  58. package/dist/{selection-popover.7e008544.js.map → esm/selection-popover.17d1bd55.js.map} +1 -1
  59. package/dist/{selection-popover.module.2732ebc0.css → esm/selection-popover.module.0a701258.css} +1 -1
  60. package/dist/{selection-popover.module.2732ebc0.css.map → esm/selection-popover.module.0a701258.css.map} +1 -1
  61. package/dist/{selection-popover.module.fdbfb40e.js → esm/selection-popover.module.e22f5183.js} +1 -1
  62. package/dist/{selection-popover.module.fdbfb40e.js.map → esm/selection-popover.module.e22f5183.js.map} +1 -1
  63. package/dist/{selection.add9f8b0.js → esm/selection.bbf26d0e.js} +23 -23
  64. package/dist/{selection.add9f8b0.js.map → esm/selection.bbf26d0e.js.map} +1 -1
  65. package/dist/{store.c5271371.js → esm/store.25eaa168.js} +6 -6
  66. package/dist/{store.c5271371.js.map → esm/store.25eaa168.js.map} +1 -1
  67. package/dist/{types.ff938b22.js → esm/types.f016e032.js} +1 -1
  68. package/dist/{types.ff938b22.js.map → esm/types.f016e032.js.map} +1 -1
  69. package/dist/{unit-details.0c1edd00.js → esm/unit-details.56ff8b70.js} +30 -30
  70. package/dist/{unit-details.0c1edd00.js.map → esm/unit-details.56ff8b70.js.map} +1 -1
  71. package/dist/{units.5ec6a44c.js → esm/units.361088d4.js} +13 -13
  72. package/dist/{units.5ec6a44c.js.map → esm/units.361088d4.js.map} +1 -1
  73. package/dist/node/index.js +2 -0
  74. package/dist/node/index.js.map +1 -0
  75. package/package.json +19 -10
  76. package/dist/carbon-isotopes.6d9bddcf.js +0 -11
  77. package/dist/composite.module.5cc0e747.css +0 -4
  78. /package/dist/{index.d.ts → esm/index.d.ts} +0 -0
  79. /package/dist/{index.d.ts.map → esm/index.d.ts.map} +0 -0
  80. /package/dist/{index.js.map → esm/index.js.map} +0 -0
@@ -154,4 +154,4 @@ div.map-column_084db9 .context-map .close-button {
154
154
  div.map-column_084db9 .context-map .land {
155
155
  background-color: #e9fcea;
156
156
  }
157
- /*# sourceMappingURL=column.module.35184ea7.css.map */
157
+ /*# sourceMappingURL=column.module.cbb072df.css.map */
@@ -1 +1 @@
1
- {"mappings":"AAEA;;;;;;;;AAOA;;;;;;;AAMI;;;;;;AAMF;;;;;;AAKE;;;;;;;;;;AAWE;;;;;;AAMF;;;;;AAME;;;;;;AAMA;;;;AAIF;;;;;;;;;;;;;;;;AAkBA;;;;AAII;;;;;;;;AAMN;;;;AASF;;;;;;;;;;AAWM;;;;;;;;;;;;AAYA;;;;AAIA;;;;;;;;;AAOE;;;;AAIF","sources":["packages/column-views/src/carbon-isotopes/column.module.sass"],"sourcesContent":["@use \"sass:color\"\n\n.column-ui\n width: 100vw\n height: 100vh\n overflow-y: scroll\n display: flex\n flex-direction: row\n\n.column-view\n flex-grow: 1\n padding: 1em\n max-height: 100vh\n overflow-y: scroll\n h1\n font-size: 1.2em\n margin-bottom: 0.2em\n padding-left: 35px\n\n// Column\n.column\n margin-bottom: 1em\n display: flex\n flex-direction: row\n .age-axis-label\n writing-mode: vertical-lr\n transform: rotate(180deg)\n font-size: 12px\n text-align: center\n position: sticky\n top: 0\n max-height: 100vh\n\n :global\n .tick text\n text-anchor: middle\n font-weight: 400 !important\n transform: rotate(-90deg) translate(8px,-12px)\n\n rect.unit\n stroke: black\n stroke-width: 1px\n\n g.lithology-column use.frame\n stroke: black\n stroke-width: 1.5px !important\n pointer-events: none\n\n g.isotopes-column\n rect.underlay\n fill: transparent\n\n .col-note-label\n font-size: 10px\n margin-top: 3px\n padding: 2px 2px 2px 3px\n line-height: 9px\n border-left: none !important\n\n g.height-range\n display: none\n\n .note-inner\n border: none\n\n .frame rect\n fill: transparent\n\n\n\n.bp5-dark\n .column :global\n .lithology-column .frame\n stroke: white\n g.inner\n rect.unit\n filter: invert(100%)\n g.lithology-column use.frame\n stroke: white\n .note\n line, path.col-note-link\n stroke: white\n .y.axis .tick line\n stroke: white\n\n.column-nav\n position: sticky\n top: 2.2em\n h3\n color: #444\n margin-bottom: 0.3em\n\n.default-buttons\n width: 100%\n margin: 0 -10px\n\ndiv.map-column\n width: 600px\n height: 100vh\n display: flex\n flex-direction: column\n\n :global\n .map-area\n flex-grow: 1\n\n .map-placeholder\n position: relative\n\n .macrostrat-map\n .graticule\n stroke-dasharray: inherit\n stroke: color.adjust(#AFE6F0, $lightness: -5%)\n .neatline\n stroke-width: 1.5px\n\n .context-map\n position: absolute\n top: 0\n right: 0\n width: 250px\n height: 250px\n cursor: pointer\n z-index: 100\n &.expanded\n cursor: inherit\n .columns path:hover\n stroke: rgba(255,0,0,.4) !important\n\n .close-button\n position: absolute\n top: 1em\n right: 1em\n\n .land\n background-color: rgb(233, 252, 234)\n"],"names":[],"version":3,"file":"column.module.35184ea7.css.map"}
1
+ {"mappings":"AAEA;;;;;;;;AAOA;;;;;;;AAMI;;;;;;AAMF;;;;;;AAKE;;;;;;;;;;AAWE;;;;;;AAMF;;;;;AAME;;;;;;AAMA;;;;AAIF;;;;;;;;;;;;;;;;AAkBA;;;;AAII;;;;;;;;AAMN;;;;AASF;;;;;;;;;;AAWM;;;;;;;;;;;;AAYA;;;;AAIA;;;;;;;;;AAOE;;;;AAIF","sources":["packages/column-views/src/carbon-isotopes/column.module.sass"],"sourcesContent":["@use \"sass:color\"\n\n.column-ui\n width: 100vw\n height: 100vh\n overflow-y: scroll\n display: flex\n flex-direction: row\n\n.column-view\n flex-grow: 1\n padding: 1em\n max-height: 100vh\n overflow-y: scroll\n h1\n font-size: 1.2em\n margin-bottom: 0.2em\n padding-left: 35px\n\n// Column\n.column\n margin-bottom: 1em\n display: flex\n flex-direction: row\n .age-axis-label\n writing-mode: vertical-lr\n transform: rotate(180deg)\n font-size: 12px\n text-align: center\n position: sticky\n top: 0\n max-height: 100vh\n\n :global\n .tick text\n text-anchor: middle\n font-weight: 400 !important\n transform: rotate(-90deg) translate(8px,-12px)\n\n rect.unit\n stroke: black\n stroke-width: 1px\n\n g.lithology-column use.frame\n stroke: black\n stroke-width: 1.5px !important\n pointer-events: none\n\n g.isotopes-column\n rect.underlay\n fill: transparent\n\n .col-note-label\n font-size: 10px\n margin-top: 3px\n padding: 2px 2px 2px 3px\n line-height: 9px\n border-left: none !important\n\n g.height-range\n display: none\n\n .note-inner\n border: none\n\n .frame rect\n fill: transparent\n\n\n\n.bp5-dark\n .column :global\n .lithology-column .frame\n stroke: white\n g.inner\n rect.unit\n filter: invert(100%)\n g.lithology-column use.frame\n stroke: white\n .note\n line, path.col-note-link\n stroke: white\n .y.axis .tick line\n stroke: white\n\n.column-nav\n position: sticky\n top: 2.2em\n h3\n color: #444\n margin-bottom: 0.3em\n\n.default-buttons\n width: 100%\n margin: 0 -10px\n\ndiv.map-column\n width: 600px\n height: 100vh\n display: flex\n flex-direction: column\n\n :global\n .map-area\n flex-grow: 1\n\n .map-placeholder\n position: relative\n\n .macrostrat-map\n .graticule\n stroke-dasharray: inherit\n stroke: color.adjust(#AFE6F0, $lightness: -5%)\n .neatline\n stroke-width: 1.5px\n\n .context-map\n position: absolute\n top: 0\n right: 0\n width: 250px\n height: 250px\n cursor: pointer\n z-index: 100\n &.expanded\n cursor: inherit\n .columns path:hover\n stroke: rgba(255,0,0,.4) !important\n\n .close-button\n position: absolute\n top: 1em\n right: 1em\n\n .land\n background-color: rgb(233, 252, 234)\n"],"names":[],"version":3,"file":"column.module.cbb072df.css.map"}
@@ -1,10 +1,10 @@
1
- import {defaultNameFunction as $bc17276da4abb183$export$c9757aeb43a67df0, UnitNamesColumn as $bc17276da4abb183$export$594d19cdd88f8c16} from "./names.ab14789e.js";
2
- import {LabeledUnit as $d254716a820e9c85$export$b4f0ca233b98f9af, UnitBoxes as $d254716a820e9c85$export$5d1cdfabe8dc8085} from "./boxes.6d3192e6.js";
3
- import "./composite.module.5cc0e747.css";
4
- import $2GuZh$compositemodule6359debajs from "./composite.module.6359deba.js";
5
- import {hyperStyled as $2GuZh$hyperStyled} from "@macrostrat/hyper";
6
- import {useColumn as $2GuZh$useColumn, LithologyColumn as $2GuZh$LithologyColumn, ColumnLayoutContext as $2GuZh$ColumnLayoutContext} from "@macrostrat/column-components";
7
- import {createContext as $2GuZh$createContext, useState as $2GuZh$useState, useRef as $2GuZh$useRef, useCallback as $2GuZh$useCallback, useContext as $2GuZh$useContext, memo as $2GuZh$memo} from "react";
1
+ import {defaultNameFunction as $bc17276da4abb183$export$c9757aeb43a67df0, UnitNamesColumn as $bc17276da4abb183$export$594d19cdd88f8c16} from "./names.f6a4e9a4.js";
2
+ import {LabeledUnit as $d254716a820e9c85$export$b4f0ca233b98f9af, UnitBoxes as $d254716a820e9c85$export$5d1cdfabe8dc8085} from "./boxes.13968b76.js";
3
+ import "./composite.module.69a38fd1.css";
4
+ import $1PjJ0$compositemodule0638e7eejs from "./composite.module.0638e7ee.js";
5
+ import {hyperStyled as $1PjJ0$hyperStyled} from "@macrostrat/hyper";
6
+ import {useColumn as $1PjJ0$useColumn, LithologyColumn as $1PjJ0$LithologyColumn, ColumnLayoutContext as $1PjJ0$ColumnLayoutContext} from "@macrostrat/column-components";
7
+ import {createContext as $1PjJ0$createContext, useState as $1PjJ0$useState, useRef as $1PjJ0$useRef, useCallback as $1PjJ0$useCallback, useContext as $1PjJ0$useContext, memo as $1PjJ0$memo} from "react";
8
8
 
9
9
 
10
10
  function $parcel$interopDefault(a) {
@@ -16,15 +16,15 @@ function $parcel$interopDefault(a) {
16
16
 
17
17
 
18
18
 
19
- const $8c8238faa5cde49c$var$h = (0, $2GuZh$hyperStyled)((0, ($parcel$interopDefault($2GuZh$compositemodule6359debajs))));
20
- const $8c8238faa5cde49c$var$LabelTrackerContext = (0, $2GuZh$createContext)(null);
21
- const $8c8238faa5cde49c$var$UnlabeledDivisionsContext = (0, $2GuZh$createContext)(null);
19
+ const $8c8238faa5cde49c$var$h = (0, $1PjJ0$hyperStyled)((0, ($parcel$interopDefault($1PjJ0$compositemodule0638e7eejs))));
20
+ const $8c8238faa5cde49c$var$LabelTrackerContext = (0, $1PjJ0$createContext)(null);
21
+ const $8c8238faa5cde49c$var$UnlabeledDivisionsContext = (0, $1PjJ0$createContext)(null);
22
22
  function $8c8238faa5cde49c$var$LabelTrackerProvider(props) {
23
23
  const { children: children } = props;
24
- const { divisions: divisions } = (0, $2GuZh$useColumn)();
25
- const [unlabeledDivisions, setUnlabeledDivisions] = (0, $2GuZh$useState)(null);
26
- const labelTrackerRef = (0, $2GuZh$useRef)({});
27
- const trackLabelVisibility = (0, $2GuZh$useCallback)((div, visible)=>{
24
+ const { divisions: divisions } = (0, $1PjJ0$useColumn)();
25
+ const [unlabeledDivisions, setUnlabeledDivisions] = (0, $1PjJ0$useState)(null);
26
+ const labelTrackerRef = (0, $1PjJ0$useRef)({});
27
+ const trackLabelVisibility = (0, $1PjJ0$useCallback)((div, visible)=>{
28
28
  labelTrackerRef.current[div.unit_id] = visible;
29
29
  if (Object.keys(labelTrackerRef.current).length == divisions.length) setUnlabeledDivisions(// @ts-ignore
30
30
  divisions.filter((d)=>labelTrackerRef.current[d.unit_id] == false));
@@ -40,7 +40,7 @@ function $8c8238faa5cde49c$var$LabelTrackerProvider(props) {
40
40
  }, children));
41
41
  }
42
42
  function $8c8238faa5cde49c$export$f613830566442374({ division: division, nameForDivision: nameForDivision = (0, $bc17276da4abb183$export$c9757aeb43a67df0), axisType: axisType, ...rest }) {
43
- const trackLabelVisibility = (0, $2GuZh$useContext)($8c8238faa5cde49c$var$LabelTrackerContext);
43
+ const trackLabelVisibility = (0, $1PjJ0$useContext)($8c8238faa5cde49c$var$LabelTrackerContext);
44
44
  return $8c8238faa5cde49c$var$h((0, $d254716a820e9c85$export$b4f0ca233b98f9af), {
45
45
  division: division,
46
46
  //halfWidth: div.bottomOverlap,
@@ -53,7 +53,7 @@ function $8c8238faa5cde49c$export$f613830566442374({ division: division, nameFor
53
53
  }
54
54
  function $8c8238faa5cde49c$var$UnlabeledUnitNames(props) {
55
55
  // Returns only unlabeled divisions
56
- const divisions = (0, $2GuZh$useContext)($8c8238faa5cde49c$var$UnlabeledDivisionsContext);
56
+ const divisions = (0, $1PjJ0$useContext)($8c8238faa5cde49c$var$UnlabeledDivisionsContext);
57
57
  if (divisions == null) return null;
58
58
  return $8c8238faa5cde49c$var$h((0, $bc17276da4abb183$export$594d19cdd88f8c16), {
59
59
  divisions: divisions,
@@ -66,7 +66,7 @@ function $8c8238faa5cde49c$var$_BaseUnitsColumn(props) {
66
66
  overlapping or offset to the right
67
67
  */ const { width: width, children: children, unitComponent: unitComponent = $8c8238faa5cde49c$export$f613830566442374, unitComponentProps: unitComponentProps, clipToFrame: clipToFrame, ...rest } = props;
68
68
  return $8c8238faa5cde49c$var$h($8c8238faa5cde49c$var$LabelTrackerProvider, [
69
- $8c8238faa5cde49c$var$h((0, $2GuZh$LithologyColumn), {
69
+ $8c8238faa5cde49c$var$h((0, $1PjJ0$LithologyColumn), {
70
70
  width: width,
71
71
  clipToFrame: clipToFrame
72
72
  }, [
@@ -134,10 +134,10 @@ function $8c8238faa5cde49c$var$_ColumnLabel(props) {
134
134
  shouldRenderNote: showNote
135
135
  });
136
136
  }
137
- const $8c8238faa5cde49c$var$ColumnLabel = (0, $2GuZh$memo)($8c8238faa5cde49c$var$_ColumnLabel);
137
+ const $8c8238faa5cde49c$var$ColumnLabel = (0, $1PjJ0$memo)($8c8238faa5cde49c$var$_ColumnLabel);
138
138
  function $8c8238faa5cde49c$export$1dfa200d57964eee({ division: division, nColumns: nColumns = 2, ...rest }) {
139
139
  // This comes from CompositeUnits
140
- const { width: width } = (0, $2GuZh$useContext)((0, $2GuZh$ColumnLayoutContext));
140
+ const { width: width } = (0, $1PjJ0$useContext)((0, $1PjJ0$ColumnLayoutContext));
141
141
  //const nCols = Math.min(nColumns, division.overlappingUnits.length+1)
142
142
  //console.log(division);
143
143
  return $8c8238faa5cde49c$var$h($8c8238faa5cde49c$export$f613830566442374, {
@@ -150,4 +150,4 @@ function $8c8238faa5cde49c$export$1dfa200d57964eee({ division: division, nColumn
150
150
 
151
151
 
152
152
  export {$8c8238faa5cde49c$export$f613830566442374 as TrackedLabeledUnit, $8c8238faa5cde49c$export$d8c3f2fdd653a082 as AnnotatedUnitsColumn, $8c8238faa5cde49c$export$a6684360fef0406e as CompositeUnitsColumn, $8c8238faa5cde49c$export$1dfa200d57964eee as CompositeUnitComponent};
153
- //# sourceMappingURL=composite.494beffc.js.map
153
+ //# sourceMappingURL=composite.608a4ca2.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;AAoBA,MAAM,0BAAI,CAAA,GAAA,kBAAU,EAAE,CAAA,GAAA,2EAAK;AAM3B,MAAM,4CAAsB,CAAA,GAAA,oBAAY,EAAE;AAC1C,MAAM,kDAA4B,CAAA,GAAA,oBAAY,EAAE;AAEhD,SAAS,2CAAqB,KAAK;IACjC,MAAM,YAAE,QAAQ,EAAE,GAAG;IACrB,MAAM,aAAE,SAAS,EAAE,GAAG,CAAA,GAAA,gBAAQ;IAC9B,MAAM,CAAC,oBAAoB,sBAAsB,GAAG,CAAA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AAW;QAClB,WAAW,CAAC,UAAU,EAAE,cAAc,YAAY,CAAC,CAAC;QACpD,aAAa;QACb,OAAO,QAAQ,cAAc;uBAC7B;QACA,kBAAkB;IACpB;AACF;AAEA,MAAM,oCAAc,CAAA,GAAA,WAAG,EAAE;AAElB,SAAS,0CAAuB,YAAE,QAAQ,YAAE,WAAW,GAAG,GAAG,MAAM;IACxE,iCAAiC;IACjC,MAAM,SAAE,KAAK,EAAE,GAAG,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0BAAkB;IAE/C,sEAAsE;IACtE,wBAAwB;IACxB,OAAO,wBAAE,2CAAoB;kBAC3B;QACA,GAAG,IAAI;QACP,OAAO,SAAS,gBAAgB,CAAC,MAAM,GAAG,IAAI,QAAQ,WAAW;QACjE,GAAG,AAAC,SAAS,MAAM,GAAG,QAAS;IACjC;AACF","sources":["packages/column-views/src/units/composite.ts"],"sourcesContent":["import { hyperStyled } from \"@macrostrat/hyper\";\nimport {\n LithologyColumn,\n useColumn,\n ColumnLayoutContext,\n ColumnAxisType,\n} from \"@macrostrat/column-components\";\nimport { defaultNameFunction, UnitNamesColumn } from \"./names\";\nimport {\n createContext,\n useContext,\n useState,\n useRef,\n useCallback,\n memo,\n} from \"react\";\nimport { BaseUnit } from \"@macrostrat/api-types\";\nimport { LabeledUnit, UnitBoxes } from \"./boxes\";\nimport styles from \"./composite.module.sass\";\n\nconst h = hyperStyled(styles);\n\ninterface LabelTracker {\n [key: number]: boolean;\n}\n\nconst LabelTrackerContext = createContext(null);\nconst UnlabeledDivisionsContext = createContext(null);\n\nfunction LabelTrackerProvider(props) {\n const { children } = props;\n const { divisions } = useColumn();\n const [unlabeledDivisions, setUnlabeledDivisions] = useState<\n BaseUnit[] | null\n >(null);\n const labelTrackerRef = useRef<LabelTracker>({});\n const trackLabelVisibility = useCallback(\n (div, visible) => {\n labelTrackerRef.current[div.unit_id] = visible;\n if (Object.keys(labelTrackerRef.current).length == divisions.length) {\n setUnlabeledDivisions(\n // @ts-ignore\n divisions.filter((d) => labelTrackerRef.current[d.unit_id] == false)\n );\n }\n },\n [labelTrackerRef, divisions]\n );\n\n const value = trackLabelVisibility;\n return h(\n LabelTrackerContext.Provider,\n { value },\n h(\n UnlabeledDivisionsContext.Provider,\n { value: unlabeledDivisions },\n children\n )\n );\n}\n\nfunction TrackedLabeledUnit({\n division,\n nameForDivision = defaultNameFunction,\n axisType,\n ...rest\n}) {\n const trackLabelVisibility = useContext(LabelTrackerContext);\n return h(LabeledUnit, {\n division,\n //halfWidth: div.bottomOverlap,\n label: nameForDivision(division),\n onLabelUpdated(label, visible) {\n trackLabelVisibility(division, visible);\n },\n ...rest,\n });\n}\n\nfunction UnlabeledUnitNames(props) {\n // Returns only unlabeled divisions\n const divisions = useContext(UnlabeledDivisionsContext);\n if (divisions == null) return null;\n return h(UnitNamesColumn, { divisions, ...props });\n}\n\nfunction _BaseUnitsColumn(\n props: React.PropsWithChildren<{\n width: number;\n unitComponent?: React.FC<any>;\n unitComponentProps?: any;\n clipToFrame?: boolean;\n }>\n) {\n /*\n A column with units and names either\n overlapping or offset to the right\n */\n const {\n width,\n children,\n unitComponent = TrackedLabeledUnit,\n unitComponentProps,\n clipToFrame,\n ...rest\n } = props;\n\n return h(LabelTrackerProvider, [\n h(LithologyColumn, { width, clipToFrame }, [\n h(UnitBoxes, {\n unitComponent,\n unitComponentProps,\n ...rest,\n }),\n ]),\n children,\n ]);\n}\n\ntype BaseUnitProps = {\n width: number;\n showLabels?: boolean;\n columnWidth?: number;\n clipToFrame?: boolean;\n};\n\ntype ICompositeUnitProps = BaseUnitProps & {\n gutterWidth?: number;\n labelOffset?: number;\n paddingLeft?: number;\n nameForDivision?: (division: BaseUnit) => string;\n children?: React.ReactNode;\n unitComponent?: React.FC<any>;\n unitComponentProps?: any;\n noteMode?: \"labeled\" | \"unlabeled\";\n showLabelColumn?: boolean;\n noteComponent?: React.FC<any>;\n shouldRenderNote?: (d: BaseUnit) => boolean;\n};\n\ntype AnnotatedUnitProps = ICompositeUnitProps & {\n minimumLabelHeight?: number;\n axisType: ColumnAxisType;\n};\n\nfunction AnnotatedUnitsColumn(props: AnnotatedUnitProps) {\n /*\n A column with units and names either\n overlapping or offset to the right\n */\n const {\n columnWidth,\n width = 100,\n gutterWidth = 10,\n labelOffset = 30,\n showLabels = true,\n nameForDivision,\n minimumLabelHeight = 0,\n axisType,\n ...rest\n } = props;\n\n return h(\n _BaseUnitsColumn,\n {\n width: showLabels ? columnWidth : width,\n unitComponentProps: { nameForDivision },\n },\n [\n h.if(showLabels)(UnlabeledUnitNames, {\n transform: `translate(${columnWidth + gutterWidth})`,\n paddingLeft: labelOffset,\n width: width - columnWidth - gutterWidth,\n minimumHeight: minimumLabelHeight,\n nameForDivision,\n ...rest,\n }),\n // h(UnitDataColumn, {\n // transform: `translate(${columnWidth + gutterWidth})`,\n // paddingLeft: labelOffset,\n // width: width - columnWidth - gutterWidth,\n // ...rest\n // })\n ]\n );\n}\n\nfunction CompositeUnitsColumn(props: ICompositeUnitProps) {\n /*\n A column with units and names either\n overlapping or offset to the right\n */\n const {\n width = 100,\n gutterWidth = 10,\n labelOffset = 30,\n noteMode = \"unlabeled\",\n showLabels = true,\n showLabelColumn = true,\n noteComponent,\n shouldRenderNote,\n ...rest\n } = props;\n\n let { columnWidth = width } = props;\n\n const labelColumnComponent =\n noteMode == \"unlabeled\" ? UnlabeledUnitNames : UnitNamesColumn;\n\n return h(_BaseUnitsColumn, { width: columnWidth, ...rest }, [\n h.if(showLabelColumn)(ColumnLabel, {\n showLabels,\n component: labelColumnComponent,\n columnWidth,\n gutterWidth,\n labelOffset,\n width,\n noteComponent,\n showNote: shouldRenderNote,\n }),\n ]);\n}\n\nfunction _ColumnLabel(props) {\n const {\n showLabels,\n component,\n columnWidth,\n gutterWidth,\n labelOffset,\n width,\n noteComponent,\n showNote,\n } = props;\n if (!showLabels) return null;\n return h(component, {\n transform: `translate(${columnWidth + gutterWidth})`,\n paddingLeft: labelOffset,\n width: width - columnWidth - gutterWidth,\n noteComponent,\n shouldRenderNote: showNote,\n });\n}\n\nconst ColumnLabel = memo(_ColumnLabel);\n\nexport function CompositeUnitComponent({ division, nColumns = 2, ...rest }) {\n // This comes from CompositeUnits\n const { width } = useContext(ColumnLayoutContext);\n\n //const nCols = Math.min(nColumns, division.overlappingUnits.length+1)\n //console.log(division);\n return h(TrackedLabeledUnit, {\n division,\n ...rest,\n width: division.overlappingUnits.length > 0 ? width / nColumns : width,\n x: (division.column * width) / nColumns,\n });\n}\n\nexport {\n CompositeUnitsColumn,\n AnnotatedUnitsColumn,\n TrackedLabeledUnit,\n ICompositeUnitProps,\n};\n"],"names":[],"version":3,"file":"composite.494beffc.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;AAoBA,MAAM,0BAAI,CAAA,GAAA,kBAAU,EAAE,CAAA,GAAA,2EAAK;AAM3B,MAAM,4CAAsB,CAAA,GAAA,oBAAY,EAAE;AAC1C,MAAM,kDAA4B,CAAA,GAAA,oBAAY,EAAE;AAEhD,SAAS,2CAAqB,KAAK;IACjC,MAAM,YAAE,QAAQ,EAAE,GAAG;IACrB,MAAM,aAAE,SAAS,EAAE,GAAG,CAAA,GAAA,gBAAQ;IAC9B,MAAM,CAAC,oBAAoB,sBAAsB,GAAG,CAAA,GAAA,eAAO,EAEzD;IACF,MAAM,kBAAkB,CAAA,GAAA,aAAK,EAAgB,CAAC;IAC9C,MAAM,uBAAuB,CAAA,GAAA,kBAAU,EACrC,CAAC,KAAK;QACJ,gBAAgB,OAAO,CAAC,IAAI,OAAO,CAAC,GAAG;QACvC,IAAI,OAAO,IAAI,CAAC,gBAAgB,OAAO,EAAE,MAAM,IAAI,UAAU,MAAM,EACjE,sBACE,aAAa;QACb,UAAU,MAAM,CAAC,CAAC,IAAM,gBAAgB,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI;IAGpE,GACA;QAAC;QAAiB;KAAU;IAG9B,MAAM,QAAQ;IACd,OAAO,wBACL,0CAAoB,QAAQ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gB,CAAC,MAAM,GAAG,IAAI,QAAQ,WAAW;QACjE,GAAG,AAAC,SAAS,MAAM,GAAG,QAAS;IACjC;AACF","sources":["packages/column-views/src/units/composite.ts"],"sourcesContent":["import { hyperStyled } from \"@macrostrat/hyper\";\nimport {\n LithologyColumn,\n useColumn,\n ColumnLayoutContext,\n ColumnAxisType,\n} from \"@macrostrat/column-components\";\nimport { defaultNameFunction, UnitNamesColumn } from \"./names\";\nimport {\n createContext,\n useContext,\n useState,\n useRef,\n useCallback,\n memo,\n} from \"react\";\nimport { BaseUnit } from \"@macrostrat/api-types\";\nimport { LabeledUnit, UnitBoxes } from \"./boxes\";\nimport styles from \"./composite.module.sass\";\n\nconst h = hyperStyled(styles);\n\ninterface LabelTracker {\n [key: number]: boolean;\n}\n\nconst LabelTrackerContext = createContext(null);\nconst UnlabeledDivisionsContext = createContext(null);\n\nfunction LabelTrackerProvider(props) {\n const { children } = props;\n const { divisions } = useColumn();\n const [unlabeledDivisions, setUnlabeledDivisions] = useState<\n BaseUnit[] | null\n >(null);\n const labelTrackerRef = useRef<LabelTracker>({});\n const trackLabelVisibility = useCallback(\n (div, visible) => {\n labelTrackerRef.current[div.unit_id] = visible;\n if (Object.keys(labelTrackerRef.current).length == divisions.length) {\n setUnlabeledDivisions(\n // @ts-ignore\n divisions.filter((d) => labelTrackerRef.current[d.unit_id] == false)\n );\n }\n },\n [labelTrackerRef, divisions]\n );\n\n const value = trackLabelVisibility;\n return h(\n LabelTrackerContext.Provider,\n { value },\n h(\n UnlabeledDivisionsContext.Provider,\n { value: unlabeledDivisions },\n children\n )\n );\n}\n\nfunction TrackedLabeledUnit({\n division,\n nameForDivision = defaultNameFunction,\n axisType,\n ...rest\n}) {\n const trackLabelVisibility = useContext(LabelTrackerContext);\n return h(LabeledUnit, {\n division,\n //halfWidth: div.bottomOverlap,\n label: nameForDivision(division),\n onLabelUpdated(label, visible) {\n trackLabelVisibility(division, visible);\n },\n ...rest,\n });\n}\n\nfunction UnlabeledUnitNames(props) {\n // Returns only unlabeled divisions\n const divisions = useContext(UnlabeledDivisionsContext);\n if (divisions == null) return null;\n return h(UnitNamesColumn, { divisions, ...props });\n}\n\nfunction _BaseUnitsColumn(\n props: React.PropsWithChildren<{\n width: number;\n unitComponent?: React.FC<any>;\n unitComponentProps?: any;\n clipToFrame?: boolean;\n }>\n) {\n /*\n A column with units and names either\n overlapping or offset to the right\n */\n const {\n width,\n children,\n unitComponent = TrackedLabeledUnit,\n unitComponentProps,\n clipToFrame,\n ...rest\n } = props;\n\n return h(LabelTrackerProvider, [\n h(LithologyColumn, { width, clipToFrame }, [\n h(UnitBoxes, {\n unitComponent,\n unitComponentProps,\n ...rest,\n }),\n ]),\n children,\n ]);\n}\n\ntype BaseUnitProps = {\n width: number;\n showLabels?: boolean;\n columnWidth?: number;\n clipToFrame?: boolean;\n};\n\ntype ICompositeUnitProps = BaseUnitProps & {\n gutterWidth?: number;\n labelOffset?: number;\n paddingLeft?: number;\n nameForDivision?: (division: BaseUnit) => string;\n children?: React.ReactNode;\n unitComponent?: React.FC<any>;\n unitComponentProps?: any;\n noteMode?: \"labeled\" | \"unlabeled\";\n showLabelColumn?: boolean;\n noteComponent?: React.FC<any>;\n shouldRenderNote?: (d: BaseUnit) => boolean;\n};\n\ntype AnnotatedUnitProps = ICompositeUnitProps & {\n minimumLabelHeight?: number;\n axisType: ColumnAxisType;\n};\n\nfunction AnnotatedUnitsColumn(props: AnnotatedUnitProps) {\n /*\n A column with units and names either\n overlapping or offset to the right\n */\n const {\n columnWidth,\n width = 100,\n gutterWidth = 10,\n labelOffset = 30,\n showLabels = true,\n nameForDivision,\n minimumLabelHeight = 0,\n axisType,\n ...rest\n } = props;\n\n return h(\n _BaseUnitsColumn,\n {\n width: showLabels ? columnWidth : width,\n unitComponentProps: { nameForDivision },\n },\n [\n h.if(showLabels)(UnlabeledUnitNames, {\n transform: `translate(${columnWidth + gutterWidth})`,\n paddingLeft: labelOffset,\n width: width - columnWidth - gutterWidth,\n minimumHeight: minimumLabelHeight,\n nameForDivision,\n ...rest,\n }),\n // h(UnitDataColumn, {\n // transform: `translate(${columnWidth + gutterWidth})`,\n // paddingLeft: labelOffset,\n // width: width - columnWidth - gutterWidth,\n // ...rest\n // })\n ]\n );\n}\n\nfunction CompositeUnitsColumn(props: ICompositeUnitProps) {\n /*\n A column with units and names either\n overlapping or offset to the right\n */\n const {\n width = 100,\n gutterWidth = 10,\n labelOffset = 30,\n noteMode = \"unlabeled\",\n showLabels = true,\n showLabelColumn = true,\n noteComponent,\n shouldRenderNote,\n ...rest\n } = props;\n\n let { columnWidth = width } = props;\n\n const labelColumnComponent =\n noteMode == \"unlabeled\" ? UnlabeledUnitNames : UnitNamesColumn;\n\n return h(_BaseUnitsColumn, { width: columnWidth, ...rest }, [\n h.if(showLabelColumn)(ColumnLabel, {\n showLabels,\n component: labelColumnComponent,\n columnWidth,\n gutterWidth,\n labelOffset,\n width,\n noteComponent,\n showNote: shouldRenderNote,\n }),\n ]);\n}\n\nfunction _ColumnLabel(props) {\n const {\n showLabels,\n component,\n columnWidth,\n gutterWidth,\n labelOffset,\n width,\n noteComponent,\n showNote,\n } = props;\n if (!showLabels) return null;\n return h(component, {\n transform: `translate(${columnWidth + gutterWidth})`,\n paddingLeft: labelOffset,\n width: width - columnWidth - gutterWidth,\n noteComponent,\n shouldRenderNote: showNote,\n });\n}\n\nconst ColumnLabel = memo(_ColumnLabel);\n\nexport function CompositeUnitComponent({ division, nColumns = 2, ...rest }) {\n // This comes from CompositeUnits\n const { width } = useContext(ColumnLayoutContext);\n\n //const nCols = Math.min(nColumns, division.overlappingUnits.length+1)\n //console.log(division);\n return h(TrackedLabeledUnit, {\n division,\n ...rest,\n width: division.overlappingUnits.length > 0 ? width / nColumns : width,\n x: (division.column * width) / nColumns,\n });\n}\n\nexport {\n CompositeUnitsColumn,\n AnnotatedUnitsColumn,\n TrackedLabeledUnit,\n ICompositeUnitProps,\n};\n"],"names":[],"version":3,"file":"composite.608a4ca2.js.map"}
@@ -10,4 +10,4 @@ $b571b03091fbb2c9$export$66e2544324d5808e = `kMKW0a_unit-label`;
10
10
 
11
11
 
12
12
  export {$b571b03091fbb2c9$exports as default};
13
- //# sourceMappingURL=composite.module.6359deba.js.map
13
+ //# sourceMappingURL=composite.module.0638e7ee.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;AAAA,IAAA;AAAA,4CAA+B,CAAC,iBAAiB,CAAC","sources":["packages/column-views/src/units/composite.module.sass"],"sourcesContent":[".unit-label\n text-align: center\n"],"names":[],"version":3,"file":"composite.module.6359deba.js.map"}
1
+ {"mappings":";;;;;;;AAAA,IAAA;AAAA,4CAA+B,CAAC,iBAAiB,CAAC","sources":["packages/column-views/src/units/composite.module.sass"],"sourcesContent":[".unit-label\n text-align: center\n"],"names":[],"version":3,"file":"composite.module.0638e7ee.js.map"}
@@ -0,0 +1,4 @@
1
+ .kMKW0a_unit-label {
2
+ text-align: center;
3
+ }
4
+ /*# sourceMappingURL=composite.module.69a38fd1.css.map */
@@ -1 +1 @@
1
- {"mappings":"AAAA","sources":["packages/column-views/src/units/composite.module.sass"],"sourcesContent":[".unit-label\n text-align: center\n"],"names":[],"version":3,"file":"composite.module.5cc0e747.css.map"}
1
+ {"mappings":"AAAA","sources":["packages/column-views/src/units/composite.module.sass"],"sourcesContent":[".unit-label\n text-align: center\n"],"names":[],"version":3,"file":"composite.module.69a38fd1.css.map"}
@@ -1,14 +1,14 @@
1
- import $2awj8$columnmodule35ba04e7js from "./column.module.35ba04e7.js";
2
- import "./column.module.35184ea7.css";
3
- import $132b1b0fb905c489$export$2e2bcd8739ae039 from "./column.e901b5d4.js";
4
- import {ColumnNavigatorMap as $157bdadaa2bcfcf5$export$d9144ecbc6b090c5} from "./map.e782010f.js";
5
- import {MeasurementsLayer as $347c34ac01fb689b$export$2254347cd20e6080} from "./layers.946aaa37.js";
6
- import {MeasurementDataProvider as $8adf39b8c41fe3cc$export$5f01d5b342a89841} from "./data-provider.61ef7f9a.js";
7
- import {MacrostratAPIProvider as $29bf41d89292aad4$export$3098013bc6cc316d} from "./providers.abcb2cbe.js";
8
- import {useColumnNav as $4d5d1c15f39f6a14$export$91cb5ac808759b34} from "./selection.add9f8b0.js";
9
- import $2awj8$macrostrathyper from "@macrostrat/hyper";
10
- import {useAPIResult as $2awj8$useAPIResult} from "@macrostrat/ui-components";
11
- import {useMemo as $2awj8$useMemo} from "react";
1
+ import $l9wxE$columnmodule7f47d25ajs from "./column.module.7f47d25a.js";
2
+ import "./column.module.cbb072df.css";
3
+ import $132b1b0fb905c489$export$2e2bcd8739ae039 from "./column.db058031.js";
4
+ import {ColumnNavigatorMap as $157bdadaa2bcfcf5$export$d9144ecbc6b090c5} from "./map.7aa26f17.js";
5
+ import {MeasurementsLayer as $347c34ac01fb689b$export$2254347cd20e6080} from "./layers.ad5fd25d.js";
6
+ import {MeasurementDataProvider as $8adf39b8c41fe3cc$export$5f01d5b342a89841} from "./data-provider.1506eb64.js";
7
+ import {MacrostratAPIProvider as $29bf41d89292aad4$export$3098013bc6cc316d} from "./providers.cd1e652f.js";
8
+ import {useColumnNav as $4d5d1c15f39f6a14$export$91cb5ac808759b34} from "./selection.bbf26d0e.js";
9
+ import $l9wxE$macrostrathyper from "@macrostrat/hyper";
10
+ import {useAPIResult as $l9wxE$useAPIResult} from "@macrostrat/ui-components";
11
+ import {useMemo as $l9wxE$useMemo} from "react";
12
12
 
13
13
 
14
14
  function $parcel$interopDefault(a) {
@@ -23,7 +23,7 @@ function $parcel$interopDefault(a) {
23
23
 
24
24
 
25
25
 
26
- const $5cc70deb5088007a$var$h = (0, $2awj8$macrostrathyper).styled((0, ($parcel$interopDefault($2awj8$columnmodule35ba04e7js))));
26
+ const $5cc70deb5088007a$var$h = (0, $l9wxE$macrostrathyper).styled((0, ($parcel$interopDefault($l9wxE$columnmodule7f47d25ajs))));
27
27
  const $5cc70deb5088007a$var$ColumnTitle = (props)=>{
28
28
  return $5cc70deb5088007a$var$h.if(props.data != null)("h1", props.data?.col_name);
29
29
  };
@@ -44,13 +44,13 @@ function $5cc70deb5088007a$export$883edafebdc6d87e(columnArgs) {
44
44
  function $5cc70deb5088007a$var$ColumnManager() {
45
45
  const [columnArgs, setCurrentColumn] = (0, $4d5d1c15f39f6a14$export$91cb5ac808759b34)($5cc70deb5088007a$var$defaultArgs);
46
46
  const { col_id: col_id, ...projectParams } = columnArgs;
47
- const colParams = (0, $2awj8$useMemo)(()=>({
47
+ const colParams = (0, $l9wxE$useMemo)(()=>({
48
48
  ...columnArgs,
49
49
  format: "geojson"
50
50
  }), [
51
51
  columnArgs
52
52
  ]);
53
- const res = (0, $2awj8$useAPIResult)("/columns", colParams);
53
+ const res = (0, $l9wxE$useAPIResult)("/columns", colParams);
54
54
  const columnFeature = res?.features[0];
55
55
  return $5cc70deb5088007a$var$h((0, $8adf39b8c41fe3cc$export$5f01d5b342a89841), columnArgs, [
56
56
  $5cc70deb5088007a$var$h("div.column-ui", [
@@ -86,4 +86,4 @@ function $5cc70deb5088007a$export$e2beef9ae524c9d5() {
86
86
 
87
87
 
88
88
  export {$5cc70deb5088007a$export$883edafebdc6d87e as CarbonIsotopesColumn, $5cc70deb5088007a$export$e2beef9ae524c9d5 as CarbonIsotopesApp};
89
- //# sourceMappingURL=core.f3824dd8.js.map
89
+ //# sourceMappingURL=core.4db8e452.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,0BAAI,CAAA,GAAA,sBAAI,EAAE,MAAM,CAAC,CAAA,GAAA,wEAAK;AAE5B,MAAM,oCAAc,CAAC;IACnB,OAAO,wBAAE,EAAE,CAAC,MAAM,IAAI,IAAI,MAAM,MAAM,MAAM,IAAI,EAAE;AACpD;AAEA,MAAM,oCAA0B;IAC9B,QAAQ;IACR,gBAAgB;IAChB,YAAY;IACZ,aAAa;AACf;AAEO,SAAS,0CAAqB,UAAU;IAC7C,OAAO,wBACL,CAAA,GAAA,yCAAoB,GACpB,wBAAE,CAAA,GAAA,yCAAsB,GAAG,YAAY;QACrC,aAAa;QACb,wBAAE,CAAA,GAAA,wCAAS,GAAG;YAAE,QAAQ;QAAW;KACpC;AAEL;AAEA,SAAS;IACP,MAAM,CAAC,YAAY,iBAAiB,GAAG,CAAA,GAAA,yCAAW,EAAE;IACpD,MAAM,UAAE,MAAM,EAAE,GAAG,eAAe,GAAG;IAErC,MAAM,YAAY,CAAA,GAAA,cAAM,EACtB,IAAO,CAAA;YAAE,GAAG,UAAU;YAAE,QAAQ;QAAU,CAAA,GAC1C;QAAC;KAAW;IAEd,MAAM,MAAyB,CAAA,GAAA,mBAAW,EAAE,YAAY;IACxD,MAAM,gBAAgB,KAAK,QAAQ,CAAC,EAAE;IAEtC,OAAO,wBAAE,CAAA,GAAA,yCAAsB,GAAG,YAAY;QAC5C,wBAAE,iBAAiB;YACjB,wBAAE,mBAAmB;gBACnB,wBAAE,mCAAa;oBAAE,MAAM,eAAe;gBAAW;gBACjD,aAAa;gBACb,wBAAE,CAAA,GAAA,wCAAS,GAAG;oBAAE,QAAQ;gBAAW;aACpC;YACD,wBAAE,kBAAkB;gBAClB,wBACE,CAAA,GAAA,yCAAiB,GACjB;oBACE,eAAe;sCACf;oBACA,QAAQ;oBACR,GAAG,aAAa;gBAClB,GACA,wBAAE,CAAA,GAAA,yCAAgB,GAAG;oBACnB,GAAG,aAAa;oBAChB,OAAO;wBACL,MAAM;wBACN,QAAQ;oBACV;gBACF;aAEH;SACF;KACF;AACH;AAEO,SAAS;IACd,OAAO,wBAAE,CAAA,GAAA,yCAAoB,GAAG,wBAAE;AACpC","sources":["packages/column-views/src/carbon-isotopes/core.ts"],"sourcesContent":["import hyper from \"@macrostrat/hyper\";\nimport styles from \"./column.module.sass\";\n\nimport { useAPIResult } from \"@macrostrat/ui-components\";\nimport BaseColumn from \"./column\";\nimport { ColumnNavigatorMap, MeasurementsLayer } from \"../map\";\nimport { MeasurementDataProvider } from \"./data-provider\";\nimport { MacrostratAPIProvider } from \"../providers\";\nimport { ColumnArgs, useColumnNav } from \"../units\";\nimport { useMemo } from \"react\";\nimport { FeatureCollection } from \"geojson\";\n\nconst h = hyper.styled(styles);\n\nconst ColumnTitle = (props) => {\n return h.if(props.data != null)(\"h1\", props.data?.col_name);\n};\n\nconst defaultArgs: ColumnArgs = {\n col_id: 2192,\n //unit_id: null,\n project_id: 10,\n status_code: \"in process\",\n};\n\nexport function CarbonIsotopesColumn(columnArgs) {\n return h(\n MacrostratAPIProvider,\n h(MeasurementDataProvider, columnArgs, [\n // @ts-ignore\n h(BaseColumn, { params: columnArgs }),\n ])\n );\n}\n\nfunction ColumnManager() {\n const [columnArgs, setCurrentColumn] = useColumnNav(defaultArgs);\n const { col_id, ...projectParams } = columnArgs;\n\n const colParams = useMemo(\n () => ({ ...columnArgs, format: \"geojson\" }),\n [columnArgs]\n );\n const res: FeatureCollection = useAPIResult(\"/columns\", colParams);\n const columnFeature = res?.features[0];\n\n return h(MeasurementDataProvider, columnArgs, [\n h(\"div.column-ui\", [\n h(\"div.column-view\", [\n h(ColumnTitle, { data: columnFeature?.properties }),\n // @ts-ignore\n h(BaseColumn, { params: columnArgs }),\n ]),\n h(\"div.map-column\", [\n h(\n ColumnNavigatorMap,\n {\n currentColumn: columnFeature,\n setCurrentColumn,\n margin: 0,\n ...projectParams,\n },\n h(MeasurementsLayer, {\n ...projectParams,\n style: {\n fill: \"dodgerblue\",\n stroke: \"blue\",\n },\n })\n ),\n ]),\n ]),\n ]);\n}\n\nexport function CarbonIsotopesApp() {\n return h(MacrostratAPIProvider, h(ColumnManager));\n}\n"],"names":[],"version":3,"file":"core.f3824dd8.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,0BAAI,CAAA,GAAA,sBAAI,EAAE,MAAM,CAAC,CAAA,GAAA,wEAAK;AAE5B,MAAM,oCAAc,CAAC;IACnB,OAAO,wBAAE,EAAE,CAAC,MAAM,IAAI,IAAI,MAAM,MAAM,MAAM,IAAI,EAAE;AACpD;AAEA,MAAM,oCAA0B;IAC9B,QAAQ;IACR,gBAAgB;IAChB,YAAY;IACZ,aAAa;AACf;AAEO,SAAS,0CAAqB,UAAU;IAC7C,OAAO,wBACL,CAAA,GAAA,yCAAoB,GACpB,wBAAE,CAAA,GAAA,yCAAsB,GAAG,YAAY;QACrC,aAAa;QACb,wBAAE,CAAA,GAAA,wCAAS,GAAG;YAAE,QAAQ;QAAW;KACpC;AAEL;AAEA,SAAS;IACP,MAAM,CAAC,YAAY,iBAAiB,GAAG,CAAA,GAAA,yCAAW,EAAE;IACpD,MAAM,UAAE,MAAM,EAAE,GAAG,eAAe,GAAG;IAErC,MAAM,YAAY,CAAA,GAAA,cAAM,EACtB,IAAO,CAAA;YAAE,GAAG,UAAU;YAAE,QAAQ;QAAU,CAAA,GAC1C;QAAC;KAAW;IAEd,MAAM,MAAyB,CAAA,GAAA,mBAAW,EAAE,YAAY;IACxD,MAAM,gBAAgB,KAAK,QAAQ,CAAC,EAAE;IAEtC,OAAO,wBAAE,CAAA,GAAA,yCAAsB,GAAG,YAAY;QAC5C,wBAAE,iBAAiB;YACjB,wBAAE,mBAAmB;gBACnB,wBAAE,mCAAa;oBAAE,MAAM,eAAe;gBAAW;gBACjD,aAAa;gBACb,wBAAE,CAAA,GAAA,wCAAS,GAAG;oBAAE,QAAQ;gBAAW;aACpC;YACD,wBAAE,kBAAkB;gBAClB,wBACE,CAAA,GAAA,yCAAiB,GACjB;oBACE,eAAe;sCACf;oBACA,QAAQ;oBACR,GAAG,aAAa;gBAClB,GACA,wBAAE,CAAA,GAAA,yCAAgB,GAAG;oBACnB,GAAG,aAAa;oBAChB,OAAO;wBACL,MAAM;wBACN,QAAQ;oBACV;gBACF;aAEH;SACF;KACF;AACH;AAEO,SAAS;IACd,OAAO,wBAAE,CAAA,GAAA,yCAAoB,GAAG,wBAAE;AACpC","sources":["packages/column-views/src/carbon-isotopes/core.ts"],"sourcesContent":["import hyper from \"@macrostrat/hyper\";\nimport styles from \"./column.module.sass\";\n\nimport { useAPIResult } from \"@macrostrat/ui-components\";\nimport BaseColumn from \"./column\";\nimport { ColumnNavigatorMap, MeasurementsLayer } from \"../map\";\nimport { MeasurementDataProvider } from \"./data-provider\";\nimport { MacrostratAPIProvider } from \"../providers\";\nimport { ColumnArgs, useColumnNav } from \"../units\";\nimport { useMemo } from \"react\";\nimport { FeatureCollection } from \"geojson\";\n\nconst h = hyper.styled(styles);\n\nconst ColumnTitle = (props) => {\n return h.if(props.data != null)(\"h1\", props.data?.col_name);\n};\n\nconst defaultArgs: ColumnArgs = {\n col_id: 2192,\n //unit_id: null,\n project_id: 10,\n status_code: \"in process\",\n};\n\nexport function CarbonIsotopesColumn(columnArgs) {\n return h(\n MacrostratAPIProvider,\n h(MeasurementDataProvider, columnArgs, [\n // @ts-ignore\n h(BaseColumn, { params: columnArgs }),\n ])\n );\n}\n\nfunction ColumnManager() {\n const [columnArgs, setCurrentColumn] = useColumnNav(defaultArgs);\n const { col_id, ...projectParams } = columnArgs;\n\n const colParams = useMemo(\n () => ({ ...columnArgs, format: \"geojson\" }),\n [columnArgs]\n );\n const res: FeatureCollection = useAPIResult(\"/columns\", colParams);\n const columnFeature = res?.features[0];\n\n return h(MeasurementDataProvider, columnArgs, [\n h(\"div.column-ui\", [\n h(\"div.column-view\", [\n h(ColumnTitle, { data: columnFeature?.properties }),\n // @ts-ignore\n h(BaseColumn, { params: columnArgs }),\n ]),\n h(\"div.map-column\", [\n h(\n ColumnNavigatorMap,\n {\n currentColumn: columnFeature,\n setCurrentColumn,\n margin: 0,\n ...projectParams,\n },\n h(MeasurementsLayer, {\n ...projectParams,\n style: {\n fill: \"dodgerblue\",\n stroke: \"blue\",\n },\n })\n ),\n ]),\n ]),\n ]);\n}\n\nexport function CarbonIsotopesApp() {\n return h(MacrostratAPIProvider, h(ColumnManager));\n}\n"],"names":[],"version":3,"file":"core.4db8e452.js.map"}
@@ -1,7 +1,7 @@
1
- import {line as $71J6l$line} from "d3-shape";
2
- import {createContext as $71J6l$createContext, useContext as $71J6l$useContext} from "react";
3
- import $71J6l$macrostrathyper from "@macrostrat/hyper";
4
- import {ColumnLayoutContext as $71J6l$ColumnLayoutContext} from "@macrostrat/column-components";
1
+ import {line as $8epey$line} from "d3-shape";
2
+ import {createContext as $8epey$createContext, useContext as $8epey$useContext} from "react";
3
+ import $8epey$macrostrathyper from "@macrostrat/hyper";
4
+ import {ColumnLayoutContext as $8epey$ColumnLayoutContext} from "@macrostrat/column-components";
5
5
 
6
6
 
7
7
 
@@ -22,9 +22,9 @@ const $1dbd903fb3e2f029$var$createPointLocator = function(opts) {
22
22
  ];
23
23
  };
24
24
  };
25
- const $1dbd903fb3e2f029$var$IsotopesDataContext = (0, $71J6l$createContext)(null);
25
+ const $1dbd903fb3e2f029$var$IsotopesDataContext = (0, $8epey$createContext)(null);
26
26
  const $1dbd903fb3e2f029$export$309ef8546e07d921 = function(props) {
27
- const { xScale: xScale, scale: scale } = (0, $71J6l$useContext)((0, $71J6l$ColumnLayoutContext)) ?? {};
27
+ const { xScale: xScale, scale: scale } = (0, $8epey$useContext)((0, $8epey$ColumnLayoutContext)) ?? {};
28
28
  let { corrected: corrected, system: system, children: children, getHeight: getHeight, clipY: clipY } = props;
29
29
  if (getHeight == null) getHeight = function(d) {
30
30
  if (d.height == null) console.log(d);
@@ -40,7 +40,7 @@ const $1dbd903fb3e2f029$export$309ef8546e07d921 = function(props) {
40
40
  });
41
41
  let column = "avg_" + system;
42
42
  if (corrected) column += "_corr";
43
- const lineLocator = (0, $71J6l$line)().x((d)=>xScale(d[column]))// @ts-ignore
43
+ const lineLocator = (0, $8epey$line)().x((d)=>xScale(d[column]))// @ts-ignore
44
44
  .y((d)=>scale(d.height));
45
45
  const value = {
46
46
  pointLocator: pointLocator,
@@ -49,20 +49,20 @@ const $1dbd903fb3e2f029$export$309ef8546e07d921 = function(props) {
49
49
  system: system,
50
50
  clipY: clipY
51
51
  };
52
- return (0, $71J6l$macrostrathyper)($1dbd903fb3e2f029$var$IsotopesDataContext.Provider, {
52
+ return (0, $8epey$macrostrathyper)($1dbd903fb3e2f029$var$IsotopesDataContext.Provider, {
53
53
  value: value
54
- }, (0, $71J6l$macrostrathyper)("g.data", children));
54
+ }, (0, $8epey$macrostrathyper)("g.data", children));
55
55
  };
56
56
  $1dbd903fb3e2f029$export$309ef8546e07d921.defaultProps = {
57
57
  clipY: false
58
58
  };
59
59
  const $1dbd903fb3e2f029$export$4cb5d059db4e2bd = function(props) {
60
- const { pointLocator: pointLocator } = (0, $71J6l$useContext)($1dbd903fb3e2f029$var$IsotopesDataContext);
60
+ const { pointLocator: pointLocator } = (0, $8epey$useContext)($1dbd903fb3e2f029$var$IsotopesDataContext);
61
61
  const { datum: datum, strokeWidth: strokeWidth, ...rest } = props;
62
62
  const loc = pointLocator(datum);
63
63
  if (loc == null) return null;
64
64
  const [cx, cy] = loc;
65
- return (0, $71J6l$macrostrathyper)("circle", {
65
+ return (0, $8epey$macrostrathyper)("circle", {
66
66
  key: datum.sample_id,
67
67
  cx: cx,
68
68
  cy: cy,
@@ -72,15 +72,15 @@ const $1dbd903fb3e2f029$export$4cb5d059db4e2bd = function(props) {
72
72
  };
73
73
  const $1dbd903fb3e2f029$export$628a3ef6eb9c3a89 = function(props) {
74
74
  const { values: lineValues, ...rest } = props;
75
- const { lineLocator: lineLocator } = (0, $71J6l$useContext)($1dbd903fb3e2f029$var$IsotopesDataContext);
76
- return (0, $71J6l$macrostrathyper)("path", {
75
+ const { lineLocator: lineLocator } = (0, $8epey$useContext)($1dbd903fb3e2f029$var$IsotopesDataContext);
76
+ return (0, $8epey$macrostrathyper)("path", {
77
77
  d: lineLocator(lineValues),
78
78
  fill: "transparent",
79
79
  ...rest
80
80
  });
81
81
  };
82
- const $1dbd903fb3e2f029$export$919dbb10b6b5b75 = ()=>(0, $71J6l$useContext)($1dbd903fb3e2f029$var$IsotopesDataContext);
82
+ const $1dbd903fb3e2f029$export$919dbb10b6b5b75 = ()=>(0, $8epey$useContext)($1dbd903fb3e2f029$var$IsotopesDataContext);
83
83
 
84
84
 
85
85
  export {$1dbd903fb3e2f029$export$309ef8546e07d921 as IsotopesDataArea, $1dbd903fb3e2f029$export$4cb5d059db4e2bd as IsotopeDataPoint, $1dbd903fb3e2f029$export$628a3ef6eb9c3a89 as IsotopeDataLine, $1dbd903fb3e2f029$export$919dbb10b6b5b75 as useDataLocator};
86
- //# sourceMappingURL=data-area.f9bb9ad9.js.map
86
+ //# sourceMappingURL=data-area.daff8da0.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;AAKA,MAAM,iCAAW,CAAC,OAAO;IACvB,MAAM,SAAS,MAAM,MAAM;IAC3B,OAAO,MAAM,CAAC,EAAE,GAAG,MAAM,MAAM,CAAC,EAAE;AACpC;AAEA,MAAM,2CAAqB,SAAU,IAAI;IACvC,MAAM,UAAE,MAAM,SAAE,KAAK,aAAE,SAAS,EAAE,GAAG,MAAM,GAAG;IAC9C,OAAO,SAAU,CAAC,EAAE,IAAI,CAAC;QACvB,MAAM,SAAS,UAAU;QACzB,IAAI,CAAC,+BAAS,OAAO,SAAS,OAAO;QACrC,OAAO;YAAC,OAAO,EAAE,KAAK;YAAG,MAAM;SAAQ;IACzC;AACF;AAEA,MAAM,4CAAsB,CAAA,GAAA,oBAAY,EAAE;AAW1C,MAAM,4CAAmB,SAAU,KAAoB;IACrD,MAAM,UAAE,MAAM,SAAE,KAAK,EAAE,GAAG,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,0BAAkB,MAAM,CAAC;IAE9D,IAAI,aAAE,SAAS,UAAE,MAAM,YAAE,QAAQ,aAAE,SAAS,SAAE,KAAK,EAAE,GAAG;IACxD,IAAI,aAAa,MACf,YAAY,SAAU,CAAC;QACrB,IAAI,EAAE,MAAM,IAAI,MACd,QAAQ,GAAG,CAAC;QAEd,OAAO,EAAE,MAAM;IACjB;IAGF,yCAAyC;IACzC,MAAM,eAAe,yCAAmB;gBACtC;eACA;mBACA;gBACA;mBACA;IACF;IAEA,IAAI,SAAS,SAAS;IACtB,IAAI,WACF,UAAU;IAEZ,MAAM,cAAc,CAAA,GAAA,WAAG,IACpB,CAAC,CAAC,CAAC,IAAM,OAAO,CAAC,CAAC,OAAO,EAC1B,aAAa;KACZ,CAAC,CAAC,CAAC,IAAM,MAAM,EAAE,MAAM;IAE1B,MAAM,QAAQ;sBAAE;qBAAc;mBAAa;gBAAW;eAAQ;IAAM;IACpE,OAAO,CAAA,GAAA,sBAAA,EAAE,0CAAoB,QAAQ,EAAE;eAAE;IAAM,GAAG,CAAA,GAAA,sBAAA,EAAE,UAAU;AAChE;AAEA,0CAAiB,YAAY,GAAG;IAAE,OAAO;AAAM;AAE/C,MAAM,2CAAmB,SAAU,KAAK;IACtC,MAAM,gBAAE,YAAY,EAAE,GAAG,CAAA,GAAA,iBAAS,EAAE;IACpC,MAAM,SAAE,KAAK,eAAE,WAAW,EAAE,GAAG,MAAM,GAAG;IACxC,MAAM,MAAM,aAAa;IACzB,IAAI,OAAO,MAAM,OAAO;IACxB,MAAM,CAAC,IAAI,GAAG,GAAG;IAEjB,OAAO,CAAA,GAAA,sBAAA,EAAE,UAAU;QACjB,KAAK,MAAM,SAAS;YACpB;YACA;QACA,GAAG;QACH,GAAG,IAAI;IACT;AACF;AAEA,MAAM,4CAAkB,SAAU,KAAK;IACrC,MAAM,EAAE,QAAQ,UAAU,EAAE,GAAG,MAAM,GAAG;IACxC,MAAM,eAAE,WAAW,EAAE,GAAG,CAAA,GAAA,iBAAS,EAAE;IACnC,OAAO,CAAA,GAAA,sBAAA,EAAE,QAAQ;QACf,GAAG,YAAY;QACf,MAAM;QACN,GAAG,IAAI;IACT;AACF;AAEA,MAAM,2CAAiB,IAAM,CAAA,GAAA,iBAAS,EAAE","sources":["packages/column-views/src/carbon-isotopes/data-area.ts"],"sourcesContent":["import { line } from \"d3-shape\";\nimport { createContext, useContext } from \"react\";\nimport h from \"@macrostrat/hyper\";\nimport { ColumnLayoutContext } from \"@macrostrat/column-components\";\n\nconst inDomain = (scale, num) => {\n const domain = scale.domain();\n return domain[0] < num < domain[1];\n};\n\nconst createPointLocator = function (opts) {\n const { xScale, scale, getHeight, ...rest } = opts;\n return function (d, s = 0) {\n const height = getHeight(d);\n if (!inDomain(scale, height)) return null;\n return [xScale(d.value), scale(height)];\n };\n};\n\nconst IsotopesDataContext = createContext(null);\n\nexport interface DataAreaProps {\n clipY: boolean;\n parameter: string;\n corrected: boolean;\n system: string;\n children: React.ReactNode;\n getHeight?: Function;\n}\n\nconst IsotopesDataArea = function (props: DataAreaProps) {\n const { xScale, scale } = useContext(ColumnLayoutContext) ?? {};\n\n let { corrected, system, children, getHeight, clipY } = props;\n if (getHeight == null) {\n getHeight = function (d) {\n if (d.height == null) {\n console.log(d);\n }\n return d.height;\n };\n }\n\n // Handlers for creating points and lines\n const pointLocator = createPointLocator({\n xScale,\n scale,\n corrected,\n system,\n getHeight,\n });\n\n let column = \"avg_\" + system;\n if (corrected) {\n column += \"_corr\";\n }\n const lineLocator = line()\n .x((d) => xScale(d[column]))\n // @ts-ignore\n .y((d) => scale(d.height));\n\n const value = { pointLocator, lineLocator, corrected, system, clipY };\n return h(IsotopesDataContext.Provider, { value }, h(\"g.data\", children));\n};\n\nIsotopesDataArea.defaultProps = { clipY: false };\n\nconst IsotopeDataPoint = function (props) {\n const { pointLocator } = useContext(IsotopesDataContext);\n const { datum, strokeWidth, ...rest } = props;\n const loc = pointLocator(datum);\n if (loc == null) return null;\n const [cx, cy] = loc;\n\n return h(\"circle\", {\n key: datum.sample_id,\n cx,\n cy,\n r: 2,\n ...rest,\n });\n};\n\nconst IsotopeDataLine = function (props) {\n const { values: lineValues, ...rest } = props;\n const { lineLocator } = useContext(IsotopesDataContext);\n return h(\"path\", {\n d: lineLocator(lineValues),\n fill: \"transparent\",\n ...rest,\n });\n};\n\nconst useDataLocator = () => useContext(IsotopesDataContext);\n\nexport { IsotopesDataArea, IsotopeDataPoint, IsotopeDataLine, useDataLocator };\n"],"names":[],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A,EAAE,0CAAoB,QAAQ,EAAE;eAAE;IAAM,GAAG,CAAA,GAAA,sBAAA,EAAE,UAAU;AAChE;AAEA,0CAAiB,YAAY,GAAG;IAAE,OAAO;AAAM;AAE/C,MAAM,2CAAmB,SAAU,KAAK;IACtC,MAAM,gBAAE,YAAY,EAAE,GAAG,CAAA,GAAA,iBAAS,EAAE;IACpC,MAAM,SAAE,KAAK,eAAE,WAAW,EAAE,GAAG,MAAM,GAAG;IACxC,MAAM,MAAM,aAAa;IACzB,IAAI,OAAO,MAAM,OAAO;IACxB,MAAM,CAAC,IAAI,GAAG,GAAG;IAEjB,OAAO,CAAA,GAAA,sBAAA,EAAE,UAAU;QACjB,KAAK,MAAM,SAAS;YACpB;YACA;QACA,GAAG;QACH,GAAG,IAAI;IACT;AACF;AAEA,MAAM,4CAAkB,SAAU,KAAK;IACrC,MAAM,EAAE,QAAQ,UAAU,EAAE,GAAG,MAAM,GAAG;IACxC,MAAM,eAAE,WAAW,EAAE,GAAG,CAAA,GAAA,iBAAS,EAAE;IACnC,OAAO,CAAA,GAAA,sBAAA,EAAE,QAAQ;QACf,GAAG,YAAY;QACf,MAAM;QACN,GAAG,IAAI;IACT;AACF;AAEA,MAAM,2CAAiB,IAAM,CAAA,GAAA,iBAAS,EAAE","sources":["packages/column-views/src/carbon-isotopes/data-area.ts"],"sourcesContent":["import { line } from \"d3-shape\";\nimport { createContext, useContext } from \"react\";\nimport h from \"@macrostrat/hyper\";\nimport { ColumnLayoutContext } from \"@macrostrat/column-components\";\n\nconst inDomain = (scale, num) => {\n const domain = scale.domain();\n return domain[0] < num < domain[1];\n};\n\nconst createPointLocator = function (opts) {\n const { xScale, scale, getHeight, ...rest } = opts;\n return function (d, s = 0) {\n const height = getHeight(d);\n if (!inDomain(scale, height)) return null;\n return [xScale(d.value), scale(height)];\n };\n};\n\nconst IsotopesDataContext = createContext(null);\n\nexport interface DataAreaProps {\n clipY: boolean;\n parameter: string;\n corrected: boolean;\n system: string;\n children: React.ReactNode;\n getHeight?: Function;\n}\n\nconst IsotopesDataArea = function (props: DataAreaProps) {\n const { xScale, scale } = useContext(ColumnLayoutContext) ?? {};\n\n let { corrected, system, children, getHeight, clipY } = props;\n if (getHeight == null) {\n getHeight = function (d) {\n if (d.height == null) {\n console.log(d);\n }\n return d.height;\n };\n }\n\n // Handlers for creating points and lines\n const pointLocator = createPointLocator({\n xScale,\n scale,\n corrected,\n system,\n getHeight,\n });\n\n let column = \"avg_\" + system;\n if (corrected) {\n column += \"_corr\";\n }\n const lineLocator = line()\n .x((d) => xScale(d[column]))\n // @ts-ignore\n .y((d) => scale(d.height));\n\n const value = { pointLocator, lineLocator, corrected, system, clipY };\n return h(IsotopesDataContext.Provider, { value }, h(\"g.data\", children));\n};\n\nIsotopesDataArea.defaultProps = { clipY: false };\n\nconst IsotopeDataPoint = function (props) {\n const { pointLocator } = useContext(IsotopesDataContext);\n const { datum, strokeWidth, ...rest } = props;\n const loc = pointLocator(datum);\n if (loc == null) return null;\n const [cx, cy] = loc;\n\n return h(\"circle\", {\n key: datum.sample_id,\n cx,\n cy,\n r: 2,\n ...rest,\n });\n};\n\nconst IsotopeDataLine = function (props) {\n const { values: lineValues, ...rest } = props;\n const { lineLocator } = useContext(IsotopesDataContext);\n return h(\"path\", {\n d: lineLocator(lineValues),\n fill: \"transparent\",\n ...rest,\n });\n};\n\nconst useDataLocator = () => useContext(IsotopesDataContext);\n\nexport { IsotopesDataArea, IsotopeDataPoint, IsotopeDataLine, useDataLocator };\n"],"names":[],"version":3,"file":"data-area.daff8da0.js.map"}
@@ -1,25 +1,25 @@
1
- import $hbnsf$macrostrathyper from "@macrostrat/hyper";
2
- import {createContext as $hbnsf$createContext, useContext as $hbnsf$useContext} from "react";
3
- import {useAPIResult as $hbnsf$useAPIResult} from "@macrostrat/ui-components";
1
+ import $hiXDY$macrostrathyper from "@macrostrat/hyper";
2
+ import {createContext as $hiXDY$createContext, useContext as $hiXDY$useContext} from "react";
3
+ import {useAPIResult as $hiXDY$useAPIResult} from "@macrostrat/ui-components";
4
4
 
5
5
 
6
6
 
7
7
 
8
- const $8adf39b8c41fe3cc$export$c644ef985ce7a4c4 = (0, $hbnsf$createContext)(null);
8
+ const $8adf39b8c41fe3cc$export$c644ef985ce7a4c4 = (0, $hiXDY$createContext)(null);
9
9
  function $8adf39b8c41fe3cc$export$5f01d5b342a89841(props) {
10
10
  const { children: children, ...params } = props;
11
- const res = (0, $hbnsf$useAPIResult)("/measurements", {
11
+ const res = (0, $hiXDY$useAPIResult)("/measurements", {
12
12
  ...params,
13
13
  show_values: true,
14
14
  response: "long"
15
15
  });
16
- return (0, $hbnsf$macrostrathyper)($8adf39b8c41fe3cc$export$c644ef985ce7a4c4.Provider, {
16
+ return (0, $hiXDY$macrostrathyper)($8adf39b8c41fe3cc$export$c644ef985ce7a4c4.Provider, {
17
17
  value: res,
18
18
  children: children
19
19
  });
20
20
  }
21
- const $8adf39b8c41fe3cc$export$8a0335fd9ff72150 = ()=>(0, $hbnsf$useContext)($8adf39b8c41fe3cc$export$c644ef985ce7a4c4);
21
+ const $8adf39b8c41fe3cc$export$8a0335fd9ff72150 = ()=>(0, $hiXDY$useContext)($8adf39b8c41fe3cc$export$c644ef985ce7a4c4);
22
22
 
23
23
 
24
24
  export {$8adf39b8c41fe3cc$export$c644ef985ce7a4c4 as MeasurementDataContext, $8adf39b8c41fe3cc$export$5f01d5b342a89841 as MeasurementDataProvider, $8adf39b8c41fe3cc$export$8a0335fd9ff72150 as useMeasurementData};
25
- //# sourceMappingURL=data-provider.61ef7f9a.js.map
25
+ //# sourceMappingURL=data-provider.1506eb64.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;AAIA,MAAM,4CAAyB,CAAA,GAAA,oBAAY,EAAE;AAE7C,SAAS,0CAAwB,KAAK;IACpC,MAAM,YAAE,QAAQ,EAAE,GAAG,QAAQ,GAAG;IAChC,MAAM,MAAM,CAAA,GAAA,mBAAW,EAAE,iBAAiB;QACxC,GAAG,MAAM;QACT,aAAa;QACb,UAAU;IACZ;IACA,OAAO,CAAA,GAAA,sBAAA,EAAE,0CAAuB,QAAQ,EAAE;QAAE,OAAO;kBAAK;IAAS;AACnE;AAEA,MAAM,4CAAqB,IAAM,CAAA,GAAA,iBAAS,EAAE","sources":["packages/column-views/src/carbon-isotopes/data-provider.ts"],"sourcesContent":["import h from \"@macrostrat/hyper\";\nimport { useContext, createContext } from \"react\";\nimport { useAPIResult } from \"@macrostrat/ui-components\";\n\nconst MeasurementDataContext = createContext(null);\n\nfunction MeasurementDataProvider(props) {\n const { children, ...params } = props;\n const res = useAPIResult(\"/measurements\", {\n ...params,\n show_values: true,\n response: \"long\"\n });\n return h(MeasurementDataContext.Provider, { value: res, children });\n}\n\nconst useMeasurementData = () => useContext(MeasurementDataContext);\n\nexport { MeasurementDataProvider, useMeasurementData, MeasurementDataContext };\n"],"names":[],"version":3,"file":"data-provider.61ef7f9a.js.map"}
1
+ {"mappings":";;;;;;;AAIA,MAAM,4CAAyB,CAAA,GAAA,oBAAY,EAAE;AAE7C,SAAS,0CAAwB,KAAK;IACpC,MAAM,YAAE,QAAQ,EAAE,GAAG,QAAQ,GAAG;IAChC,MAAM,MAAM,CAAA,GAAA,mBAAW,EAAE,iBAAiB;QACxC,GAAG,MAAM;QACT,aAAa;QACb,UAAU;IACZ;IACA,OAAO,CAAA,GAAA,sBAAA,EAAE,0CAAuB,QAAQ,EAAE;QAAE,OAAO;kBAAK;IAAS;AACnE;AAEA,MAAM,4CAAqB,IAAM,CAAA,GAAA,iBAAS,EAAE","sources":["packages/column-views/src/carbon-isotopes/data-provider.ts"],"sourcesContent":["import h from \"@macrostrat/hyper\";\nimport { useContext, createContext } from \"react\";\nimport { useAPIResult } from \"@macrostrat/ui-components\";\n\nconst MeasurementDataContext = createContext(null);\n\nfunction MeasurementDataProvider(props) {\n const { children, ...params } = props;\n const res = useAPIResult(\"/measurements\", {\n ...params,\n show_values: true,\n response: \"long\"\n });\n return h(MeasurementDataContext.Provider, { value: res, children });\n}\n\nconst useMeasurementData = () => useContext(MeasurementDataContext);\n\nexport { MeasurementDataProvider, useMeasurementData, MeasurementDataContext };\n"],"names":[],"version":3,"file":"data-provider.1506eb64.js.map"}
@@ -1,12 +1,12 @@
1
- import {group as $8PrVE$group} from "d3-array";
2
- import {compareAgeRanges as $8PrVE$compareAgeRanges, AgeRangeRelationship as $8PrVE$AgeRangeRelationship} from "@macrostrat/stratigraphy-utils";
1
+ import {group as $9eVFr$group} from "d3-array";
2
+ import {compareAgeRanges as $9eVFr$compareAgeRanges, AgeRangeRelationship as $9eVFr$AgeRangeRelationship} from "@macrostrat/stratigraphy-utils";
3
3
 
4
4
 
5
5
 
6
6
  const $2c60de495788ce61$var$dt = 0.001;
7
7
  function $2c60de495788ce61$var$unitsOverlap(a, b) {
8
- const rel = (0, $8PrVE$compareAgeRanges)($2c60de495788ce61$var$unitAgeRange(a), $2c60de495788ce61$var$unitAgeRange(b), 0.001);
9
- return rel != (0, $8PrVE$AgeRangeRelationship).Disjoint;
8
+ const rel = (0, $9eVFr$compareAgeRanges)($2c60de495788ce61$var$unitAgeRange(a), $2c60de495788ce61$var$unitAgeRange(b), 0.001);
9
+ return rel != (0, $9eVFr$AgeRangeRelationship).Disjoint;
10
10
  }
11
11
  function $2c60de495788ce61$var$unitAgeRange(unit) {
12
12
  return [
@@ -45,7 +45,7 @@ function $2c60de495788ce61$export$55543e159517d62d(units) {
45
45
  return divisions;
46
46
  }
47
47
  function $2c60de495788ce61$export$dfbd00399d639b4c(units) {
48
- let groups = Array.from((0, $8PrVE$group)(units, (d)=>d.section_id));
48
+ let groups = Array.from((0, $9eVFr$group)(units, (d)=>d.section_id));
49
49
  return groups.map(([section_id, units])=>{
50
50
  const t_age = Math.min(...units.map((d)=>d.t_age));
51
51
  const b_age = Math.max(...units.map((d)=>d.b_age));
@@ -91,4 +91,4 @@ function $2c60de495788ce61$export$d0c8ecbd4ed8940c(x) {
91
91
 
92
92
 
93
93
  export {$2c60de495788ce61$export$9f8a901d6936c6b6 as extendDivision, $2c60de495788ce61$export$55543e159517d62d as preprocessUnits, $2c60de495788ce61$export$dfbd00399d639b4c as groupUnitsIntoSections, $2c60de495788ce61$export$ec445c47b6e5d2d as _mergeOverlappingSections, $2c60de495788ce61$export$d0c8ecbd4ed8940c as ensureArray};
94
- //# sourceMappingURL=helpers.2af05ee4.js.map
94
+ //# sourceMappingURL=helpers.8a03cfc7.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;AAUA,MAAM,2BAAK;AAEX,SAAS,mCAAiC,CAAI,EAAE,CAAI;IAClD,MAAM,MAAM,CAAA,GAAA,uBAAe,EAAE,mCAAa,IAAI,mCAAa,IAAI;IAC/D,OAAO,OAAO,CAAA,GAAA,2BAAmB,EAAE,QAAQ;AAC7C;AAEA,SAAS,mCAAiC,IAAO;IAC/C,OAAO;QAAC,KAAK,KAAK;QAAE,KAAK,KAAK;KAAC;AACjC;AAQO,SAAS,0CACd,IAAc,EACd,CAAS,EACT,SAAqB;IAErB,MAAM,mBAAmB,UAAU,MAAM,CACvC,CAAC,IAAM,EAAE,OAAO,IAAI,KAAK,OAAO,IAAI,mCAAa,MAAM;IAEzD,IAAI,gBAAgB;IACpB,KAAK,MAAM,KAAK,iBACd,IAAI,EAAE,KAAK,GAAG,KAAK,KAAK,GAAG,0BAAI,gBAAgB;IAGjD,IAAI,SAAS;IACb,IAAI,iBAAiB,MAAM,IAAI,GAC7B,SAAS;IAGX,OAAO;QACL,GAAG,IAAI;uBACP;gBACA;QACA,kBAAkB,iBAAiB,GAAG,CAAC,CAAC,IAAM,EAAE,OAAO;IACzD;AACF;AAEO,SAAS,0CAAgB,KAAiB;IAC/C,IAAI,YAAY,MAAM,GAAG,CAAC;IAC1B,KAAK,IAAI,KAAK,UAAW;QACvB,MAAM,mBAAmB,UAAU,MAAM,CAAC,CAAC,IACzC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE,OAAO;QAGvC,MAAM,kBAAkB,KAAK,GAAG,CAC9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YAAY,KAAK,CAAC,IAAI,IAAI,QAAQ,KAAK;QACvC,YAAY,KAAK,GAAG,KAAK,GAAG,CAAC,YAAY,KAAK,EAAE,QAAQ,KAAK;QAC7D,YAAY,KAAK,GAAG,KAAK,GAAG,CAAC,YAAY,KAAK,EAAE,QAAQ,KAAK;IAC/D;IACA,OAAO;AACT;AAEO,SAAS,0CAAe,CAAU;IACvC,IAAI,MAAM,OAAO,CAAC,IAChB,OAAO;IAET,OAAO;QAAC;KAAE;AACZ","sources":["packages/column-views/src/helpers.ts"],"sourcesContent":["import { BaseUnit, UnitLong } from \"@macrostrat/api-types\";\nimport { IUnit } from \"./units\";\nimport { SectionInfo } from \"./section\";\nimport { group } from \"d3-array\";\nimport {\n AgeRange,\n compareAgeRanges,\n AgeRangeRelationship,\n} from \"@macrostrat/stratigraphy-utils\";\n\nconst dt = 0.001;\n\nfunction unitsOverlap<T extends BaseUnit>(a: T, b: T) {\n const rel = compareAgeRanges(unitAgeRange(a), unitAgeRange(b), 0.001);\n return rel != AgeRangeRelationship.Disjoint;\n}\n\nfunction unitAgeRange<T extends BaseUnit>(unit: T): AgeRange {\n return [unit.b_age, unit.t_age];\n}\n\ninterface ExtUnit extends UnitLong {\n bottomOverlap: boolean;\n overlappingUnits: number[];\n column?: number;\n}\n\nexport function extendDivision(\n unit: UnitLong,\n i: number,\n divisions: UnitLong[]\n): ExtUnit {\n const overlappingUnits = divisions.filter(\n (d) => d.unit_id != unit.unit_id && unitsOverlap(unit, d)\n );\n let bottomOverlap = false;\n for (const d of overlappingUnits) {\n if (d.b_age < unit.b_age + dt) bottomOverlap = true;\n }\n\n let column = 0;\n if (overlappingUnits.length == 1) {\n column = 1;\n }\n\n return {\n ...unit,\n bottomOverlap,\n column,\n overlappingUnits: overlappingUnits.map((d) => d.unit_id),\n };\n}\n\nexport function preprocessUnits(units: UnitLong[]) {\n let divisions = units.map(extendDivision);\n for (let d of divisions) {\n const overlappingUnits = divisions.filter((u) =>\n d.overlappingUnits.includes(u.unit_id)\n );\n\n const maxNOverlapping = Math.max(\n Math.max(\n ...d.overlappingUnits.map(\n (uid) =>\n divisions.find((u) => u.unit_id == uid).overlappingUnits.length\n ),\n 0\n )\n );\n\n //d.maxNOverlapping = maxNOverlapping;\n\n // Overlapping columns\n const columns = overlappingUnits.map((d) => d.column);\n\n if (columns.includes(d.column)) {\n let col = 0;\n // Go through columns to find a better index\n while (columns.includes(col)) {\n col++;\n }\n d.column = col;\n }\n }\n\n return divisions;\n}\n\nexport function groupUnitsIntoSections(units: IUnit[]): SectionInfo[] {\n let groups = Array.from(group(units, (d) => d.section_id));\n return groups.map(([section_id, units]) => {\n const t_age = Math.min(...units.map((d) => d.t_age));\n const b_age = Math.max(...units.map((d) => d.b_age));\n return { section_id, t_age, b_age, units };\n });\n}\n\nexport function _mergeOverlappingSections(\n sections: SectionInfo[]\n): SectionInfo[] {\n /** Columns can have sections that overlap in time. Here, we merge overlapping\n * sections into a single section to correctly render gap-bound packages.\n */\n const [firstSection, ...rest] = sections;\n const newSections = [firstSection];\n for (const section of rest) {\n const lastSection = newSections[newSections.length - 1];\n if (\n lastSection.b_age < section.t_age ||\n lastSection.t_age > section.b_age\n ) {\n // No overlap, add the section as normal\n newSections.push(section);\n continue;\n }\n // Overlap, merge the sections\n lastSection.section_id = [\n ...ensureArray(lastSection.section_id),\n ...ensureArray(section.section_id),\n ];\n lastSection.units.push(...section.units);\n lastSection.b_age = Math.max(lastSection.b_age, section.b_age);\n lastSection.t_age = Math.min(lastSection.t_age, section.t_age);\n }\n return newSections;\n}\n\nexport function ensureArray<T>(x: T | T[]): T[] {\n if (Array.isArray(x)) {\n return x;\n }\n return [x];\n}\n"],"names":[],"version":3,"file":"helpers.2af05ee4.js.map"}
1
+ {"mappings":";;;;;AAUA,MAAM,2BAAK;AAEX,SAAS,mCAAiC,CAAI,EAAE,CAAI;IAClD,MAAM,MAAM,CAAA,GAAA,uBAAe,EAAE,mCAAa,IAAI,mCAAa,IAAI;IAC/D,OAAO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Ac;IACnD,IAAI,SAAS,MAAM,IAAI,CAAC,CAAA,GAAA,YAAI,EAAE,OAAO,CAAC,IAAM,EAAE,UAAU;IACxD,OAAO,OAAO,GAAG,CAAC,CAAC,CAAC,YAAY,MAAM;QACpC,MAAM,QAAQ,KAAK,GAAG,IAAI,MAAM,GAAG,CAAC,CAAC,IAAM,EAAE,KAAK;QAClD,MAAM,QAAQ,KAAK,GAAG,IAAI,MAAM,GAAG,CAAC,CAAC,IAAM,EAAE,KAAK;QAClD,OAAO;wBAAE;mBAAY;mBAAO;mBAAO;QAAM;IAC3C;AACF;AAEO,SAAS,yCACd,QAAuB;IAEvB;;GAEC,GACD,MAAM,CAAC,cAAc,GAAG,KAAK,GAAG;IAChC,MAAM,cAAc;QAAC;KAAa;IAClC,KAAK,MAAM,WAAW,KAAM;QAC1B,MAAM,cAAc,WAAW,CAAC,YAAY,MAAM,GAAG,EAAE;QACvD,IACE,YAAY,KAAK,GAAG,QAAQ,KAAK,IACjC,YAAY,KAAK,GAAG,QAAQ,KAAK,EACjC;YACA,wCAAwC;YACxC,YAAY,IAAI,CAAC;YACjB;QACF;QACA,8BAA8B;QAC9B,YAAY,UAAU,GAAG;eACpB,0CAAY,YAAY,UAAU;eAClC,0CAAY,QAAQ,UAAU;SAClC;QACD,YAAY,KAAK,CAAC,IAAI,IAAI,QAAQ,KAAK;QACvC,YAAY,KAAK,GAAG,KAAK,GAAG,CAAC,YAAY,KAAK,EAAE,QAAQ,KAAK;QAC7D,YAAY,KAAK,GAAG,KAAK,GAAG,CAAC,YAAY,KAAK,EAAE,QAAQ,KAAK;IAC/D;IACA,OAAO;AACT;AAEO,SAAS,0CAAe,CAAU;IACvC,IAAI,MAAM,OAAO,CAAC,IAChB,OAAO;IAET,OAAO;QAAC;KAAE;AACZ","sources":["packages/column-views/src/helpers.ts"],"sourcesContent":["import { BaseUnit, UnitLong } from \"@macrostrat/api-types\";\nimport { IUnit } from \"./units\";\nimport { SectionInfo } from \"./section\";\nimport { group } from \"d3-array\";\nimport {\n AgeRange,\n compareAgeRanges,\n AgeRangeRelationship,\n} from \"@macrostrat/stratigraphy-utils\";\n\nconst dt = 0.001;\n\nfunction unitsOverlap<T extends BaseUnit>(a: T, b: T) {\n const rel = compareAgeRanges(unitAgeRange(a), unitAgeRange(b), 0.001);\n return rel != AgeRangeRelationship.Disjoint;\n}\n\nfunction unitAgeRange<T extends BaseUnit>(unit: T): AgeRange {\n return [unit.b_age, unit.t_age];\n}\n\ninterface ExtUnit extends UnitLong {\n bottomOverlap: boolean;\n overlappingUnits: number[];\n column?: number;\n}\n\nexport function extendDivision(\n unit: UnitLong,\n i: number,\n divisions: UnitLong[]\n): ExtUnit {\n const overlappingUnits = divisions.filter(\n (d) => d.unit_id != unit.unit_id && unitsOverlap(unit, d)\n );\n let bottomOverlap = false;\n for (const d of overlappingUnits) {\n if (d.b_age < unit.b_age + dt) bottomOverlap = true;\n }\n\n let column = 0;\n if (overlappingUnits.length == 1) {\n column = 1;\n }\n\n return {\n ...unit,\n bottomOverlap,\n column,\n overlappingUnits: overlappingUnits.map((d) => d.unit_id),\n };\n}\n\nexport function preprocessUnits(units: UnitLong[]) {\n let divisions = units.map(extendDivision);\n for (let d of divisions) {\n const overlappingUnits = divisions.filter((u) =>\n d.overlappingUnits.includes(u.unit_id)\n );\n\n const maxNOverlapping = Math.max(\n Math.max(\n ...d.overlappingUnits.map(\n (uid) =>\n divisions.find((u) => u.unit_id == uid).overlappingUnits.length\n ),\n 0\n )\n );\n\n //d.maxNOverlapping = maxNOverlapping;\n\n // Overlapping columns\n const columns = overlappingUnits.map((d) => d.column);\n\n if (columns.includes(d.column)) {\n let col = 0;\n // Go through columns to find a better index\n while (columns.includes(col)) {\n col++;\n }\n d.column = col;\n }\n }\n\n return divisions;\n}\n\nexport function groupUnitsIntoSections(units: IUnit[]): SectionInfo[] {\n let groups = Array.from(group(units, (d) => d.section_id));\n return groups.map(([section_id, units]) => {\n const t_age = Math.min(...units.map((d) => d.t_age));\n const b_age = Math.max(...units.map((d) => d.b_age));\n return { section_id, t_age, b_age, units };\n });\n}\n\nexport function _mergeOverlappingSections(\n sections: SectionInfo[]\n): SectionInfo[] {\n /** Columns can have sections that overlap in time. Here, we merge overlapping\n * sections into a single section to correctly render gap-bound packages.\n */\n const [firstSection, ...rest] = sections;\n const newSections = [firstSection];\n for (const section of rest) {\n const lastSection = newSections[newSections.length - 1];\n if (\n lastSection.b_age < section.t_age ||\n lastSection.t_age > section.b_age\n ) {\n // No overlap, add the section as normal\n newSections.push(section);\n continue;\n }\n // Overlap, merge the sections\n lastSection.section_id = [\n ...ensureArray(lastSection.section_id),\n ...ensureArray(section.section_id),\n ];\n lastSection.units.push(...section.units);\n lastSection.b_age = Math.max(lastSection.b_age, section.b_age);\n lastSection.t_age = Math.min(lastSection.t_age, section.t_age);\n }\n return newSections;\n}\n\nexport function ensureArray<T>(x: T | T[]): T[] {\n if (Array.isArray(x)) {\n return x;\n }\n return [x];\n}\n"],"names":[],"version":3,"file":"helpers.8a03cfc7.js.map"}
@@ -1,10 +1,10 @@
1
- import {UnitsColumn as $4c8184c4a7317749$export$3750278673318c9a, SimpleUnitsColumn as $4c8184c4a7317749$export$2006342ddaa547c6, TrackedLabeledUnit as $8c8238faa5cde49c$export$f613830566442374, AnnotatedUnitsColumn as $8c8238faa5cde49c$export$d8c3f2fdd653a082, CompositeUnitsColumn as $8c8238faa5cde49c$export$a6684360fef0406e, CompositeUnitComponent as $8c8238faa5cde49c$export$1dfa200d57964eee, MacrostratAxisKey as $faf1eba02aecac6a$export$6d217bb9de27dba7, transformAxisType as $faf1eba02aecac6a$export$ab2a19f8a72df19b, useUnitSelectionDispatch as $4d5d1c15f39f6a14$export$77a278d5ca56e309, useSelectedUnit as $4d5d1c15f39f6a14$export$f0dd93f90aa8e5da, UnitSelectionProvider as $4d5d1c15f39f6a14$export$f19d75b1d4b676a4, useColumnNav as $4d5d1c15f39f6a14$export$91cb5ac808759b34, ColumnNavProvider as $4d5d1c15f39f6a14$export$36fed9e0f93a8fde, UnitKeyboardNavigation as $4d5d1c15f39f6a14$export$70f5ee19650fc7d1} from "./units.5ec6a44c.js";
2
- import {extendDivision as $2c60de495788ce61$export$9f8a901d6936c6b6, preprocessUnits as $2c60de495788ce61$export$55543e159517d62d, groupUnitsIntoSections as $2c60de495788ce61$export$dfbd00399d639b4c, _mergeOverlappingSections as $2c60de495788ce61$export$ec445c47b6e5d2d, ensureArray as $2c60de495788ce61$export$d0c8ecbd4ed8940c} from "./helpers.2af05ee4.js";
3
- import {AgeAxis as $43794af7643cdf40$export$25ce20521d0ab97d} from "./age-axis.7ce58d66.js";
4
- import {MeasurementDataContext as $8adf39b8c41fe3cc$export$c644ef985ce7a4c4, MeasurementDataProvider as $8adf39b8c41fe3cc$export$5f01d5b342a89841, useMeasurementData as $8adf39b8c41fe3cc$export$8a0335fd9ff72150, IsotopesDataset as $d5a3eba6c540ff58$export$c69bd0285aa5d775, IsotopesColumn as $d5a3eba6c540ff58$export$5d8aa8022c284748, CarbonIsotopesColumn as $5cc70deb5088007a$export$883edafebdc6d87e, CarbonIsotopesApp as $5cc70deb5088007a$export$e2beef9ae524c9d5} from "./carbon-isotopes.6d9bddcf.js";
5
- import {MacrostratColumnProvider as $29bf41d89292aad4$export$9e42f9b6e0d67c7d, MacrostratAPIProvider as $29bf41d89292aad4$export$3098013bc6cc316d} from "./providers.abcb2cbe.js";
6
- import {ResizableMapFrame as $157bdadaa2bcfcf5$export$c4313db718750a5a, ColumnNavigatorMap as $157bdadaa2bcfcf5$export$d9144ecbc6b090c5, MeasurementsLayer as $347c34ac01fb689b$export$2254347cd20e6080, processTopoJSON as $347c34ac01fb689b$export$4ad66a3119e1afaa, ColumnFeatures as $347c34ac01fb689b$export$f177ff57c101017a, ColumnKeyboardNavigation as $347c34ac01fb689b$export$8c41dd563753848, useColumnData as $347c34ac01fb689b$export$6b70218db02fa4ce, Columns as $347c34ac01fb689b$export$f02cc02ad0e0bba3, ColumnCenters as $347c34ac01fb689b$export$4d8f6e6df85d9012, CurrentColumn as $347c34ac01fb689b$export$b9d912252344e099} from "./map.e782010f.js";
7
- import {UnitComponent as $2118f0266dc7e955$export$48a4cacf2b7a4441, Column as $2118f0266dc7e955$export$816b5d811295e6bc} from "./column.e35a471f.js";
1
+ import {UnitsColumn as $4c8184c4a7317749$export$3750278673318c9a, SimpleUnitsColumn as $4c8184c4a7317749$export$2006342ddaa547c6, TrackedLabeledUnit as $8c8238faa5cde49c$export$f613830566442374, AnnotatedUnitsColumn as $8c8238faa5cde49c$export$d8c3f2fdd653a082, CompositeUnitsColumn as $8c8238faa5cde49c$export$a6684360fef0406e, CompositeUnitComponent as $8c8238faa5cde49c$export$1dfa200d57964eee, MacrostratAxisKey as $faf1eba02aecac6a$export$6d217bb9de27dba7, transformAxisType as $faf1eba02aecac6a$export$ab2a19f8a72df19b, useUnitSelectionDispatch as $4d5d1c15f39f6a14$export$77a278d5ca56e309, useSelectedUnit as $4d5d1c15f39f6a14$export$f0dd93f90aa8e5da, UnitSelectionProvider as $4d5d1c15f39f6a14$export$f19d75b1d4b676a4, useColumnNav as $4d5d1c15f39f6a14$export$91cb5ac808759b34, ColumnNavProvider as $4d5d1c15f39f6a14$export$36fed9e0f93a8fde, UnitKeyboardNavigation as $4d5d1c15f39f6a14$export$70f5ee19650fc7d1} from "./units.361088d4.js";
2
+ import {AgeAxis as $43794af7643cdf40$export$25ce20521d0ab97d} from "./age-axis.64c509ee.js";
3
+ import {IsotopesDataset as $d5a3eba6c540ff58$export$c69bd0285aa5d775, IsotopesColumn as $d5a3eba6c540ff58$export$5d8aa8022c284748, MeasurementDataContext as $8adf39b8c41fe3cc$export$c644ef985ce7a4c4, MeasurementDataProvider as $8adf39b8c41fe3cc$export$5f01d5b342a89841, useMeasurementData as $8adf39b8c41fe3cc$export$8a0335fd9ff72150, CarbonIsotopesColumn as $5cc70deb5088007a$export$883edafebdc6d87e, CarbonIsotopesApp as $5cc70deb5088007a$export$e2beef9ae524c9d5} from "./carbon-isotopes.3b502a9e.js";
4
+ import {MacrostratColumnProvider as $29bf41d89292aad4$export$9e42f9b6e0d67c7d, MacrostratAPIProvider as $29bf41d89292aad4$export$3098013bc6cc316d} from "./providers.cd1e652f.js";
5
+ import {extendDivision as $2c60de495788ce61$export$9f8a901d6936c6b6, preprocessUnits as $2c60de495788ce61$export$55543e159517d62d, groupUnitsIntoSections as $2c60de495788ce61$export$dfbd00399d639b4c, _mergeOverlappingSections as $2c60de495788ce61$export$ec445c47b6e5d2d, ensureArray as $2c60de495788ce61$export$d0c8ecbd4ed8940c} from "./helpers.8a03cfc7.js";
6
+ import {ResizableMapFrame as $157bdadaa2bcfcf5$export$c4313db718750a5a, ColumnNavigatorMap as $157bdadaa2bcfcf5$export$d9144ecbc6b090c5, MeasurementsLayer as $347c34ac01fb689b$export$2254347cd20e6080, processTopoJSON as $347c34ac01fb689b$export$4ad66a3119e1afaa, ColumnFeatures as $347c34ac01fb689b$export$f177ff57c101017a, ColumnKeyboardNavigation as $347c34ac01fb689b$export$8c41dd563753848, useColumnData as $347c34ac01fb689b$export$6b70218db02fa4ce, Columns as $347c34ac01fb689b$export$f02cc02ad0e0bba3, ColumnCenters as $347c34ac01fb689b$export$4d8f6e6df85d9012, CurrentColumn as $347c34ac01fb689b$export$b9d912252344e099} from "./map.7aa26f17.js";
7
+ import {UnitComponent as $2118f0266dc7e955$export$48a4cacf2b7a4441, Column as $2118f0266dc7e955$export$816b5d811295e6bc} from "./column.97e31037.js";
8
8
 
9
9
 
10
10
 
@@ -15,5 +15,5 @@ import {UnitComponent as $2118f0266dc7e955$export$48a4cacf2b7a4441, Column as $2
15
15
 
16
16
 
17
17
 
18
- export {$4c8184c4a7317749$export$3750278673318c9a as UnitsColumn, $4c8184c4a7317749$export$2006342ddaa547c6 as SimpleUnitsColumn, $8c8238faa5cde49c$export$f613830566442374 as TrackedLabeledUnit, $8c8238faa5cde49c$export$d8c3f2fdd653a082 as AnnotatedUnitsColumn, $8c8238faa5cde49c$export$a6684360fef0406e as CompositeUnitsColumn, $8c8238faa5cde49c$export$1dfa200d57964eee as CompositeUnitComponent, $faf1eba02aecac6a$export$6d217bb9de27dba7 as MacrostratAxisKey, $faf1eba02aecac6a$export$ab2a19f8a72df19b as transformAxisType, $4d5d1c15f39f6a14$export$77a278d5ca56e309 as useUnitSelectionDispatch, $4d5d1c15f39f6a14$export$f0dd93f90aa8e5da as useSelectedUnit, $4d5d1c15f39f6a14$export$f19d75b1d4b676a4 as UnitSelectionProvider, $4d5d1c15f39f6a14$export$91cb5ac808759b34 as useColumnNav, $4d5d1c15f39f6a14$export$36fed9e0f93a8fde as ColumnNavProvider, $4d5d1c15f39f6a14$export$70f5ee19650fc7d1 as UnitKeyboardNavigation, $2c60de495788ce61$export$9f8a901d6936c6b6 as extendDivision, $2c60de495788ce61$export$55543e159517d62d as preprocessUnits, $2c60de495788ce61$export$dfbd00399d639b4c as groupUnitsIntoSections, $2c60de495788ce61$export$ec445c47b6e5d2d as _mergeOverlappingSections, $2c60de495788ce61$export$d0c8ecbd4ed8940c as ensureArray, $43794af7643cdf40$export$25ce20521d0ab97d as AgeAxis, $8adf39b8c41fe3cc$export$c644ef985ce7a4c4 as MeasurementDataContext, $8adf39b8c41fe3cc$export$5f01d5b342a89841 as MeasurementDataProvider, $8adf39b8c41fe3cc$export$8a0335fd9ff72150 as useMeasurementData, $d5a3eba6c540ff58$export$c69bd0285aa5d775 as IsotopesDataset, $d5a3eba6c540ff58$export$5d8aa8022c284748 as IsotopesColumn, $5cc70deb5088007a$export$883edafebdc6d87e as CarbonIsotopesColumn, $5cc70deb5088007a$export$e2beef9ae524c9d5 as CarbonIsotopesApp, $29bf41d89292aad4$export$9e42f9b6e0d67c7d as MacrostratColumnProvider, $29bf41d89292aad4$export$3098013bc6cc316d as MacrostratAPIProvider, $157bdadaa2bcfcf5$export$c4313db718750a5a as ResizableMapFrame, $157bdadaa2bcfcf5$export$d9144ecbc6b090c5 as ColumnNavigatorMap, $347c34ac01fb689b$export$2254347cd20e6080 as MeasurementsLayer, $347c34ac01fb689b$export$4ad66a3119e1afaa as processTopoJSON, $347c34ac01fb689b$export$f177ff57c101017a as ColumnFeatures, $347c34ac01fb689b$export$8c41dd563753848 as ColumnKeyboardNavigation, $347c34ac01fb689b$export$6b70218db02fa4ce as useColumnData, $347c34ac01fb689b$export$f02cc02ad0e0bba3 as Columns, $347c34ac01fb689b$export$4d8f6e6df85d9012 as ColumnCenters, $347c34ac01fb689b$export$b9d912252344e099 as CurrentColumn, $2118f0266dc7e955$export$48a4cacf2b7a4441 as UnitComponent, $2118f0266dc7e955$export$816b5d811295e6bc as Column};
18
+ export {$4c8184c4a7317749$export$3750278673318c9a as UnitsColumn, $4c8184c4a7317749$export$2006342ddaa547c6 as SimpleUnitsColumn, $8c8238faa5cde49c$export$f613830566442374 as TrackedLabeledUnit, $8c8238faa5cde49c$export$d8c3f2fdd653a082 as AnnotatedUnitsColumn, $8c8238faa5cde49c$export$a6684360fef0406e as CompositeUnitsColumn, $8c8238faa5cde49c$export$1dfa200d57964eee as CompositeUnitComponent, $faf1eba02aecac6a$export$6d217bb9de27dba7 as MacrostratAxisKey, $faf1eba02aecac6a$export$ab2a19f8a72df19b as transformAxisType, $4d5d1c15f39f6a14$export$77a278d5ca56e309 as useUnitSelectionDispatch, $4d5d1c15f39f6a14$export$f0dd93f90aa8e5da as useSelectedUnit, $4d5d1c15f39f6a14$export$f19d75b1d4b676a4 as UnitSelectionProvider, $4d5d1c15f39f6a14$export$91cb5ac808759b34 as useColumnNav, $4d5d1c15f39f6a14$export$36fed9e0f93a8fde as ColumnNavProvider, $4d5d1c15f39f6a14$export$70f5ee19650fc7d1 as UnitKeyboardNavigation, $43794af7643cdf40$export$25ce20521d0ab97d as AgeAxis, $d5a3eba6c540ff58$export$c69bd0285aa5d775 as IsotopesDataset, $d5a3eba6c540ff58$export$5d8aa8022c284748 as IsotopesColumn, $8adf39b8c41fe3cc$export$c644ef985ce7a4c4 as MeasurementDataContext, $8adf39b8c41fe3cc$export$5f01d5b342a89841 as MeasurementDataProvider, $8adf39b8c41fe3cc$export$8a0335fd9ff72150 as useMeasurementData, $5cc70deb5088007a$export$883edafebdc6d87e as CarbonIsotopesColumn, $5cc70deb5088007a$export$e2beef9ae524c9d5 as CarbonIsotopesApp, $29bf41d89292aad4$export$9e42f9b6e0d67c7d as MacrostratColumnProvider, $29bf41d89292aad4$export$3098013bc6cc316d as MacrostratAPIProvider, $2c60de495788ce61$export$9f8a901d6936c6b6 as extendDivision, $2c60de495788ce61$export$55543e159517d62d as preprocessUnits, $2c60de495788ce61$export$dfbd00399d639b4c as groupUnitsIntoSections, $2c60de495788ce61$export$ec445c47b6e5d2d as _mergeOverlappingSections, $2c60de495788ce61$export$d0c8ecbd4ed8940c as ensureArray, $157bdadaa2bcfcf5$export$c4313db718750a5a as ResizableMapFrame, $157bdadaa2bcfcf5$export$d9144ecbc6b090c5 as ColumnNavigatorMap, $347c34ac01fb689b$export$2254347cd20e6080 as MeasurementsLayer, $347c34ac01fb689b$export$4ad66a3119e1afaa as processTopoJSON, $347c34ac01fb689b$export$f177ff57c101017a as ColumnFeatures, $347c34ac01fb689b$export$8c41dd563753848 as ColumnKeyboardNavigation, $347c34ac01fb689b$export$6b70218db02fa4ce as useColumnData, $347c34ac01fb689b$export$f02cc02ad0e0bba3 as Columns, $347c34ac01fb689b$export$4d8f6e6df85d9012 as ColumnCenters, $347c34ac01fb689b$export$b9d912252344e099 as CurrentColumn, $2118f0266dc7e955$export$48a4cacf2b7a4441 as UnitComponent, $2118f0266dc7e955$export$816b5d811295e6bc as Column};
19
19
  //# sourceMappingURL=index.js.map
@@ -62,4 +62,4 @@
62
62
  margin-right: .2em;
63
63
  display: inline-block;
64
64
  }
65
- /*# sourceMappingURL=index.module.de76feb2.css.map */
65
+ /*# sourceMappingURL=index.module.0844afd8.css.map */
@@ -1 +1 @@
1
- {"mappings":"AAAA;;;;;;;;;;;;;;AAYE;;;;;AAGA;;;;AAEA;;;;;AAIA;;;;;AAIF;;;;;;AAKA;;;;;;AAKA;;;;;;AAKE;;;;;AAIF","sources":["packages/column-views/src/unit-details/index.module.sass"],"sourcesContent":[".legend-panel-header\n display: flex\n justify-content: space-between\n align-items: baseline\n gap: 1em\n border-bottom: 1px solid var(--panel-rule-color)\n position: sticky\n top: 0\n background-color: var(--panel-secondary-background-color)\n margin: -1em -1em 0\n padding: 0.5em 1em\n z-index: 50\n code\n font-size: 0.9em\n color: var(--secondary-color)\n .spacer\n flex: 1\n button\n line-height: 1.5\n transform: translateY(2px)\n\n h3\n margin: 0 0 0.5em\n font-size: 1.1em\n\n.unit-details-content\n position: relative\n margin-top: 1em\n margin-bottom: -0.5em\n\n.proportion, .sep, .no-units\n color: var(--secondary-color)\n font-style: italic\n font-size: 0.9em\n\n.strat-name-id, .unit-id\n font-family: var(--monospace-font)\n color: var(--secondary-color)\n font-size: 0.9em\n\n &::before\n content: '#'\n color: var(--tertiary-color)\n\n.color-swatch\n width: 1em\n height: 1em\n border-radius: 0.2em\n margin-right: 0.2em\n border: 1px solid var(--panel-rule-color)\n display: inline-block\n"],"names":[],"version":3,"file":"index.module.de76feb2.css.map"}
1
+ {"mappings":"AAAA;;;;;;;;;;;;;;AAYE;;;;;AAGA;;;;AAEA;;;;;AAIA;;;;;AAIF;;;;;;AAKA;;;;;;AAKA;;;;;;AAKE;;;;;AAIF","sources":["packages/column-views/src/unit-details/index.module.sass"],"sourcesContent":[".legend-panel-header\n display: flex\n justify-content: space-between\n align-items: baseline\n gap: 1em\n border-bottom: 1px solid var(--panel-rule-color)\n position: sticky\n top: 0\n background-color: var(--panel-secondary-background-color)\n margin: -1em -1em 0\n padding: 0.5em 1em\n z-index: 50\n code\n font-size: 0.9em\n color: var(--secondary-color)\n .spacer\n flex: 1\n button\n line-height: 1.5\n transform: translateY(2px)\n\n h3\n margin: 0 0 0.5em\n font-size: 1.1em\n\n.unit-details-content\n position: relative\n margin-top: 1em\n margin-bottom: -0.5em\n\n.proportion, .sep, .no-units\n color: var(--secondary-color)\n font-style: italic\n font-size: 0.9em\n\n.strat-name-id, .unit-id\n font-family: var(--monospace-font)\n color: var(--secondary-color)\n font-size: 0.9em\n\n &::before\n content: '#'\n color: var(--tertiary-color)\n\n.color-swatch\n width: 1em\n height: 1em\n border-radius: 0.2em\n margin-right: 0.2em\n border: 1px solid var(--panel-rule-color)\n display: inline-block\n"],"names":[],"version":3,"file":"index.module.0844afd8.css.map"}
@@ -34,4 +34,4 @@ $051e16c544ec71c3$export$e22f189945dfce76 = `Mnh6ea_unit-id`;
34
34
 
35
35
 
36
36
  export {$051e16c544ec71c3$exports as default};
37
- //# sourceMappingURL=index.module.8fad0020.js.map
37
+ //# sourceMappingURL=index.module.24fe3a2e.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AARA,4CAAiC,CAAC,mBAAmB,CAAC;AACtD,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAA6B,CAAC,eAAe,CAAC;AAC9C,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAwB,CAAC,UAAU,CAAC;AACpC,4CAA2B,CAAC,aAAa,CAAC;AAC1C,4CAAkC,CAAC,oBAAoB,CAAC;AACxD,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4B,CAAC,cAAc,CAAC","sources":["packages/column-views/src/unit-details/index.module.sass"],"sourcesContent":[".legend-panel-header\n display: flex\n justify-content: space-between\n align-items: baseline\n gap: 1em\n border-bottom: 1px solid var(--panel-rule-color)\n position: sticky\n top: 0\n background-color: var(--panel-secondary-background-color)\n margin: -1em -1em 0\n padding: 0.5em 1em\n z-index: 50\n code\n font-size: 0.9em\n color: var(--secondary-color)\n .spacer\n flex: 1\n button\n line-height: 1.5\n transform: translateY(2px)\n\n h3\n margin: 0 0 0.5em\n font-size: 1.1em\n\n.unit-details-content\n position: relative\n margin-top: 1em\n margin-bottom: -0.5em\n\n.proportion, .sep, .no-units\n color: var(--secondary-color)\n font-style: italic\n font-size: 0.9em\n\n.strat-name-id, .unit-id\n font-family: var(--monospace-font)\n color: var(--secondary-color)\n font-size: 0.9em\n\n &::before\n content: '#'\n color: var(--tertiary-color)\n\n.color-swatch\n width: 1em\n height: 1em\n border-radius: 0.2em\n margin-right: 0.2em\n border: 1px solid var(--panel-rule-color)\n display: inline-block\n"],"names":[],"version":3,"file":"index.module.8fad0020.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AARA,4CAAiC,CAAC,mBAAmB,CAAC;AACtD,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAA6B,CAAC,eAAe,CAAC;AAC9C,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAwB,CAAC,UAAU,CAAC;AACpC,4CAA2B,CAAC,aAAa,CAAC;AAC1C,4CAAkC,CAAC,oBAAoB,CAAC;AACxD,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4B,CAAC,cAAc,CAAC","sources":["packages/column-views/src/unit-details/index.module.sass"],"sourcesContent":[".legend-panel-header\n display: flex\n justify-content: space-between\n align-items: baseline\n gap: 1em\n border-bottom: 1px solid var(--panel-rule-color)\n position: sticky\n top: 0\n background-color: var(--panel-secondary-background-color)\n margin: -1em -1em 0\n padding: 0.5em 1em\n z-index: 50\n code\n font-size: 0.9em\n color: var(--secondary-color)\n .spacer\n flex: 1\n button\n line-height: 1.5\n transform: translateY(2px)\n\n h3\n margin: 0 0 0.5em\n font-size: 1.1em\n\n.unit-details-content\n position: relative\n margin-top: 1em\n margin-bottom: -0.5em\n\n.proportion, .sep, .no-units\n color: var(--secondary-color)\n font-style: italic\n font-size: 0.9em\n\n.strat-name-id, .unit-id\n font-family: var(--monospace-font)\n color: var(--secondary-color)\n font-size: 0.9em\n\n &::before\n content: '#'\n color: var(--tertiary-color)\n\n.color-swatch\n width: 1em\n height: 1em\n border-radius: 0.2em\n margin-right: 0.2em\n border: 1px solid var(--panel-rule-color)\n display: inline-block\n"],"names":[],"version":3,"file":"index.module.24fe3a2e.js.map"}