@jbrowse/plugin-linear-comparative-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/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +36 -60
- package/dist/LGVSyntenyDisplay/components/util.d.ts +9 -6
- package/dist/LGVSyntenyDisplay/components/util.js +6 -13
- package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +19 -10
- package/dist/LGVSyntenyDisplay/configSchemaF.js +12 -9
- package/dist/LGVSyntenyDisplay/index.d.ts +1 -1
- package/dist/LGVSyntenyDisplay/index.js +1 -1
- package/dist/LGVSyntenyDisplay/model.d.ts +122 -69
- package/dist/LGVSyntenyDisplay/model.js +20 -37
- package/dist/LaunchLinearSyntenyView.d.ts +1 -1
- package/dist/LaunchLinearSyntenyView.js +1 -3
- package/dist/LinearComparativeDisplay/configSchemaF.d.ts +0 -3
- package/dist/LinearComparativeDisplay/configSchemaF.js +0 -6
- package/dist/LinearComparativeDisplay/index.d.ts +1 -1
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +12 -69
- package/dist/LinearComparativeDisplay/stateModelFactory.js +13 -57
- package/dist/LinearComparativeView/components/Header.d.ts +2 -3
- package/dist/LinearComparativeView/components/Header.js +56 -86
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +2 -3
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +5 -15
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +2 -3
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +17 -32
- package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +2 -3
- package/dist/LinearComparativeView/components/LinearComparativeView.js +4 -9
- package/dist/LinearComparativeView/components/Rubberband.d.ts +2 -3
- package/dist/LinearComparativeView/components/Rubberband.js +36 -69
- package/dist/LinearComparativeView/components/VerticalGuide.d.ts +2 -3
- package/dist/LinearComparativeView/components/VerticalGuide.js +5 -9
- package/dist/LinearComparativeView/index.d.ts +1 -1
- package/dist/LinearComparativeView/index.js +17 -7
- package/dist/LinearComparativeView/model.d.ts +38 -90
- package/dist/LinearComparativeView/model.js +40 -107
- package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +2 -3
- package/dist/LinearReadVsRef/LinearReadVsRef.js +10 -55
- package/dist/LinearReadVsRef/index.d.ts +1 -1
- package/dist/LinearReadVsRef/index.js +17 -9
- package/dist/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
- package/dist/LinearSyntenyDisplay/afterAttach.js +8 -12
- package/dist/LinearSyntenyDisplay/components/Component.d.ts +2 -3
- package/dist/LinearSyntenyDisplay/components/Component.js +11 -36
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +2 -3
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +95 -106
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +3 -4
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +3 -6
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +3 -4
- package/dist/LinearSyntenyDisplay/components/util.d.ts +3 -3
- package/dist/LinearSyntenyDisplay/components/util.js +0 -9
- package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +1 -12
- package/dist/LinearSyntenyDisplay/configSchemaF.js +0 -15
- package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
- package/dist/LinearSyntenyDisplay/drawSynteny.js +1 -23
- package/dist/LinearSyntenyDisplay/index.d.ts +1 -1
- package/dist/LinearSyntenyDisplay/index.js +18 -9
- package/dist/LinearSyntenyDisplay/model.d.ts +8 -102
- package/dist/LinearSyntenyDisplay/model.js +18 -99
- package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +2 -3
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js +35 -76
- package/dist/LinearSyntenyView/components/Icons.d.ts +3 -4
- package/dist/LinearSyntenyView/components/Icons.js +3 -8
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +130 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +39 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +22 -0
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +2 -3
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +49 -150
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +43 -0
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +68 -0
- package/dist/LinearSyntenyView/components/ImportForm/util.js +1 -3
- package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js +20 -10
- package/dist/LinearSyntenyView/index.d.ts +1 -1
- package/dist/LinearSyntenyView/index.js +17 -7
- package/dist/LinearSyntenyView/model.d.ts +54 -58
- package/dist/LinearSyntenyView/model.js +61 -56
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +3 -6
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +3 -11
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +1 -1
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +7 -24
- package/dist/LinearSyntenyView/types.d.ts +12 -0
- package/dist/LinearSyntenyView/types.js +2 -0
- package/dist/LinearSyntenyViewHelper/index.d.ts +1 -1
- package/dist/LinearSyntenyViewHelper/index.js +2 -2
- package/dist/LinearSyntenyViewHelper/stateModelFactory.d.ts +2 -14
- package/dist/LinearSyntenyViewHelper/stateModelFactory.js +2 -29
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +87 -0
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +5 -90
- package/dist/SyntenyFeatureDetail/index.d.ts +1 -1
- package/dist/SyntenyFeatureDetail/index.js +18 -14
- package/dist/SyntenyFeatureDetail/types.d.ts +9 -0
- package/dist/SyntenyFeatureDetail/types.js +2 -0
- package/dist/SyntenyTrack/configSchema.d.ts +1 -1
- package/dist/SyntenyTrack/configSchema.js +1 -9
- package/dist/SyntenyTrack/index.d.ts +1 -1
- package/dist/SyntenyTrack/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/util.d.ts +2 -2
- package/dist/util.js +1 -11
- package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
- package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +35 -36
- package/esm/LGVSyntenyDisplay/components/util.d.ts +9 -6
- package/esm/LGVSyntenyDisplay/components/util.js +6 -13
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +19 -10
- package/esm/LGVSyntenyDisplay/configSchemaF.js +12 -9
- package/esm/LGVSyntenyDisplay/index.d.ts +1 -1
- package/esm/LGVSyntenyDisplay/index.js +1 -1
- package/esm/LGVSyntenyDisplay/model.d.ts +122 -69
- package/esm/LGVSyntenyDisplay/model.js +4 -31
- package/esm/LaunchLinearSyntenyView.d.ts +1 -1
- package/esm/LaunchLinearSyntenyView.js +1 -3
- package/esm/LinearComparativeDisplay/configSchemaF.d.ts +0 -3
- package/esm/LinearComparativeDisplay/configSchemaF.js +0 -6
- package/esm/LinearComparativeDisplay/index.d.ts +1 -1
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +12 -69
- package/esm/LinearComparativeDisplay/stateModelFactory.js +14 -58
- package/esm/LinearComparativeView/components/Header.d.ts +2 -3
- package/esm/LinearComparativeView/components/Header.js +56 -63
- package/esm/LinearComparativeView/components/HeaderSearchBoxes.d.ts +2 -3
- package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +5 -12
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +2 -3
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +17 -29
- package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +2 -3
- package/esm/LinearComparativeView/components/LinearComparativeView.js +4 -9
- package/esm/LinearComparativeView/components/Rubberband.d.ts +2 -3
- package/esm/LinearComparativeView/components/Rubberband.js +36 -46
- package/esm/LinearComparativeView/components/VerticalGuide.d.ts +2 -3
- package/esm/LinearComparativeView/components/VerticalGuide.js +5 -6
- package/esm/LinearComparativeView/index.d.ts +1 -1
- package/esm/LinearComparativeView/model.d.ts +38 -90
- package/esm/LinearComparativeView/model.js +24 -101
- package/esm/LinearReadVsRef/LinearReadVsRef.d.ts +2 -3
- package/esm/LinearReadVsRef/LinearReadVsRef.js +10 -32
- package/esm/LinearReadVsRef/index.d.ts +1 -1
- package/esm/LinearReadVsRef/index.js +1 -3
- package/esm/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/afterAttach.js +8 -12
- package/esm/LinearSyntenyDisplay/components/Component.d.ts +2 -3
- package/esm/LinearSyntenyDisplay/components/Component.js +11 -13
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +2 -3
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +79 -100
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +3 -4
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +3 -3
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +3 -4
- package/esm/LinearSyntenyDisplay/components/util.d.ts +3 -3
- package/esm/LinearSyntenyDisplay/components/util.js +2 -11
- package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +1 -12
- package/esm/LinearSyntenyDisplay/configSchemaF.js +0 -15
- package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/drawSynteny.js +1 -23
- package/esm/LinearSyntenyDisplay/index.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/index.js +1 -2
- package/esm/LinearSyntenyDisplay/model.d.ts +8 -102
- package/esm/LinearSyntenyDisplay/model.js +1 -92
- package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +2 -3
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js +35 -53
- package/esm/LinearSyntenyView/components/Icons.d.ts +3 -4
- package/esm/LinearSyntenyView/components/Icons.js +3 -5
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +125 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +37 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +16 -0
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +2 -3
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +49 -127
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +40 -0
- package/esm/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
- package/esm/LinearSyntenyView/components/ImportForm/getAdapter.js +65 -0
- package/esm/LinearSyntenyView/components/ImportForm/util.js +1 -3
- package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js +3 -3
- package/esm/LinearSyntenyView/index.d.ts +1 -1
- package/esm/LinearSyntenyView/model.d.ts +54 -58
- package/esm/LinearSyntenyView/model.js +44 -49
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js +3 -3
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +4 -9
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +1 -1
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +8 -25
- package/esm/LinearSyntenyView/types.d.ts +12 -0
- package/esm/LinearSyntenyView/types.js +1 -0
- package/esm/LinearSyntenyViewHelper/index.d.ts +1 -1
- package/esm/LinearSyntenyViewHelper/index.js +2 -2
- package/esm/LinearSyntenyViewHelper/stateModelFactory.d.ts +2 -14
- package/esm/LinearSyntenyViewHelper/stateModelFactory.js +2 -29
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +52 -0
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +6 -68
- package/esm/SyntenyFeatureDetail/index.d.ts +1 -1
- package/esm/SyntenyFeatureDetail/index.js +1 -7
- package/esm/SyntenyFeatureDetail/types.d.ts +9 -0
- package/esm/SyntenyFeatureDetail/types.js +1 -0
- package/esm/SyntenyTrack/configSchema.d.ts +1 -1
- package/esm/SyntenyTrack/configSchema.js +1 -9
- package/esm/SyntenyTrack/index.d.ts +1 -1
- package/esm/SyntenyTrack/index.js +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +4 -4
- package/esm/util.d.ts +2 -2
- package/esm/util.js +1 -11
- package/package.json +2 -4
- package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -194
- package/dist/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
- package/dist/LinearSyntenyView/components/ImportForm/Spacer.js +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -59
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -52
- package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
- package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -169
- package/esm/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
- package/esm/LinearSyntenyView/components/ImportForm/Spacer.js +0 -4
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -34
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -23
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
const react_1 = require("react");
|
|
27
37
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
@@ -29,32 +39,15 @@ const util_1 = require("@jbrowse/core/util");
|
|
|
29
39
|
const plugin_alignments_1 = require("@jbrowse/plugin-alignments");
|
|
30
40
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
31
41
|
const LaunchSyntenyViewDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/LaunchSyntenyViewDialog'))));
|
|
32
|
-
/**
|
|
33
|
-
* #stateModel LGVSyntenyDisplay
|
|
34
|
-
* displays location of "synteny" feature in a plain LGV, allowing linking out
|
|
35
|
-
* to external synteny views
|
|
36
|
-
*
|
|
37
|
-
* extends
|
|
38
|
-
* - [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
39
|
-
*/
|
|
40
42
|
function stateModelFactory(schema) {
|
|
41
43
|
return mobx_state_tree_1.types
|
|
42
44
|
.compose('LGVSyntenyDisplay', (0, plugin_alignments_1.SharedLinearPileupDisplayMixin)(schema), mobx_state_tree_1.types.model({
|
|
43
|
-
/**
|
|
44
|
-
* #property
|
|
45
|
-
*/
|
|
46
45
|
type: mobx_state_tree_1.types.literal('LGVSyntenyDisplay'),
|
|
47
|
-
/**
|
|
48
|
-
* #property
|
|
49
|
-
*/
|
|
50
46
|
configuration: (0, configuration_1.ConfigurationReference)(schema),
|
|
51
47
|
}))
|
|
52
48
|
.views(self => {
|
|
53
49
|
const superContextMenuItems = self.contextMenuItems;
|
|
54
50
|
return {
|
|
55
|
-
/**
|
|
56
|
-
* #method
|
|
57
|
-
*/
|
|
58
51
|
contextMenuItems() {
|
|
59
52
|
const feature = self.contextMenuFeature;
|
|
60
53
|
return [
|
|
@@ -67,9 +60,10 @@ function stateModelFactory(schema) {
|
|
|
67
60
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
68
61
|
LaunchSyntenyViewDialog,
|
|
69
62
|
{
|
|
70
|
-
|
|
63
|
+
view: (0, util_1.getContainingView)(self),
|
|
71
64
|
trackId: (0, configuration_1.getConf)((0, util_1.getContainingTrack)(self), 'trackId'),
|
|
72
65
|
handleClose,
|
|
66
|
+
session: (0, util_1.getSession)(self),
|
|
73
67
|
feature,
|
|
74
68
|
},
|
|
75
69
|
]);
|
|
@@ -84,9 +78,6 @@ function stateModelFactory(schema) {
|
|
|
84
78
|
.views(self => {
|
|
85
79
|
const { trackMenuItems: superTrackMenuItems, colorSchemeSubMenuItems: superColorSchemeSubMenuItems, } = self;
|
|
86
80
|
return {
|
|
87
|
-
/**
|
|
88
|
-
* #method
|
|
89
|
-
*/
|
|
90
81
|
trackMenuItems() {
|
|
91
82
|
return [
|
|
92
83
|
...superTrackMenuItems(),
|
|
@@ -99,9 +90,6 @@ function stateModelFactory(schema) {
|
|
|
99
90
|
};
|
|
100
91
|
})
|
|
101
92
|
.actions(self => ({
|
|
102
|
-
/**
|
|
103
|
-
* #action
|
|
104
|
-
*/
|
|
105
93
|
selectFeature(feature) {
|
|
106
94
|
const session = (0, util_1.getSession)(self);
|
|
107
95
|
if ((0, util_1.isSessionModelWithWidgets)(session)) {
|
|
@@ -121,12 +109,7 @@ function stateModelFactory(schema) {
|
|
|
121
109
|
session.setSelection(feature);
|
|
122
110
|
},
|
|
123
111
|
afterCreate() {
|
|
124
|
-
|
|
125
|
-
// otherwise use selected orientation
|
|
126
|
-
if (self.colorBy) {
|
|
127
|
-
self.setColorScheme({ ...self.colorBy });
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
112
|
+
if (!self.colorBySetting && self.colorBy.type === 'normal') {
|
|
130
113
|
self.setColorScheme({ type: 'strand' });
|
|
131
114
|
}
|
|
132
115
|
},
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function LaunchLinearSyntenyView(pluginManager: PluginManager): void;
|
|
@@ -7,9 +7,7 @@ function makeMultiDimArray(str) {
|
|
|
7
7
|
return Array.isArray(str[0]) ? str : [str];
|
|
8
8
|
}
|
|
9
9
|
function LaunchLinearSyntenyView(pluginManager) {
|
|
10
|
-
pluginManager.addToExtensionPoint('LaunchView-LinearSyntenyView',
|
|
11
|
-
// @ts-expect-error
|
|
12
|
-
async ({ session, views, tracks = [], }) => {
|
|
10
|
+
pluginManager.addToExtensionPoint('LaunchView-LinearSyntenyView', async ({ session, views, tracks = [], }) => {
|
|
13
11
|
try {
|
|
14
12
|
const { assemblyManager } = session;
|
|
15
13
|
const model = session.addView('LinearSyntenyView', {});
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* #config LinearComparativeDisplay
|
|
3
|
-
*/
|
|
4
1
|
declare function configSchemaFactory(_pluginManager: any): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
5
2
|
export default configSchemaFactory;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
/**
|
|
5
|
-
* #config LinearComparativeDisplay
|
|
6
|
-
*/
|
|
7
4
|
function configSchemaFactory(_pluginManager) {
|
|
8
5
|
return (0, configuration_1.ConfigurationSchema)('LinearComparativeDisplay', {}, {
|
|
9
6
|
explicitlyTyped: true,
|
|
10
|
-
/**
|
|
11
|
-
* #identifier
|
|
12
|
-
*/
|
|
13
7
|
explicitIdentifier: 'displayId',
|
|
14
8
|
});
|
|
15
9
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function LinearComparativeDisplayF(pluginManager: PluginManager): void;
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* #stateModel LinearComparativeDisplay
|
|
6
|
-
* extends
|
|
7
|
-
* - [BaseDisplay](../basedisplay)
|
|
8
|
-
*/
|
|
1
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
+
import type { Instance } from 'mobx-state-tree';
|
|
9
4
|
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
10
5
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
11
6
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
12
7
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
13
8
|
} & {
|
|
14
|
-
/**
|
|
15
|
-
* #property
|
|
16
|
-
*/
|
|
17
9
|
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
18
|
-
/**
|
|
19
|
-
* #property
|
|
20
|
-
*/
|
|
21
10
|
configuration: AnyConfigurationSchemaType;
|
|
22
11
|
}, {
|
|
23
12
|
rendererTypeName: string;
|
|
@@ -43,10 +32,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
43
32
|
message: string | undefined;
|
|
44
33
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
45
34
|
onHorizontalScroll?: () => void;
|
|
46
|
-
blockState
|
|
47
|
-
* #action
|
|
48
|
-
* controlled by a reaction
|
|
49
|
-
*/: Record<string, any>;
|
|
35
|
+
blockState?: Record<string, any>;
|
|
50
36
|
}>;
|
|
51
37
|
readonly DisplayBlurb: React.FC<{
|
|
52
38
|
model: {
|
|
@@ -58,10 +44,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
58
44
|
error: unknown;
|
|
59
45
|
message: string | undefined;
|
|
60
46
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
61
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree"
|
|
62
|
-
* #action
|
|
63
|
-
* controlled by a reaction
|
|
64
|
-
*/).ISimpleType<string>, [undefined]>;
|
|
47
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
65
48
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
66
49
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
67
50
|
}, {
|
|
@@ -84,21 +67,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
84
67
|
setRpcDriverName(rpcDriverName: string): void;
|
|
85
68
|
reload(): void;
|
|
86
69
|
} & {
|
|
87
|
-
renderInProgress:
|
|
70
|
+
renderInProgress: string | undefined;
|
|
88
71
|
features: Feature[] | undefined;
|
|
89
72
|
message: string | undefined;
|
|
90
73
|
} & {
|
|
91
|
-
/**
|
|
92
|
-
* #getter
|
|
93
|
-
*/
|
|
94
74
|
readonly level: number;
|
|
95
|
-
/**
|
|
96
|
-
* #getter
|
|
97
|
-
*/
|
|
98
75
|
readonly height: number;
|
|
99
|
-
/**
|
|
100
|
-
* #getter
|
|
101
|
-
*/
|
|
102
76
|
renderProps(): {
|
|
103
77
|
rpcDriverName: string | undefined;
|
|
104
78
|
displayModel: {
|
|
@@ -140,10 +114,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
140
114
|
message: string | undefined;
|
|
141
115
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
142
116
|
onHorizontalScroll?: () => void;
|
|
143
|
-
blockState
|
|
144
|
-
* #action
|
|
145
|
-
* controlled by a reaction
|
|
146
|
-
*/: Record<string, any>;
|
|
117
|
+
blockState?: Record<string, any>;
|
|
147
118
|
}>;
|
|
148
119
|
readonly DisplayBlurb: React.FC<{
|
|
149
120
|
model: {
|
|
@@ -155,10 +126,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
155
126
|
error: unknown;
|
|
156
127
|
message: string | undefined;
|
|
157
128
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
158
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree"
|
|
159
|
-
* #action
|
|
160
|
-
* controlled by a reaction
|
|
161
|
-
*/).ISimpleType<string>, [undefined]>;
|
|
129
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
162
130
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
163
131
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
164
132
|
}, {
|
|
@@ -181,7 +149,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
181
149
|
setRpcDriverName(rpcDriverName: string): void;
|
|
182
150
|
reload(): void;
|
|
183
151
|
} & {
|
|
184
|
-
renderInProgress:
|
|
152
|
+
renderInProgress: string | undefined;
|
|
185
153
|
features: Feature[] | undefined;
|
|
186
154
|
message: string | undefined;
|
|
187
155
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -189,13 +157,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
189
157
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
190
158
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
191
159
|
} & {
|
|
192
|
-
/**
|
|
193
|
-
* #property
|
|
194
|
-
*/
|
|
195
160
|
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
196
|
-
/**
|
|
197
|
-
* #property
|
|
198
|
-
*/
|
|
199
161
|
configuration: AnyConfigurationSchemaType;
|
|
200
162
|
}, {
|
|
201
163
|
rendererTypeName: string;
|
|
@@ -221,10 +183,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
221
183
|
message: string | undefined;
|
|
222
184
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
223
185
|
onHorizontalScroll?: () => void;
|
|
224
|
-
blockState
|
|
225
|
-
* #action
|
|
226
|
-
* controlled by a reaction
|
|
227
|
-
*/: Record<string, any>;
|
|
186
|
+
blockState?: Record<string, any>;
|
|
228
187
|
}>;
|
|
229
188
|
readonly DisplayBlurb: React.FC<{
|
|
230
189
|
model: {
|
|
@@ -259,34 +218,18 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
259
218
|
setRpcDriverName(rpcDriverName: string): void;
|
|
260
219
|
reload(): void;
|
|
261
220
|
} & {
|
|
262
|
-
renderInProgress:
|
|
221
|
+
renderInProgress: string | undefined;
|
|
263
222
|
features: Feature[] | undefined;
|
|
264
223
|
message: string | undefined;
|
|
265
224
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
266
225
|
highResolutionScaling: number;
|
|
267
226
|
};
|
|
268
227
|
} & {
|
|
269
|
-
|
|
270
|
-
* #action
|
|
271
|
-
* controlled by a reaction
|
|
272
|
-
*/
|
|
273
|
-
setLoading(abortController: AbortController): void;
|
|
274
|
-
/**
|
|
275
|
-
* #action
|
|
276
|
-
* controlled by a reaction
|
|
277
|
-
*/
|
|
228
|
+
setLoading(newStopToken: string): void;
|
|
278
229
|
setMessage(messageText: string): void;
|
|
279
|
-
/**
|
|
280
|
-
* #action
|
|
281
|
-
* controlled by a reaction
|
|
282
|
-
*/
|
|
283
230
|
setRendered(args?: {
|
|
284
231
|
features: Feature[];
|
|
285
232
|
}): void;
|
|
286
|
-
/**
|
|
287
|
-
* #action
|
|
288
|
-
* controlled by a reaction
|
|
289
|
-
*/
|
|
290
233
|
setError(error: unknown): void;
|
|
291
234
|
} & {
|
|
292
235
|
afterAttach(): void;
|
|
@@ -1,48 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
const
|
|
4
|
+
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
5
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
|
+
const stopToken_1 = require("@jbrowse/core/util/stopToken");
|
|
6
7
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
7
|
-
const
|
|
8
|
-
/**
|
|
9
|
-
* #stateModel LinearComparativeDisplay
|
|
10
|
-
* extends
|
|
11
|
-
* - [BaseDisplay](../basedisplay)
|
|
12
|
-
*/
|
|
8
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
13
9
|
function stateModelFactory(configSchema) {
|
|
14
10
|
return mobx_state_tree_1.types
|
|
15
11
|
.compose('LinearComparativeDisplay', models_1.BaseDisplay, mobx_state_tree_1.types.model({
|
|
16
|
-
/**
|
|
17
|
-
* #property
|
|
18
|
-
*/
|
|
19
12
|
type: mobx_state_tree_1.types.literal('LinearComparativeDisplay'),
|
|
20
|
-
/**
|
|
21
|
-
* #property
|
|
22
|
-
*/
|
|
23
13
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
24
14
|
}))
|
|
25
|
-
.volatile((
|
|
15
|
+
.volatile(() => ({
|
|
26
16
|
renderInProgress: undefined,
|
|
27
17
|
features: undefined,
|
|
28
18
|
message: undefined,
|
|
29
19
|
}))
|
|
30
20
|
.views(self => ({
|
|
31
|
-
/**
|
|
32
|
-
* #getter
|
|
33
|
-
*/
|
|
34
21
|
get level() {
|
|
35
22
|
return (0, mobx_state_tree_1.getParent)(self, 4).level;
|
|
36
23
|
},
|
|
37
|
-
/**
|
|
38
|
-
* #getter
|
|
39
|
-
*/
|
|
40
24
|
get height() {
|
|
41
25
|
return (0, mobx_state_tree_1.getParent)(self, 4).height;
|
|
42
26
|
},
|
|
43
|
-
/**
|
|
44
|
-
* #getter
|
|
45
|
-
*/
|
|
46
27
|
renderProps() {
|
|
47
28
|
return {
|
|
48
29
|
rpcDriverName: self.rpcDriverName,
|
|
@@ -52,33 +33,18 @@ function stateModelFactory(configSchema) {
|
|
|
52
33
|
},
|
|
53
34
|
}))
|
|
54
35
|
.actions(self => {
|
|
55
|
-
let
|
|
36
|
+
let stopToken;
|
|
56
37
|
return {
|
|
57
|
-
|
|
58
|
-
* #action
|
|
59
|
-
* controlled by a reaction
|
|
60
|
-
*/
|
|
61
|
-
setLoading(abortController) {
|
|
38
|
+
setLoading(newStopToken) {
|
|
62
39
|
self.message = undefined;
|
|
63
40
|
self.error = undefined;
|
|
64
|
-
|
|
41
|
+
stopToken = newStopToken;
|
|
65
42
|
},
|
|
66
|
-
/**
|
|
67
|
-
* #action
|
|
68
|
-
* controlled by a reaction
|
|
69
|
-
*/
|
|
70
43
|
setMessage(messageText) {
|
|
71
|
-
if (renderInProgress && !renderInProgress.signal.aborted) {
|
|
72
|
-
renderInProgress.abort();
|
|
73
|
-
}
|
|
74
44
|
self.message = messageText;
|
|
75
45
|
self.error = undefined;
|
|
76
|
-
|
|
46
|
+
stopToken = undefined;
|
|
77
47
|
},
|
|
78
|
-
/**
|
|
79
|
-
* #action
|
|
80
|
-
* controlled by a reaction
|
|
81
|
-
*/
|
|
82
48
|
setRendered(args) {
|
|
83
49
|
if (!args) {
|
|
84
50
|
return;
|
|
@@ -103,34 +69,27 @@ function stateModelFactory(configSchema) {
|
|
|
103
69
|
}
|
|
104
70
|
self.message = undefined;
|
|
105
71
|
self.error = undefined;
|
|
106
|
-
|
|
72
|
+
stopToken = undefined;
|
|
107
73
|
if (foundNewFeatureNotInExistingMap ||
|
|
108
74
|
foundExistingFeatureNotInNewMap ||
|
|
109
75
|
!self.features) {
|
|
110
76
|
self.features = features;
|
|
111
77
|
}
|
|
112
78
|
},
|
|
113
|
-
/**
|
|
114
|
-
* #action
|
|
115
|
-
* controlled by a reaction
|
|
116
|
-
*/
|
|
117
79
|
setError(error) {
|
|
118
80
|
console.error(error);
|
|
119
|
-
if (
|
|
120
|
-
|
|
81
|
+
if (stopToken !== undefined) {
|
|
82
|
+
(0, stopToken_1.stopStopToken)(stopToken);
|
|
121
83
|
}
|
|
122
|
-
// the rendering failed for some reason
|
|
123
84
|
self.message = undefined;
|
|
124
85
|
self.error = error;
|
|
125
|
-
|
|
86
|
+
stopToken = undefined;
|
|
126
87
|
},
|
|
127
88
|
};
|
|
128
89
|
})
|
|
129
90
|
.actions(self => ({
|
|
130
91
|
afterAttach() {
|
|
131
|
-
(0, util_1.makeAbortableReaction)(
|
|
132
|
-
// @ts-expect-error
|
|
133
|
-
self, renderBlockData, renderBlockEffect, {
|
|
92
|
+
(0, util_1.makeAbortableReaction)(self, renderBlockData, renderBlockEffect, {
|
|
134
93
|
name: `${self.type} ${self.id} rendering`,
|
|
135
94
|
delay: 1000,
|
|
136
95
|
fireImmediately: true,
|
|
@@ -141,9 +100,6 @@ function stateModelFactory(configSchema) {
|
|
|
141
100
|
function renderBlockData(self) {
|
|
142
101
|
const { rpcManager } = (0, util_1.getSession)(self);
|
|
143
102
|
const display = self;
|
|
144
|
-
// Alternative to readConfObject(config) is below used because
|
|
145
|
-
// renderProps is something under our control. Compare to
|
|
146
|
-
// serverSideRenderedBlock
|
|
147
103
|
(0, configuration_1.readConfObject)(self.configuration);
|
|
148
104
|
const { level, adapterConfig } = self;
|
|
149
105
|
const parent = (0, util_1.getContainingView)(self);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { LinearComparativeViewModel } from '../model';
|
|
1
|
+
import type { LinearComparativeViewModel } from '../model';
|
|
3
2
|
declare const Header: ({ model, }: {
|
|
4
3
|
model: LinearComparativeViewModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default Header;
|
|
@@ -1,40 +1,17 @@
|
|
|
1
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
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const material_1 = require("@mui/material");
|
|
32
|
-
const mui_1 = require("tss-react/mui");
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
33
8
|
const CascadingMenuButton_1 = __importDefault(require("@jbrowse/core/ui/CascadingMenuButton"));
|
|
34
|
-
|
|
9
|
+
const Icons_1 = require("@jbrowse/core/ui/Icons");
|
|
35
10
|
const MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
|
|
36
11
|
const Search_1 = __importDefault(require("@mui/icons-material/Search"));
|
|
37
|
-
const
|
|
12
|
+
const material_1 = require("@mui/material");
|
|
13
|
+
const mobx_react_1 = require("mobx-react");
|
|
14
|
+
const mui_1 = require("tss-react/mui");
|
|
38
15
|
const HeaderSearchBoxes_1 = __importDefault(require("./HeaderSearchBoxes"));
|
|
39
16
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
40
17
|
inline: {
|
|
@@ -46,67 +23,60 @@ const Header = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
|
46
23
|
const { views } = model;
|
|
47
24
|
const [showSearchBoxes, setShowSearchBoxes] = (0, react_1.useState)(views.length <= 3);
|
|
48
25
|
const [sideBySide, setSideBySide] = (0, react_1.useState)(views.length <= 3);
|
|
49
|
-
return (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.FormGroup, { row: true, children: [(0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
|
|
27
|
+
{
|
|
28
|
+
label: 'Synteny track selectors',
|
|
29
|
+
type: 'subMenu',
|
|
30
|
+
subMenu: views.slice(0, -1).map((_, idx) => ({
|
|
31
|
+
label: `Row ${idx + 1}->${idx + 2} (${views[idx].assemblyNames.join(',')}->${views[idx + 1].assemblyNames.join(',')})`,
|
|
32
|
+
onClick: () => {
|
|
33
|
+
model.activateTrackSelector(idx);
|
|
34
|
+
},
|
|
35
|
+
})),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'Row track selectors',
|
|
39
|
+
type: 'subMenu',
|
|
40
|
+
subMenu: views.map((view, idx) => ({
|
|
41
|
+
label: `Row ${idx + 1} track selector (${view.assemblyNames.join(',')})`,
|
|
42
|
+
onClick: () => view.activateTrackSelector(),
|
|
43
|
+
})),
|
|
44
|
+
},
|
|
45
|
+
], children: (0, jsx_runtime_1.jsx)(Icons_1.TrackSelector, {}) }), (0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
|
|
46
|
+
{
|
|
47
|
+
label: 'Row view menus',
|
|
48
|
+
type: 'subMenu',
|
|
49
|
+
subMenu: views.map((view, idx) => ({
|
|
50
|
+
label: `View ${idx + 1} Menu`,
|
|
51
|
+
subMenu: view.menuItems(),
|
|
52
|
+
})),
|
|
53
|
+
},
|
|
54
|
+
...model.headerMenuItems(),
|
|
55
|
+
], children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, {}) }), (0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
|
|
56
|
+
{
|
|
57
|
+
label: 'Show search boxes',
|
|
58
|
+
type: 'checkbox',
|
|
59
|
+
checked: showSearchBoxes,
|
|
56
60
|
onClick: () => {
|
|
57
|
-
|
|
61
|
+
setShowSearchBoxes(!showSearchBoxes);
|
|
58
62
|
},
|
|
59
|
-
})),
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: 'Row track selectors',
|
|
63
|
-
type: 'subMenu',
|
|
64
|
-
subMenu: views.map((view, idx) => ({
|
|
65
|
-
label: `Row ${idx + 1} track selector (${view.assemblyNames.join(',')})`,
|
|
66
|
-
onClick: () => view.activateTrackSelector(),
|
|
67
|
-
})),
|
|
68
|
-
},
|
|
69
|
-
] },
|
|
70
|
-
react_1.default.createElement(Icons_1.TrackSelector, null)),
|
|
71
|
-
react_1.default.createElement(CascadingMenuButton_1.default, { menuItems: [
|
|
72
|
-
{
|
|
73
|
-
label: 'Row view menus',
|
|
74
|
-
type: 'subMenu',
|
|
75
|
-
subMenu: views.map((view, idx) => ({
|
|
76
|
-
label: `View ${idx + 1} Menu`,
|
|
77
|
-
subMenu: view.menuItems(),
|
|
78
|
-
})),
|
|
79
|
-
},
|
|
80
|
-
...model.headerMenuItems(),
|
|
81
|
-
] },
|
|
82
|
-
react_1.default.createElement(MoreVert_1.default, null)),
|
|
83
|
-
react_1.default.createElement(CascadingMenuButton_1.default, { menuItems: [
|
|
84
|
-
{
|
|
85
|
-
label: 'Show search boxes',
|
|
86
|
-
type: 'checkbox',
|
|
87
|
-
checked: showSearchBoxes,
|
|
88
|
-
onClick: () => {
|
|
89
|
-
setShowSearchBoxes(!showSearchBoxes);
|
|
90
63
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
64
|
+
{
|
|
65
|
+
label: 'Orientation - Side-by-side',
|
|
66
|
+
type: 'radio',
|
|
67
|
+
checked: sideBySide,
|
|
68
|
+
onClick: () => {
|
|
69
|
+
setSideBySide(!sideBySide);
|
|
70
|
+
},
|
|
98
71
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
72
|
+
{
|
|
73
|
+
label: 'Orientation - Vertical',
|
|
74
|
+
type: 'radio',
|
|
75
|
+
checked: !sideBySide,
|
|
76
|
+
onClick: () => {
|
|
77
|
+
setSideBySide(!sideBySide);
|
|
78
|
+
},
|
|
106
79
|
},
|
|
107
|
-
},
|
|
108
|
-
] },
|
|
109
|
-
react_1.default.createElement(Search_1.default, null)),
|
|
110
|
-
showSearchBoxes ? (react_1.default.createElement("span", { className: sideBySide ? classes.inline : undefined }, views.map(view => (react_1.default.createElement(HeaderSearchBoxes_1.default, { key: view.id, view: view }))))) : null));
|
|
80
|
+
], children: (0, jsx_runtime_1.jsx)(Search_1.default, {}) }), showSearchBoxes ? ((0, jsx_runtime_1.jsx)("span", { className: sideBySide ? classes.inline : undefined, children: views.map(view => ((0, jsx_runtime_1.jsx)(HeaderSearchBoxes_1.default, { view: view }, view.id))) })) : null] }));
|
|
111
81
|
});
|
|
112
82
|
exports.default = Header;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
|
|
1
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
|
|
3
2
|
declare const HeaderSearchBoxes: ({ view, }: {
|
|
4
3
|
view: LinearGenomeViewModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default HeaderSearchBoxes;
|