@@ -61,13 +61,16 @@ interface BaseColumnProps extends SectionSharedProps {
6161 // Timescale properties
6262 showTimescale ?: boolean ;
6363 timescaleLevels ?: number | [ number , number ] ;
64+ unconformityLabels ?: boolean | UnconformityLabelPlacement ;
6465 onMouseOver ?: (
6566 unit : UnitLong | null ,
6667 height : number | null ,
6768 evt : MouseEvent ,
6869 ) => void ;
6970}
7071
72+ export type UnconformityLabelPlacement = "minimal" | "prominent" | "none" ;
73+
7174export interface ColumnProps
7275 extends Padding ,
7376 BaseColumnProps ,
@@ -224,7 +227,7 @@ function ColumnInner(props: ColumnInnerProps) {
224227
225228 const {
226229 unitComponent = UnitComponent ,
227- unconformityLabels = true ,
230+ unconformityLabels = "minimal" ,
228231 showLabels = true ,
229232 width : _width = 300 ,
230233 columnWidth : _columnWidth = 150 ,
@@ -242,6 +245,15 @@ function ColumnInner(props: ColumnInnerProps) {
242245
243246 const { axisType } = useMacrostratColumnData ( ) ;
244247
248+ // Coalesce unconformity label setting to a boolean
249+ let _timescaleUnconformityLabels = false ;
250+ let _sectionUnconformityLabels = false ;
251+ if ( unconformityLabels === true || unconformityLabels === "prominent" ) {
252+ _sectionUnconformityLabels = true ;
253+ } else if ( unconformityLabels === "minimal" ) {
254+ _timescaleUnconformityLabels = true ;
255+ }
256+
245257 let width = _width ;
246258 let columnWidth = _columnWidth ;
247259 if ( columnWidth > width ) {
@@ -267,15 +279,18 @@ function ColumnInner(props: ColumnInnerProps) {
267279 } ,
268280 h ( "div.column" , { ref : columnRef } , [
269281 h ( ageAxisComponent ) ,
270- h . if ( _showTimescale ) ( CompositeTimescale , { levels : timescaleLevels } ) ,
282+ h . if ( _showTimescale ) ( CompositeTimescale , {
283+ levels : timescaleLevels ,
284+ unconformityLabels : _timescaleUnconformityLabels ,
285+ } ) ,
271286 h ( SectionsColumn , {
272287 unitComponent,
273288 showLabels,
274289 width,
275290 columnWidth,
276291 showLabelColumn,
277292 clipUnits,
278- unconformityLabels,
293+ unconformityLabels : _sectionUnconformityLabels ,
279294 maxInternalColumns,
280295 } ) ,
281296 children ,
0 commit comments