@jbrowse/plugin-dotplot-view 2.17.0 → 2.18.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 +1 -1
- package/dist/DotplotDisplay/components/DotplotDisplay.js +1 -1
- 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 +7 -43
- package/dist/DotplotDisplay/stateModelFactory.js +55 -97
- 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 +5 -4
- package/dist/DotplotRenderer/DotplotRenderer.js +1 -2
- package/dist/DotplotRenderer/components/DotplotRendering.d.ts +1 -1
- 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 +1 -1
- package/dist/DotplotView/components/Axes.js +3 -4
- package/dist/DotplotView/components/CursorIcon.d.ts +1 -1
- package/dist/DotplotView/components/CursorIcon.js +1 -1
- package/dist/DotplotView/components/DotplotControls.d.ts +1 -1
- package/dist/DotplotView/components/DotplotControls.js +5 -6
- package/dist/DotplotView/components/DotplotTooltipClick.d.ts +1 -1
- package/dist/DotplotView/components/DotplotTooltipClick.js +1 -1
- package/dist/DotplotView/components/DotplotTooltipMouseover.d.ts +1 -1
- package/dist/DotplotView/components/DotplotTooltipMouseover.js +1 -1
- package/dist/DotplotView/components/DotplotView.d.ts +1 -1
- package/dist/DotplotView/components/DotplotView.js +5 -12
- package/dist/DotplotView/components/DotplotWarnings.d.ts +1 -1
- package/dist/DotplotView/components/DotplotWarnings.js +0 -1
- package/dist/DotplotView/components/ExportSvgDialog.d.ts +1 -1
- package/dist/DotplotView/components/ExportSvgDialog.js +2 -4
- package/dist/DotplotView/components/Grid.d.ts +1 -1
- package/dist/DotplotView/components/Grid.js +2 -4
- package/dist/DotplotView/components/Header.d.ts +1 -1
- package/dist/DotplotView/components/Header.js +2 -2
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +2 -2
- package/dist/DotplotView/components/ImportForm/ImportCustomTrack.js +1 -1
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +1 -1
- package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +5 -10
- package/dist/DotplotView/components/ImportForm/index.d.ts +1 -1
- package/dist/DotplotView/components/ImportForm/index.js +4 -5
- package/dist/DotplotView/components/ImportForm/util.js +1 -3
- package/dist/DotplotView/components/PanButtons.d.ts +1 -1
- package/dist/DotplotView/components/PanButtons.js +3 -4
- package/dist/DotplotView/components/WarningDialog.d.ts +6 -5
- package/dist/DotplotView/components/WarningDialog.js +10 -6
- 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 +0 -1
- package/dist/DotplotView/model.d.ts +5 -129
- package/dist/DotplotView/model.js +6 -192
- package/dist/DotplotView/svgcomponents/SVGBackground.js +1 -1
- package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +5 -9
- package/dist/LaunchDotplotView.d.ts +1 -1
- package/dist/LaunchDotplotView.js +1 -4
- package/dist/ServerSideRenderedBlockContent.d.ts +2 -1
- package/dist/ServerSideRenderedBlockContent.js +2 -3
- package/dist/ServerSideSyntenyRendering.d.ts +0 -4
- package/dist/ServerSideSyntenyRendering.js +1 -1
- 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 +1 -1
- package/esm/DotplotDisplay/components/DotplotDisplay.js +1 -1
- 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 +7 -43
- package/esm/DotplotDisplay/stateModelFactory.js +56 -98
- 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 +5 -4
- package/esm/DotplotRenderer/DotplotRenderer.js +1 -2
- package/esm/DotplotRenderer/components/DotplotRendering.d.ts +1 -1
- 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 +1 -1
- package/esm/DotplotView/components/Axes.js +3 -4
- package/esm/DotplotView/components/CursorIcon.d.ts +1 -1
- package/esm/DotplotView/components/CursorIcon.js +1 -1
- package/esm/DotplotView/components/DotplotControls.d.ts +1 -1
- package/esm/DotplotView/components/DotplotControls.js +5 -6
- package/esm/DotplotView/components/DotplotTooltipClick.d.ts +1 -1
- package/esm/DotplotView/components/DotplotTooltipClick.js +1 -1
- package/esm/DotplotView/components/DotplotTooltipMouseover.d.ts +1 -1
- package/esm/DotplotView/components/DotplotTooltipMouseover.js +1 -1
- package/esm/DotplotView/components/DotplotView.d.ts +1 -1
- package/esm/DotplotView/components/DotplotView.js +6 -13
- package/esm/DotplotView/components/DotplotWarnings.d.ts +1 -1
- package/esm/DotplotView/components/DotplotWarnings.js +0 -1
- package/esm/DotplotView/components/ExportSvgDialog.d.ts +1 -1
- package/esm/DotplotView/components/ExportSvgDialog.js +2 -4
- package/esm/DotplotView/components/Grid.d.ts +1 -1
- package/esm/DotplotView/components/Grid.js +2 -4
- package/esm/DotplotView/components/Header.d.ts +1 -1
- package/esm/DotplotView/components/Header.js +2 -2
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +2 -2
- package/esm/DotplotView/components/ImportForm/ImportCustomTrack.js +2 -2
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +6 -11
- package/esm/DotplotView/components/ImportForm/index.d.ts +1 -1
- package/esm/DotplotView/components/ImportForm/index.js +6 -7
- package/esm/DotplotView/components/ImportForm/util.js +1 -3
- package/esm/DotplotView/components/PanButtons.d.ts +1 -1
- package/esm/DotplotView/components/PanButtons.js +3 -4
- package/esm/DotplotView/components/WarningDialog.d.ts +6 -5
- package/esm/DotplotView/components/WarningDialog.js +10 -6
- 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 +5 -129
- package/esm/DotplotView/model.js +7 -193
- package/esm/DotplotView/svgcomponents/SVGBackground.js +1 -1
- package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +5 -9
- package/esm/LaunchDotplotView.d.ts +1 -1
- package/esm/LaunchDotplotView.js +1 -4
- package/esm/ServerSideRenderedBlockContent.d.ts +2 -1
- package/esm/ServerSideRenderedBlockContent.js +2 -3
- package/esm/ServerSideSyntenyRendering.d.ts +0 -4
- package/esm/ServerSideSyntenyRendering.js +2 -2
- 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
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.GridRaw = void 0;
|
|
7
7
|
exports.default = Grid;
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
9
|
const util_1 = require("@jbrowse/core/util");
|
|
10
|
+
const material_1 = require("@mui/material");
|
|
11
|
+
const mobx_react_1 = require("mobx-react");
|
|
12
12
|
exports.GridRaw = (0, mobx_react_1.observer)(function ({ model, children, }) {
|
|
13
13
|
const { viewWidth, viewHeight, hview, vview } = model;
|
|
14
14
|
const hblocks = hview.dynamicBlocks.contentBlocks;
|
|
@@ -22,8 +22,6 @@ exports.GridRaw = (0, mobx_react_1.observer)(function ({ model, children, }) {
|
|
|
22
22
|
const vbottom = vblocks[0].offsetPx - vview.offsetPx;
|
|
23
23
|
const theme = (0, material_1.useTheme)();
|
|
24
24
|
const stroke = theme.palette.divider;
|
|
25
|
-
// Uses math.max/min avoid making very large SVG rect offscreen element,
|
|
26
|
-
// which can sometimes fail to draw
|
|
27
25
|
const rx = Math.max(hbottom, 0);
|
|
28
26
|
const ry = Math.max(viewHeight - vtop, 0);
|
|
29
27
|
const w = Math.min(htop - hbottom, viewWidth);
|
|
@@ -4,13 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const util_1 = require("@jbrowse/core/util");
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
8
9
|
const mobx_react_1 = require("mobx-react");
|
|
9
10
|
const mui_1 = require("tss-react/mui");
|
|
10
|
-
const
|
|
11
|
+
const DotplotControls_1 = __importDefault(require("./DotplotControls"));
|
|
11
12
|
const DotplotWarnings_1 = __importDefault(require("./DotplotWarnings"));
|
|
12
13
|
const PanButtons_1 = __importDefault(require("./PanButtons"));
|
|
13
|
-
const DotplotControls_1 = __importDefault(require("./DotplotControls"));
|
|
14
14
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
15
15
|
bp: {
|
|
16
16
|
display: 'flex',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
+
import type { SnapshotIn } from 'mobx-state-tree';
|
|
4
4
|
type Conf = SnapshotIn<AnyConfigurationModel>;
|
|
5
5
|
declare const ImportCustomTrack: ({ assembly1, assembly2, setSessionTrackData, }: {
|
|
6
6
|
sessionTrackData: Conf;
|
|
@@ -24,8 +24,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
|
-
const material_1 = require("@mui/material");
|
|
28
27
|
const ui_1 = require("@jbrowse/core/ui");
|
|
28
|
+
const material_1 = require("@mui/material");
|
|
29
29
|
const mobx_react_1 = require("mobx-react");
|
|
30
30
|
const util_1 = require("./util");
|
|
31
31
|
function getAdapter({ radioOption, assembly1, assembly2, fileLocation, indexFileLocation, bed1Location, bed2Location, }) {
|
|
@@ -24,14 +24,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
|
-
const material_1 = require("@mui/material");
|
|
28
|
-
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
29
|
-
const util_1 = require("@jbrowse/core/util");
|
|
30
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
31
27
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
32
|
-
const
|
|
33
|
-
// icons
|
|
28
|
+
const ui_1 = require("@jbrowse/core/ui");
|
|
34
29
|
const Icons_1 = require("@jbrowse/core/ui/Icons");
|
|
30
|
+
const util_1 = require("@jbrowse/core/util");
|
|
31
|
+
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
32
|
+
const material_1 = require("@mui/material");
|
|
33
|
+
const mobx_react_1 = require("mobx-react");
|
|
35
34
|
function f(track, assembly1, assembly2) {
|
|
36
35
|
const assemblyNames = (0, configuration_1.readConfObject)(track, 'assemblyNames');
|
|
37
36
|
return (assemblyNames.includes(assembly1) &&
|
|
@@ -50,13 +49,9 @@ const Selector = (0, mobx_react_1.observer)(({ model, assembly1, assembly2, setS
|
|
|
50
49
|
const resetTrack = ((_a = filteredTracks[0]) === null || _a === void 0 ? void 0 : _a.trackId) || '';
|
|
51
50
|
const [value, setValue] = (0, react_1.useState)(resetTrack);
|
|
52
51
|
(0, react_1.useEffect)(() => {
|
|
53
|
-
// if assembly1/assembly2 changes, then we will want to use this effect to change
|
|
54
|
-
// the state of the useState because it otherwise gets locked to a stale value
|
|
55
52
|
setValue(resetTrack);
|
|
56
53
|
}, [resetTrack]);
|
|
57
54
|
(0, react_1.useEffect)(() => {
|
|
58
|
-
// sets track data in a useEffect because the initial load is needed as well as
|
|
59
|
-
// onChange's to the select box
|
|
60
55
|
setShowTrackId(value);
|
|
61
56
|
}, [value, setShowTrackId]);
|
|
62
57
|
return (react_1.default.createElement(material_1.Paper, { style: { padding: 12 } },
|
|
@@ -27,12 +27,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const react_1 = __importStar(require("react"));
|
|
30
|
+
const ui_1 = require("@jbrowse/core/ui");
|
|
31
|
+
const util_1 = require("@jbrowse/core/util");
|
|
30
32
|
const material_1 = require("@mui/material");
|
|
31
|
-
const mui_1 = require("tss-react/mui");
|
|
32
|
-
const mobx_react_1 = require("mobx-react");
|
|
33
33
|
const mobx_1 = require("mobx");
|
|
34
|
-
const
|
|
35
|
-
const
|
|
34
|
+
const mobx_react_1 = require("mobx-react");
|
|
35
|
+
const mui_1 = require("tss-react/mui");
|
|
36
36
|
const ImportCustomTrack_1 = __importDefault(require("./ImportCustomTrack"));
|
|
37
37
|
const ImportSyntenyTrackSelector_1 = __importDefault(require("./ImportSyntenyTrackSelector"));
|
|
38
38
|
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
@@ -101,7 +101,6 @@ const DotplotImportForm = (0, mobx_react_1.observer)(({ model }) => {
|
|
|
101
101
|
setError(e);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
// this is a combination of any displayed error message we have
|
|
105
104
|
const displayError = error || model.error;
|
|
106
105
|
return (react_1.default.createElement(material_1.Container, { className: classes.importFormContainer },
|
|
107
106
|
displayError ? react_1.default.createElement(ui_1.ErrorMessage, { error: displayError }) : null,
|
|
@@ -6,11 +6,9 @@ exports.basename = basename;
|
|
|
6
6
|
exports.extName = extName;
|
|
7
7
|
function getName(sessionTrackData) {
|
|
8
8
|
return sessionTrackData
|
|
9
|
-
?
|
|
9
|
+
?
|
|
10
10
|
sessionTrackData.uri ||
|
|
11
|
-
// @ts-expect-error
|
|
12
11
|
sessionTrackData.localPath ||
|
|
13
|
-
// @ts-expect-error
|
|
14
12
|
sessionTrackData.name
|
|
15
13
|
: undefined;
|
|
16
14
|
}
|
|
@@ -4,16 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
8
|
-
const mui_1 = require("tss-react/mui");
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
// icons
|
|
11
7
|
const ArrowDropDown_1 = __importDefault(require("@mui/icons-material/ArrowDropDown"));
|
|
12
8
|
const ArrowDropUp_1 = __importDefault(require("@mui/icons-material/ArrowDropUp"));
|
|
13
9
|
const ArrowLeft_1 = __importDefault(require("@mui/icons-material/ArrowLeft"));
|
|
14
10
|
const ArrowRight_1 = __importDefault(require("@mui/icons-material/ArrowRight"));
|
|
15
11
|
const ZoomIn_1 = __importDefault(require("@mui/icons-material/ZoomIn"));
|
|
16
12
|
const ZoomOut_1 = __importDefault(require("@mui/icons-material/ZoomOut"));
|
|
13
|
+
const material_1 = require("@mui/material");
|
|
14
|
+
const mobx_react_1 = require("mobx-react");
|
|
15
|
+
const mui_1 = require("tss-react/mui");
|
|
17
16
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
18
17
|
dpad: {
|
|
19
18
|
display: 'grid',
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
3
|
+
interface Warning {
|
|
4
|
+
message: string;
|
|
5
|
+
effect: string;
|
|
6
|
+
}
|
|
3
7
|
interface TrackWarning {
|
|
4
8
|
configuration: AnyConfigurationModel;
|
|
5
9
|
displays: {
|
|
6
|
-
warnings:
|
|
7
|
-
message: string;
|
|
8
|
-
effect: string;
|
|
9
|
-
}[];
|
|
10
|
+
warnings: Warning[];
|
|
10
11
|
}[];
|
|
11
12
|
}
|
|
12
13
|
declare const WarningDialog: ({ trackWarnings, handleClose, }: {
|
|
@@ -4,20 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const
|
|
7
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
8
|
const ui_1 = require("@jbrowse/core/ui");
|
|
9
|
+
const util_1 = require("@jbrowse/core/util");
|
|
10
|
+
const material_1 = require("@mui/material");
|
|
11
|
+
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
9
12
|
const mobx_react_1 = require("mobx-react");
|
|
10
13
|
const mui_1 = require("tss-react/mui");
|
|
11
|
-
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
12
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
13
|
-
const util_1 = require("@jbrowse/core/util");
|
|
14
14
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
15
15
|
content: {
|
|
16
16
|
minWidth: 600,
|
|
17
17
|
},
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
const { classes } = useStyles();
|
|
19
|
+
function getTrackWarnings({ trackWarnings, }) {
|
|
21
20
|
const rows = [];
|
|
22
21
|
for (let i = 0; i < trackWarnings.length; i++) {
|
|
23
22
|
const track = trackWarnings[i];
|
|
@@ -28,6 +27,11 @@ const WarningDialog = (0, mobx_react_1.observer)(function WarningDialog({ trackW
|
|
|
28
27
|
rows.push({ name, ...warning, id: `${i}_${j}` });
|
|
29
28
|
}
|
|
30
29
|
}
|
|
30
|
+
return rows;
|
|
31
|
+
}
|
|
32
|
+
const WarningDialog = (0, mobx_react_1.observer)(function WarningDialog({ trackWarnings, handleClose, }) {
|
|
33
|
+
const { classes } = useStyles();
|
|
34
|
+
const rows = getTrackWarnings({ trackWarnings });
|
|
31
35
|
const columns = [
|
|
32
36
|
{ field: 'name' },
|
|
33
37
|
{ field: 'message', width: (0, util_1.measureGridWidth)(rows.map(r => r.message)) },
|
|
@@ -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;
|
|
@@ -31,11 +31,6 @@ function getBlockLabelKeysToHide(blocks, length, viewOffsetPx) {
|
|
|
31
31
|
}
|
|
32
32
|
return blockLabelKeysToHide;
|
|
33
33
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Given a scale ( bp/px ) and minimum distances (px) between major and minor
|
|
36
|
-
* gridlines, return an object like `{ majorPitch: bp, minorPitch: bp }` giving
|
|
37
|
-
* the gridline pitches to use.
|
|
38
|
-
*/
|
|
39
34
|
function chooseGridPitch(scale, minMajorPitchPx, minMinorPitchPx) {
|
|
40
35
|
scale = Math.abs(scale);
|
|
41
36
|
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;
|
|
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.default = DotplotViewF;
|
|
30
30
|
const react_1 = require("react");
|
|
31
31
|
const ViewType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/ViewType"));
|
|
32
|
-
// locals
|
|
33
32
|
const model_1 = __importDefault(require("./model"));
|
|
34
33
|
function DotplotViewF(pluginManager) {
|
|
35
34
|
pluginManager.addViewType(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
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 PluginManager from '@jbrowse/core/PluginManager';
|
|
4
|
+
import type { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
|
|
5
|
+
import type { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
6
6
|
type Coord = [number, number];
|
|
7
7
|
export interface ExportSvgOptions {
|
|
8
8
|
rasterizeLayers?: boolean;
|
|
@@ -12,12 +12,6 @@ export interface ExportSvgOptions {
|
|
|
12
12
|
}>;
|
|
13
13
|
themeName?: string;
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* #stateModel DotplotView
|
|
17
|
-
* #category view
|
|
18
|
-
* extends
|
|
19
|
-
* - [BaseViewModel](../baseviewmodel)
|
|
20
|
-
*/
|
|
21
15
|
export default function stateModelFactory(pm: PluginManager): import("mobx-state-tree").IModelType<{
|
|
22
16
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
23
17
|
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -221,57 +215,27 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
221
215
|
borderX: number;
|
|
222
216
|
borderY: number;
|
|
223
217
|
} & {
|
|
224
|
-
/**
|
|
225
|
-
* #getter
|
|
226
|
-
*/
|
|
227
218
|
readonly width: number;
|
|
228
219
|
} & {
|
|
229
|
-
/**
|
|
230
|
-
* #getter
|
|
231
|
-
*/
|
|
232
220
|
readonly assemblyErrors: string;
|
|
233
|
-
/**
|
|
234
|
-
* #getter
|
|
235
|
-
*/
|
|
236
221
|
readonly assembliesInitialized: boolean;
|
|
237
222
|
} & {
|
|
238
|
-
/**
|
|
239
|
-
* #getter
|
|
240
|
-
*/
|
|
241
223
|
readonly initialized: boolean;
|
|
242
|
-
/**
|
|
243
|
-
* #getter
|
|
244
|
-
*/
|
|
245
224
|
readonly hticks: {
|
|
246
225
|
type: string;
|
|
247
226
|
base: number;
|
|
248
227
|
index: number;
|
|
249
228
|
refName: string;
|
|
250
229
|
}[];
|
|
251
|
-
/**
|
|
252
|
-
* #getter
|
|
253
|
-
*/
|
|
254
230
|
readonly vticks: {
|
|
255
231
|
type: string;
|
|
256
232
|
base: number;
|
|
257
233
|
index: number;
|
|
258
234
|
refName: string;
|
|
259
235
|
}[];
|
|
260
|
-
/**
|
|
261
|
-
* #getter
|
|
262
|
-
*/
|
|
263
236
|
readonly loading: boolean;
|
|
264
|
-
/**
|
|
265
|
-
* #getter
|
|
266
|
-
*/
|
|
267
237
|
readonly viewWidth: number;
|
|
268
|
-
/**
|
|
269
|
-
* #getter
|
|
270
|
-
*/
|
|
271
238
|
readonly viewHeight: number;
|
|
272
|
-
/**
|
|
273
|
-
* #getter
|
|
274
|
-
*/
|
|
275
239
|
readonly views: ({
|
|
276
240
|
id: string;
|
|
277
241
|
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 +367,26 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
403
367
|
} & {
|
|
404
368
|
readonly width: any;
|
|
405
369
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>)[];
|
|
406
|
-
/**
|
|
407
|
-
* #method
|
|
408
|
-
*/
|
|
409
370
|
renderProps(): any;
|
|
410
371
|
} & {
|
|
411
|
-
/**
|
|
412
|
-
* #action
|
|
413
|
-
*/
|
|
414
372
|
setShowPanButtons(flag: boolean): void;
|
|
415
|
-
/**
|
|
416
|
-
* #action
|
|
417
|
-
*/
|
|
418
373
|
setWheelMode(str: string): void;
|
|
419
|
-
/**
|
|
420
|
-
* #action
|
|
421
|
-
*/
|
|
422
374
|
setCursorMode(str: string): void;
|
|
423
|
-
/**
|
|
424
|
-
* #action
|
|
425
|
-
*/
|
|
426
375
|
setDrawCigar(flag: boolean): void;
|
|
427
|
-
/**
|
|
428
|
-
* #action
|
|
429
|
-
* returns to the import form
|
|
430
|
-
*/
|
|
431
376
|
clearView(): void;
|
|
432
|
-
/**
|
|
433
|
-
* #action
|
|
434
|
-
*/
|
|
435
377
|
setBorderX(n: number): void;
|
|
436
|
-
/**
|
|
437
|
-
* #action
|
|
438
|
-
*/
|
|
439
378
|
setBorderY(n: number): void;
|
|
440
|
-
/**
|
|
441
|
-
* #action
|
|
442
|
-
*/
|
|
443
379
|
setWidth(newWidth: number): number;
|
|
444
|
-
/**
|
|
445
|
-
* #action
|
|
446
|
-
*/
|
|
447
380
|
setHeight(newHeight: number): number;
|
|
448
|
-
/**
|
|
449
|
-
* #action
|
|
450
|
-
*/
|
|
451
381
|
setError(e: unknown): void;
|
|
452
|
-
/**
|
|
453
|
-
* #action
|
|
454
|
-
*/
|
|
455
382
|
zoomOut(): void;
|
|
456
|
-
/**
|
|
457
|
-
* #action
|
|
458
|
-
*/
|
|
459
383
|
zoomIn(): void;
|
|
460
|
-
/**
|
|
461
|
-
* #action
|
|
462
|
-
*/
|
|
463
384
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
464
|
-
/**
|
|
465
|
-
* #action
|
|
466
|
-
*/
|
|
467
385
|
showTrack(trackId: string, initialSnapshot?: {}): void;
|
|
468
|
-
/**
|
|
469
|
-
* #action
|
|
470
|
-
*/
|
|
471
386
|
hideTrack(trackId: string): number;
|
|
472
|
-
/**
|
|
473
|
-
* #action
|
|
474
|
-
*/
|
|
475
387
|
toggleTrack(trackId: string): boolean;
|
|
476
|
-
/**
|
|
477
|
-
* #action
|
|
478
|
-
*/
|
|
479
388
|
setAssemblyNames(target: string, query: string): void;
|
|
480
|
-
/**
|
|
481
|
-
* #action
|
|
482
|
-
*/
|
|
483
389
|
setViews(arr: SnapshotIn<Base1DViewModel>[]): void;
|
|
484
|
-
/**
|
|
485
|
-
* #action
|
|
486
|
-
*/
|
|
487
390
|
getCoords(mousedown: Coord, mouseup: Coord): {
|
|
488
391
|
coord: number;
|
|
489
392
|
index: number;
|
|
@@ -495,40 +398,16 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
495
398
|
end: number;
|
|
496
399
|
reversed?: boolean;
|
|
497
400
|
}[] | undefined;
|
|
498
|
-
/**
|
|
499
|
-
* #action
|
|
500
|
-
* zooms into clicked and dragged region
|
|
501
|
-
*/
|
|
502
401
|
zoomInToMouseCoords(mousedown: Coord, mouseup: Coord): void;
|
|
503
|
-
/**
|
|
504
|
-
* #action
|
|
505
|
-
*/
|
|
506
402
|
showAllRegions(): void;
|
|
507
|
-
/**
|
|
508
|
-
* #action
|
|
509
|
-
* creates a linear synteny view from the clicked and dragged region
|
|
510
|
-
*/
|
|
511
403
|
onDotplotView(mousedown: Coord, mouseup: Coord): void;
|
|
512
404
|
} & {
|
|
513
|
-
/**
|
|
514
|
-
* #action
|
|
515
|
-
* creates an svg export and save using FileSaver
|
|
516
|
-
*/
|
|
517
405
|
exportSvg(opts?: ExportSvgOptions): Promise<void>;
|
|
518
406
|
beforeDestroy(): void;
|
|
519
407
|
afterAttach(): void;
|
|
520
|
-
/**
|
|
521
|
-
* #action
|
|
522
|
-
*/
|
|
523
408
|
squareView(): void;
|
|
524
|
-
/**
|
|
525
|
-
* #action
|
|
526
|
-
*/
|
|
527
409
|
squareViewProportional(): void;
|
|
528
410
|
} & {
|
|
529
|
-
/**
|
|
530
|
-
* #method
|
|
531
|
-
*/
|
|
532
411
|
menuItems(): ({
|
|
533
412
|
label: string;
|
|
534
413
|
onClick: () => void;
|
|
@@ -544,11 +423,8 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
544
423
|
onClick: () => import("@jbrowse/core/util").Widget;
|
|
545
424
|
icon: typeof TrackSelectorIcon;
|
|
546
425
|
})[];
|
|
547
|
-
/**
|
|
548
|
-
* #getter
|
|
549
|
-
*/
|
|
550
426
|
readonly error: unknown;
|
|
551
427
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
552
428
|
export type DotplotViewStateModel = ReturnType<typeof stateModelFactory>;
|
|
553
429
|
export type DotplotViewModel = Instance<DotplotViewStateModel>;
|
|
554
|
-
export { type Dotplot1DViewModel
|
|
430
|
+
export { Dotplot1DView, type Dotplot1DViewModel } from './1dview';
|