Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Aug 26, 2024
1 parent d74fe8c commit 1126da7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion js/feature/featureTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class FeatureTrack extends TrackBase {
displayMode: "EXPANDED", // COLLAPSED | EXPANDED | SQUISHED
margin: 10,
featureHeight: 14,
autoHeight: false,
useScore: false
}

Expand Down
5 changes: 0 additions & 5 deletions js/qtl/qtlTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,8 @@ class QTLTrack extends TrackBase {
this.divider = config.divider || "rgb(225,225,225)"
this.dotSize = config.dotSize || 2
this.height = config.height || 100
this.autoHeight = false
this.disableButtons = config.disableButtons

// Limit visibility window to 2 mb, gtex server gets flaky beyond that
//this.visibilityWindow = config.visibilityWindow === undefined ?
// 2000000 : config.visibilityWindow >= 0 ? Math.min(2000000, config.visibilityWindow) : 2000000

this.featureSource = FeatureSource(config, this.browser.genome)
}

Expand Down
2 changes: 1 addition & 1 deletion js/trackView.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class TrackView {
const viewportsToRepaint = visibleViewports.filter(vp => vp.needsRepaint()).filter(viewport => viewport.checkZoomIn())

// Get viewports that require a data load
const viewportsToReload = viewportsToRepaint.filter(viewport => viewport.needsReload())
const viewportsToReload = visibleViewports.filter(viewport => viewport.needsReload())

// Trigger viewport to load features needed to cover current genomic range
// NOTE: these must be loaded synchronously, do not user Promise.all, not all file readers are thread safe
Expand Down
2 changes: 0 additions & 2 deletions js/variant/variantTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,6 @@ class VariantTrack extends TrackBase {
this.trackView.setTrackHeight(this.config.height || CNVPytorTrack.DEFAULT_TRACK_HEIGHT)
this.trackView.checkContentHeight()
this.trackView.updateViews()
this.trackView.track.autoHeight = false


} finally {
this.trackView.stopSpinner()
Expand Down

0 comments on commit 1126da7

Please sign in to comment.