@jbrowse/plugin-dotplot-view 2.6.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/LICENSE +201 -0
- package/dist/ComparativeRenderer/index.d.ts +27 -0
- package/dist/ComparativeRenderer/index.js +59 -0
- package/dist/ComparativeRenderer/index.js.map +1 -0
- package/dist/DotplotDisplay/components/DotplotDisplay.d.ts +8 -0
- package/dist/DotplotDisplay/components/DotplotDisplay.js +24 -0
- package/dist/DotplotDisplay/components/DotplotDisplay.js.map +1 -0
- package/dist/DotplotDisplay/index.d.ts +12 -0
- package/dist/DotplotDisplay/index.js +48 -0
- package/dist/DotplotDisplay/index.js.map +1 -0
- package/dist/DotplotDisplay/renderDotplotBlock.d.ts +11 -0
- package/dist/DotplotDisplay/renderDotplotBlock.js +57 -0
- package/dist/DotplotDisplay/renderDotplotBlock.js.map +1 -0
- package/dist/DotplotDisplay/stateModelFactory.d.ts +138 -0
- package/dist/DotplotDisplay/stateModelFactory.js +165 -0
- package/dist/DotplotDisplay/stateModelFactory.js.map +1 -0
- package/dist/DotplotReadVsRef/DotplotReadVsRef.d.ts +3 -0
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js +102 -0
- package/dist/DotplotReadVsRef/DotplotReadVsRef.js.map +1 -0
- package/dist/DotplotReadVsRef/index.d.ts +2 -0
- package/dist/DotplotReadVsRef/index.js +42 -0
- package/dist/DotplotReadVsRef/index.js.map +1 -0
- package/dist/DotplotRenderer/ComparativeRenderRpc.d.ts +27 -0
- package/dist/DotplotRenderer/ComparativeRenderRpc.js +59 -0
- package/dist/DotplotRenderer/ComparativeRenderRpc.js.map +1 -0
- package/dist/DotplotRenderer/DotplotRenderer.d.ts +69 -0
- package/dist/DotplotRenderer/DotplotRenderer.js +274 -0
- package/dist/DotplotRenderer/DotplotRenderer.js.map +1 -0
- package/dist/DotplotRenderer/components/DotplotRendering.d.ts +5 -0
- package/dist/DotplotRenderer/components/DotplotRendering.js +13 -0
- package/dist/DotplotRenderer/components/DotplotRendering.js.map +1 -0
- package/dist/DotplotRenderer/configSchema.d.ts +61 -0
- package/dist/DotplotRenderer/configSchema.js +83 -0
- package/dist/DotplotRenderer/configSchema.js.map +1 -0
- package/dist/DotplotRenderer/index.d.ts +3 -0
- package/dist/DotplotRenderer/index.js +17 -0
- package/dist/DotplotRenderer/index.js.map +1 -0
- package/dist/DotplotView/1dview.d.ts +307 -0
- package/dist/DotplotView/1dview.js +95 -0
- package/dist/DotplotView/1dview.js.map +1 -0
- package/dist/DotplotView/blockTypes.d.ts +61 -0
- package/dist/DotplotView/blockTypes.js +117 -0
- package/dist/DotplotView/blockTypes.js.map +1 -0
- package/dist/DotplotView/components/Axes.d.ts +14 -0
- package/dist/DotplotView/components/Axes.js +127 -0
- package/dist/DotplotView/components/Axes.js.map +1 -0
- package/dist/DotplotView/components/CursorIcon.d.ts +4 -0
- package/dist/DotplotView/components/CursorIcon.js +19 -0
- package/dist/DotplotView/components/CursorIcon.js.map +1 -0
- package/dist/DotplotView/components/DotplotTooltip.d.ts +19 -0
- package/dist/DotplotView/components/DotplotTooltip.js +128 -0
- package/dist/DotplotView/components/DotplotTooltip.js.map +1 -0
- package/dist/DotplotView/components/DotplotView.d.ts +6 -0
- package/dist/DotplotView/components/DotplotView.js +272 -0
- package/dist/DotplotView/components/DotplotView.js.map +1 -0
- package/dist/DotplotView/components/DotplotWarnings.d.ts +6 -0
- package/dist/DotplotView/components/DotplotWarnings.js +40 -0
- package/dist/DotplotView/components/DotplotWarnings.js.map +1 -0
- package/dist/DotplotView/components/ExportSvgDialog.d.ts +8 -0
- package/dist/DotplotView/components/ExportSvgDialog.js +76 -0
- package/dist/DotplotView/components/ExportSvgDialog.js.map +1 -0
- package/dist/DotplotView/components/Grid.d.ts +10 -0
- package/dist/DotplotView/components/Grid.js +60 -0
- package/dist/DotplotView/components/Grid.js.map +1 -0
- package/dist/DotplotView/components/Header.d.ts +10 -0
- package/dist/DotplotView/components/Header.js +168 -0
- package/dist/DotplotView/components/Header.js.map +1 -0
- package/dist/DotplotView/components/ImportCustomTrack.d.ts +11 -0
- package/dist/DotplotView/components/ImportCustomTrack.js +180 -0
- package/dist/DotplotView/components/ImportCustomTrack.js.map +1 -0
- package/dist/DotplotView/components/ImportForm.d.ts +6 -0
- package/dist/DotplotView/components/ImportForm.js +121 -0
- package/dist/DotplotView/components/ImportForm.js.map +1 -0
- package/dist/DotplotView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/dist/DotplotView/components/ImportSyntenyTrackSelector.js +69 -0
- package/dist/DotplotView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/dist/DotplotView/components/PanButtons.d.ts +6 -0
- package/dist/DotplotView/components/PanButtons.js +60 -0
- package/dist/DotplotView/components/PanButtons.js.map +1 -0
- package/dist/DotplotView/components/WarningDialog.d.ts +16 -0
- package/dist/DotplotView/components/WarningDialog.js +41 -0
- package/dist/DotplotView/components/WarningDialog.js.map +1 -0
- package/dist/DotplotView/components/util.d.ts +19 -0
- package/dist/DotplotView/components/util.js +90 -0
- package/dist/DotplotView/components/util.js.map +1 -0
- package/dist/DotplotView/index.d.ts +2 -0
- package/dist/DotplotView/index.js +44 -0
- package/dist/DotplotView/index.js.map +1 -0
- package/dist/DotplotView/model.d.ts +616 -0
- package/dist/DotplotView/model.js +647 -0
- package/dist/DotplotView/model.js.map +1 -0
- package/dist/DotplotView/svgcomponents/SVGBackground.d.ts +5 -0
- package/dist/DotplotView/svgcomponents/SVGBackground.js +13 -0
- package/dist/DotplotView/svgcomponents/SVGBackground.js.map +1 -0
- package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +2 -0
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +47 -0
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js.map +1 -0
- package/dist/LaunchDotplotView.d.ts +2 -0
- package/dist/LaunchDotplotView.js +45 -0
- package/dist/LaunchDotplotView.js.map +1 -0
- package/dist/ServerSideRenderedBlockContent.d.ts +12 -0
- package/dist/ServerSideRenderedBlockContent.js +87 -0
- package/dist/ServerSideRenderedBlockContent.js.map +1 -0
- package/dist/ServerSideSyntenyRendering.d.ts +23 -0
- package/dist/ServerSideSyntenyRendering.js +54 -0
- package/dist/ServerSideSyntenyRendering.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/dist/util.d.ts +9 -0
- package/dist/util.js +9 -0
- package/dist/util.js.map +1 -0
- package/esm/ComparativeRenderer/index.d.ts +27 -0
- package/esm/ComparativeRenderer/index.js +53 -0
- package/esm/ComparativeRenderer/index.js.map +1 -0
- package/esm/DotplotDisplay/components/DotplotDisplay.d.ts +8 -0
- package/esm/DotplotDisplay/components/DotplotDisplay.js +19 -0
- package/esm/DotplotDisplay/components/DotplotDisplay.js.map +1 -0
- package/esm/DotplotDisplay/index.d.ts +12 -0
- package/esm/DotplotDisplay/index.js +41 -0
- package/esm/DotplotDisplay/index.js.map +1 -0
- package/esm/DotplotDisplay/renderDotplotBlock.d.ts +11 -0
- package/esm/DotplotDisplay/renderDotplotBlock.js +49 -0
- package/esm/DotplotDisplay/renderDotplotBlock.js.map +1 -0
- package/esm/DotplotDisplay/stateModelFactory.d.ts +138 -0
- package/esm/DotplotDisplay/stateModelFactory.js +158 -0
- package/esm/DotplotDisplay/stateModelFactory.js.map +1 -0
- package/esm/DotplotReadVsRef/DotplotReadVsRef.d.ts +3 -0
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js +98 -0
- package/esm/DotplotReadVsRef/DotplotReadVsRef.js.map +1 -0
- package/esm/DotplotReadVsRef/index.d.ts +2 -0
- package/esm/DotplotReadVsRef/index.js +36 -0
- package/esm/DotplotReadVsRef/index.js.map +1 -0
- package/esm/DotplotRenderer/ComparativeRenderRpc.d.ts +27 -0
- package/esm/DotplotRenderer/ComparativeRenderRpc.js +53 -0
- package/esm/DotplotRenderer/ComparativeRenderRpc.js.map +1 -0
- package/esm/DotplotRenderer/DotplotRenderer.d.ts +69 -0
- package/esm/DotplotRenderer/DotplotRenderer.js +268 -0
- package/esm/DotplotRenderer/DotplotRenderer.js.map +1 -0
- package/esm/DotplotRenderer/components/DotplotRendering.d.ts +5 -0
- package/esm/DotplotRenderer/components/DotplotRendering.js +8 -0
- package/esm/DotplotRenderer/components/DotplotRendering.js.map +1 -0
- package/esm/DotplotRenderer/configSchema.d.ts +61 -0
- package/esm/DotplotRenderer/configSchema.js +81 -0
- package/esm/DotplotRenderer/configSchema.js.map +1 -0
- package/esm/DotplotRenderer/index.d.ts +3 -0
- package/esm/DotplotRenderer/index.js +12 -0
- package/esm/DotplotRenderer/index.js.map +1 -0
- package/esm/DotplotView/1dview.d.ts +307 -0
- package/esm/DotplotView/1dview.js +87 -0
- package/esm/DotplotView/1dview.js.map +1 -0
- package/esm/DotplotView/blockTypes.d.ts +61 -0
- package/esm/DotplotView/blockTypes.js +109 -0
- package/esm/DotplotView/blockTypes.js.map +1 -0
- package/esm/DotplotView/components/Axes.d.ts +14 -0
- package/esm/DotplotView/components/Axes.js +121 -0
- package/esm/DotplotView/components/Axes.js.map +1 -0
- package/esm/DotplotView/components/CursorIcon.d.ts +4 -0
- package/esm/DotplotView/components/CursorIcon.js +11 -0
- package/esm/DotplotView/components/CursorIcon.js.map +1 -0
- package/esm/DotplotView/components/DotplotTooltip.d.ts +19 -0
- package/esm/DotplotView/components/DotplotTooltip.js +101 -0
- package/esm/DotplotView/components/DotplotTooltip.js.map +1 -0
- package/esm/DotplotView/components/DotplotView.d.ts +6 -0
- package/esm/DotplotView/components/DotplotView.js +244 -0
- package/esm/DotplotView/components/DotplotView.js.map +1 -0
- package/esm/DotplotView/components/DotplotWarnings.d.ts +6 -0
- package/esm/DotplotView/components/DotplotWarnings.js +15 -0
- package/esm/DotplotView/components/DotplotWarnings.js.map +1 -0
- package/esm/DotplotView/components/ExportSvgDialog.d.ts +8 -0
- package/esm/DotplotView/components/ExportSvgDialog.js +50 -0
- package/esm/DotplotView/components/ExportSvgDialog.js.map +1 -0
- package/esm/DotplotView/components/Grid.d.ts +10 -0
- package/esm/DotplotView/components/Grid.js +53 -0
- package/esm/DotplotView/components/Grid.js.map +1 -0
- package/esm/DotplotView/components/Header.d.ts +10 -0
- package/esm/DotplotView/components/Header.js +140 -0
- package/esm/DotplotView/components/Header.js.map +1 -0
- package/esm/DotplotView/components/ImportCustomTrack.d.ts +11 -0
- package/esm/DotplotView/components/ImportCustomTrack.js +152 -0
- package/esm/DotplotView/components/ImportCustomTrack.js.map +1 -0
- package/esm/DotplotView/components/ImportForm.d.ts +6 -0
- package/esm/DotplotView/components/ImportForm.js +93 -0
- package/esm/DotplotView/components/ImportForm.js.map +1 -0
- package/esm/DotplotView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/esm/DotplotView/components/ImportSyntenyTrackSelector.js +44 -0
- package/esm/DotplotView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/esm/DotplotView/components/PanButtons.d.ts +6 -0
- package/esm/DotplotView/components/PanButtons.js +55 -0
- package/esm/DotplotView/components/PanButtons.js.map +1 -0
- package/esm/DotplotView/components/WarningDialog.d.ts +16 -0
- package/esm/DotplotView/components/WarningDialog.js +36 -0
- package/esm/DotplotView/components/WarningDialog.js.map +1 -0
- package/esm/DotplotView/components/util.d.ts +19 -0
- package/esm/DotplotView/components/util.js +83 -0
- package/esm/DotplotView/components/util.js.map +1 -0
- package/esm/DotplotView/index.d.ts +2 -0
- package/esm/DotplotView/index.js +15 -0
- package/esm/DotplotView/index.js.map +1 -0
- package/esm/DotplotView/model.d.ts +616 -0
- package/esm/DotplotView/model.js +616 -0
- package/esm/DotplotView/model.js.map +1 -0
- package/esm/DotplotView/svgcomponents/SVGBackground.d.ts +5 -0
- package/esm/DotplotView/svgcomponents/SVGBackground.js +7 -0
- package/esm/DotplotView/svgcomponents/SVGBackground.js.map +1 -0
- package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +2 -0
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +40 -0
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js.map +1 -0
- package/esm/LaunchDotplotView.d.ts +2 -0
- package/esm/LaunchDotplotView.js +42 -0
- package/esm/LaunchDotplotView.js.map +1 -0
- package/esm/ServerSideRenderedBlockContent.d.ts +12 -0
- package/esm/ServerSideRenderedBlockContent.js +62 -0
- package/esm/ServerSideRenderedBlockContent.js.map +1 -0
- package/esm/ServerSideSyntenyRendering.d.ts +23 -0
- package/esm/ServerSideSyntenyRendering.js +29 -0
- package/esm/ServerSideSyntenyRendering.js.map +1 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +38 -0
- package/esm/index.js.map +1 -0
- package/esm/util.d.ts +9 -0
- package/esm/util.js +5 -0
- package/esm/util.js.map +1 -0
- package/package.json +69 -0
- package/src/ComparativeRenderer/index.ts +87 -0
- package/src/DotplotDisplay/components/DotplotDisplay.tsx +34 -0
- package/src/DotplotDisplay/index.ts +48 -0
- package/src/DotplotDisplay/renderDotplotBlock.ts +60 -0
- package/src/DotplotDisplay/stateModelFactory.tsx +196 -0
- package/src/DotplotReadVsRef/DotplotReadVsRef.ts +115 -0
- package/src/DotplotReadVsRef/index.ts +50 -0
- package/src/DotplotRenderer/ComparativeRenderRpc.ts +87 -0
- package/src/DotplotRenderer/DotplotRenderer.ts +328 -0
- package/src/DotplotRenderer/__image_snapshots__/linear-synteny-renderer-test-ts-test-rendering-a-simple-synteny-from-fake-data-1-snap.png +0 -0
- package/src/DotplotRenderer/components/DotplotRendering.tsx +12 -0
- package/src/DotplotRenderer/configSchema.ts +92 -0
- package/src/DotplotRenderer/index.ts +16 -0
- package/src/DotplotView/1dview.ts +98 -0
- package/src/DotplotView/blockTypes.ts +140 -0
- package/src/DotplotView/components/Axes.tsx +246 -0
- package/src/DotplotView/components/CursorIcon.tsx +24 -0
- package/src/DotplotView/components/DotplotTooltip.tsx +163 -0
- package/src/DotplotView/components/DotplotView.tsx +348 -0
- package/src/DotplotView/components/DotplotWarnings.tsx +26 -0
- package/src/DotplotView/components/ExportSvgDialog.tsx +129 -0
- package/src/DotplotView/components/Grid.tsx +112 -0
- package/src/DotplotView/components/Header.tsx +182 -0
- package/src/DotplotView/components/ImportCustomTrack.tsx +262 -0
- package/src/DotplotView/components/ImportForm.tsx +209 -0
- package/src/DotplotView/components/ImportSyntenyTrackSelector.tsx +90 -0
- package/src/DotplotView/components/PanButtons.tsx +93 -0
- package/src/DotplotView/components/WarningDialog.tsx +74 -0
- package/src/DotplotView/components/util.ts +118 -0
- package/src/DotplotView/index.ts +16 -0
- package/src/DotplotView/model.test.ts +17 -0
- package/src/DotplotView/model.ts +719 -0
- package/src/DotplotView/svgcomponents/SVGBackground.tsx +21 -0
- package/src/DotplotView/svgcomponents/SVGDotplotView.tsx +68 -0
- package/src/LaunchDotplotView.ts +63 -0
- package/src/ServerSideRenderedBlockContent.tsx +86 -0
- package/src/ServerSideSyntenyRendering.tsx +54 -0
- package/src/index.ts +41 -0
- package/src/util.ts +14 -0
|
@@ -0,0 +1,647 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Dotplot1DView = void 0;
|
|
30
|
+
const react_1 = require("react");
|
|
31
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
32
|
+
const file_saver_1 = require("file-saver");
|
|
33
|
+
const mobx_1 = require("mobx");
|
|
34
|
+
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
35
|
+
const BaseViewModel_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/models/BaseViewModel"));
|
|
36
|
+
const util_1 = require("@jbrowse/core/util");
|
|
37
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
38
|
+
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
39
|
+
// icons
|
|
40
|
+
const Icons_1 = require("@jbrowse/core/ui/Icons");
|
|
41
|
+
const FolderOpen_1 = __importDefault(require("@mui/icons-material/FolderOpen"));
|
|
42
|
+
const PhotoCamera_1 = __importDefault(require("@mui/icons-material/PhotoCamera"));
|
|
43
|
+
// locals
|
|
44
|
+
const _1dview_1 = require("./1dview");
|
|
45
|
+
const util_2 = require("./components/util");
|
|
46
|
+
// lazies
|
|
47
|
+
const ExportSvgDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/ExportSvgDialog'))));
|
|
48
|
+
const ReturnToImportFormDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@jbrowse/core/ui/ReturnToImportFormDialog'))));
|
|
49
|
+
/**
|
|
50
|
+
* #stateModel DotplotView
|
|
51
|
+
* #category view
|
|
52
|
+
* extends `BaseViewModel`
|
|
53
|
+
*/
|
|
54
|
+
function stateModelFactory(pm) {
|
|
55
|
+
return mobx_state_tree_1.types
|
|
56
|
+
.compose(BaseViewModel_1.default, mobx_state_tree_1.types.model('DotplotView', {
|
|
57
|
+
/**
|
|
58
|
+
* #property
|
|
59
|
+
*/
|
|
60
|
+
id: mst_1.ElementId,
|
|
61
|
+
/**
|
|
62
|
+
* #property
|
|
63
|
+
*/
|
|
64
|
+
type: mobx_state_tree_1.types.literal('DotplotView'),
|
|
65
|
+
/**
|
|
66
|
+
* #property
|
|
67
|
+
*/
|
|
68
|
+
height: 600,
|
|
69
|
+
/**
|
|
70
|
+
* #property
|
|
71
|
+
*/
|
|
72
|
+
borderSize: 20,
|
|
73
|
+
/**
|
|
74
|
+
* #property
|
|
75
|
+
*/
|
|
76
|
+
tickSize: 5,
|
|
77
|
+
/**
|
|
78
|
+
* #property
|
|
79
|
+
*/
|
|
80
|
+
vtextRotation: 0,
|
|
81
|
+
/**
|
|
82
|
+
* #property
|
|
83
|
+
*/
|
|
84
|
+
htextRotation: -90,
|
|
85
|
+
/**
|
|
86
|
+
* #property
|
|
87
|
+
*/
|
|
88
|
+
fontSize: 15,
|
|
89
|
+
/**
|
|
90
|
+
* #property
|
|
91
|
+
*/
|
|
92
|
+
trackSelectorType: 'hierarchical',
|
|
93
|
+
/**
|
|
94
|
+
* #property
|
|
95
|
+
*/
|
|
96
|
+
assemblyNames: mobx_state_tree_1.types.array(mobx_state_tree_1.types.string),
|
|
97
|
+
/**
|
|
98
|
+
* #property
|
|
99
|
+
*/
|
|
100
|
+
drawCigar: true,
|
|
101
|
+
/**
|
|
102
|
+
* #property
|
|
103
|
+
*/
|
|
104
|
+
hview: mobx_state_tree_1.types.optional(_1dview_1.DotplotHView, {}),
|
|
105
|
+
/**
|
|
106
|
+
* #property
|
|
107
|
+
*/
|
|
108
|
+
vview: mobx_state_tree_1.types.optional(_1dview_1.DotplotVView, {}),
|
|
109
|
+
/**
|
|
110
|
+
* #property
|
|
111
|
+
*/
|
|
112
|
+
tracks: mobx_state_tree_1.types.array(pm.pluggableMstType('track', 'stateModel')),
|
|
113
|
+
/**
|
|
114
|
+
* #property
|
|
115
|
+
* this represents tracks specific to this view specifically used
|
|
116
|
+
* for read vs ref dotplots where this track would not really apply
|
|
117
|
+
* elsewhere
|
|
118
|
+
*/
|
|
119
|
+
viewTrackConfigs: mobx_state_tree_1.types.array(pm.pluggableConfigSchemaType('track')),
|
|
120
|
+
}))
|
|
121
|
+
.volatile(() => ({
|
|
122
|
+
volatileWidth: undefined,
|
|
123
|
+
volatileError: undefined,
|
|
124
|
+
// these are 'personal preferences', stored in volatile and
|
|
125
|
+
// loaded/written to localStorage
|
|
126
|
+
cursorMode: (0, util_1.localStorageGetItem)('dotplot-cursorMode') || 'crosshair',
|
|
127
|
+
showPanButtons: Boolean(JSON.parse((0, util_1.localStorageGetItem)('dotplot-showPanbuttons') || 'true')),
|
|
128
|
+
wheelMode: (0, util_1.localStorageGetItem)('dotplot-wheelMode') || 'zoom',
|
|
129
|
+
borderX: 100,
|
|
130
|
+
borderY: 100,
|
|
131
|
+
}))
|
|
132
|
+
.views(self => ({
|
|
133
|
+
/**
|
|
134
|
+
* #getter
|
|
135
|
+
*/
|
|
136
|
+
get width() {
|
|
137
|
+
if (!self.volatileWidth) {
|
|
138
|
+
throw new Error('width not initialized');
|
|
139
|
+
}
|
|
140
|
+
return self.volatileWidth;
|
|
141
|
+
},
|
|
142
|
+
}))
|
|
143
|
+
.views(self => ({
|
|
144
|
+
/**
|
|
145
|
+
* #getter
|
|
146
|
+
*/
|
|
147
|
+
get assemblyErrors() {
|
|
148
|
+
const { assemblyManager } = (0, util_1.getSession)(self);
|
|
149
|
+
return self.assemblyNames
|
|
150
|
+
.map(a => { var _a; return (_a = assemblyManager.get(a)) === null || _a === void 0 ? void 0 : _a.error; })
|
|
151
|
+
.filter(f => !!f)
|
|
152
|
+
.join(', ');
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* #getter
|
|
156
|
+
*/
|
|
157
|
+
get assembliesInitialized() {
|
|
158
|
+
const { assemblyManager } = (0, util_1.getSession)(self);
|
|
159
|
+
return self.assemblyNames.every(n => { var _a, _b; return (_b = (_a = assemblyManager.get(n)) === null || _a === void 0 ? void 0 : _a.initialized) !== null && _b !== void 0 ? _b : true; });
|
|
160
|
+
},
|
|
161
|
+
}))
|
|
162
|
+
.views(self => ({
|
|
163
|
+
/**
|
|
164
|
+
* #getter
|
|
165
|
+
*/
|
|
166
|
+
get initialized() {
|
|
167
|
+
return (self.volatileWidth !== undefined &&
|
|
168
|
+
self.hview.displayedRegions.length > 0 &&
|
|
169
|
+
self.vview.displayedRegions.length > 0 &&
|
|
170
|
+
self.assembliesInitialized);
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* #getter
|
|
174
|
+
*/
|
|
175
|
+
get hticks() {
|
|
176
|
+
const { hview } = self;
|
|
177
|
+
const { dynamicBlocks, staticBlocks, bpPerPx } = hview;
|
|
178
|
+
return dynamicBlocks.contentBlocks.length > 5
|
|
179
|
+
? []
|
|
180
|
+
: (0, util_2.makeTicks)(staticBlocks.contentBlocks, bpPerPx);
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* #getter
|
|
184
|
+
*/
|
|
185
|
+
get vticks() {
|
|
186
|
+
const { vview } = self;
|
|
187
|
+
const { dynamicBlocks, staticBlocks, bpPerPx } = vview;
|
|
188
|
+
return dynamicBlocks.contentBlocks.length > 5
|
|
189
|
+
? []
|
|
190
|
+
: (0, util_2.makeTicks)(staticBlocks.contentBlocks, bpPerPx);
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
* #getter
|
|
194
|
+
*/
|
|
195
|
+
get loading() {
|
|
196
|
+
return self.assemblyNames.length > 0 && !this.initialized;
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
* #getter
|
|
200
|
+
*/
|
|
201
|
+
get viewWidth() {
|
|
202
|
+
return self.width - self.borderX;
|
|
203
|
+
},
|
|
204
|
+
/**
|
|
205
|
+
* #getter
|
|
206
|
+
*/
|
|
207
|
+
get viewHeight() {
|
|
208
|
+
return self.height - self.borderY;
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
* #getter
|
|
212
|
+
*/
|
|
213
|
+
get views() {
|
|
214
|
+
return [self.hview, self.vview];
|
|
215
|
+
},
|
|
216
|
+
/**
|
|
217
|
+
* #method
|
|
218
|
+
*/
|
|
219
|
+
renderProps() {
|
|
220
|
+
const session = (0, util_1.getSession)(self);
|
|
221
|
+
return {
|
|
222
|
+
...(0, tracks_1.getParentRenderProps)(self),
|
|
223
|
+
drawCigar: self.drawCigar,
|
|
224
|
+
highResolutionScaling: (0, configuration_1.getConf)(session, 'highResolutionScaling'),
|
|
225
|
+
};
|
|
226
|
+
},
|
|
227
|
+
}))
|
|
228
|
+
.actions(self => ({
|
|
229
|
+
/**
|
|
230
|
+
* #action
|
|
231
|
+
*/
|
|
232
|
+
setShowPanButtons(flag) {
|
|
233
|
+
self.showPanButtons = flag;
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
* #action
|
|
237
|
+
*/
|
|
238
|
+
setWheelMode(str) {
|
|
239
|
+
self.wheelMode = str;
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
242
|
+
* #action
|
|
243
|
+
*/
|
|
244
|
+
setCursorMode(str) {
|
|
245
|
+
self.cursorMode = str;
|
|
246
|
+
},
|
|
247
|
+
/**
|
|
248
|
+
* #action
|
|
249
|
+
*/
|
|
250
|
+
setDrawCigar(flag) {
|
|
251
|
+
self.drawCigar = flag;
|
|
252
|
+
},
|
|
253
|
+
/**
|
|
254
|
+
* #action
|
|
255
|
+
* returns to the import form
|
|
256
|
+
*/
|
|
257
|
+
clearView() {
|
|
258
|
+
self.hview.setDisplayedRegions([]);
|
|
259
|
+
self.vview.setDisplayedRegions([]);
|
|
260
|
+
self.assemblyNames = (0, mobx_state_tree_1.cast)([]);
|
|
261
|
+
self.tracks.clear();
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
* #action
|
|
265
|
+
*/
|
|
266
|
+
setBorderX(n) {
|
|
267
|
+
self.borderX = n;
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
* #action
|
|
271
|
+
*/
|
|
272
|
+
setBorderY(n) {
|
|
273
|
+
self.borderY = n;
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
* #action
|
|
277
|
+
*/
|
|
278
|
+
setWidth(newWidth) {
|
|
279
|
+
self.volatileWidth = newWidth;
|
|
280
|
+
return self.volatileWidth;
|
|
281
|
+
},
|
|
282
|
+
/**
|
|
283
|
+
* #action
|
|
284
|
+
*/
|
|
285
|
+
setHeight(newHeight) {
|
|
286
|
+
self.height = newHeight;
|
|
287
|
+
return self.height;
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
* #action
|
|
291
|
+
*/
|
|
292
|
+
setError(e) {
|
|
293
|
+
self.volatileError = e;
|
|
294
|
+
},
|
|
295
|
+
/**
|
|
296
|
+
* #action
|
|
297
|
+
* removes the view itself from the state tree entirely by calling the
|
|
298
|
+
* parent removeView
|
|
299
|
+
*/
|
|
300
|
+
closeView() {
|
|
301
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
302
|
+
(0, mobx_state_tree_1.getParent)(self, 2).removeView(self);
|
|
303
|
+
},
|
|
304
|
+
/**
|
|
305
|
+
* #action
|
|
306
|
+
*/
|
|
307
|
+
zoomOutButton() {
|
|
308
|
+
self.hview.zoomOut();
|
|
309
|
+
self.vview.zoomOut();
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
* #action
|
|
313
|
+
*/
|
|
314
|
+
zoomInButton() {
|
|
315
|
+
self.hview.zoomIn();
|
|
316
|
+
self.vview.zoomIn();
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
* #action
|
|
320
|
+
*/
|
|
321
|
+
activateTrackSelector() {
|
|
322
|
+
if (self.trackSelectorType === 'hierarchical') {
|
|
323
|
+
const session = (0, util_1.getSession)(self);
|
|
324
|
+
if ((0, util_1.isSessionModelWithWidgets)(session)) {
|
|
325
|
+
const selector = session.addWidget('HierarchicalTrackSelectorWidget', 'hierarchicalTrackSelector', { view: self });
|
|
326
|
+
session.showWidget(selector);
|
|
327
|
+
return selector;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
throw new Error(`invalid track selector type ${self.trackSelectorType}`);
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
* #action
|
|
334
|
+
*/
|
|
335
|
+
showTrack(trackId, initialSnapshot = {}) {
|
|
336
|
+
const schema = pm.pluggableConfigSchemaType('track');
|
|
337
|
+
const conf = (0, mobx_state_tree_1.resolveIdentifier)(schema, (0, mobx_state_tree_1.getRoot)(self), trackId);
|
|
338
|
+
const trackType = pm.getTrackType(conf.type);
|
|
339
|
+
if (!trackType) {
|
|
340
|
+
throw new Error(`unknown track type ${conf.type}`);
|
|
341
|
+
}
|
|
342
|
+
const viewType = pm.getViewType(self.type);
|
|
343
|
+
const displayConf = conf.displays.find((d) => viewType.displayTypes.find(type => type.name === d.type));
|
|
344
|
+
if (!displayConf) {
|
|
345
|
+
throw new Error(`could not find a compatible display for view type ${self.type}`);
|
|
346
|
+
}
|
|
347
|
+
const track = trackType.stateModel.create({
|
|
348
|
+
...initialSnapshot,
|
|
349
|
+
type: conf.type,
|
|
350
|
+
configuration: conf,
|
|
351
|
+
displays: [{ type: displayConf.type, configuration: displayConf }],
|
|
352
|
+
});
|
|
353
|
+
self.tracks.push(track);
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* #action
|
|
357
|
+
*/
|
|
358
|
+
hideTrack(trackId) {
|
|
359
|
+
const schema = pm.pluggableConfigSchemaType('track');
|
|
360
|
+
const conf = (0, mobx_state_tree_1.resolveIdentifier)(schema, (0, mobx_state_tree_1.getRoot)(self), trackId);
|
|
361
|
+
const t = self.tracks.filter(t => t.configuration === conf);
|
|
362
|
+
(0, mobx_1.transaction)(() => t.forEach(t => self.tracks.remove(t)));
|
|
363
|
+
return t.length;
|
|
364
|
+
},
|
|
365
|
+
/**
|
|
366
|
+
* #action
|
|
367
|
+
*/
|
|
368
|
+
toggleTrack(trackId) {
|
|
369
|
+
const hiddenCount = this.hideTrack(trackId);
|
|
370
|
+
if (!hiddenCount) {
|
|
371
|
+
this.showTrack(trackId);
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
/**
|
|
375
|
+
* #action
|
|
376
|
+
*/
|
|
377
|
+
setAssemblyNames(target, query) {
|
|
378
|
+
self.assemblyNames = (0, mobx_state_tree_1.cast)([target, query]);
|
|
379
|
+
},
|
|
380
|
+
/**
|
|
381
|
+
* #action
|
|
382
|
+
*/
|
|
383
|
+
setViews(arr) {
|
|
384
|
+
self.hview = (0, mobx_state_tree_1.cast)(arr[0]);
|
|
385
|
+
self.vview = (0, mobx_state_tree_1.cast)(arr[1]);
|
|
386
|
+
},
|
|
387
|
+
/**
|
|
388
|
+
* #action
|
|
389
|
+
*/
|
|
390
|
+
getCoords(mousedown, mouseup) {
|
|
391
|
+
const [xmin, xmax] = (0, util_1.minmax)(mouseup[0], mousedown[0]);
|
|
392
|
+
const [ymin, ymax] = (0, util_1.minmax)(mouseup[1], mousedown[1]);
|
|
393
|
+
return Math.abs(xmax - xmin) > 3 && Math.abs(ymax - ymin) > 3
|
|
394
|
+
? [
|
|
395
|
+
self.hview.pxToBp(xmin),
|
|
396
|
+
self.hview.pxToBp(xmax),
|
|
397
|
+
self.vview.pxToBp(self.viewHeight - ymin),
|
|
398
|
+
self.vview.pxToBp(self.viewHeight - ymax),
|
|
399
|
+
]
|
|
400
|
+
: undefined;
|
|
401
|
+
},
|
|
402
|
+
/**
|
|
403
|
+
* #action
|
|
404
|
+
* zooms into clicked and dragged region
|
|
405
|
+
*/
|
|
406
|
+
zoomIn(mousedown, mouseup) {
|
|
407
|
+
const result = this.getCoords(mousedown, mouseup);
|
|
408
|
+
if (result) {
|
|
409
|
+
const [x1, x2, y1, y2] = result;
|
|
410
|
+
self.hview.moveTo(x1, x2);
|
|
411
|
+
self.vview.moveTo(y2, y1);
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
/**
|
|
415
|
+
* #action
|
|
416
|
+
*/
|
|
417
|
+
showAllRegions() {
|
|
418
|
+
self.hview.zoomTo(self.hview.maxBpPerPx);
|
|
419
|
+
self.vview.zoomTo(self.vview.maxBpPerPx);
|
|
420
|
+
self.vview.center();
|
|
421
|
+
self.hview.center();
|
|
422
|
+
},
|
|
423
|
+
/**
|
|
424
|
+
* #action
|
|
425
|
+
* creates a linear synteny view from the clicked and dragged region
|
|
426
|
+
*/
|
|
427
|
+
onDotplotView(mousedown, mouseup) {
|
|
428
|
+
const result = this.getCoords(mousedown, mouseup);
|
|
429
|
+
if (result) {
|
|
430
|
+
const [x1, x2, y1, y2] = result;
|
|
431
|
+
const session = (0, util_1.getSession)(self);
|
|
432
|
+
const d1 = _1dview_1.Dotplot1DView.create({
|
|
433
|
+
...(0, mobx_state_tree_1.getSnapshot)(self.hview),
|
|
434
|
+
minimumBlockWidth: 0,
|
|
435
|
+
interRegionPaddingWidth: 0,
|
|
436
|
+
});
|
|
437
|
+
const d2 = _1dview_1.Dotplot1DView.create({
|
|
438
|
+
...(0, mobx_state_tree_1.getSnapshot)(self.vview),
|
|
439
|
+
minimumBlockWidth: 0,
|
|
440
|
+
interRegionPaddingWidth: 0,
|
|
441
|
+
});
|
|
442
|
+
d1.setVolatileWidth(self.hview.width);
|
|
443
|
+
d2.setVolatileWidth(self.vview.width);
|
|
444
|
+
d1.moveTo(x1, x2);
|
|
445
|
+
d2.moveTo(y2, y1);
|
|
446
|
+
d1.zoomTo(d1.bpPerPx / (self.width / self.hview.width), 0);
|
|
447
|
+
d2.zoomTo(d2.bpPerPx / (self.width / self.vview.width), 0);
|
|
448
|
+
// add the specific evidence tracks to the LGVs in the split view
|
|
449
|
+
// note: scales the bpPerPx by scaling proportional of the dotplot
|
|
450
|
+
// width to the eventual lgv width
|
|
451
|
+
const tracks = self.tracks
|
|
452
|
+
.map(track => track.configuration.displays.find((display) => display.type === 'LinearSyntenyDisplay'))
|
|
453
|
+
.filter(f => !!f)
|
|
454
|
+
.map(displayConf => {
|
|
455
|
+
const trackConf = (0, mobx_state_tree_1.getParent)(displayConf, 2);
|
|
456
|
+
return {
|
|
457
|
+
type: trackConf.type,
|
|
458
|
+
configuration: trackConf,
|
|
459
|
+
displays: [
|
|
460
|
+
{ type: displayConf.type, configuration: displayConf },
|
|
461
|
+
],
|
|
462
|
+
};
|
|
463
|
+
});
|
|
464
|
+
const { id: _unused1, ...rest1 } = (0, mobx_state_tree_1.getSnapshot)(d1);
|
|
465
|
+
const { id: _unused2, ...rest2 } = (0, mobx_state_tree_1.getSnapshot)(d2);
|
|
466
|
+
const viewSnapshot = {
|
|
467
|
+
type: 'LinearSyntenyView',
|
|
468
|
+
views: [
|
|
469
|
+
{
|
|
470
|
+
type: 'LinearGenomeView',
|
|
471
|
+
tracks: [],
|
|
472
|
+
hideHeader: true,
|
|
473
|
+
...rest1,
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
type: 'LinearGenomeView',
|
|
477
|
+
tracks: [],
|
|
478
|
+
hideHeader: true,
|
|
479
|
+
...rest2,
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
tracks,
|
|
483
|
+
};
|
|
484
|
+
session.addView('LinearSyntenyView', viewSnapshot);
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
}))
|
|
488
|
+
.actions(self => ({
|
|
489
|
+
/**
|
|
490
|
+
* #action
|
|
491
|
+
* creates an svg export and save using FileSaver
|
|
492
|
+
*/
|
|
493
|
+
async exportSvg(opts = {}) {
|
|
494
|
+
const { renderToSvg } = await Promise.resolve().then(() => __importStar(require('./svgcomponents/SVGDotplotView')));
|
|
495
|
+
const html = await renderToSvg(self, opts);
|
|
496
|
+
const blob = new Blob([html], { type: 'image/svg+xml' });
|
|
497
|
+
(0, file_saver_1.saveAs)(blob, opts.filename || 'image.svg');
|
|
498
|
+
},
|
|
499
|
+
// if any of our assemblies are temporary assemblies
|
|
500
|
+
beforeDestroy() {
|
|
501
|
+
const session = (0, util_1.getSession)(self);
|
|
502
|
+
self.assemblyNames.forEach(asm => session.removeTemporaryAssembly(asm));
|
|
503
|
+
},
|
|
504
|
+
afterAttach() {
|
|
505
|
+
(0, mobx_state_tree_1.addDisposer)(self, (0, mobx_1.autorun)(() => {
|
|
506
|
+
const s = (s) => JSON.stringify(s);
|
|
507
|
+
const { showPanButtons, wheelMode, cursorMode } = self;
|
|
508
|
+
if (typeof localStorage !== 'undefined') {
|
|
509
|
+
localStorage.setItem('dotplot-showPanbuttons', s(showPanButtons));
|
|
510
|
+
localStorage.setItem('dotplot-cursorMode', cursorMode);
|
|
511
|
+
localStorage.setItem('dotplot-wheelMode', wheelMode);
|
|
512
|
+
}
|
|
513
|
+
}));
|
|
514
|
+
(0, mobx_state_tree_1.addDisposer)(self, (0, mobx_1.autorun)(() => {
|
|
515
|
+
const session = (0, util_1.getSession)(self);
|
|
516
|
+
// don't operate if width not set yet
|
|
517
|
+
if (self.volatileWidth === undefined ||
|
|
518
|
+
!self.assembliesInitialized) {
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
// also don't operate if displayedRegions already set, this is a
|
|
522
|
+
// helper autorun to load regions from assembly
|
|
523
|
+
if (self.hview.displayedRegions.length > 0 &&
|
|
524
|
+
self.vview.displayedRegions.length > 0) {
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
const views = [self.hview, self.vview];
|
|
528
|
+
(0, mobx_1.transaction)(() => {
|
|
529
|
+
self.assemblyNames.forEach((name, index) => {
|
|
530
|
+
const assembly = session.assemblyManager.get(name);
|
|
531
|
+
const view = views[index];
|
|
532
|
+
view.setDisplayedRegions((assembly === null || assembly === void 0 ? void 0 : assembly.regions) || []);
|
|
533
|
+
});
|
|
534
|
+
self.showAllRegions();
|
|
535
|
+
});
|
|
536
|
+
}, { delay: 1000 }));
|
|
537
|
+
(0, mobx_state_tree_1.addDisposer)(self, (0, mobx_1.autorun)(function borderSetter() {
|
|
538
|
+
// make sure we have a width on the view before trying to load
|
|
539
|
+
if (self.volatileWidth === undefined) {
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
const { vview, hview, viewHeight, viewWidth } = self;
|
|
543
|
+
const padding = 40;
|
|
544
|
+
const vblocks = vview.dynamicBlocks.contentBlocks;
|
|
545
|
+
const hblocks = hview.dynamicBlocks.contentBlocks;
|
|
546
|
+
const hoffset = hview.offsetPx;
|
|
547
|
+
const voffset = vview.offsetPx;
|
|
548
|
+
const vhide = (0, util_2.getBlockLabelKeysToHide)(vblocks, viewHeight, voffset);
|
|
549
|
+
const hhide = (0, util_2.getBlockLabelKeysToHide)(hblocks, viewWidth, hoffset);
|
|
550
|
+
const len = (a) => (0, util_1.measureText)(a.slice(0, 30));
|
|
551
|
+
const by = (0, util_1.max)(hblocks.filter(b => !hhide.has(b.key)).map(b => len(b.refName)));
|
|
552
|
+
const bx = (0, util_1.max)(vblocks.filter(b => !vhide.has(b.key)).map(b => len(b.refName)));
|
|
553
|
+
// these are set via autorun to avoid dependency cycle
|
|
554
|
+
self.setBorderY(Math.max(by + padding, 50));
|
|
555
|
+
self.setBorderX(Math.max(bx + padding, 50));
|
|
556
|
+
}));
|
|
557
|
+
},
|
|
558
|
+
/**
|
|
559
|
+
* #action
|
|
560
|
+
*/
|
|
561
|
+
squareView() {
|
|
562
|
+
const { hview, vview } = self;
|
|
563
|
+
const avg = (hview.bpPerPx + vview.bpPerPx) / 2;
|
|
564
|
+
const hpx = hview.pxToBp(hview.width / 2);
|
|
565
|
+
const vpx = vview.pxToBp(vview.width / 2);
|
|
566
|
+
hview.setBpPerPx(avg);
|
|
567
|
+
hview.centerAt(hpx.coord, hpx.refName, hpx.index);
|
|
568
|
+
vview.setBpPerPx(avg);
|
|
569
|
+
vview.centerAt(vpx.coord, vpx.refName, vpx.index);
|
|
570
|
+
},
|
|
571
|
+
/**
|
|
572
|
+
* #action
|
|
573
|
+
*/
|
|
574
|
+
squareViewProportional() {
|
|
575
|
+
const { hview, vview } = self;
|
|
576
|
+
const ratio = hview.width / vview.width;
|
|
577
|
+
const avg = (hview.bpPerPx + vview.bpPerPx) / 2;
|
|
578
|
+
const hpx = hview.pxToBp(hview.width / 2);
|
|
579
|
+
const vpx = vview.pxToBp(vview.width / 2);
|
|
580
|
+
hview.setBpPerPx(avg / ratio);
|
|
581
|
+
hview.centerAt(hpx.coord, hpx.refName, hpx.index);
|
|
582
|
+
vview.setBpPerPx(avg);
|
|
583
|
+
vview.centerAt(vpx.coord, vpx.refName, vpx.index);
|
|
584
|
+
},
|
|
585
|
+
}))
|
|
586
|
+
.views(self => ({
|
|
587
|
+
/**
|
|
588
|
+
* #method
|
|
589
|
+
*/
|
|
590
|
+
menuItems() {
|
|
591
|
+
const session = (0, util_1.getSession)(self);
|
|
592
|
+
return [
|
|
593
|
+
{
|
|
594
|
+
label: 'Return to import form',
|
|
595
|
+
onClick: () => {
|
|
596
|
+
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
597
|
+
ReturnToImportFormDialog,
|
|
598
|
+
{ model: self, handleClose },
|
|
599
|
+
]);
|
|
600
|
+
},
|
|
601
|
+
icon: FolderOpen_1.default,
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
label: 'Square view - same bp per pixel',
|
|
605
|
+
onClick: () => self.squareView(),
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
label: 'Rectangular view - same total bp',
|
|
609
|
+
onClick: () => self.squareView(),
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
label: 'Show all regions',
|
|
613
|
+
onClick: () => self.showAllRegions(),
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
label: 'Export SVG',
|
|
617
|
+
icon: PhotoCamera_1.default,
|
|
618
|
+
onClick: () => {
|
|
619
|
+
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
620
|
+
ExportSvgDialog,
|
|
621
|
+
{ model: self, handleClose },
|
|
622
|
+
]);
|
|
623
|
+
},
|
|
624
|
+
},
|
|
625
|
+
...((0, util_1.isSessionModelWithWidgets)(session)
|
|
626
|
+
? [
|
|
627
|
+
{
|
|
628
|
+
label: 'Open track selector',
|
|
629
|
+
onClick: self.activateTrackSelector,
|
|
630
|
+
icon: Icons_1.TrackSelector,
|
|
631
|
+
},
|
|
632
|
+
]
|
|
633
|
+
: []),
|
|
634
|
+
];
|
|
635
|
+
},
|
|
636
|
+
/**
|
|
637
|
+
* #getter
|
|
638
|
+
*/
|
|
639
|
+
get error() {
|
|
640
|
+
return self.volatileError || self.assemblyErrors;
|
|
641
|
+
},
|
|
642
|
+
}));
|
|
643
|
+
}
|
|
644
|
+
exports.default = stateModelFactory;
|
|
645
|
+
var _1dview_2 = require("./1dview");
|
|
646
|
+
Object.defineProperty(exports, "Dotplot1DView", { enumerable: true, get: function () { return _1dview_2.Dotplot1DView; } });
|
|
647
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/DotplotView/model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAmC;AACnC,qDAUwB;AACxB,2CAAmC;AACnC,+BAA2C;AAE3C,sDAAgE;AAEhE,6GAAoF;AAEpF,6CAO2B;AAC3B,+DAA4E;AAE5E,sDAAwD;AAExD,QAAQ;AACR,kDAA2E;AAC3E,gFAA2D;AAC3D,kFAA6D;AAE7D,SAAS;AACT,sCAAoE;AACpE,4CAAsE;AAEtE,SAAS;AACT,MAAM,eAAe,GAAG,IAAA,YAAI,EAAC,GAAG,EAAE,mDAAQ,8BAA8B,GAAC,CAAC,C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