@macrostrat/column-views 3.11.0 → 3.12.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 (138) hide show
  1. package/CHANGELOG.md +184 -0
  2. package/dist/age-axis.cjs +1 -2
  3. package/dist/age-axis.cjs.map +1 -1
  4. package/dist/age-axis.js +1 -2
  5. package/dist/age-axis.js.map +1 -1
  6. package/dist/age-model/data.cjs +57 -0
  7. package/dist/age-model/data.cjs.map +1 -0
  8. package/dist/age-model/data.d.ts +29 -0
  9. package/dist/age-model/data.js +57 -0
  10. package/dist/age-model/data.js.map +1 -0
  11. package/dist/age-model/details.cjs +260 -0
  12. package/dist/age-model/details.cjs.map +1 -0
  13. package/dist/age-model/details.d.ts +39 -0
  14. package/dist/age-model/details.js +257 -0
  15. package/dist/age-model/details.js.map +1 -0
  16. package/dist/age-model/details.module.sass.cjs +42 -0
  17. package/dist/age-model/details.module.sass.cjs.map +1 -0
  18. package/dist/age-model/details.module.sass.js +40 -0
  19. package/dist/age-model/details.module.sass.js.map +1 -0
  20. package/dist/age-model/index.d.ts +5 -0
  21. package/dist/age-model/legacy.cjs +28 -0
  22. package/dist/age-model/legacy.cjs.map +1 -0
  23. package/dist/age-model/legacy.d.ts +6 -0
  24. package/dist/age-model/legacy.js +26 -0
  25. package/dist/age-model/legacy.js.map +1 -0
  26. package/dist/age-model/surfaces.cjs +354 -0
  27. package/dist/age-model/surfaces.cjs.map +1 -0
  28. package/dist/age-model/surfaces.d.ts +68 -0
  29. package/dist/age-model/surfaces.js +351 -0
  30. package/dist/age-model/surfaces.js.map +1 -0
  31. package/dist/age-model/surfaces.module.sass.cjs +45 -0
  32. package/dist/age-model/surfaces.module.sass.cjs.map +1 -0
  33. package/dist/age-model/surfaces.module.sass.js +43 -0
  34. package/dist/age-model/surfaces.module.sass.js.map +1 -0
  35. package/dist/age-model/types.cjs +229 -0
  36. package/dist/age-model/types.cjs.map +1 -0
  37. package/dist/age-model/types.d.ts +112 -0
  38. package/dist/age-model/types.js +229 -0
  39. package/dist/age-model/types.js.map +1 -0
  40. package/dist/column-views.css +406 -74
  41. package/dist/column.cjs +20 -13
  42. package/dist/column.cjs.map +1 -1
  43. package/dist/column.d.ts +21 -6
  44. package/dist/column.js +21 -14
  45. package/dist/column.js.map +1 -1
  46. package/dist/column.module.sass.cjs +19 -15
  47. package/dist/column.module.sass.cjs.map +1 -1
  48. package/dist/column.module.sass.js +19 -15
  49. package/dist/column.module.sass.js.map +1 -1
  50. package/dist/data-provider/store.cjs +34 -1
  51. package/dist/data-provider/store.cjs.map +1 -1
  52. package/dist/data-provider/store.d.ts +5 -0
  53. package/dist/data-provider/store.js +35 -2
  54. package/dist/data-provider/store.js.map +1 -1
  55. package/dist/index.cjs +78 -18
  56. package/dist/index.cjs.map +1 -1
  57. package/dist/index.d.ts +3 -1
  58. package/dist/index.js +55 -4
  59. package/dist/index.js.map +1 -1
  60. package/dist/notes.cjs +11 -2
  61. package/dist/notes.cjs.map +1 -1
  62. package/dist/notes.d.ts +11 -1
  63. package/dist/notes.js +11 -2
  64. package/dist/notes.js.map +1 -1
  65. package/dist/prepare-units/composite-scale.cjs +18 -16
  66. package/dist/prepare-units/composite-scale.cjs.map +1 -1
  67. package/dist/prepare-units/composite-scale.js +18 -16
  68. package/dist/prepare-units/composite-scale.js.map +1 -1
  69. package/dist/prepare-units/density.cjs +83 -0
  70. package/dist/prepare-units/density.cjs.map +1 -0
  71. package/dist/prepare-units/density.d.ts +92 -0
  72. package/dist/prepare-units/density.js +83 -0
  73. package/dist/prepare-units/density.js.map +1 -0
  74. package/dist/prepare-units/index.cjs +15 -7
  75. package/dist/prepare-units/index.cjs.map +1 -1
  76. package/dist/prepare-units/index.d.ts +1 -0
  77. package/dist/prepare-units/index.js +15 -7
  78. package/dist/prepare-units/index.js.map +1 -1
  79. package/dist/prepare-units/types.cjs.map +1 -1
  80. package/dist/prepare-units/types.d.ts +34 -13
  81. package/dist/prepare-units/types.js.map +1 -1
  82. package/dist/section.cjs +108 -24
  83. package/dist/section.cjs.map +1 -1
  84. package/dist/section.d.ts +66 -6
  85. package/dist/section.js +109 -25
  86. package/dist/section.js.map +1 -1
  87. package/dist/timescale-zoom.cjs +191 -0
  88. package/dist/timescale-zoom.cjs.map +1 -0
  89. package/dist/timescale-zoom.d.ts +74 -0
  90. package/dist/timescale-zoom.js +191 -0
  91. package/dist/timescale-zoom.js.map +1 -0
  92. package/dist/unit-details/age-range.cjs +14 -43
  93. package/dist/unit-details/age-range.cjs.map +1 -1
  94. package/dist/unit-details/age-range.d.ts +1 -13
  95. package/dist/unit-details/age-range.js +6 -43
  96. package/dist/unit-details/age-range.js.map +1 -1
  97. package/dist/unit-details/utils.cjs +0 -5
  98. package/dist/unit-details/utils.cjs.map +1 -1
  99. package/dist/unit-details/utils.js +0 -5
  100. package/dist/unit-details/utils.js.map +1 -1
  101. package/dist/units/composite.cjs +4 -1
  102. package/dist/units/composite.cjs.map +1 -1
  103. package/dist/units/composite.d.ts +2 -0
  104. package/dist/units/composite.js +4 -1
  105. package/dist/units/composite.js.map +1 -1
  106. package/package.json +8 -8
  107. package/src/age-model/data.ts +98 -0
  108. package/src/age-model/details.module.sass +108 -0
  109. package/src/age-model/details.ts +333 -0
  110. package/src/age-model/index.ts +5 -0
  111. package/src/age-model/legacy.ts +30 -0
  112. package/src/age-model/surfaces.module.sass +168 -0
  113. package/src/age-model/surfaces.ts +568 -0
  114. package/src/age-model/types.ts +392 -0
  115. package/src/column.module.sass +59 -8
  116. package/src/column.ts +49 -23
  117. package/src/data-provider/store.ts +50 -1
  118. package/src/index.ts +5 -1
  119. package/src/notes.ts +20 -2
  120. package/src/prepare-units/composite-scale.ts +34 -31
  121. package/src/prepare-units/density.ts +197 -0
  122. package/src/prepare-units/index.ts +25 -6
  123. package/src/prepare-units/types.ts +34 -13
  124. package/src/section.ts +219 -33
  125. package/src/timescale-zoom.ts +341 -0
  126. package/src/unit-details/age-range.ts +12 -58
  127. package/src/units/composite.ts +11 -0
  128. package/dist/age-model-overlay.cjs +0 -50
  129. package/dist/age-model-overlay.cjs.map +0 -1
  130. package/dist/age-model-overlay.d.ts +0 -24
  131. package/dist/age-model-overlay.js +0 -48
  132. package/dist/age-model-overlay.js.map +0 -1
  133. package/dist/age-model-overlay.module.sass.cjs +0 -12
  134. package/dist/age-model-overlay.module.sass.cjs.map +0 -1
  135. package/dist/age-model-overlay.module.sass.js +0 -11
  136. package/dist/age-model-overlay.module.sass.js.map +0 -1
  137. package/src/age-model-overlay.module.sass +0 -11
  138. package/src/age-model-overlay.ts +0 -96
@@ -0,0 +1,168 @@
1
+ // Surface styling is keyed on boundary status (how the age is constrained)
2
+ // and boundary type (the nature of the contact). The tokens default to the
3
+ // design-system palette and can be overridden per column.
4
+ .column-surface-lines, .column-surface-labels, .surface-status-legend, .surface-tag
5
+ --surface-color-absolute: var(--pz-intent-danger, #c23030)
6
+ --surface-color-relative: var(--pz-intent-primary, #2d72d2)
7
+ --surface-color-spike: var(--pz-purple-500, #7961db)
8
+ --surface-color-imposed: var(--pz-orange-500, #c87619)
9
+ --surface-color-modeled: var(--pz-neutral-500, #8f99a8)
10
+ --surface-color-unspecified: var(--pz-neutral-400, #abb3bf)
11
+ --surface-color-derived: var(--pz-intent-success, #238551)
12
+ // The selection color is the column's, so a selected surface and a selected
13
+ // unit read as the same act
14
+ --surface-selected-color: var(--column-selection-color, var(--pz-accent-color, #7961db))
15
+ // Surfaces are drawn at one weight — the status shows in the dash pattern
16
+ // and the color, not the thickness — and the label's leader line matches it,
17
+ // so the stroke reads as continuous from the column into the tag.
18
+ --surface-line-width: 3px
19
+ --surface-leader-width: var(--surface-line-width)
20
+ // The outline of the box around a selected surface line
21
+ --surface-selection-width: 2px
22
+ // The tags keep the standard inset: it is what centers a note on the line
23
+ // that points at it, and it puts the tag's left edge exactly where the
24
+ // leader line ends, which the leader's overhang then tucks under
25
+
26
+ // Map statuses to a single color token that the lines, markers and tags share
27
+ .status-absolute
28
+ --surface-color: var(--surface-color-absolute)
29
+ .status-relative
30
+ --surface-color: var(--surface-color-relative)
31
+ .status-spike
32
+ --surface-color: var(--surface-color-spike)
33
+ .status-imposed
34
+ --surface-color: var(--surface-color-imposed)
35
+ .status-modeled
36
+ --surface-color: var(--surface-color-modeled)
37
+ .status-unspecified
38
+ --surface-color: var(--surface-color-unspecified)
39
+ .status-derived
40
+ --surface-color: var(--surface-color-derived)
41
+
42
+ // The dash pattern follows how the age is constrained: dated and
43
+ // interval-relative surfaces are solid, interpolated and unspecified ones
44
+ // dotted, imposed ones dashed. Weight is constant.
45
+ .status-absolute, .status-relative, .status-spike
46
+ --surface-line-style: solid
47
+ .status-imposed
48
+ --surface-line-style: dashed
49
+ .status-modeled, .status-unspecified, .status-derived
50
+ --surface-line-style: dotted
51
+
52
+ // Unconformable contacts are drawn as a double rule
53
+ .type-unconformity, .type-disconformity, .type-non-conformity, .type-angular-unconformity
54
+ --surface-line-double: 1
55
+ .type-fault
56
+ --surface-line-style: dashed
57
+
58
+ .column-surface-lines
59
+ position: absolute
60
+ top: 0
61
+ left: 0
62
+ width: 100%
63
+ pointer-events: none
64
+ z-index: 5
65
+ &.measuring
66
+ visibility: hidden
67
+
68
+ .surface-line
69
+ position: absolute
70
+ left: 0
71
+ right: 0
72
+ height: 0
73
+ // A comfortable hit area around a hairline
74
+ padding: 4px 0
75
+ transform: translateY(-4px)
76
+ pointer-events: none
77
+ color: var(--surface-color)
78
+ &.interactive
79
+ pointer-events: auto
80
+ cursor: pointer
81
+
82
+ .surface-line-inner
83
+ border-top: var(--surface-line-width, 1px) var(--surface-line-style, solid) var(--surface-color)
84
+ transform: translateY(calc(var(--surface-line-width, 1px) / -2))
85
+
86
+ &.interactive:hover .surface-line-inner
87
+ border-top-width: calc(var(--surface-line-width, 1px) + 1px)
88
+ filter: brightness(0.8)
89
+
90
+ // Selection outlines the box around the line; the line inside keeps the
91
+ // color of the interval it marks
92
+ &.selected
93
+ outline: var(--surface-selection-width) solid var(--surface-selected-color)
94
+ background-color: var(--pz-selected-background-color, transparent)
95
+
96
+ // Double rule for unconformable contacts
97
+ .surface-line
98
+ &.type-unconformity, &.type-disconformity, &.type-non-conformity, &.type-angular-unconformity
99
+ .surface-line-inner
100
+ border-bottom: var(--surface-line-width, 1px) var(--surface-line-style, solid) var(--surface-color)
101
+ height: 3px
102
+
103
+ .column-surface-labels
104
+ position: relative
105
+ :global(.col-note-label)
106
+ // We render our own label body
107
+ display: none
108
+ :global(.note-inner)
109
+ margin: 2px 5px
110
+ // The leader continues past both of its ends (`connectorOverhang`), so it
111
+ // has to paint outside the notes SVG: left over the gap to the column, right
112
+ // under the tag body
113
+ svg
114
+ overflow: visible
115
+ // It carries the surface's color (set per note as `--note-color`) and the
116
+ // weight of the line it runs into
117
+ :global(.link)
118
+ stroke-width: var(--surface-leader-width)
119
+
120
+ .surface-label
121
+ display: flex
122
+ flex-direction: row
123
+ align-items: center
124
+ gap: 6px
125
+ padding: 2px 4px
126
+ border-radius: 3px
127
+ cursor: pointer
128
+ line-height: 1.2
129
+ color: var(--column-text-color)
130
+ &:hover
131
+ background-color: var(--pz-hover-background-color, rgba(128, 128, 128, 0.12))
132
+ // Selection reads in the text itself rather than as a card around it
133
+ &.selected .surface-label-primary
134
+ font-weight: 700
135
+
136
+ .surface-label-marker
137
+ flex: none
138
+ width: 14px
139
+ height: 0
140
+ border-top: var(--surface-line-width, 1px) var(--surface-line-style, solid) var(--surface-color)
141
+ .type-unconformity &, .type-disconformity &, .type-non-conformity &, .type-angular-unconformity &
142
+ border-bottom: var(--surface-line-width, 1px) var(--surface-line-style, solid) var(--surface-color)
143
+ height: 3px
144
+
145
+ .surface-label-text
146
+ min-width: 0
147
+ display: flex
148
+ flex-direction: row
149
+ align-items: baseline
150
+ gap: 6px
151
+ white-space: nowrap
152
+
153
+ .surface-label-primary
154
+ font-size: 0.75rem
155
+ font-weight: 500
156
+ white-space: nowrap
157
+ // The tag keeps its name and detail on one line
158
+ :global(.bp6-tag), .surface-interval-tag
159
+ white-space: nowrap
160
+ vertical-align: middle
161
+
162
+ .surface-label-status
163
+ font-style: italic
164
+
165
+ .surface-label-secondary
166
+ font-size: 0.7rem
167
+ white-space: nowrap
168
+ color: var(--text-subtle-color, var(--pz-text-subtle-color, #5f6b7c))