abb65703416720e75367ebcb234cb3337095f7de markd Tue Sep 13 18:34:11 2022 -0700 don't bother with generating bigRmsk lables in dense mode diff --git src/hg/hgTracks/bigRmskTrack.c src/hg/hgTracks/bigRmskTrack.c index 04736c4..1505d75 100644 --- src/hg/hgTracks/bigRmskTrack.c +++ src/hg/hgTracks/bigRmskTrack.c @@ -458,31 +458,31 @@ /* After the items have been loaded and before any rendering occurs, * this function delegates the layout based on the current visualization * type. * * I am not sure how permissible it is to access winStart/winEnd/insideWidth * as globals. This seems to be the pattern that I see used in other tracks * but it makes me uncomfortable. */ int baseWidth = winEnd - winStart; double pixelsPerBase = scaleForPixels(insideWidth); struct bigRmskRecord *items = tg->items; boolean showLabels = cartUsualBoolean(cart, BIGRMSK_SHOW_LABELS, BIGRMSK_SHOW_LABELS_DEFAULT); boolean origPackViz = cartUsualBoolean(cart, BIGRMSK_ORIG_PACKVIZ, BIGRMSK_ORIG_PACKVIZ_DEFAULT); -if (tg->visibility == tvSquish ) +if ((tg->visibility == tvSquish) || (tg->visibility == tvDense)) showLabels = FALSE; if (tg->visibility == tvFull && baseWidth <= DETAIL_VIEW_MAX_SCALE) { // Perform the most detailed glyph layout aka "Full" mode. detailedLayout(items, pixelsPerBase); } else { // Either class based or single row...dense char class[256]; struct classRecord *cr; if ( origPackViz ) {