@@ -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 , BaseColumnProps , ColumnHeightScaleOptions {
7376 // Macrostrat units
@@ -222,7 +225,7 @@ function ColumnInner(props: ColumnInnerProps) {
222225
223226 const {
224227 unitComponent = UnitComponent ,
225- unconformityLabels = true ,
228+ unconformityLabels = "minimal" ,
226229 showLabels = true ,
227230 width : _width = 300 ,
228231 columnWidth : _columnWidth = 150 ,
@@ -240,6 +243,15 @@ function ColumnInner(props: ColumnInnerProps) {
240243
241244 const { axisType } = useMacrostratColumnData ( ) ;
242245
246+ // Coalesce unconformity label setting to a boolean
247+ let _timescaleUnconformityLabels = false ;
248+ let _sectionUnconformityLabels = false ;
249+ if ( unconformityLabels === true || unconformityLabels === "prominent" ) {
250+ _sectionUnconformityLabels = true ;
251+ } else if ( unconformityLabels === "minimal" ) {
252+ _timescaleUnconformityLabels = true ;
253+ }
254+
243255 let width = _width ;
244256 let columnWidth = _columnWidth ;
245257 if ( columnWidth > width ) {
@@ -265,15 +277,18 @@ function ColumnInner(props: ColumnInnerProps) {
265277 } ,
266278 h ( "div.column" , { ref : columnRef } , [
267279 h ( ageAxisComponent ) ,
268- h . if ( _showTimescale ) ( CompositeTimescale , { levels : timescaleLevels } ) ,
280+ h . if ( _showTimescale ) ( CompositeTimescale , {
281+ levels : timescaleLevels ,
282+ unconformityLabels : _timescaleUnconformityLabels ,
283+ } ) ,
269284 h ( SectionsColumn , {
270285 unitComponent,
271286 showLabels,
272287 width,
273288 columnWidth,
274289 showLabelColumn,
275290 clipUnits,
276- unconformityLabels,
291+ unconformityLabels : _sectionUnconformityLabels ,
277292 maxInternalColumns,
278293 } ) ,
279294 children ,
@@ -351,18 +366,22 @@ export function ColumnContainer(props: ColumnContainerProps) {
351366 } ) ;
352367}
353368
354- export function ColumnBasicInfo ( { data, showColumnID = true } ) {
369+ export function ColumnBasicInfo ( {
370+ data,
371+ showColumnID = true ,
372+ showReferences = true ,
373+ } ) {
355374 if ( data == null ) return null ;
356375 return h ( "div.column-info" , [
357376 h ( "div.column-title-row" , [
358377 h ( "h2" , data . col_name ) ,
359378 h . if ( showColumnID ) ( "h4" , h ( Identifier , { id : data . col_id } ) ) ,
360379 ] ) ,
361380 h ( DataField , { row : true , label : "Group" , value : data . col_group } ) ,
362- h ( ReferencesField , {
381+ h . if ( showReferences ) ( ReferencesField , {
363382 refs : data . refs ,
364383 inline : false ,
365- row : true ,
384+ row : false ,
366385 className : "column-refs" ,
367386 } ) ,
368387 ] ) ;
0 commit comments