Skip to content

Commit d805079

Browse files
committed
Move stuff around
1 parent 9f6f65c commit d805079

19 files changed

Lines changed: 191 additions & 375 deletions

File tree

src/LinearMafDisplay/components/SequenceDialog/index.tsx renamed to src/LinearMafDisplay/components/GetSequenceDialog/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const SequenceDialog = observer(function ({
7171
{
7272
sessionId,
7373
adapterConfig: model.adapterConfig,
74+
samples,
7475
regions: [
7576
{
7677
refName,
@@ -79,7 +80,6 @@ const SequenceDialog = observer(function ({
7980
assemblyName,
8081
},
8182
],
82-
bpPerPx: view.bpPerPx,
8383
},
8484
)
8585

src/LinearMafDisplay/components/LinearMafDisplayComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { useTheme } from '@mui/material'
66
import { observer } from 'mobx-react'
77

88
import Crosshairs from './Crosshairs'
9+
import SequenceDialog from './GetSequenceDialog/index'
910
import MAFTooltip from './MAFTooltip'
10-
import SequenceDialog from './SequenceDialog/index'
11-
import YScaleBars from './YScaleBars'
11+
import YScaleBars from './Sidebar/YScaleBars'
1212

1313
import type { LinearMafDisplayModel } from '../stateModel'
1414
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'

src/LinearMafDisplay/components/SetRowHeightDialog.tsx renamed to src/LinearMafDisplay/components/SetRowHeightDialog/SetRowHeightDialog.tsx

File renamed without changes.

src/LinearMafDisplay/components/ColorLegend.tsx renamed to src/LinearMafDisplay/components/Sidebar/ColorLegend.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { observer } from 'mobx-react'
55
import RectBg from './RectBg'
66
import Tree from './Tree'
77

8-
import type { LinearMafDisplayModel } from '../stateModel'
8+
import type { LinearMafDisplayModel } from '../../stateModel'
99

1010
const ColorLegend = observer(function ({
1111
model,
File renamed without changes.

src/LinearMafDisplay/components/SvgWrapper.tsx renamed to src/LinearMafDisplay/components/Sidebar/SvgWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react'
33
import { getContainingView } from '@jbrowse/core/util'
44
import { observer } from 'mobx-react'
55

6-
import type { LinearMafDisplayModel } from '../stateModel'
6+
import type { LinearMafDisplayModel } from '../../stateModel'
77
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view'
88

99
const SvgWrapper = observer(function ({

src/LinearMafDisplay/components/Tree.tsx renamed to src/LinearMafDisplay/components/Sidebar/Tree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22

33
import { observer } from 'mobx-react'
44

5-
import type { LinearMafDisplayModel } from '../stateModel'
5+
import type { LinearMafDisplayModel } from '../../stateModel'
66

77
const Tree = observer(function ({ model }: { model: LinearMafDisplayModel }) {
88
const {

src/LinearMafDisplay/components/YScaleBars.tsx renamed to src/LinearMafDisplay/components/Sidebar/YScaleBars.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { observer } from 'mobx-react'
55
import ColorLegend from './ColorLegend'
66
import SvgWrapper from './SvgWrapper'
77

8-
import type { LinearMafDisplayModel } from '../stateModel'
8+
import type { LinearMafDisplayModel } from '../../stateModel'
99

1010
export const YScaleBars = observer(function (props: {
1111
model: LinearMafDisplayModel

src/LinearMafDisplay/renderSvg.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22

33
import { getContainingView } from '@jbrowse/core/util'
44

5-
import YScaleBars from './components/YScaleBars'
5+
import YScaleBars from './components/Sidebar/YScaleBars'
66

77
import type { LinearMafDisplayModel } from './stateModel'
88
import type {

src/LinearMafDisplay/stateModel.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import type { ExportSvgDisplayOptions } from '@jbrowse/plugin-linear-genome-view
2222
import type { HierarchyNode } from 'd3-hierarchy'
2323
import type { Instance } from 'mobx-state-tree'
2424

25-
const SetRowHeightDialog = lazy(() => import('./components/SetRowHeightDialog'))
25+
const SetRowHeightDialog = lazy(
26+
() => import('./components/SetRowHeightDialog/SetRowHeightDialog'),
27+
)
2628

2729
/**
2830
* #stateModel LinearMafDisplay

0 commit comments

Comments
 (0)