Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Aug 8, 2024
1 parent 91cb1a0 commit 5818f47
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React, { lazy, Suspense, useEffect, useRef } from 'react'
import { makeStyles } from 'tss-react/mui'
import { LoadingEllipses, VIEW_HEADER_HEIGHT } from '@jbrowse/core/ui'
import { getSession, partition } from '@jbrowse/core/util'
import { getSession } from '@jbrowse/core/util'
import { observer } from 'mobx-react'
import { Paper } from '@mui/material'

// locals
import {
Expand Down Expand Up @@ -45,6 +46,7 @@ const useStyles = makeStyles()(theme => ({

const LinearGenomeView = observer(({ model }: { model: LGV }) => {
const {
tracks,
pinnedTracks,
unpinnedTracks,
error,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const TrackContainer = observer(function ({
model: LGV
track: BaseTrackModel
}) {
const { classes } = useStyles()
const { cx, classes } = useStyles()
const display = track.displays[0]
const { draggingTrackId, showTrackOutlines } = model
const ref = useRef<HTMLDivElement>(null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ exports[`renders one track, one region 1`] = `
height="48"
>
<polygon
fill="rgba(66, 165, 245, 0.3)"
fill="#42a5f5"
fill-opacity="0.3"
points="0,48,101,48,800,0,0,0"
stroke="rgba(66, 165, 245, 0.8)"
stroke="#42a5f5"
stroke-opacity="0.8"
/>
</svg>
<div
Expand Down Expand Up @@ -160,7 +162,7 @@ exports[`renders one track, one region 1`] = `
/>
</button>
<div
class="MuiAutocomplete-root css-clttge-MuiAutocomplete-root"
class="MuiAutocomplete-root css-ka7ti6-MuiAutocomplete-root"
data-testid="autocomplete"
style="width: 175px;"
>
Expand Down Expand Up @@ -278,7 +280,7 @@ exports[`renders one track, one region 1`] = `
style="left: 0%; width: 0%;"
/>
<span
class="MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary css-14eyfr9-MuiSlider-thumb"
class="MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary css-l29f8w-MuiSlider-thumb"
data-index="0"
style="left: 0%;"
>
Expand Down Expand Up @@ -494,10 +496,6 @@ exports[`renders one track, one region 1`] = `
</p>
</div>
</div>
<div
class="css-10yx2nr-pinnedTracks"
style="top: 113px;"
/>
<div
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1m8zmvt-MuiPaper-root-root-unpinnedTrack"
>
Expand Down Expand Up @@ -543,7 +541,7 @@ exports[`renders one track, one region 1`] = `
/>
</button>
<span
class="MuiTypography-root MuiTypography-body1 css-877agm-MuiTypography-root-trackName"
class="MuiTypography-root MuiTypography-body1 css-ij4gik-MuiTypography-root-trackName"
>
<span>
Foo Track
Expand Down Expand Up @@ -578,7 +576,6 @@ exports[`renders one track, one region 1`] = `
>
<div
class="css-v11ioz-renderingComponentContainer"
style="transform: scaleX(1);"
>
<div
class="css-1y9lrrz-display"
Expand Down Expand Up @@ -721,9 +718,11 @@ exports[`renders two tracks, two regions 1`] = `
height="48"
>
<polygon
fill="rgba(66, 165, 245, 0.3)"
fill="#42a5f5"
fill-opacity="0.3"
points="0,48,802,48,580,0,0,0"
stroke="rgba(66, 165, 245, 0.8)"
stroke="#42a5f5"
stroke-opacity="0.8"
/>
</svg>
<div
Expand Down Expand Up @@ -797,7 +796,7 @@ exports[`renders two tracks, two regions 1`] = `
/>
</button>
<div
class="MuiAutocomplete-root css-clttge-MuiAutocomplete-root"
class="MuiAutocomplete-root css-ka7ti6-MuiAutocomplete-root"
data-testid="autocomplete"
style="width: 283.990625px;"
>
Expand Down Expand Up @@ -917,7 +916,7 @@ exports[`renders two tracks, two regions 1`] = `
style="left: 0%; width: 9.774680693120512%;"
/>
<span
class="MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary css-14eyfr9-MuiSlider-thumb"
class="MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary css-l29f8w-MuiSlider-thumb"
data-index="0"
style="left: 9.774680693120512%;"
>
Expand Down Expand Up @@ -1557,10 +1556,6 @@ exports[`renders two tracks, two regions 1`] = `
</p>
</div>
</div>
<div
class="css-10yx2nr-pinnedTracks"
style="top: 113px;"
/>
<div
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1m8zmvt-MuiPaper-root-root-unpinnedTrack"
>
Expand Down Expand Up @@ -1606,7 +1601,7 @@ exports[`renders two tracks, two regions 1`] = `
/>
</button>
<span
class="MuiTypography-root MuiTypography-body1 css-877agm-MuiTypography-root-trackName"
class="MuiTypography-root MuiTypography-body1 css-ij4gik-MuiTypography-root-trackName"
>
<span>
Foo Track
Expand Down Expand Up @@ -1641,7 +1636,6 @@ exports[`renders two tracks, two regions 1`] = `
>
<div
class="css-v11ioz-renderingComponentContainer"
style="transform: scaleX(1);"
>
<div
class="css-1y9lrrz-display"
Expand Down Expand Up @@ -1735,7 +1729,7 @@ exports[`renders two tracks, two regions 1`] = `
/>
</button>
<span
class="MuiTypography-root MuiTypography-body1 css-877agm-MuiTypography-root-trackName"
class="MuiTypography-root MuiTypography-body1 css-ij4gik-MuiTypography-root-trackName"
>
<span>
Bar Track
Expand Down Expand Up @@ -1770,7 +1764,6 @@ exports[`renders two tracks, two regions 1`] = `
>
<div
class="css-v11ioz-renderingComponentContainer"
style="transform: scaleX(1);"
>
<div
class="css-1y9lrrz-display"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ exports[`<JBrowseLinearGenomeView /> renders successfully 1`] = `
height="48"
>
<polygon
fill="rgba(66, 119, 127, 0.3)"
fill="#42777f"
fill-opacity="0.3"
points="0,48,801,48,267,0,0,0"
stroke="rgba(66, 119, 127, 0.8)"
stroke="#42777f"
stroke-opacity="0.8"
/>
</svg>
<div
Expand Down Expand Up @@ -249,7 +251,7 @@ exports[`<JBrowseLinearGenomeView /> renders successfully 1`] = `
/>
</button>
<div
class="MuiAutocomplete-root css-1p6gcs-MuiAutocomplete-root"
class="MuiAutocomplete-root css-1y8r37a-MuiAutocomplete-root"
data-testid="autocomplete"
style="width: 175px;"
>
Expand Down Expand Up @@ -369,7 +371,7 @@ exports[`<JBrowseLinearGenomeView /> renders successfully 1`] = `
style="left: 0%; width: 56.78411120929245%;"
/>
<span
class="MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary css-1j77ekx-MuiSlider-thumb"
class="MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary MuiSlider-thumb MuiSlider-thumbSizeSmall MuiSlider-thumbColorPrimary css-1nqyqyn-MuiSlider-thumb"
data-index="0"
style="left: 56.78411120929245%;"
>
Expand Down Expand Up @@ -1294,10 +1296,6 @@ exports[`<JBrowseLinearGenomeView /> renders successfully 1`] = `
</p>
</div>
</div>
<div
class="css-10yx2nr-pinnedTracks"
style="top: 113px;"
/>
<div
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1m8zmvt-MuiPaper-root-root-unpinnedTrack"
>
Expand Down Expand Up @@ -1343,7 +1341,7 @@ exports[`<JBrowseLinearGenomeView /> renders successfully 1`] = `
/>
</button>
<span
class="MuiTypography-root MuiTypography-body1 css-bpawrf-MuiTypography-root-trackName"
class="MuiTypography-root MuiTypography-body1 css-1lqq4j2-MuiTypography-root-trackName"
>
<span>
Reference sequence (volvox)
Expand Down Expand Up @@ -1378,7 +1376,6 @@ exports[`<JBrowseLinearGenomeView /> renders successfully 1`] = `
>
<div
class="css-v11ioz-renderingComponentContainer"
style="transform: scaleX(1);"
>
<div
class="css-1y9lrrz-display"
Expand Down

0 comments on commit 5818f47

Please sign in to comment.