@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.
- package/CHANGELOG.md +184 -0
- package/dist/age-axis.cjs +1 -2
- package/dist/age-axis.cjs.map +1 -1
- package/dist/age-axis.js +1 -2
- package/dist/age-axis.js.map +1 -1
- package/dist/age-model/data.cjs +57 -0
- package/dist/age-model/data.cjs.map +1 -0
- package/dist/age-model/data.d.ts +29 -0
- package/dist/age-model/data.js +57 -0
- package/dist/age-model/data.js.map +1 -0
- package/dist/age-model/details.cjs +260 -0
- package/dist/age-model/details.cjs.map +1 -0
- package/dist/age-model/details.d.ts +39 -0
- package/dist/age-model/details.js +257 -0
- package/dist/age-model/details.js.map +1 -0
- package/dist/age-model/details.module.sass.cjs +42 -0
- package/dist/age-model/details.module.sass.cjs.map +1 -0
- package/dist/age-model/details.module.sass.js +40 -0
- package/dist/age-model/details.module.sass.js.map +1 -0
- package/dist/age-model/index.d.ts +5 -0
- package/dist/age-model/legacy.cjs +28 -0
- package/dist/age-model/legacy.cjs.map +1 -0
- package/dist/age-model/legacy.d.ts +6 -0
- package/dist/age-model/legacy.js +26 -0
- package/dist/age-model/legacy.js.map +1 -0
- package/dist/age-model/surfaces.cjs +354 -0
- package/dist/age-model/surfaces.cjs.map +1 -0
- package/dist/age-model/surfaces.d.ts +68 -0
- package/dist/age-model/surfaces.js +351 -0
- package/dist/age-model/surfaces.js.map +1 -0
- package/dist/age-model/surfaces.module.sass.cjs +45 -0
- package/dist/age-model/surfaces.module.sass.cjs.map +1 -0
- package/dist/age-model/surfaces.module.sass.js +43 -0
- package/dist/age-model/surfaces.module.sass.js.map +1 -0
- package/dist/age-model/types.cjs +229 -0
- package/dist/age-model/types.cjs.map +1 -0
- package/dist/age-model/types.d.ts +112 -0
- package/dist/age-model/types.js +229 -0
- package/dist/age-model/types.js.map +1 -0
- package/dist/column-views.css +406 -74
- package/dist/column.cjs +20 -13
- package/dist/column.cjs.map +1 -1
- package/dist/column.d.ts +21 -6
- package/dist/column.js +21 -14
- package/dist/column.js.map +1 -1
- package/dist/column.module.sass.cjs +19 -15
- package/dist/column.module.sass.cjs.map +1 -1
- package/dist/column.module.sass.js +19 -15
- package/dist/column.module.sass.js.map +1 -1
- package/dist/data-provider/store.cjs +34 -1
- package/dist/data-provider/store.cjs.map +1 -1
- package/dist/data-provider/store.d.ts +5 -0
- package/dist/data-provider/store.js +35 -2
- package/dist/data-provider/store.js.map +1 -1
- package/dist/index.cjs +78 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +55 -4
- package/dist/index.js.map +1 -1
- package/dist/notes.cjs +11 -2
- package/dist/notes.cjs.map +1 -1
- package/dist/notes.d.ts +11 -1
- package/dist/notes.js +11 -2
- package/dist/notes.js.map +1 -1
- package/dist/prepare-units/composite-scale.cjs +18 -16
- package/dist/prepare-units/composite-scale.cjs.map +1 -1
- package/dist/prepare-units/composite-scale.js +18 -16
- package/dist/prepare-units/composite-scale.js.map +1 -1
- package/dist/prepare-units/density.cjs +83 -0
- package/dist/prepare-units/density.cjs.map +1 -0
- package/dist/prepare-units/density.d.ts +92 -0
- package/dist/prepare-units/density.js +83 -0
- package/dist/prepare-units/density.js.map +1 -0
- package/dist/prepare-units/index.cjs +15 -7
- package/dist/prepare-units/index.cjs.map +1 -1
- package/dist/prepare-units/index.d.ts +1 -0
- package/dist/prepare-units/index.js +15 -7
- package/dist/prepare-units/index.js.map +1 -1
- package/dist/prepare-units/types.cjs.map +1 -1
- package/dist/prepare-units/types.d.ts +34 -13
- package/dist/prepare-units/types.js.map +1 -1
- package/dist/section.cjs +108 -24
- package/dist/section.cjs.map +1 -1
- package/dist/section.d.ts +66 -6
- package/dist/section.js +109 -25
- package/dist/section.js.map +1 -1
- package/dist/timescale-zoom.cjs +191 -0
- package/dist/timescale-zoom.cjs.map +1 -0
- package/dist/timescale-zoom.d.ts +74 -0
- package/dist/timescale-zoom.js +191 -0
- package/dist/timescale-zoom.js.map +1 -0
- package/dist/unit-details/age-range.cjs +14 -43
- package/dist/unit-details/age-range.cjs.map +1 -1
- package/dist/unit-details/age-range.d.ts +1 -13
- package/dist/unit-details/age-range.js +6 -43
- package/dist/unit-details/age-range.js.map +1 -1
- package/dist/unit-details/utils.cjs +0 -5
- package/dist/unit-details/utils.cjs.map +1 -1
- package/dist/unit-details/utils.js +0 -5
- package/dist/unit-details/utils.js.map +1 -1
- package/dist/units/composite.cjs +4 -1
- package/dist/units/composite.cjs.map +1 -1
- package/dist/units/composite.d.ts +2 -0
- package/dist/units/composite.js +4 -1
- package/dist/units/composite.js.map +1 -1
- package/package.json +8 -8
- package/src/age-model/data.ts +98 -0
- package/src/age-model/details.module.sass +108 -0
- package/src/age-model/details.ts +333 -0
- package/src/age-model/index.ts +5 -0
- package/src/age-model/legacy.ts +30 -0
- package/src/age-model/surfaces.module.sass +168 -0
- package/src/age-model/surfaces.ts +568 -0
- package/src/age-model/types.ts +392 -0
- package/src/column.module.sass +59 -8
- package/src/column.ts +49 -23
- package/src/data-provider/store.ts +50 -1
- package/src/index.ts +5 -1
- package/src/notes.ts +20 -2
- package/src/prepare-units/composite-scale.ts +34 -31
- package/src/prepare-units/density.ts +197 -0
- package/src/prepare-units/index.ts +25 -6
- package/src/prepare-units/types.ts +34 -13
- package/src/section.ts +219 -33
- package/src/timescale-zoom.ts +341 -0
- package/src/unit-details/age-range.ts +12 -58
- package/src/units/composite.ts +11 -0
- package/dist/age-model-overlay.cjs +0 -50
- package/dist/age-model-overlay.cjs.map +0 -1
- package/dist/age-model-overlay.d.ts +0 -24
- package/dist/age-model-overlay.js +0 -48
- package/dist/age-model-overlay.js.map +0 -1
- package/dist/age-model-overlay.module.sass.cjs +0 -12
- package/dist/age-model-overlay.module.sass.cjs.map +0 -1
- package/dist/age-model-overlay.module.sass.js +0 -11
- package/dist/age-model-overlay.module.sass.js.map +0 -1
- package/src/age-model-overlay.module.sass +0 -11
- 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))
|