@jbrowse/plugin-dotplot-view 2.17.0 → 3.0.0
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/ComparativeRenderer/index.d.ts +3 -8
- package/dist/ComparativeRenderer/index.js +3 -8
- package/dist/DotplotDisplay/components/DotplotDisplay.d.ts +2 -3
- package/dist/DotplotDisplay/components/DotplotDisplay.js +7 -12
- package/dist/DotplotDisplay/index.d.ts +1 -7
- package/dist/DotplotDisplay/index.js +2 -12
- package/dist/DotplotDisplay/renderDotplotBlock.d.ts +1 -1
- package/dist/DotplotDisplay/renderDotplotBlock.js +3 -9
- package/dist/DotplotDisplay/stateModelFactory.d.ts +8 -45
- package/dist/DotplotDisplay/stateModelFactory.js +57 -100
- package/dist/DotplotReadVsRef/DotplotReadVsRef.d.ts +2 -2
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js +13 -14
- package/dist/DotplotReadVsRef/index.d.ts +1 -1
- package/dist/DotplotReadVsRef/index.js +0 -2
- package/dist/DotplotRenderer/ComparativeRenderRpc.d.ts +3 -8
- package/dist/DotplotRenderer/ComparativeRenderRpc.js +3 -8
- package/dist/DotplotRenderer/DotplotRenderer.d.ts +8 -7
- package/dist/DotplotRenderer/DotplotRenderer.js +18 -9
- package/dist/DotplotRenderer/components/DotplotRendering.d.ts +2 -3
- package/dist/DotplotRenderer/components/DotplotRendering.js +2 -5
- package/dist/DotplotRenderer/configSchema.d.ts +0 -21
- package/dist/DotplotRenderer/configSchema.js +2 -27
- package/dist/DotplotRenderer/drawDotplot.d.ts +3 -3
- package/dist/DotplotRenderer/drawDotplot.js +3 -6
- package/dist/DotplotRenderer/index.d.ts +1 -1
- package/dist/DotplotRenderer/index.js +1 -1
- package/dist/DotplotView/1dview.d.ts +2 -77
- package/dist/DotplotView/1dview.js +4 -33
- package/dist/DotplotView/components/Axes.d.ts +5 -6
- package/dist/DotplotView/components/Axes.js +26 -40
- package/dist/DotplotView/components/CursorIcon.d.ts +3 -4
- package/dist/DotplotView/components/CursorIcon.js +3 -5
- package/dist/DotplotView/components/DotplotControls.d.ts +2 -3
- package/dist/DotplotView/components/DotplotControls.js +94 -97
- package/dist/DotplotView/components/DotplotTooltipClick.d.ts +2 -3
- package/dist/DotplotView/components/DotplotTooltipClick.js +3 -7
- package/dist/DotplotView/components/DotplotTooltipMouseover.d.ts +2 -3
- package/dist/DotplotView/components/DotplotTooltipMouseover.js +4 -8
- package/dist/DotplotView/components/DotplotView.d.ts +2 -3
- package/dist/DotplotView/components/DotplotView.js +80 -92
- package/dist/DotplotView/components/DotplotWarnings.d.ts +2 -3
- package/dist/DotplotView/components/DotplotWarnings.js +26 -21
- package/dist/DotplotView/components/ExportSvgDialog.d.ts +2 -3
- package/dist/DotplotView/components/ExportSvgDialog.js +32 -67
- package/dist/DotplotView/components/Grid.d.ts +3 -4
- package/dist/DotplotView/components/Grid.js +19 -32
- package/dist/DotplotView/components/Header.d.ts +2 -3
- package/dist/DotplotView/components/Header.js +4 -23
- package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +7 -0
- package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +129 -0
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +4 -6
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +17 -48
- package/dist/DotplotView/components/ImportForm/TrackSelector.d.ts +7 -0
- package/dist/DotplotView/components/ImportForm/TrackSelector.js +23 -0
- package/dist/DotplotView/components/ImportForm/getAdapter.d.ts +117 -0
- package/dist/DotplotView/components/ImportForm/getAdapter.js +68 -0
- package/dist/DotplotView/components/ImportForm/index.d.ts +3 -4
- package/dist/DotplotView/components/ImportForm/index.js +47 -97
- package/dist/DotplotView/components/ImportForm/util.js +1 -3
- package/dist/DotplotView/components/PanButtons.d.ts +2 -3
- package/dist/DotplotView/components/PanButtons.js +17 -36
- package/dist/DotplotView/components/WarningDialog.d.ts +7 -7
- package/dist/DotplotView/components/WarningDialog.js +12 -15
- package/dist/DotplotView/components/util.d.ts +2 -7
- package/dist/DotplotView/components/util.js +0 -5
- package/dist/DotplotView/index.d.ts +1 -1
- package/dist/DotplotView/index.js +17 -8
- package/dist/DotplotView/model.d.ts +11 -133
- package/dist/DotplotView/model.js +46 -222
- package/dist/DotplotView/svgcomponents/SVGBackground.d.ts +1 -2
- package/dist/DotplotView/svgcomponents/SVGBackground.js +3 -6
- package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +6 -24
- package/dist/DotplotView/types.d.ts +12 -0
- package/dist/DotplotView/types.js +2 -0
- package/dist/LaunchDotplotView.d.ts +1 -1
- package/dist/LaunchDotplotView.js +1 -4
- package/dist/ServerSideRenderedBlockContent.d.ts +2 -2
- package/dist/ServerSideRenderedBlockContent.js +11 -37
- package/dist/ServerSideSyntenyRendering.d.ts +1 -6
- package/dist/ServerSideSyntenyRendering.js +4 -26
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -6
- package/dist/util.d.ts +1 -1
- package/esm/ComparativeRenderer/index.d.ts +3 -8
- package/esm/ComparativeRenderer/index.js +3 -8
- package/esm/DotplotDisplay/components/DotplotDisplay.d.ts +2 -3
- package/esm/DotplotDisplay/components/DotplotDisplay.js +7 -9
- package/esm/DotplotDisplay/index.d.ts +1 -7
- package/esm/DotplotDisplay/index.js +2 -12
- package/esm/DotplotDisplay/renderDotplotBlock.d.ts +1 -1
- package/esm/DotplotDisplay/renderDotplotBlock.js +3 -6
- package/esm/DotplotDisplay/stateModelFactory.d.ts +8 -45
- package/esm/DotplotDisplay/stateModelFactory.js +58 -101
- package/esm/DotplotReadVsRef/DotplotReadVsRef.d.ts +2 -2
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js +15 -16
- package/esm/DotplotReadVsRef/index.d.ts +1 -1
- package/esm/DotplotReadVsRef/index.js +0 -2
- package/esm/DotplotRenderer/ComparativeRenderRpc.d.ts +3 -8
- package/esm/DotplotRenderer/ComparativeRenderRpc.js +3 -8
- package/esm/DotplotRenderer/DotplotRenderer.d.ts +8 -7
- package/esm/DotplotRenderer/DotplotRenderer.js +1 -2
- package/esm/DotplotRenderer/components/DotplotRendering.d.ts +2 -3
- package/esm/DotplotRenderer/components/DotplotRendering.js +2 -2
- package/esm/DotplotRenderer/configSchema.d.ts +0 -21
- package/esm/DotplotRenderer/configSchema.js +2 -27
- package/esm/DotplotRenderer/drawDotplot.d.ts +3 -3
- package/esm/DotplotRenderer/drawDotplot.js +4 -7
- package/esm/DotplotRenderer/index.d.ts +1 -1
- package/esm/DotplotRenderer/index.js +1 -1
- package/esm/DotplotView/1dview.d.ts +2 -77
- package/esm/DotplotView/1dview.js +4 -33
- package/esm/DotplotView/components/Axes.d.ts +5 -6
- package/esm/DotplotView/components/Axes.js +26 -37
- package/esm/DotplotView/components/CursorIcon.d.ts +3 -4
- package/esm/DotplotView/components/CursorIcon.js +3 -5
- package/esm/DotplotView/components/DotplotControls.d.ts +2 -3
- package/esm/DotplotView/components/DotplotControls.js +94 -97
- package/esm/DotplotView/components/DotplotTooltipClick.d.ts +2 -3
- package/esm/DotplotView/components/DotplotTooltipClick.js +3 -7
- package/esm/DotplotView/components/DotplotTooltipMouseover.d.ts +2 -3
- package/esm/DotplotView/components/DotplotTooltipMouseover.js +4 -8
- package/esm/DotplotView/components/DotplotView.d.ts +2 -3
- package/esm/DotplotView/components/DotplotView.js +63 -85
- package/esm/DotplotView/components/DotplotWarnings.d.ts +2 -3
- package/esm/DotplotView/components/DotplotWarnings.js +9 -14
- package/esm/DotplotView/components/ExportSvgDialog.d.ts +2 -3
- package/esm/DotplotView/components/ExportSvgDialog.js +32 -44
- package/esm/DotplotView/components/Grid.d.ts +3 -4
- package/esm/DotplotView/components/Grid.js +19 -29
- package/esm/DotplotView/components/Header.d.ts +2 -3
- package/esm/DotplotView/components/Header.js +4 -23
- package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +7 -0
- package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +124 -0
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +4 -6
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +17 -25
- package/esm/DotplotView/components/ImportForm/TrackSelector.d.ts +7 -0
- package/esm/DotplotView/components/ImportForm/TrackSelector.js +18 -0
- package/esm/DotplotView/components/ImportForm/getAdapter.d.ts +117 -0
- package/esm/DotplotView/components/ImportForm/getAdapter.js +65 -0
- package/esm/DotplotView/components/ImportForm/index.d.ts +3 -4
- package/esm/DotplotView/components/ImportForm/index.js +48 -75
- package/esm/DotplotView/components/ImportForm/util.js +1 -3
- package/esm/DotplotView/components/PanButtons.d.ts +2 -3
- package/esm/DotplotView/components/PanButtons.js +17 -36
- package/esm/DotplotView/components/WarningDialog.d.ts +7 -7
- package/esm/DotplotView/components/WarningDialog.js +12 -12
- package/esm/DotplotView/components/util.d.ts +2 -7
- package/esm/DotplotView/components/util.js +0 -5
- package/esm/DotplotView/index.d.ts +1 -1
- package/esm/DotplotView/index.js +0 -1
- package/esm/DotplotView/model.d.ts +11 -133
- package/esm/DotplotView/model.js +30 -216
- package/esm/DotplotView/svgcomponents/SVGBackground.d.ts +1 -2
- package/esm/DotplotView/svgcomponents/SVGBackground.js +3 -3
- package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +6 -24
- package/esm/DotplotView/types.d.ts +12 -0
- package/esm/DotplotView/types.js +1 -0
- package/esm/LaunchDotplotView.d.ts +1 -1
- package/esm/LaunchDotplotView.js +1 -4
- package/esm/ServerSideRenderedBlockContent.d.ts +2 -2
- package/esm/ServerSideRenderedBlockContent.js +11 -14
- package/esm/ServerSideSyntenyRendering.d.ts +1 -6
- package/esm/ServerSideSyntenyRendering.js +4 -3
- package/esm/index.d.ts +1 -1
- package/esm/index.js +3 -6
- package/esm/util.d.ts +1 -1
- package/package.json +2 -4
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +0 -11
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.js +0 -194
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +0 -11
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.js +0 -169
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { IconButton, Paper } from '@mui/material';
|
|
3
|
-
import { makeStyles } from 'tss-react/mui';
|
|
4
|
-
import { observer } from 'mobx-react';
|
|
5
|
-
// icons
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
2
|
import ArrowDropDown from '@mui/icons-material/ArrowDropDown';
|
|
7
3
|
import ArrowDropUp from '@mui/icons-material/ArrowDropUp';
|
|
8
4
|
import ArrowLeft from '@mui/icons-material/ArrowLeft';
|
|
9
5
|
import ArrowRight from '@mui/icons-material/ArrowRight';
|
|
10
6
|
import ZoomIn from '@mui/icons-material/ZoomIn';
|
|
11
7
|
import ZoomOut from '@mui/icons-material/ZoomOut';
|
|
8
|
+
import { IconButton, Paper } from '@mui/material';
|
|
9
|
+
import { observer } from 'mobx-react';
|
|
10
|
+
import { makeStyles } from 'tss-react/mui';
|
|
12
11
|
const useStyles = makeStyles()({
|
|
13
12
|
dpad: {
|
|
14
13
|
display: 'grid',
|
|
@@ -26,36 +25,18 @@ const useStyles = makeStyles()({
|
|
|
26
25
|
});
|
|
27
26
|
const PanButtons = observer(function PanButtons({ model, }) {
|
|
28
27
|
const { classes } = useStyles();
|
|
29
|
-
return (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
model.hview.scroll(100);
|
|
43
|
-
} },
|
|
44
|
-
React.createElement(ArrowRight, null)),
|
|
45
|
-
React.createElement("div", null),
|
|
46
|
-
React.createElement(IconButton, { className: classes.icon, onClick: () => {
|
|
47
|
-
model.vview.scroll(-100);
|
|
48
|
-
} },
|
|
49
|
-
React.createElement(ArrowDropDown, null)),
|
|
50
|
-
React.createElement("div", null),
|
|
51
|
-
React.createElement(IconButton, { className: classes.icon, onClick: () => {
|
|
52
|
-
model.zoomIn();
|
|
53
|
-
} },
|
|
54
|
-
React.createElement(ZoomIn, null)),
|
|
55
|
-
React.createElement("div", null),
|
|
56
|
-
React.createElement(IconButton, { className: classes.icon, onClick: () => {
|
|
57
|
-
model.zoomOut();
|
|
58
|
-
} },
|
|
59
|
-
React.createElement(ZoomOut, null))));
|
|
28
|
+
return (_jsxs(Paper, { className: classes.dpad, elevation: 6, children: [_jsx("div", {}), _jsx(IconButton, { className: classes.icon, onClick: () => {
|
|
29
|
+
model.vview.scroll(100);
|
|
30
|
+
}, children: _jsx(ArrowDropUp, {}) }), _jsx("div", {}), _jsx(IconButton, { className: classes.icon, onClick: () => {
|
|
31
|
+
model.hview.scroll(-100);
|
|
32
|
+
}, children: _jsx(ArrowLeft, {}) }), _jsx("div", {}), _jsx(IconButton, { className: classes.icon, onClick: () => {
|
|
33
|
+
model.hview.scroll(100);
|
|
34
|
+
}, children: _jsx(ArrowRight, {}) }), _jsx("div", {}), _jsx(IconButton, { className: classes.icon, onClick: () => {
|
|
35
|
+
model.vview.scroll(-100);
|
|
36
|
+
}, children: _jsx(ArrowDropDown, {}) }), _jsx("div", {}), _jsx(IconButton, { className: classes.icon, onClick: () => {
|
|
37
|
+
model.zoomIn();
|
|
38
|
+
}, children: _jsx(ZoomIn, {}) }), _jsx("div", {}), _jsx(IconButton, { className: classes.icon, onClick: () => {
|
|
39
|
+
model.zoomOut();
|
|
40
|
+
}, children: _jsx(ZoomOut, {}) })] }));
|
|
60
41
|
});
|
|
61
42
|
export default PanButtons;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
+
interface Warning {
|
|
3
|
+
message: string;
|
|
4
|
+
effect: string;
|
|
5
|
+
}
|
|
3
6
|
interface TrackWarning {
|
|
4
7
|
configuration: AnyConfigurationModel;
|
|
5
8
|
displays: {
|
|
6
|
-
warnings:
|
|
7
|
-
message: string;
|
|
8
|
-
effect: string;
|
|
9
|
-
}[];
|
|
9
|
+
warnings: Warning[];
|
|
10
10
|
}[];
|
|
11
11
|
}
|
|
12
12
|
declare const WarningDialog: ({ trackWarnings, handleClose, }: {
|
|
13
13
|
handleClose: () => void;
|
|
14
14
|
trackWarnings: TrackWarning[];
|
|
15
|
-
}) =>
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export default WarningDialog;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { getConf } from '@jbrowse/core/configuration';
|
|
3
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
|
+
import { measureGridWidth } from '@jbrowse/core/util';
|
|
5
|
+
import { DialogContent, DialogContentText } from '@mui/material';
|
|
6
|
+
import { DataGrid } from '@mui/x-data-grid';
|
|
4
7
|
import { observer } from 'mobx-react';
|
|
5
8
|
import { makeStyles } from 'tss-react/mui';
|
|
6
|
-
import { DataGrid } from '@mui/x-data-grid';
|
|
7
|
-
import { getConf } from '@jbrowse/core/configuration';
|
|
8
|
-
import { measureGridWidth } from '@jbrowse/core/util';
|
|
9
9
|
const useStyles = makeStyles()({
|
|
10
10
|
content: {
|
|
11
11
|
minWidth: 600,
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
const { classes } = useStyles();
|
|
14
|
+
function getTrackWarnings({ trackWarnings, }) {
|
|
16
15
|
const rows = [];
|
|
17
16
|
for (let i = 0; i < trackWarnings.length; i++) {
|
|
18
17
|
const track = trackWarnings[i];
|
|
@@ -23,15 +22,16 @@ const WarningDialog = observer(function WarningDialog({ trackWarnings, handleClo
|
|
|
23
22
|
rows.push({ name, ...warning, id: `${i}_${j}` });
|
|
24
23
|
}
|
|
25
24
|
}
|
|
25
|
+
return rows;
|
|
26
|
+
}
|
|
27
|
+
const WarningDialog = observer(function WarningDialog({ trackWarnings, handleClose, }) {
|
|
28
|
+
const { classes } = useStyles();
|
|
29
|
+
const rows = getTrackWarnings({ trackWarnings });
|
|
26
30
|
const columns = [
|
|
27
31
|
{ field: 'name' },
|
|
28
32
|
{ field: 'message', width: measureGridWidth(rows.map(r => r.message)) },
|
|
29
33
|
{ field: 'effect', width: measureGridWidth(rows.map(r => r.effect)) },
|
|
30
34
|
];
|
|
31
|
-
return (
|
|
32
|
-
React.createElement(DialogContent, { className: classes.content },
|
|
33
|
-
React.createElement(DialogContentText, null, "Found warnings while rendering the dotplot. This is often due to out-of-bound features that may indicate the wrong assemblies are being used. Check that the query and target are configured correctly, and that the right assemblies are being compared."),
|
|
34
|
-
React.createElement("div", { style: { height: 600, width: '100%', overflow: 'auto' } },
|
|
35
|
-
React.createElement(DataGrid, { rows: rows, columns: columns, disableRowSelectionOnClick: true, rowHeight: 25, disableColumnMenu: true })))));
|
|
35
|
+
return (_jsx(Dialog, { open: true, onClose: handleClose, maxWidth: "xl", title: "Dotplot rendered with warnings", children: _jsxs(DialogContent, { className: classes.content, children: [_jsx(DialogContentText, { children: "Found warnings while rendering the dotplot. This is often due to out-of-bound features that may indicate the wrong assemblies are being used. Check that the query and target are configured correctly, and that the right assemblies are being compared." }), _jsx("div", { style: { height: 600, width: '100%', overflow: 'auto' }, children: _jsx(DataGrid, { rows: rows, columns: columns, disableRowSelectionOnClick: true, rowHeight: 25, disableColumnMenu: true }) })] }) }));
|
|
36
36
|
});
|
|
37
37
|
export default WarningDialog;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Dotplot1DViewModel } from '../model';
|
|
2
|
+
import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
|
|
3
3
|
export declare function locstr(px: number, view: Dotplot1DViewModel, includeAsm?: boolean): string;
|
|
4
4
|
export declare function getBlockLabelKeysToHide(blocks: BaseBlock[], length: number, viewOffsetPx: number): Set<string>;
|
|
5
|
-
/**
|
|
6
|
-
* Given a scale ( bp/px ) and minimum distances (px) between major and minor
|
|
7
|
-
* gridlines, return an object like `{ majorPitch: bp, minorPitch: bp }` giving
|
|
8
|
-
* the gridline pitches to use.
|
|
9
|
-
*/
|
|
10
5
|
export declare function chooseGridPitch(scale: number, minMajorPitchPx: number, minMinorPitchPx: number): {
|
|
11
6
|
majorPitch: number;
|
|
12
7
|
minorPitch: number;
|
|
@@ -25,11 +25,6 @@ export function getBlockLabelKeysToHide(blocks, length, viewOffsetPx) {
|
|
|
25
25
|
}
|
|
26
26
|
return blockLabelKeysToHide;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Given a scale ( bp/px ) and minimum distances (px) between major and minor
|
|
30
|
-
* gridlines, return an object like `{ majorPitch: bp, minorPitch: bp }` giving
|
|
31
|
-
* the gridline pitches to use.
|
|
32
|
-
*/
|
|
33
28
|
export function chooseGridPitch(scale, minMajorPitchPx, minMinorPitchPx) {
|
|
34
29
|
scale = Math.abs(scale);
|
|
35
30
|
const minMajorPitchBp = minMajorPitchPx * scale;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function DotplotViewF(pluginManager: PluginManager): void;
|
package/esm/DotplotView/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
3
|
-
import { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
|
|
4
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type React from 'react';
|
|
5
2
|
import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons';
|
|
3
|
+
import type { ImportFormSyntenyTrack } from './types';
|
|
4
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
5
|
+
import type { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
|
|
6
|
+
import type { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
6
7
|
type Coord = [number, number];
|
|
7
8
|
export interface ExportSvgOptions {
|
|
8
9
|
rasterizeLayers?: boolean;
|
|
@@ -12,12 +13,6 @@ export interface ExportSvgOptions {
|
|
|
12
13
|
}>;
|
|
13
14
|
themeName?: string;
|
|
14
15
|
}
|
|
15
|
-
/**
|
|
16
|
-
* #stateModel DotplotView
|
|
17
|
-
* #category view
|
|
18
|
-
* extends
|
|
19
|
-
* - [BaseViewModel](../baseviewmodel)
|
|
20
|
-
*/
|
|
21
16
|
export default function stateModelFactory(pm: PluginManager): import("mobx-state-tree").IModelType<{
|
|
22
17
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
23
18
|
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -220,58 +215,33 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
220
215
|
wheelMode: string;
|
|
221
216
|
borderX: number;
|
|
222
217
|
borderY: number;
|
|
218
|
+
importFormSyntenyTrackSelections: import("mobx").IObservableArray<ImportFormSyntenyTrack>;
|
|
219
|
+
} & {
|
|
220
|
+
importFormRemoveRow(idx: number): void;
|
|
221
|
+
clearImportFormSyntenyTracks(): void;
|
|
222
|
+
setImportFormSyntenyTrack(arg: number, val: ImportFormSyntenyTrack): void;
|
|
223
223
|
} & {
|
|
224
|
-
/**
|
|
225
|
-
* #getter
|
|
226
|
-
*/
|
|
227
224
|
readonly width: number;
|
|
228
225
|
} & {
|
|
229
|
-
/**
|
|
230
|
-
* #getter
|
|
231
|
-
*/
|
|
232
226
|
readonly assemblyErrors: string;
|
|
233
|
-
/**
|
|
234
|
-
* #getter
|
|
235
|
-
*/
|
|
236
227
|
readonly assembliesInitialized: boolean;
|
|
237
228
|
} & {
|
|
238
|
-
/**
|
|
239
|
-
* #getter
|
|
240
|
-
*/
|
|
241
229
|
readonly initialized: boolean;
|
|
242
|
-
/**
|
|
243
|
-
* #getter
|
|
244
|
-
*/
|
|
245
230
|
readonly hticks: {
|
|
246
231
|
type: string;
|
|
247
232
|
base: number;
|
|
248
233
|
index: number;
|
|
249
234
|
refName: string;
|
|
250
235
|
}[];
|
|
251
|
-
/**
|
|
252
|
-
* #getter
|
|
253
|
-
*/
|
|
254
236
|
readonly vticks: {
|
|
255
237
|
type: string;
|
|
256
238
|
base: number;
|
|
257
239
|
index: number;
|
|
258
240
|
refName: string;
|
|
259
241
|
}[];
|
|
260
|
-
/**
|
|
261
|
-
* #getter
|
|
262
|
-
*/
|
|
263
242
|
readonly loading: boolean;
|
|
264
|
-
/**
|
|
265
|
-
* #getter
|
|
266
|
-
*/
|
|
267
243
|
readonly viewWidth: number;
|
|
268
|
-
/**
|
|
269
|
-
* #getter
|
|
270
|
-
*/
|
|
271
244
|
readonly viewHeight: number;
|
|
272
|
-
/**
|
|
273
|
-
* #getter
|
|
274
|
-
*/
|
|
275
245
|
readonly views: ({
|
|
276
246
|
id: string;
|
|
277
247
|
displayedRegions: import("@jbrowse/core/util").Region[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("@jbrowse/core/util").Region[], import("@jbrowse/core/util").Region[], import("@jbrowse/core/util").Region[]>, [undefined]>>;
|
|
@@ -403,87 +373,26 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
403
373
|
} & {
|
|
404
374
|
readonly width: any;
|
|
405
375
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>)[];
|
|
406
|
-
/**
|
|
407
|
-
* #method
|
|
408
|
-
*/
|
|
409
376
|
renderProps(): any;
|
|
410
377
|
} & {
|
|
411
|
-
/**
|
|
412
|
-
* #action
|
|
413
|
-
*/
|
|
414
378
|
setShowPanButtons(flag: boolean): void;
|
|
415
|
-
/**
|
|
416
|
-
* #action
|
|
417
|
-
*/
|
|
418
379
|
setWheelMode(str: string): void;
|
|
419
|
-
/**
|
|
420
|
-
* #action
|
|
421
|
-
*/
|
|
422
380
|
setCursorMode(str: string): void;
|
|
423
|
-
/**
|
|
424
|
-
* #action
|
|
425
|
-
*/
|
|
426
381
|
setDrawCigar(flag: boolean): void;
|
|
427
|
-
/**
|
|
428
|
-
* #action
|
|
429
|
-
* returns to the import form
|
|
430
|
-
*/
|
|
431
382
|
clearView(): void;
|
|
432
|
-
/**
|
|
433
|
-
* #action
|
|
434
|
-
*/
|
|
435
383
|
setBorderX(n: number): void;
|
|
436
|
-
/**
|
|
437
|
-
* #action
|
|
438
|
-
*/
|
|
439
384
|
setBorderY(n: number): void;
|
|
440
|
-
/**
|
|
441
|
-
* #action
|
|
442
|
-
*/
|
|
443
385
|
setWidth(newWidth: number): number;
|
|
444
|
-
/**
|
|
445
|
-
* #action
|
|
446
|
-
*/
|
|
447
386
|
setHeight(newHeight: number): number;
|
|
448
|
-
/**
|
|
449
|
-
* #action
|
|
450
|
-
*/
|
|
451
387
|
setError(e: unknown): void;
|
|
452
|
-
/**
|
|
453
|
-
* #action
|
|
454
|
-
*/
|
|
455
388
|
zoomOut(): void;
|
|
456
|
-
/**
|
|
457
|
-
* #action
|
|
458
|
-
*/
|
|
459
389
|
zoomIn(): void;
|
|
460
|
-
/**
|
|
461
|
-
* #action
|
|
462
|
-
*/
|
|
463
390
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
464
|
-
/**
|
|
465
|
-
* #action
|
|
466
|
-
*/
|
|
467
391
|
showTrack(trackId: string, initialSnapshot?: {}): void;
|
|
468
|
-
/**
|
|
469
|
-
* #action
|
|
470
|
-
*/
|
|
471
392
|
hideTrack(trackId: string): number;
|
|
472
|
-
/**
|
|
473
|
-
* #action
|
|
474
|
-
*/
|
|
475
393
|
toggleTrack(trackId: string): boolean;
|
|
476
|
-
/**
|
|
477
|
-
* #action
|
|
478
|
-
*/
|
|
479
394
|
setAssemblyNames(target: string, query: string): void;
|
|
480
|
-
/**
|
|
481
|
-
* #action
|
|
482
|
-
*/
|
|
483
395
|
setViews(arr: SnapshotIn<Base1DViewModel>[]): void;
|
|
484
|
-
/**
|
|
485
|
-
* #action
|
|
486
|
-
*/
|
|
487
396
|
getCoords(mousedown: Coord, mouseup: Coord): {
|
|
488
397
|
coord: number;
|
|
489
398
|
index: number;
|
|
@@ -495,60 +404,29 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
495
404
|
end: number;
|
|
496
405
|
reversed?: boolean;
|
|
497
406
|
}[] | undefined;
|
|
498
|
-
/**
|
|
499
|
-
* #action
|
|
500
|
-
* zooms into clicked and dragged region
|
|
501
|
-
*/
|
|
502
407
|
zoomInToMouseCoords(mousedown: Coord, mouseup: Coord): void;
|
|
503
|
-
/**
|
|
504
|
-
* #action
|
|
505
|
-
*/
|
|
506
408
|
showAllRegions(): void;
|
|
507
|
-
/**
|
|
508
|
-
* #action
|
|
509
|
-
* creates a linear synteny view from the clicked and dragged region
|
|
510
|
-
*/
|
|
511
409
|
onDotplotView(mousedown: Coord, mouseup: Coord): void;
|
|
512
410
|
} & {
|
|
513
|
-
/**
|
|
514
|
-
* #action
|
|
515
|
-
* creates an svg export and save using FileSaver
|
|
516
|
-
*/
|
|
517
411
|
exportSvg(opts?: ExportSvgOptions): Promise<void>;
|
|
518
412
|
beforeDestroy(): void;
|
|
519
413
|
afterAttach(): void;
|
|
520
|
-
/**
|
|
521
|
-
* #action
|
|
522
|
-
*/
|
|
523
414
|
squareView(): void;
|
|
524
|
-
/**
|
|
525
|
-
* #action
|
|
526
|
-
*/
|
|
527
415
|
squareViewProportional(): void;
|
|
528
416
|
} & {
|
|
529
|
-
/**
|
|
530
|
-
* #method
|
|
531
|
-
*/
|
|
532
417
|
menuItems(): ({
|
|
533
418
|
label: string;
|
|
534
|
-
onClick: () => void;
|
|
535
419
|
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
536
420
|
muiName: string;
|
|
537
421
|
};
|
|
538
|
-
} | {
|
|
539
|
-
label: string;
|
|
540
422
|
onClick: () => void;
|
|
541
|
-
icon?: undefined;
|
|
542
423
|
} | {
|
|
543
424
|
label: string;
|
|
544
425
|
onClick: () => import("@jbrowse/core/util").Widget;
|
|
545
426
|
icon: typeof TrackSelectorIcon;
|
|
546
427
|
})[];
|
|
547
|
-
/**
|
|
548
|
-
* #getter
|
|
549
|
-
*/
|
|
550
428
|
readonly error: unknown;
|
|
551
429
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
552
430
|
export type DotplotViewStateModel = ReturnType<typeof stateModelFactory>;
|
|
553
431
|
export type DotplotViewModel = Instance<DotplotViewStateModel>;
|
|
554
|
-
export { type Dotplot1DViewModel
|
|
432
|
+
export { Dotplot1DView, type Dotplot1DViewModel } from './1dview';
|