Skip to content

Commit

Permalink
Bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Mar 12, 2024
1 parent 9f2d40b commit 9158297
Show file tree
Hide file tree
Showing 7 changed files with 4,954 additions and 4,335 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import BlockState from './serverSideRenderedBlock'
import configSchema from './configSchema'
import TrackHeightMixin from './TrackHeightMixin'
import FeatureDensityMixin from './FeatureDensityMixin'
import { nanoid } from '@jbrowse/core/util/nanoid'

type LGV = LinearGenomeViewModel

Expand Down Expand Up @@ -336,10 +335,9 @@ function stateModelFactory() {
'LinearGenomeView',
{
...rest,
id: nanoid(),
tracks: rest.tracks.map(track => {
const { id, ...rest } = track
return { ...rest, id: nanoid() }
return { ...rest }
}),
displayedRegions: res,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,6 @@ export function renderBlockData(
const layoutId = getContainingView(display).id
const cannotBeRenderedReason = display.regionCannotBeRendered(self.region)

const asm = assemblyManager.get(regionAsm)!
const regions = [getSnapshot(self.region)]
const parentRegions = regions.map(region => {
const r = asm?.getCanonicalRefName(region.refName)
return asm.regions?.find(b => b.refName === r)
})
return {
rendererType,
rpcManager,
Expand All @@ -261,8 +255,7 @@ export function renderBlockData(
}
},
assemblyName: self.region.assemblyName,
regions,
parentRegions,
regions: [getSnapshot(self.region)],
adapterConfig,
rendererType: rendererType.name,
sessionId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,14 @@ const Controls = ({ model }: { model: LGV }) => {
}

const LinearGenomeViewHeader = observer(({ model }: { model: LGV }) => {
const Wrapper = model.hideHeaderOverview ? React.Fragment : OverviewScalebar
return !model.hideHeader ? (
<Wrapper model={model}>
model.hideHeaderOverview ? (
<Controls model={model} />
</Wrapper>
) : (
<OverviewScalebar model={model}>
<Controls model={model} />
</OverviewScalebar>
)
) : null
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import DivRenderingConfigSchema from '../configSchema'
test('renders with one, zoomed way out', () => {
const { container } = render(
<DivSequenceRendering
rowHeight={13}
regions={[
{ assemblyName: 'volvox', refName: 'zonk', start: 0, end: 1000 },
]}
Expand Down Expand Up @@ -38,7 +37,6 @@ test('renders with one, zoomed way out', () => {
test('renders with one feature with no seq, zoomed in, should throw', () => {
const { container } = render(
<DivSequenceRendering
rowHeight={13}
regions={[
{ assemblyName: 'volvox', refName: 'zonk', start: 0, end: 1000 },
]}
Expand All @@ -61,7 +59,6 @@ test('renders with one feature with no seq, zoomed in, should throw', () => {
test('renders with one feature with an incorrect seq, zoomed in, should throw', () => {
const { container } = render(
<DivSequenceRendering
rowHeight={13}
regions={[
{ assemblyName: 'volvox', refName: 'zonk', start: 0, end: 1000 },
]}
Expand Down Expand Up @@ -92,7 +89,6 @@ test('renders with one feature with an incorrect seq, zoomed in, should throw',
test('renders with one feature with a correct seq, zoomed in, should render nicely', () => {
const { container } = render(
<DivSequenceRendering
rowHeight={13}
regions={[
{ assemblyName: 'volvox', refName: 'zonk', start: 0, end: 1000 },
]}
Expand Down Expand Up @@ -123,7 +119,6 @@ test('renders with one feature with a correct seq, zoomed in, should render nice
test('renders with one feature reversed with a correct seq, zoomed in, should render nicely', () => {
const { container } = render(
<DivSequenceRendering
rowHeight={13}
regions={[
{
assemblyName: 'volvox',
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion plugins/svg/src/SvgFeatureRenderer/components/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export interface Glyph
selected?: boolean
config: AnyConfigurationModel
region: Region
parentRegion: Region
bpPerPx: number
topLevel?: boolean
[key: string]: unknown
Expand Down
Loading

0 comments on commit 9158297

Please sign in to comment.