@jbrowse/plugin-linear-comparative-view 2.18.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +36 -58
- package/dist/LGVSyntenyDisplay/components/util.d.ts +9 -6
- package/dist/LGVSyntenyDisplay/components/util.js +6 -12
- package/dist/LGVSyntenyDisplay/model.d.ts +21 -7
- package/dist/LGVSyntenyDisplay/model.js +19 -8
- package/dist/LinearComparativeView/components/Header.d.ts +1 -2
- package/dist/LinearComparativeView/components/Header.js +52 -81
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +1 -2
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +2 -11
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -2
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +13 -21
- package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +1 -2
- package/dist/LinearComparativeView/components/LinearComparativeView.js +2 -5
- package/dist/LinearComparativeView/components/Rubberband.d.ts +1 -2
- package/dist/LinearComparativeView/components/Rubberband.js +20 -51
- package/dist/LinearComparativeView/components/VerticalGuide.d.ts +1 -2
- package/dist/LinearComparativeView/components/VerticalGuide.js +4 -8
- package/dist/LinearComparativeView/index.js +17 -7
- package/dist/LinearComparativeView/model.d.ts +32 -28
- package/dist/LinearComparativeView/model.js +37 -8
- package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +1 -2
- package/dist/LinearReadVsRef/LinearReadVsRef.js +5 -36
- package/dist/LinearReadVsRef/index.js +17 -7
- package/dist/LinearSyntenyDisplay/afterAttach.js +6 -3
- package/dist/LinearSyntenyDisplay/components/Component.d.ts +1 -2
- package/dist/LinearSyntenyDisplay/components/Component.js +9 -32
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -2
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +89 -84
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -2
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +2 -5
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +2 -3
- package/dist/LinearSyntenyDisplay/index.js +17 -7
- package/dist/LinearSyntenyDisplay/model.js +17 -7
- package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -2
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js +34 -73
- package/dist/LinearSyntenyView/components/Icons.d.ts +2 -3
- package/dist/LinearSyntenyView/components/Icons.js +3 -8
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +130 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +39 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +22 -0
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -2
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +44 -143
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +43 -0
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +68 -0
- package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -2
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js +20 -9
- package/dist/LinearSyntenyView/index.js +17 -7
- package/dist/LinearSyntenyView/model.d.ts +49 -30
- package/dist/LinearSyntenyView/model.js +57 -15
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +2 -5
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +1 -2
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +2 -10
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +4 -16
- package/dist/LinearSyntenyView/types.d.ts +12 -0
- package/dist/LinearSyntenyView/types.js +2 -0
- package/dist/LinearSyntenyViewHelper/index.js +2 -2
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +87 -0
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +3 -79
- package/dist/SyntenyFeatureDetail/index.js +17 -7
- package/dist/SyntenyFeatureDetail/types.d.ts +9 -0
- package/dist/SyntenyFeatureDetail/types.js +2 -0
- package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
- package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +35 -34
- package/esm/LGVSyntenyDisplay/components/util.d.ts +9 -6
- package/esm/LGVSyntenyDisplay/components/util.js +6 -12
- package/esm/LGVSyntenyDisplay/model.d.ts +21 -7
- package/esm/LGVSyntenyDisplay/model.js +2 -1
- package/esm/LinearComparativeView/components/Header.d.ts +1 -2
- package/esm/LinearComparativeView/components/Header.js +52 -58
- package/esm/LinearComparativeView/components/HeaderSearchBoxes.d.ts +1 -2
- package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +2 -8
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -2
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +13 -18
- package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +1 -2
- package/esm/LinearComparativeView/components/LinearComparativeView.js +2 -5
- package/esm/LinearComparativeView/components/Rubberband.d.ts +1 -2
- package/esm/LinearComparativeView/components/Rubberband.js +20 -28
- package/esm/LinearComparativeView/components/VerticalGuide.d.ts +1 -2
- package/esm/LinearComparativeView/components/VerticalGuide.js +4 -5
- package/esm/LinearComparativeView/model.d.ts +32 -28
- package/esm/LinearComparativeView/model.js +21 -2
- package/esm/LinearReadVsRef/LinearReadVsRef.d.ts +1 -2
- package/esm/LinearReadVsRef/LinearReadVsRef.js +5 -13
- package/esm/LinearSyntenyDisplay/afterAttach.js +6 -3
- package/esm/LinearSyntenyDisplay/components/Component.d.ts +1 -2
- package/esm/LinearSyntenyDisplay/components/Component.js +9 -9
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -2
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +72 -77
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -2
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +2 -2
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +2 -3
- package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -2
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js +34 -50
- package/esm/LinearSyntenyView/components/Icons.d.ts +2 -3
- package/esm/LinearSyntenyView/components/Icons.js +3 -5
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +125 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +37 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +16 -0
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -2
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +45 -121
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +40 -0
- package/esm/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
- package/esm/LinearSyntenyView/components/ImportForm/getAdapter.js +65 -0
- package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -2
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js +3 -2
- package/esm/LinearSyntenyView/model.d.ts +49 -30
- package/esm/LinearSyntenyView/model.js +41 -9
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js +2 -2
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +1 -2
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +2 -7
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +4 -16
- package/esm/LinearSyntenyView/types.d.ts +12 -0
- package/esm/LinearSyntenyView/types.js +1 -0
- package/esm/LinearSyntenyViewHelper/index.js +2 -2
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +52 -0
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +4 -57
- package/esm/SyntenyFeatureDetail/types.d.ts +9 -0
- package/esm/SyntenyFeatureDetail/types.js +1 -0
- package/package.json +11 -11
- package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -194
- package/dist/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
- package/dist/LinearSyntenyView/components/ImportForm/Spacer.js +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -57
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -52
- package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
- package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -169
- package/esm/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
- package/esm/LinearSyntenyView/components/ImportForm/Spacer.js +0 -4
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -32
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -23
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
2
3
|
import CascadingMenuButton from '@jbrowse/core/ui/CascadingMenuButton';
|
|
3
4
|
import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons';
|
|
4
5
|
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
@@ -17,67 +18,60 @@ const Header = observer(function ({ model, }) {
|
|
|
17
18
|
const { views } = model;
|
|
18
19
|
const [showSearchBoxes, setShowSearchBoxes] = useState(views.length <= 3);
|
|
19
20
|
const [sideBySide, setSideBySide] = useState(views.length <= 3);
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
return (_jsxs(FormGroup, { row: true, children: [_jsx(CascadingMenuButton, { menuItems: [
|
|
22
|
+
{
|
|
23
|
+
label: 'Synteny track selectors',
|
|
24
|
+
type: 'subMenu',
|
|
25
|
+
subMenu: views.slice(0, -1).map((_, idx) => ({
|
|
26
|
+
label: `Row ${idx + 1}->${idx + 2} (${views[idx].assemblyNames.join(',')}->${views[idx + 1].assemblyNames.join(',')})`,
|
|
27
|
+
onClick: () => {
|
|
28
|
+
model.activateTrackSelector(idx);
|
|
29
|
+
},
|
|
30
|
+
})),
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: 'Row track selectors',
|
|
34
|
+
type: 'subMenu',
|
|
35
|
+
subMenu: views.map((view, idx) => ({
|
|
36
|
+
label: `Row ${idx + 1} track selector (${view.assemblyNames.join(',')})`,
|
|
37
|
+
onClick: () => view.activateTrackSelector(),
|
|
38
|
+
})),
|
|
39
|
+
},
|
|
40
|
+
], children: _jsx(TrackSelectorIcon, {}) }), _jsx(CascadingMenuButton, { menuItems: [
|
|
41
|
+
{
|
|
42
|
+
label: 'Row view menus',
|
|
43
|
+
type: 'subMenu',
|
|
44
|
+
subMenu: views.map((view, idx) => ({
|
|
45
|
+
label: `View ${idx + 1} Menu`,
|
|
46
|
+
subMenu: view.menuItems(),
|
|
47
|
+
})),
|
|
48
|
+
},
|
|
49
|
+
...model.headerMenuItems(),
|
|
50
|
+
], children: _jsx(MoreVertIcon, {}) }), _jsx(CascadingMenuButton, { menuItems: [
|
|
51
|
+
{
|
|
52
|
+
label: 'Show search boxes',
|
|
53
|
+
type: 'checkbox',
|
|
54
|
+
checked: showSearchBoxes,
|
|
27
55
|
onClick: () => {
|
|
28
|
-
|
|
56
|
+
setShowSearchBoxes(!showSearchBoxes);
|
|
29
57
|
},
|
|
30
|
-
})),
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: 'Row track selectors',
|
|
34
|
-
type: 'subMenu',
|
|
35
|
-
subMenu: views.map((view, idx) => ({
|
|
36
|
-
label: `Row ${idx + 1} track selector (${view.assemblyNames.join(',')})`,
|
|
37
|
-
onClick: () => view.activateTrackSelector(),
|
|
38
|
-
})),
|
|
39
|
-
},
|
|
40
|
-
] },
|
|
41
|
-
React.createElement(TrackSelectorIcon, null)),
|
|
42
|
-
React.createElement(CascadingMenuButton, { menuItems: [
|
|
43
|
-
{
|
|
44
|
-
label: 'Row view menus',
|
|
45
|
-
type: 'subMenu',
|
|
46
|
-
subMenu: views.map((view, idx) => ({
|
|
47
|
-
label: `View ${idx + 1} Menu`,
|
|
48
|
-
subMenu: view.menuItems(),
|
|
49
|
-
})),
|
|
50
|
-
},
|
|
51
|
-
...model.headerMenuItems(),
|
|
52
|
-
] },
|
|
53
|
-
React.createElement(MoreVertIcon, null)),
|
|
54
|
-
React.createElement(CascadingMenuButton, { menuItems: [
|
|
55
|
-
{
|
|
56
|
-
label: 'Show search boxes',
|
|
57
|
-
type: 'checkbox',
|
|
58
|
-
checked: showSearchBoxes,
|
|
59
|
-
onClick: () => {
|
|
60
|
-
setShowSearchBoxes(!showSearchBoxes);
|
|
61
58
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
{
|
|
60
|
+
label: 'Orientation - Side-by-side',
|
|
61
|
+
type: 'radio',
|
|
62
|
+
checked: sideBySide,
|
|
63
|
+
onClick: () => {
|
|
64
|
+
setSideBySide(!sideBySide);
|
|
65
|
+
},
|
|
69
66
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
{
|
|
68
|
+
label: 'Orientation - Vertical',
|
|
69
|
+
type: 'radio',
|
|
70
|
+
checked: !sideBySide,
|
|
71
|
+
onClick: () => {
|
|
72
|
+
setSideBySide(!sideBySide);
|
|
73
|
+
},
|
|
77
74
|
},
|
|
78
|
-
},
|
|
79
|
-
] },
|
|
80
|
-
React.createElement(SearchIcon, null)),
|
|
81
|
-
showSearchBoxes ? (React.createElement("span", { className: sideBySide ? classes.inline : undefined }, views.map(view => (React.createElement(HeaderSearchBoxes, { key: view.id, view: view }))))) : null));
|
|
75
|
+
], children: _jsx(SearchIcon, {}) }), showSearchBoxes ? (_jsx("span", { className: sideBySide ? classes.inline : undefined, children: views.map(view => (_jsx(HeaderSearchBoxes, { view: view }, view.id))) })) : null] }));
|
|
82
76
|
});
|
|
83
77
|
export default Header;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
|
|
3
2
|
declare const HeaderSearchBoxes: ({ view, }: {
|
|
4
3
|
view: LinearGenomeViewModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default HeaderSearchBoxes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { toLocale } from '@jbrowse/core/util';
|
|
3
3
|
import { SearchBox } from '@jbrowse/plugin-linear-genome-view';
|
|
4
4
|
import { Typography } from '@mui/material';
|
|
@@ -17,12 +17,6 @@ const useStyles = makeStyles()(() => ({
|
|
|
17
17
|
const HeaderSearchBoxes = observer(function ({ view, }) {
|
|
18
18
|
const { classes } = useStyles();
|
|
19
19
|
const { assemblyNames, coarseTotalBp } = view;
|
|
20
|
-
return (
|
|
21
|
-
React.createElement(SearchBox, { model: view, showHelp: false }),
|
|
22
|
-
React.createElement(Typography, { variant: "body2", color: "textSecondary", className: classes.bp },
|
|
23
|
-
assemblyNames.join(','),
|
|
24
|
-
" ",
|
|
25
|
-
toLocale(Math.round(coarseTotalBp)),
|
|
26
|
-
" bp")));
|
|
20
|
+
return (_jsxs("span", { className: classes.searchBox, children: [_jsx(SearchBox, { model: view, showHelp: false }), _jsxs(Typography, { variant: "body2", color: "textSecondary", className: classes.bp, children: [assemblyNames.join(','), " ", toLocale(Math.round(coarseTotalBp)), " bp"] })] }));
|
|
27
21
|
});
|
|
28
22
|
export default HeaderSearchBoxes;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { LinearComparativeViewModel } from '../model';
|
|
3
2
|
declare const LinearComparativeRenderArea: ({ model, }: {
|
|
4
3
|
model: LinearComparativeViewModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default LinearComparativeRenderArea;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getConf } from '@jbrowse/core/configuration';
|
|
3
3
|
import { ResizeHandle } from '@jbrowse/core/ui';
|
|
4
4
|
import { getEnv } from '@jbrowse/core/util';
|
|
5
5
|
import { observer } from 'mobx-react';
|
|
6
|
+
import { Fragment } from 'react/jsx-runtime';
|
|
6
7
|
import { makeStyles } from 'tss-react/mui';
|
|
7
8
|
const useStyles = makeStyles()({
|
|
8
9
|
container: {
|
|
@@ -20,30 +21,24 @@ const useStyles = makeStyles()({
|
|
|
20
21
|
function View({ view }) {
|
|
21
22
|
const { pluginManager } = getEnv(view);
|
|
22
23
|
const { ReactComponent } = pluginManager.getViewType(view.type);
|
|
23
|
-
return
|
|
24
|
+
return _jsx(ReactComponent, { model: view });
|
|
24
25
|
}
|
|
25
26
|
const LinearComparativeRenderArea = observer(function ({ model, }) {
|
|
26
27
|
const { classes } = useStyles();
|
|
27
28
|
const { views, levels } = model;
|
|
28
|
-
return (
|
|
29
|
-
i > 0 ? (React.createElement(React.Fragment, null,
|
|
30
|
-
React.createElement("div", { className: classes.container },
|
|
31
|
-
React.createElement(Overlays, { model: model, level: i - 1 })),
|
|
32
|
-
React.createElement(ResizeHandle, { onDrag: n => { var _a, _b; return (_a = levels[i - 1]) === null || _a === void 0 ? void 0 : _a.setHeight((((_b = levels[i - 1]) === null || _b === void 0 ? void 0 : _b.height) || 0) + n); }, className: classes.resizeHandle }))) : null,
|
|
33
|
-
React.createElement(View, { view: view }))))));
|
|
29
|
+
return (_jsx("div", { className: classes.container, children: views.map((view, i) => (_jsxs(Fragment, { children: [i > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { className: classes.container, children: _jsx(Overlays, { model: model, level: i - 1 }) }), _jsx(ResizeHandle, { onDrag: n => { var _a, _b; return (_a = levels[i - 1]) === null || _a === void 0 ? void 0 : _a.setHeight((((_b = levels[i - 1]) === null || _b === void 0 ? void 0 : _b.height) || 0) + n); }, className: classes.resizeHandle })] })) : null, _jsx(View, { view: view })] }, view.id))) }));
|
|
34
30
|
});
|
|
35
31
|
const Overlays = observer(function ({ model, level, }) {
|
|
36
32
|
var _a;
|
|
37
33
|
const { classes } = useStyles();
|
|
38
|
-
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
})));
|
|
34
|
+
return (_jsx(_Fragment, { children: (_a = model.levels[level]) === null || _a === void 0 ? void 0 : _a.tracks.map(track => {
|
|
35
|
+
const [display] = track.displays;
|
|
36
|
+
const { RenderingComponent } = display;
|
|
37
|
+
const trackId = getConf(track, 'trackId');
|
|
38
|
+
return RenderingComponent ? (_jsx("div", { className: classes.overlay, style: {
|
|
39
|
+
height: display.height,
|
|
40
|
+
overflow: 'hidden',
|
|
41
|
+
}, children: _jsx(RenderingComponent, { model: display }) }, trackId)) : null;
|
|
42
|
+
}) }));
|
|
48
43
|
});
|
|
49
44
|
export default LinearComparativeRenderArea;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { LinearComparativeViewModel } from '../model';
|
|
3
2
|
declare const LinearComparativeView: ({ model, }: {
|
|
4
3
|
model: LinearComparativeViewModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default LinearComparativeView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { observer } from 'mobx-react';
|
|
3
3
|
import { makeStyles } from 'tss-react/mui';
|
|
4
4
|
import Header from './Header';
|
|
@@ -20,9 +20,6 @@ const useStyles = makeStyles()(theme => ({
|
|
|
20
20
|
}));
|
|
21
21
|
const LinearComparativeView = observer(function ({ model, }) {
|
|
22
22
|
const { classes } = useStyles();
|
|
23
|
-
return (
|
|
24
|
-
React.createElement(Header, { model: model }),
|
|
25
|
-
React.createElement(Rubberband, { model: model, ControlComponent: React.createElement("div", { className: classes.rubberbandDiv }) }),
|
|
26
|
-
React.createElement(LinearComparativeRenderArea, { model: model })));
|
|
23
|
+
return (_jsxs("div", { className: classes.rubberbandContainer, children: [_jsx(Header, { model: model }), _jsx(Rubberband, { model: model, ControlComponent: _jsx("div", { className: classes.rubberbandDiv }) }), _jsx(LinearComparativeRenderArea, { model: model })] }));
|
|
27
24
|
});
|
|
28
25
|
export default LinearComparativeView;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { LinearComparativeViewModel } from '../model';
|
|
3
2
|
type LCV = LinearComparativeViewModel;
|
|
4
3
|
declare const LinearComparativeRubberband: ({ model, ControlComponent, }: {
|
|
5
4
|
model: LCV;
|
|
6
5
|
ControlComponent?: React.ReactElement;
|
|
7
|
-
}) =>
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default LinearComparativeRubberband;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef, useState } from 'react';
|
|
2
3
|
import { Menu } from '@jbrowse/core/ui';
|
|
3
4
|
import { stringify } from '@jbrowse/core/util';
|
|
4
5
|
import { Popover, Typography, alpha } from '@mui/material';
|
|
@@ -34,7 +35,7 @@ const useStyles = makeStyles()(theme => {
|
|
|
34
35
|
},
|
|
35
36
|
};
|
|
36
37
|
});
|
|
37
|
-
const LinearComparativeRubberband = observer(function Rubberband({ model, ControlComponent =
|
|
38
|
+
const LinearComparativeRubberband = observer(function Rubberband({ model, ControlComponent = _jsx("div", {}), }) {
|
|
38
39
|
const [startX, setStartX] = useState();
|
|
39
40
|
const [currentX, setCurrentX] = useState();
|
|
40
41
|
const [anchorPosition, setAnchorPosition] = useState();
|
|
@@ -135,9 +136,7 @@ const LinearComparativeRubberband = observer(function Rubberband({ model, Contro
|
|
|
135
136
|
handleClose();
|
|
136
137
|
}
|
|
137
138
|
if (startX === undefined) {
|
|
138
|
-
return (
|
|
139
|
-
guideX !== undefined ? (React.createElement(VerticalGuide, { model: model, coordX: guideX })) : null,
|
|
140
|
-
React.createElement("div", { ref: controlsRef, className: classes.rubberbandControl, onMouseDown: mouseDown, onMouseOut: mouseOut, onMouseMove: mouseMove }, ControlComponent)));
|
|
139
|
+
return (_jsxs(_Fragment, { children: [guideX !== undefined ? (_jsx(VerticalGuide, { model: model, coordX: guideX })) : null, _jsx("div", { ref: controlsRef, className: classes.rubberbandControl, onMouseDown: mouseDown, onMouseOut: mouseOut, onMouseMove: mouseMove, children: ControlComponent })] }));
|
|
141
140
|
}
|
|
142
141
|
const right = anchorPosition ? anchorPosition.offsetX : currentX || 0;
|
|
143
142
|
const left = Math.min(right, startX);
|
|
@@ -146,28 +145,21 @@ const LinearComparativeRubberband = observer(function Rubberband({ model, Contro
|
|
|
146
145
|
const leftBpOffset = views.map(view => view.pxToBp(left));
|
|
147
146
|
const rightBpOffset = views.map(view => view.pxToBp(left + width));
|
|
148
147
|
const numOfBpSelected = views.map(view => Math.ceil(width * view.bpPerPx));
|
|
149
|
-
return (
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
React.createElement("div", { ref: rubberbandRef, className: classes.rubberband, style: { left, width } },
|
|
166
|
-
React.createElement(Typography, { variant: "h6", className: classes.rubberbandText }, numOfBpSelected.map((n, i) => (React.createElement(Typography, { key: `${n}_${i}` }, `${n.toLocaleString('en-US')}bp`))))),
|
|
167
|
-
React.createElement("div", { className: classes.rubberbandControl, ref: controlsRef, onMouseDown: mouseDown, onMouseOut: mouseOut, onMouseMove: mouseMove }, ControlComponent),
|
|
168
|
-
anchorPosition ? (React.createElement(Menu, { anchorReference: "anchorPosition", anchorPosition: {
|
|
169
|
-
left: anchorPosition.clientX,
|
|
170
|
-
top: anchorPosition.clientY,
|
|
171
|
-
}, onMenuItemClick: handleMenuItemClick, open: open, onClose: handleClose, menuItems: model.rubberBandMenuItems() })) : null));
|
|
148
|
+
return (_jsxs(_Fragment, { children: [rubberbandRef.current ? (_jsxs(_Fragment, { children: [_jsx(Popover, { className: classes.popover, classes: { paper: classes.paper }, open: true, anchorEl: rubberbandRef.current, anchorOrigin: {
|
|
149
|
+
vertical: 'top',
|
|
150
|
+
horizontal: 'left',
|
|
151
|
+
}, transformOrigin: {
|
|
152
|
+
vertical: 'bottom',
|
|
153
|
+
horizontal: 'right',
|
|
154
|
+
}, keepMounted: true, disableRestoreFocus: true, children: leftBpOffset.map((l, idx) => (_jsx(Typography, { children: stringify(l, true) }, [JSON.stringify(l), idx, 'left'].join('-')))) }), _jsx(Popover, { className: classes.popover, classes: { paper: classes.paper }, open: true, anchorEl: rubberbandRef.current, anchorOrigin: {
|
|
155
|
+
vertical: 'top',
|
|
156
|
+
horizontal: 'right',
|
|
157
|
+
}, transformOrigin: {
|
|
158
|
+
vertical: 'bottom',
|
|
159
|
+
horizontal: 'left',
|
|
160
|
+
}, keepMounted: true, disableRestoreFocus: true, children: rightBpOffset.map((l, idx) => (_jsx(Typography, { children: stringify(l, true) }, [JSON.stringify(l), idx, 'right'].join('-')))) })] })) : null, _jsx("div", { ref: rubberbandRef, className: classes.rubberband, style: { left, width }, children: _jsx(Typography, { variant: "h6", className: classes.rubberbandText, children: numOfBpSelected.map((n, i) => (_jsx(Typography, { children: `${n.toLocaleString('en-US')}bp` }, `${n}_${i}`))) }) }), _jsx("div", { className: classes.rubberbandControl, ref: controlsRef, onMouseDown: mouseDown, onMouseOut: mouseOut, onMouseMove: mouseMove, children: ControlComponent }), anchorPosition ? (_jsx(Menu, { anchorReference: "anchorPosition", anchorPosition: {
|
|
161
|
+
left: anchorPosition.clientX,
|
|
162
|
+
top: anchorPosition.clientY,
|
|
163
|
+
}, onMenuItemClick: handleMenuItemClick, open: open, onClose: handleClose, menuItems: model.rubberBandMenuItems() })) : null] }));
|
|
172
164
|
});
|
|
173
165
|
export default LinearComparativeRubberband;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { LinearComparativeViewModel } from '../model';
|
|
3
2
|
type LCV = LinearComparativeViewModel;
|
|
4
3
|
declare const VerticalGuide: ({ model, coordX, }: {
|
|
5
4
|
model: LCV;
|
|
6
5
|
coordX: number;
|
|
7
|
-
}) =>
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default VerticalGuide;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { stringify } from '@jbrowse/core/util';
|
|
3
3
|
import { Tooltip, Typography } from '@mui/material';
|
|
4
4
|
import { observer } from 'mobx-react';
|
|
@@ -17,12 +17,11 @@ const useStyles = makeStyles()({
|
|
|
17
17
|
});
|
|
18
18
|
const VerticalGuide = observer(function ({ model, coordX, }) {
|
|
19
19
|
const { classes } = useStyles();
|
|
20
|
-
return (
|
|
20
|
+
return (_jsx(Tooltip, { open: true, placement: "top", title: model.views
|
|
21
21
|
.map(view => view.pxToBp(coordX))
|
|
22
|
-
.map((elt, idx) => (
|
|
23
|
-
React.createElement("div", { className: classes.guide, style: {
|
|
22
|
+
.map((elt, idx) => (_jsx(Typography, { className: classes.sm, children: stringify(elt, true) }, [JSON.stringify(elt), idx].join('-')))), arrow: true, children: _jsx("div", { className: classes.guide, style: {
|
|
24
23
|
left: coordX,
|
|
25
24
|
background: 'red',
|
|
26
|
-
} })));
|
|
25
|
+
} }) }));
|
|
27
26
|
});
|
|
28
27
|
export default VerticalGuide;
|
|
@@ -11,7 +11,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
11
11
|
type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
|
|
12
12
|
trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
13
13
|
showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
14
|
-
|
|
14
|
+
linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
15
|
+
interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
15
16
|
levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
16
17
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
17
18
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -45,7 +46,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
45
46
|
showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
46
47
|
trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
47
48
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
48
|
-
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
|
|
49
|
+
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
49
50
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
50
51
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
51
52
|
}, {
|
|
@@ -66,8 +67,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
66
67
|
trackRefs: Record<string, HTMLDivElement>;
|
|
67
68
|
coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
|
|
68
69
|
coarseTotalBp: number;
|
|
69
|
-
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
70
|
-
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
70
|
+
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
71
|
+
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
71
72
|
} & {
|
|
72
73
|
readonly trackLabelsSetting: any;
|
|
73
74
|
readonly width: number;
|
|
@@ -114,12 +115,12 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
114
115
|
setHideHeaderOverview(b: boolean): void;
|
|
115
116
|
setHideNoTracksActive(b: boolean): void;
|
|
116
117
|
setShowGridlines(b: boolean): void;
|
|
117
|
-
addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
|
|
118
|
-
setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
|
|
119
|
-
removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
|
|
118
|
+
addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
|
|
119
|
+
setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
|
|
120
|
+
removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
|
|
120
121
|
scrollTo(offsetPx: number): number;
|
|
121
122
|
zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
|
|
122
|
-
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
123
|
+
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
123
124
|
setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
|
|
124
125
|
setNewView(bpPerPx: number, offsetPx: number): void;
|
|
125
126
|
horizontallyFlip(): void;
|
|
@@ -136,7 +137,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
136
137
|
setShowCenterLine(b: boolean): void;
|
|
137
138
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
138
139
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
139
|
-
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
|
|
140
|
+
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
|
|
140
141
|
start: number;
|
|
141
142
|
end: number;
|
|
142
143
|
type: string;
|
|
@@ -158,7 +159,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
158
159
|
setDraggingTrackId(idx?: string): void;
|
|
159
160
|
setScaleFactor(factor: number): void;
|
|
160
161
|
clearView(): void;
|
|
161
|
-
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
|
|
162
|
+
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
|
|
162
163
|
} & {
|
|
163
164
|
slide: (viewWidths: number) => void;
|
|
164
165
|
} & {
|
|
@@ -180,15 +181,15 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
180
181
|
setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
|
|
181
182
|
afterAttach(): void;
|
|
182
183
|
} & {
|
|
183
|
-
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
184
|
+
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
184
185
|
navToLocString(input: string, optAssemblyName?: string): Promise<void>;
|
|
185
186
|
navToSearchString({ input, assembly, }: {
|
|
186
187
|
input: string;
|
|
187
188
|
assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
|
|
188
189
|
}): Promise<void>;
|
|
189
190
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
|
|
190
|
-
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
191
|
-
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
191
|
+
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
|
|
192
|
+
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
|
|
192
193
|
} & {
|
|
193
194
|
rubberBandMenuItems(): MenuItem[];
|
|
194
195
|
bpToPx({ refName, coord, regionNumber, }: {
|
|
@@ -243,7 +244,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
243
244
|
showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
244
245
|
trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
245
246
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
246
|
-
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
|
|
247
|
+
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
247
248
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
248
249
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
249
250
|
}>>, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -263,12 +264,14 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
263
264
|
readonly refNames: string[][];
|
|
264
265
|
readonly assemblyNames: string[];
|
|
265
266
|
} & {
|
|
267
|
+
afterAttach(): void;
|
|
266
268
|
beforeDestroy(): void;
|
|
267
269
|
onSubviewAction(actionName: string, path: string, args?: unknown[]): void;
|
|
268
270
|
setWidth(newWidth: number): void;
|
|
269
271
|
setViews(views: SnapshotIn<LinearGenomeViewModel>[]): void;
|
|
270
272
|
removeView(view: LinearGenomeViewModel): void;
|
|
271
273
|
setLevelHeight(newHeight: number, level?: number): number;
|
|
274
|
+
setLinkViews(arg: boolean): void;
|
|
272
275
|
activateTrackSelector(level: number): import("@jbrowse/core/util").Widget;
|
|
273
276
|
toggleTrack(trackId: string, level?: number): void;
|
|
274
277
|
showTrack(trackId: string, level?: number, initialSnapshot?: {}): void;
|
|
@@ -294,7 +297,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
294
297
|
type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
|
|
295
298
|
trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
296
299
|
showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
297
|
-
|
|
300
|
+
linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
301
|
+
interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
298
302
|
levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
299
303
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
300
304
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -328,7 +332,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
328
332
|
showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
329
333
|
trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
330
334
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
331
|
-
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
|
|
335
|
+
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
332
336
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
333
337
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
334
338
|
}, {
|
|
@@ -349,8 +353,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
349
353
|
trackRefs: Record<string, HTMLDivElement>;
|
|
350
354
|
coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
|
|
351
355
|
coarseTotalBp: number;
|
|
352
|
-
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
353
|
-
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
356
|
+
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
357
|
+
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
354
358
|
} & {
|
|
355
359
|
readonly trackLabelsSetting: any;
|
|
356
360
|
readonly width: number;
|
|
@@ -397,12 +401,12 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
397
401
|
setHideHeaderOverview(b: boolean): void;
|
|
398
402
|
setHideNoTracksActive(b: boolean): void;
|
|
399
403
|
setShowGridlines(b: boolean): void;
|
|
400
|
-
addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
|
|
401
|
-
setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
|
|
402
|
-
removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
|
|
404
|
+
addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
|
|
405
|
+
setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
|
|
406
|
+
removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
|
|
403
407
|
scrollTo(offsetPx: number): number;
|
|
404
408
|
zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
|
|
405
|
-
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
409
|
+
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
406
410
|
setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
|
|
407
411
|
setNewView(bpPerPx: number, offsetPx: number): void;
|
|
408
412
|
horizontallyFlip(): void;
|
|
@@ -419,7 +423,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
419
423
|
setShowCenterLine(b: boolean): void;
|
|
420
424
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
421
425
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
422
|
-
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
|
|
426
|
+
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
|
|
423
427
|
start: number;
|
|
424
428
|
end: number;
|
|
425
429
|
type: string;
|
|
@@ -441,7 +445,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
441
445
|
setDraggingTrackId(idx?: string): void;
|
|
442
446
|
setScaleFactor(factor: number): void;
|
|
443
447
|
clearView(): void;
|
|
444
|
-
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
|
|
448
|
+
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
|
|
445
449
|
} & {
|
|
446
450
|
slide: (viewWidths: number) => void;
|
|
447
451
|
} & {
|
|
@@ -463,15 +467,15 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
463
467
|
setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
|
|
464
468
|
afterAttach(): void;
|
|
465
469
|
} & {
|
|
466
|
-
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
470
|
+
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
467
471
|
navToLocString(input: string, optAssemblyName?: string): Promise<void>;
|
|
468
472
|
navToSearchString({ input, assembly, }: {
|
|
469
473
|
input: string;
|
|
470
474
|
assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
|
|
471
475
|
}): Promise<void>;
|
|
472
476
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
|
|
473
|
-
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
474
|
-
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
477
|
+
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
|
|
478
|
+
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
|
|
475
479
|
} & {
|
|
476
480
|
rubberBandMenuItems(): MenuItem[];
|
|
477
481
|
bpToPx({ refName, coord, regionNumber, }: {
|
|
@@ -526,7 +530,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
526
530
|
showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
527
531
|
trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
528
532
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
529
|
-
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
|
|
533
|
+
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
530
534
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
531
535
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
532
536
|
}>>, import("mobx-state-tree")._NotCustomized>>;
|