@jbrowse/plugin-variants 2.16.1 → 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/ChordVariantDisplay/index.d.ts +1 -1
- package/dist/ChordVariantDisplay/index.js +1 -2
- package/dist/ChordVariantDisplay/models/configSchema.d.ts +1 -4
- package/dist/ChordVariantDisplay/models/configSchema.js +1 -10
- package/dist/ChordVariantDisplay/models/stateModelFactory.d.ts +9 -27
- package/dist/ChordVariantDisplay/models/stateModelFactory.js +2 -23
- package/dist/LinearVariantDisplay/configSchema.d.ts +2 -2
- package/dist/LinearVariantDisplay/configSchema.js +1 -10
- package/dist/LinearVariantDisplay/index.d.ts +1 -1
- package/dist/LinearVariantDisplay/index.js +2 -2
- package/dist/LinearVariantDisplay/model.d.ts +8 -38
- package/dist/LinearVariantDisplay/model.js +1 -17
- package/dist/MultiLinearVariantDisplay/components/VariantDisplayComponent.d.ts +6 -0
- package/dist/MultiLinearVariantDisplay/components/VariantDisplayComponent.js +73 -0
- package/dist/MultiLinearVariantDisplay/configSchema.d.ts +80 -0
- package/dist/MultiLinearVariantDisplay/configSchema.js +30 -0
- package/dist/MultiLinearVariantDisplay/index.d.ts +2 -0
- package/dist/MultiLinearVariantDisplay/index.js +47 -0
- package/dist/MultiLinearVariantDisplay/model.d.ts +278 -0
- package/dist/MultiLinearVariantDisplay/model.js +235 -0
- package/dist/MultiLinearVariantDisplay/renderSvg.d.ts +4 -0
- package/dist/MultiLinearVariantDisplay/renderSvg.js +18 -0
- package/dist/MultiLinearVariantMatrixDisplay/components/LinesConnectingMatrixToGenomicPosition.d.ts +7 -0
- package/dist/MultiLinearVariantMatrixDisplay/components/LinesConnectingMatrixToGenomicPosition.js +42 -0
- package/dist/MultiLinearVariantMatrixDisplay/components/VariantDisplayComponent.d.ts +6 -0
- package/dist/MultiLinearVariantMatrixDisplay/components/VariantDisplayComponent.js +81 -0
- package/dist/MultiLinearVariantMatrixDisplay/configSchema.d.ts +37 -0
- package/dist/MultiLinearVariantMatrixDisplay/configSchema.js +22 -0
- package/dist/MultiLinearVariantMatrixDisplay/index.d.ts +2 -0
- package/dist/MultiLinearVariantMatrixDisplay/index.js +24 -0
- package/dist/MultiLinearVariantMatrixDisplay/model.d.ts +274 -0
- package/dist/MultiLinearVariantMatrixDisplay/model.js +218 -0
- package/dist/MultiLinearVariantMatrixDisplay/renderSvg.d.ts +4 -0
- package/dist/MultiLinearVariantMatrixDisplay/renderSvg.js +21 -0
- package/dist/MultiLinearVariantMatrixRenderer/LinearVariantMatrixRenderer.d.ts +62 -0
- package/dist/MultiLinearVariantMatrixRenderer/LinearVariantMatrixRenderer.js +106 -0
- package/dist/MultiLinearVariantMatrixRenderer/components/LinearVariantMatrixRendering.d.ts +6 -0
- package/dist/MultiLinearVariantMatrixRenderer/components/LinearVariantMatrixRendering.js +12 -0
- package/dist/MultiLinearVariantMatrixRenderer/configSchema.d.ts +2 -0
- package/dist/MultiLinearVariantMatrixRenderer/configSchema.js +6 -0
- package/dist/MultiLinearVariantMatrixRenderer/index.d.ts +2 -0
- package/dist/MultiLinearVariantMatrixRenderer/index.js +20 -0
- package/dist/MultiLinearVariantRenderer/MultiVariantRenderer.d.ts +48 -0
- package/dist/MultiLinearVariantRenderer/MultiVariantRenderer.js +60 -0
- package/dist/MultiLinearVariantRenderer/MultiVariantRendering.d.ts +18 -0
- package/dist/MultiLinearVariantRenderer/MultiVariantRendering.js +43 -0
- package/dist/MultiLinearVariantRenderer/configSchema.d.ts +34 -0
- package/dist/MultiLinearVariantRenderer/configSchema.js +13 -0
- package/dist/MultiLinearVariantRenderer/index.d.ts +2 -0
- package/dist/MultiLinearVariantRenderer/index.js +19 -0
- package/dist/MultiVariantBaseRenderer.d.ts +46 -0
- package/dist/MultiVariantBaseRenderer.js +39 -0
- package/dist/StructuralVariantChordRenderer/Chord.d.ts +2 -2
- package/dist/StructuralVariantChordRenderer/Chord.js +5 -9
- package/dist/StructuralVariantChordRenderer/ReactComponent.d.ts +3 -3
- package/dist/StructuralVariantChordRenderer/ReactComponent.js +0 -1
- package/dist/StructuralVariantChordRenderer/configSchema.d.ts +0 -9
- package/dist/StructuralVariantChordRenderer/configSchema.js +1 -13
- package/dist/StructuralVariantChordRenderer/index.d.ts +1 -1
- package/dist/StructuralVariantChordRenderer/index.js +1 -1
- package/dist/Tooltip.d.ts +19 -0
- package/dist/Tooltip.js +58 -0
- package/dist/VariantFeatureWidget/AnnotGrid.d.ts +1 -1
- package/dist/VariantFeatureWidget/AnnotGrid.js +2 -2
- package/dist/VariantFeatureWidget/BreakendMultiLevelOptionDialog.js +0 -1
- package/dist/VariantFeatureWidget/BreakendSingleLevelOptionDialog.js +0 -1
- package/dist/VariantFeatureWidget/LaunchBreakendPanel.d.ts +2 -2
- package/dist/VariantFeatureWidget/LaunchBreakendPanel.js +15 -19
- package/dist/VariantFeatureWidget/VariantAnnotationTable.js +1 -1
- package/dist/VariantFeatureWidget/VariantFeatureWidget.d.ts +1 -1
- package/dist/VariantFeatureWidget/VariantFeatureWidget.js +4 -6
- package/dist/VariantFeatureWidget/VariantSampleGrid.d.ts +1 -1
- package/dist/VariantFeatureWidget/VariantSampleGrid.js +9 -13
- package/dist/VariantFeatureWidget/index.d.ts +1 -1
- package/dist/VariantFeatureWidget/index.js +1 -1
- package/dist/VariantFeatureWidget/stateModelFactory.d.ts +3 -3
- package/dist/VariantFeatureWidget/stateModelFactory.js +1 -1
- package/dist/VariantRPC/MultiVariantGetGenotypeMatrix.d.ts +17 -0
- package/dist/VariantRPC/MultiVariantGetGenotypeMatrix.js +67 -0
- package/dist/VariantRPC/MultiVariantGetSimplifiedFeatures.d.ts +21 -0
- package/dist/VariantRPC/MultiVariantGetSimplifiedFeatures.js +63 -0
- package/dist/VariantRPC/MultiVariantGetSources.d.ts +14 -0
- package/dist/VariantRPC/MultiVariantGetSources.js +22 -0
- package/dist/VariantTrack/configSchema.d.ts +2 -3
- package/dist/VariantTrack/configSchema.js +6 -13
- package/dist/VariantTrack/index.d.ts +1 -1
- package/dist/VcfAdapter/VcfAdapter.d.ts +3 -2
- package/dist/VcfAdapter/VcfAdapter.js +7 -12
- package/dist/VcfAdapter/configSchema.d.ts +0 -3
- package/dist/VcfAdapter/configSchema.js +1 -7
- package/dist/VcfAdapter/index.d.ts +1 -1
- package/dist/VcfFeature/index.d.ts +5 -29
- package/dist/VcfFeature/index.js +35 -26
- package/dist/VcfFeature/util.d.ts +1 -4
- package/dist/VcfFeature/util.js +0 -12
- package/dist/VcfTabixAdapter/VcfTabixAdapter.d.ts +7 -3
- package/dist/VcfTabixAdapter/VcfTabixAdapter.js +10 -5
- package/dist/VcfTabixAdapter/configSchema.d.ts +0 -9
- package/dist/VcfTabixAdapter/configSchema.js +2 -14
- package/dist/VcfTabixAdapter/index.d.ts +1 -1
- package/dist/configSchema.d.ts +34 -0
- package/dist/configSchema.js +44 -0
- package/dist/extensionPoints.d.ts +1 -1
- package/dist/getMultiVariantFeaturesAutorun.d.ts +19 -0
- package/dist/getMultiVariantFeaturesAutorun.js +40 -0
- package/dist/getMultiVariantSourcesAutorun.d.ts +16 -0
- package/dist/getMultiVariantSourcesAutorun.js +37 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -4
- package/dist/shared/BulkEditPanel.d.ts +6 -0
- package/dist/shared/BulkEditPanel.js +103 -0
- package/dist/shared/ClusterDialog.d.ts +12 -0
- package/dist/shared/ClusterDialog.js +150 -0
- package/dist/shared/ColorLegend.d.ts +11 -0
- package/dist/shared/ColorLegend.js +24 -0
- package/dist/shared/DraggableDialog.d.ts +6 -0
- package/dist/shared/DraggableDialog.js +62 -0
- package/dist/shared/LegendBar.d.ts +18 -0
- package/dist/shared/LegendBar.js +38 -0
- package/dist/shared/MAFFilterDialog.d.ts +9 -0
- package/dist/shared/MAFFilterDialog.js +56 -0
- package/dist/shared/RectBg.d.ts +9 -0
- package/dist/shared/RectBg.js +12 -0
- package/dist/shared/RowPalettizer.d.ts +6 -0
- package/dist/shared/RowPalettizer.js +38 -0
- package/dist/shared/SetColorDialog.d.ts +12 -0
- package/dist/shared/SetColorDialog.js +94 -0
- package/dist/shared/SetMinMaxDialog.d.ts +11 -0
- package/dist/shared/SetMinMaxDialog.js +56 -0
- package/dist/shared/SharedVariantConfigSchema.d.ts +66 -0
- package/dist/shared/SharedVariantConfigSchema.js +56 -0
- package/dist/shared/SharedVariantMixin.d.ts +309 -0
- package/dist/shared/SharedVariantMixin.js +58 -0
- package/dist/shared/SourcesGrid.d.ts +8 -0
- package/dist/shared/SourcesGrid.js +143 -0
- package/dist/shared/Tooltip.d.ts +18 -0
- package/dist/shared/Tooltip.js +38 -0
- package/dist/shared/util.d.ts +10 -0
- package/dist/shared/util.js +32 -0
- package/dist/util.d.ts +11 -0
- package/dist/util.js +53 -0
- package/esm/ChordVariantDisplay/index.d.ts +1 -1
- package/esm/ChordVariantDisplay/index.js +1 -2
- package/esm/ChordVariantDisplay/models/configSchema.d.ts +1 -4
- package/esm/ChordVariantDisplay/models/configSchema.js +1 -10
- package/esm/ChordVariantDisplay/models/stateModelFactory.d.ts +9 -27
- package/esm/ChordVariantDisplay/models/stateModelFactory.js +3 -24
- package/esm/LinearVariantDisplay/configSchema.d.ts +2 -2
- package/esm/LinearVariantDisplay/configSchema.js +1 -10
- package/esm/LinearVariantDisplay/index.d.ts +1 -1
- package/esm/LinearVariantDisplay/index.js +2 -2
- package/esm/LinearVariantDisplay/model.d.ts +8 -38
- package/esm/LinearVariantDisplay/model.js +2 -18
- package/esm/MultiLinearVariantDisplay/components/VariantDisplayComponent.d.ts +6 -0
- package/esm/MultiLinearVariantDisplay/components/VariantDisplayComponent.js +45 -0
- package/esm/MultiLinearVariantDisplay/configSchema.d.ts +80 -0
- package/esm/MultiLinearVariantDisplay/configSchema.js +24 -0
- package/esm/MultiLinearVariantDisplay/index.d.ts +2 -0
- package/esm/MultiLinearVariantDisplay/index.js +18 -0
- package/esm/MultiLinearVariantDisplay/model.d.ts +278 -0
- package/esm/MultiLinearVariantDisplay/model.js +206 -0
- package/esm/MultiLinearVariantDisplay/renderSvg.d.ts +4 -0
- package/esm/MultiLinearVariantDisplay/renderSvg.js +12 -0
- package/esm/MultiLinearVariantMatrixDisplay/components/LinesConnectingMatrixToGenomicPosition.d.ts +7 -0
- package/esm/MultiLinearVariantMatrixDisplay/components/LinesConnectingMatrixToGenomicPosition.js +37 -0
- package/esm/MultiLinearVariantMatrixDisplay/components/VariantDisplayComponent.d.ts +6 -0
- package/esm/MultiLinearVariantMatrixDisplay/components/VariantDisplayComponent.js +53 -0
- package/esm/MultiLinearVariantMatrixDisplay/configSchema.d.ts +37 -0
- package/esm/MultiLinearVariantMatrixDisplay/configSchema.js +16 -0
- package/esm/MultiLinearVariantMatrixDisplay/index.d.ts +2 -0
- package/esm/MultiLinearVariantMatrixDisplay/index.js +18 -0
- package/esm/MultiLinearVariantMatrixDisplay/model.d.ts +274 -0
- package/esm/MultiLinearVariantMatrixDisplay/model.js +189 -0
- package/esm/MultiLinearVariantMatrixDisplay/renderSvg.d.ts +4 -0
- package/esm/MultiLinearVariantMatrixDisplay/renderSvg.js +15 -0
- package/esm/MultiLinearVariantMatrixRenderer/LinearVariantMatrixRenderer.d.ts +62 -0
- package/esm/MultiLinearVariantMatrixRenderer/LinearVariantMatrixRenderer.js +100 -0
- package/esm/MultiLinearVariantMatrixRenderer/components/LinearVariantMatrixRendering.d.ts +6 -0
- package/esm/MultiLinearVariantMatrixRenderer/components/LinearVariantMatrixRendering.js +7 -0
- package/esm/MultiLinearVariantMatrixRenderer/configSchema.d.ts +2 -0
- package/esm/MultiLinearVariantMatrixRenderer/configSchema.js +4 -0
- package/esm/MultiLinearVariantMatrixRenderer/index.d.ts +2 -0
- package/esm/MultiLinearVariantMatrixRenderer/index.js +14 -0
- package/esm/MultiLinearVariantRenderer/MultiVariantRenderer.d.ts +48 -0
- package/esm/MultiLinearVariantRenderer/MultiVariantRenderer.js +54 -0
- package/esm/MultiLinearVariantRenderer/MultiVariantRendering.d.ts +18 -0
- package/esm/MultiLinearVariantRenderer/MultiVariantRendering.js +18 -0
- package/esm/MultiLinearVariantRenderer/configSchema.d.ts +34 -0
- package/esm/MultiLinearVariantRenderer/configSchema.js +8 -0
- package/esm/MultiLinearVariantRenderer/index.d.ts +2 -0
- package/esm/MultiLinearVariantRenderer/index.js +13 -0
- package/esm/MultiVariantBaseRenderer.d.ts +46 -0
- package/esm/MultiVariantBaseRenderer.js +33 -0
- package/esm/StructuralVariantChordRenderer/Chord.d.ts +2 -2
- package/esm/StructuralVariantChordRenderer/Chord.js +5 -9
- package/esm/StructuralVariantChordRenderer/ReactComponent.d.ts +3 -3
- package/esm/StructuralVariantChordRenderer/ReactComponent.js +0 -1
- package/esm/StructuralVariantChordRenderer/configSchema.d.ts +0 -9
- package/esm/StructuralVariantChordRenderer/configSchema.js +1 -13
- package/esm/StructuralVariantChordRenderer/index.d.ts +1 -1
- package/esm/StructuralVariantChordRenderer/index.js +1 -1
- package/esm/Tooltip.d.ts +19 -0
- package/esm/Tooltip.js +30 -0
- package/esm/VariantFeatureWidget/AnnotGrid.d.ts +1 -1
- package/esm/VariantFeatureWidget/AnnotGrid.js +2 -2
- package/esm/VariantFeatureWidget/BreakendMultiLevelOptionDialog.js +0 -1
- package/esm/VariantFeatureWidget/BreakendSingleLevelOptionDialog.js +0 -1
- package/esm/VariantFeatureWidget/LaunchBreakendPanel.d.ts +2 -2
- package/esm/VariantFeatureWidget/LaunchBreakendPanel.js +15 -19
- package/esm/VariantFeatureWidget/VariantAnnotationTable.js +1 -1
- package/esm/VariantFeatureWidget/VariantFeatureWidget.d.ts +1 -1
- package/esm/VariantFeatureWidget/VariantFeatureWidget.js +5 -7
- package/esm/VariantFeatureWidget/VariantSampleGrid.d.ts +1 -1
- package/esm/VariantFeatureWidget/VariantSampleGrid.js +10 -14
- package/esm/VariantFeatureWidget/index.d.ts +1 -1
- package/esm/VariantFeatureWidget/index.js +1 -1
- package/esm/VariantFeatureWidget/stateModelFactory.d.ts +3 -3
- package/esm/VariantFeatureWidget/stateModelFactory.js +1 -1
- package/esm/VariantRPC/MultiVariantGetGenotypeMatrix.d.ts +17 -0
- package/esm/VariantRPC/MultiVariantGetGenotypeMatrix.js +60 -0
- package/esm/VariantRPC/MultiVariantGetSimplifiedFeatures.d.ts +21 -0
- package/esm/VariantRPC/MultiVariantGetSimplifiedFeatures.js +56 -0
- package/esm/VariantRPC/MultiVariantGetSources.d.ts +14 -0
- package/esm/VariantRPC/MultiVariantGetSources.js +15 -0
- package/esm/VariantTrack/configSchema.d.ts +2 -3
- package/esm/VariantTrack/configSchema.js +5 -13
- package/esm/VariantTrack/index.d.ts +1 -1
- package/esm/VcfAdapter/VcfAdapter.d.ts +3 -2
- package/esm/VcfAdapter/VcfAdapter.js +9 -14
- package/esm/VcfAdapter/configSchema.d.ts +0 -3
- package/esm/VcfAdapter/configSchema.js +1 -7
- package/esm/VcfAdapter/index.d.ts +1 -1
- package/esm/VcfFeature/index.d.ts +5 -29
- package/esm/VcfFeature/index.js +35 -26
- package/esm/VcfFeature/util.d.ts +1 -4
- package/esm/VcfFeature/util.js +0 -12
- package/esm/VcfTabixAdapter/VcfTabixAdapter.d.ts +7 -3
- package/esm/VcfTabixAdapter/VcfTabixAdapter.js +11 -6
- package/esm/VcfTabixAdapter/configSchema.d.ts +0 -9
- package/esm/VcfTabixAdapter/configSchema.js +2 -14
- package/esm/VcfTabixAdapter/index.d.ts +1 -1
- package/esm/configSchema.d.ts +34 -0
- package/esm/configSchema.js +42 -0
- package/esm/extensionPoints.d.ts +1 -1
- package/esm/extensionPoints.js +1 -1
- package/esm/getMultiVariantFeaturesAutorun.d.ts +19 -0
- package/esm/getMultiVariantFeaturesAutorun.js +37 -0
- package/esm/getMultiVariantSourcesAutorun.d.ts +16 -0
- package/esm/getMultiVariantSourcesAutorun.js +34 -0
- package/esm/index.d.ts +1 -1
- package/esm/index.js +18 -4
- package/esm/shared/BulkEditPanel.d.ts +6 -0
- package/esm/shared/BulkEditPanel.js +77 -0
- package/esm/shared/ClusterDialog.d.ts +12 -0
- package/esm/shared/ClusterDialog.js +121 -0
- package/esm/shared/ColorLegend.d.ts +11 -0
- package/esm/shared/ColorLegend.js +19 -0
- package/esm/shared/DraggableDialog.d.ts +6 -0
- package/esm/shared/DraggableDialog.js +34 -0
- package/esm/shared/LegendBar.d.ts +18 -0
- package/esm/shared/LegendBar.js +32 -0
- package/esm/shared/MAFFilterDialog.d.ts +9 -0
- package/esm/shared/MAFFilterDialog.js +31 -0
- package/esm/shared/RectBg.d.ts +9 -0
- package/esm/shared/RectBg.js +7 -0
- package/esm/shared/RowPalettizer.d.ts +6 -0
- package/esm/shared/RowPalettizer.js +32 -0
- package/esm/shared/SetColorDialog.d.ts +12 -0
- package/esm/shared/SetColorDialog.js +65 -0
- package/esm/shared/SetMinMaxDialog.d.ts +11 -0
- package/esm/shared/SetMinMaxDialog.js +30 -0
- package/esm/shared/SharedVariantConfigSchema.d.ts +66 -0
- package/esm/shared/SharedVariantConfigSchema.js +53 -0
- package/esm/shared/SharedVariantMixin.d.ts +309 -0
- package/esm/shared/SharedVariantMixin.js +55 -0
- package/esm/shared/SourcesGrid.d.ts +8 -0
- package/esm/shared/SourcesGrid.js +115 -0
- package/esm/shared/Tooltip.d.ts +18 -0
- package/esm/shared/Tooltip.js +33 -0
- package/esm/shared/util.d.ts +10 -0
- package/esm/shared/util.js +28 -0
- package/esm/util.d.ts +11 -0
- package/esm/util.js +47 -0
- package/package.json +4 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = RowPalettizer;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const colors_1 = require("@jbrowse/core/ui/colors");
|
|
9
|
+
const material_1 = require("@mui/material");
|
|
10
|
+
const util_1 = require("../util");
|
|
11
|
+
function RowPalettizer({ setCurrLayout, currLayout, }) {
|
|
12
|
+
var _a;
|
|
13
|
+
return (react_1.default.createElement("div", null, Object.keys((_a = currLayout[0]) !== null && _a !== void 0 ? _a : [])
|
|
14
|
+
.filter(f => f !== 'name' && f !== 'color')
|
|
15
|
+
.map(r => {
|
|
16
|
+
return (react_1.default.createElement(material_1.Button, { key: r, onClick: () => {
|
|
17
|
+
const map = new Map();
|
|
18
|
+
for (const row of currLayout) {
|
|
19
|
+
const val = map.get(row[r]);
|
|
20
|
+
if (!val) {
|
|
21
|
+
map.set(row[r], 1);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
map.set(row[r], val + 1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const ret = Object.fromEntries([...map.entries()]
|
|
28
|
+
.sort((a, b) => a[1] - b[1])
|
|
29
|
+
.map((r, idx) => [r[0], colors_1.set1[idx] || (0, util_1.randomColor)(r[0])]));
|
|
30
|
+
setCurrLayout(currLayout.map(row => ({
|
|
31
|
+
...row,
|
|
32
|
+
color: ret[row[r]],
|
|
33
|
+
})));
|
|
34
|
+
} },
|
|
35
|
+
"Palettize ",
|
|
36
|
+
r));
|
|
37
|
+
})));
|
|
38
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Source } from '../util';
|
|
3
|
+
interface ReducedModel {
|
|
4
|
+
sources?: Source[];
|
|
5
|
+
setLayout: (s: Source[]) => void;
|
|
6
|
+
clearLayout: () => void;
|
|
7
|
+
}
|
|
8
|
+
export default function SetColorDialog({ model, handleClose, }: {
|
|
9
|
+
model: ReducedModel;
|
|
10
|
+
handleClose: () => void;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
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.default = SetColorDialog;
|
|
30
|
+
const react_1 = __importStar(require("react"));
|
|
31
|
+
const util_1 = require("@jbrowse/core/util");
|
|
32
|
+
const material_1 = require("@mui/material");
|
|
33
|
+
const mui_1 = require("tss-react/mui");
|
|
34
|
+
const DraggableDialog_1 = __importDefault(require("./DraggableDialog"));
|
|
35
|
+
const SourcesGrid_1 = __importDefault(require("./SourcesGrid"));
|
|
36
|
+
const BulkEditPanel_1 = __importDefault(require("./BulkEditPanel"));
|
|
37
|
+
const RowPalettizer_1 = __importDefault(require("./RowPalettizer"));
|
|
38
|
+
const useStyles = (0, mui_1.makeStyles)()({
|
|
39
|
+
content: {
|
|
40
|
+
minWidth: 800,
|
|
41
|
+
},
|
|
42
|
+
fr: {
|
|
43
|
+
float: 'right',
|
|
44
|
+
},
|
|
45
|
+
textAreaFont: {
|
|
46
|
+
fontFamily: 'Courier New',
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
function SetColorDialog({ model, handleClose, }) {
|
|
50
|
+
const { classes } = useStyles();
|
|
51
|
+
const { sources } = model;
|
|
52
|
+
const [showBulkEditor, setShowBulkEditor] = (0, react_1.useState)(false);
|
|
53
|
+
const [currLayout, setCurrLayout] = (0, react_1.useState)(sources || []);
|
|
54
|
+
const [showTips, setShowTips] = (0, util_1.useLocalStorage)('multivariant-showTips', false);
|
|
55
|
+
return (react_1.default.createElement(DraggableDialog_1.default, { open: true, onClose: handleClose, maxWidth: "xl", title: "Multi-variant color/arrangement editor" },
|
|
56
|
+
react_1.default.createElement(material_1.DialogContent, { className: classes.content },
|
|
57
|
+
react_1.default.createElement("div", { className: classes.fr },
|
|
58
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", onClick: () => {
|
|
59
|
+
setShowTips(!showTips);
|
|
60
|
+
} }, showTips ? 'Hide tips' : 'Show tips'),
|
|
61
|
+
react_1.default.createElement(material_1.Button, { color: "secondary", variant: "contained", onClick: () => {
|
|
62
|
+
setShowBulkEditor(!showBulkEditor);
|
|
63
|
+
} }, showBulkEditor ? 'Hide bulk row editor' : 'Show Bulk row editor')),
|
|
64
|
+
react_1.default.createElement("br", null),
|
|
65
|
+
showTips ? react_1.default.createElement(HelpfulTips, null) : null,
|
|
66
|
+
showBulkEditor ? (react_1.default.createElement(BulkEditPanel_1.default, { currLayout: currLayout, setCurrLayout: setCurrLayout })) : null,
|
|
67
|
+
react_1.default.createElement(RowPalettizer_1.default, { currLayout: currLayout, setCurrLayout: setCurrLayout }),
|
|
68
|
+
react_1.default.createElement(SourcesGrid_1.default, { rows: currLayout, onChange: setCurrLayout, showTips: showTips })),
|
|
69
|
+
react_1.default.createElement(material_1.DialogActions, null,
|
|
70
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", type: "submit", color: "inherit", onClick: () => {
|
|
71
|
+
model.clearLayout();
|
|
72
|
+
setCurrLayout(model.sources || []);
|
|
73
|
+
} }, "Clear custom settings"),
|
|
74
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
75
|
+
handleClose();
|
|
76
|
+
setCurrLayout([...(model.sources || [])]);
|
|
77
|
+
} }, "Cancel"),
|
|
78
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", color: "primary", type: "submit", onClick: () => {
|
|
79
|
+
model.setLayout(currLayout);
|
|
80
|
+
handleClose();
|
|
81
|
+
} }, "Submit"))));
|
|
82
|
+
}
|
|
83
|
+
function HelpfulTips() {
|
|
84
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
85
|
+
"Helpful tips",
|
|
86
|
+
react_1.default.createElement("ul", null,
|
|
87
|
+
react_1.default.createElement("li", null, "You can select rows in the table with the checkboxes"),
|
|
88
|
+
react_1.default.createElement("li", null, "Multi-select is enabled with shift-click and control-click"),
|
|
89
|
+
react_1.default.createElement("li", null, "The \"Move selected items up/down\" can re-arrange subtracks"),
|
|
90
|
+
react_1.default.createElement("li", null, "Sorting the data grid itself can also re-arrange subtracks"),
|
|
91
|
+
react_1.default.createElement("li", null, "Changes are applied when you hit Submit"),
|
|
92
|
+
react_1.default.createElement("li", null, "You can click and drag the dialog box to move it on the screen"),
|
|
93
|
+
react_1.default.createElement("li", null, "Columns in the table can be hidden using a vertical '...' menu on the right side of each column"))));
|
|
94
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function SetMinMaxDialog(props: {
|
|
3
|
+
model: {
|
|
4
|
+
minScore: number;
|
|
5
|
+
maxScore: number;
|
|
6
|
+
scaleType: string;
|
|
7
|
+
setMinScore: (arg?: number) => void;
|
|
8
|
+
setMaxScore: (arg?: number) => void;
|
|
9
|
+
};
|
|
10
|
+
handleClose: () => void;
|
|
11
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.default = SetMinMaxDialog;
|
|
27
|
+
const react_1 = __importStar(require("react"));
|
|
28
|
+
const ui_1 = require("@jbrowse/core/ui");
|
|
29
|
+
const material_1 = require("@mui/material");
|
|
30
|
+
function SetMinMaxDialog(props) {
|
|
31
|
+
const { model, handleClose } = props;
|
|
32
|
+
const { minScore, maxScore, scaleType } = model;
|
|
33
|
+
const [min, setMin] = (0, react_1.useState)(`${minScore !== Number.MIN_VALUE ? minScore : ''}`);
|
|
34
|
+
const [max, setMax] = (0, react_1.useState)(`${maxScore !== Number.MAX_VALUE ? maxScore : ''}`);
|
|
35
|
+
const ok = min !== '' && max !== '' && !Number.isNaN(+min) && !Number.isNaN(+max)
|
|
36
|
+
? +max > +min
|
|
37
|
+
: true;
|
|
38
|
+
const logOk = scaleType === 'log' && min !== '' && !Number.isNaN(+min) ? +min > 0 : true;
|
|
39
|
+
return (react_1.default.createElement(ui_1.Dialog, { open: true, onClose: handleClose, title: "Set min/max score for track" },
|
|
40
|
+
react_1.default.createElement(material_1.DialogContent, null,
|
|
41
|
+
react_1.default.createElement(material_1.Typography, null, "Enter min/max score: "),
|
|
42
|
+
!ok ? (react_1.default.createElement(material_1.Typography, { color: "error" }, "Max is greater than or equal to min")) : null,
|
|
43
|
+
!logOk ? (react_1.default.createElement(material_1.Typography, { color: "error" }, "Min score should be greater than 0 for log scale")) : null,
|
|
44
|
+
react_1.default.createElement(material_1.TextField, { value: min, onChange: event => {
|
|
45
|
+
setMin(event.target.value);
|
|
46
|
+
}, placeholder: "Enter min score" }),
|
|
47
|
+
react_1.default.createElement(material_1.TextField, { value: max, onChange: event => {
|
|
48
|
+
setMax(event.target.value);
|
|
49
|
+
}, placeholder: "Enter max score" })),
|
|
50
|
+
react_1.default.createElement(material_1.DialogActions, null,
|
|
51
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", color: "primary", type: "submit", style: { marginLeft: 20 }, disabled: !ok, onClick: () => {
|
|
52
|
+
model.setMinScore(min !== '' && !Number.isNaN(+min) ? +min : undefined);
|
|
53
|
+
model.setMaxScore(max !== '' && !Number.isNaN(+max) ? +max : undefined);
|
|
54
|
+
handleClose();
|
|
55
|
+
} }, "Submit"))));
|
|
56
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export default function sharedVariantConfigFactory(): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
autoscale: {
|
|
3
|
+
type: string;
|
|
4
|
+
defaultValue: string;
|
|
5
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
minimalTicks: {
|
|
9
|
+
type: string;
|
|
10
|
+
defaultValue: boolean;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
minScore: {
|
|
14
|
+
type: string;
|
|
15
|
+
defaultValue: number;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
maxScore: {
|
|
19
|
+
type: string;
|
|
20
|
+
description: string;
|
|
21
|
+
defaultValue: number;
|
|
22
|
+
};
|
|
23
|
+
numStdDev: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
defaultValue: number;
|
|
27
|
+
};
|
|
28
|
+
scaleType: {
|
|
29
|
+
type: string;
|
|
30
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
31
|
+
description: string;
|
|
32
|
+
defaultValue: string;
|
|
33
|
+
};
|
|
34
|
+
inverted: {
|
|
35
|
+
type: string;
|
|
36
|
+
description: string;
|
|
37
|
+
defaultValue: boolean;
|
|
38
|
+
};
|
|
39
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
40
|
+
maxFeatureScreenDensity: {
|
|
41
|
+
type: string;
|
|
42
|
+
description: string;
|
|
43
|
+
defaultValue: number;
|
|
44
|
+
};
|
|
45
|
+
fetchSizeLimit: {
|
|
46
|
+
type: string;
|
|
47
|
+
defaultValue: number;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
height: {
|
|
51
|
+
type: string;
|
|
52
|
+
defaultValue: number;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
mouseover: {
|
|
56
|
+
type: string;
|
|
57
|
+
description: string;
|
|
58
|
+
defaultValue: string;
|
|
59
|
+
contextVariable: string[];
|
|
60
|
+
};
|
|
61
|
+
jexlFilters: {
|
|
62
|
+
type: string;
|
|
63
|
+
description: string;
|
|
64
|
+
defaultValue: never[];
|
|
65
|
+
};
|
|
66
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = sharedVariantConfigFactory;
|
|
4
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
+
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
6
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
7
|
+
function sharedVariantConfigFactory() {
|
|
8
|
+
return (0, configuration_1.ConfigurationSchema)('SharedVariantDisplay', {
|
|
9
|
+
autoscale: {
|
|
10
|
+
type: 'stringEnum',
|
|
11
|
+
defaultValue: 'local',
|
|
12
|
+
model: mobx_state_tree_1.types.enumeration('Autoscale type', [
|
|
13
|
+
'global',
|
|
14
|
+
'local',
|
|
15
|
+
'globalsd',
|
|
16
|
+
'localsd',
|
|
17
|
+
'zscore',
|
|
18
|
+
]),
|
|
19
|
+
description: 'global/local using their min/max values or w/ standard deviations (globalsd/localsd)',
|
|
20
|
+
},
|
|
21
|
+
minimalTicks: {
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
defaultValue: false,
|
|
24
|
+
description: 'use the minimal amount of ticks',
|
|
25
|
+
},
|
|
26
|
+
minScore: {
|
|
27
|
+
type: 'number',
|
|
28
|
+
defaultValue: Number.MIN_VALUE,
|
|
29
|
+
description: 'minimum value for the y-scale',
|
|
30
|
+
},
|
|
31
|
+
maxScore: {
|
|
32
|
+
type: 'number',
|
|
33
|
+
description: 'maximum value for the y-scale',
|
|
34
|
+
defaultValue: Number.MAX_VALUE,
|
|
35
|
+
},
|
|
36
|
+
numStdDev: {
|
|
37
|
+
type: 'number',
|
|
38
|
+
description: 'number of standard deviations to use for autoscale types globalsd or localsd',
|
|
39
|
+
defaultValue: 3,
|
|
40
|
+
},
|
|
41
|
+
scaleType: {
|
|
42
|
+
type: 'stringEnum',
|
|
43
|
+
model: mobx_state_tree_1.types.enumeration('Scale type', ['linear', 'log']),
|
|
44
|
+
description: 'The type of scale to use',
|
|
45
|
+
defaultValue: 'linear',
|
|
46
|
+
},
|
|
47
|
+
inverted: {
|
|
48
|
+
type: 'boolean',
|
|
49
|
+
description: 'draw upside down',
|
|
50
|
+
defaultValue: false,
|
|
51
|
+
},
|
|
52
|
+
}, {
|
|
53
|
+
baseConfiguration: plugin_linear_genome_view_1.baseLinearDisplayConfigSchema,
|
|
54
|
+
explicitlyTyped: true,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
+
export default function SharedVariantMixin(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
4
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
5
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
7
|
+
} & {
|
|
8
|
+
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
9
|
+
} & {
|
|
10
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
11
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
12
|
+
} & {
|
|
13
|
+
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
14
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
15
|
+
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
16
|
+
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
17
|
+
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
18
|
+
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
19
|
+
}, {
|
|
20
|
+
stopToken: string | undefined;
|
|
21
|
+
filled: boolean;
|
|
22
|
+
reactElement: React.ReactElement | undefined;
|
|
23
|
+
features: Map<string, Feature> | undefined;
|
|
24
|
+
layout: any;
|
|
25
|
+
status: string;
|
|
26
|
+
error: unknown;
|
|
27
|
+
message: string | undefined;
|
|
28
|
+
maxHeightReached: boolean;
|
|
29
|
+
ReactComponent: ({ model, }: {
|
|
30
|
+
model: {
|
|
31
|
+
error?: unknown;
|
|
32
|
+
reload: () => void;
|
|
33
|
+
message: React.ReactNode;
|
|
34
|
+
filled?: boolean;
|
|
35
|
+
status?: string;
|
|
36
|
+
reactElement?: React.ReactElement;
|
|
37
|
+
};
|
|
38
|
+
}) => import("react").JSX.Element | undefined;
|
|
39
|
+
renderProps: any;
|
|
40
|
+
} & {
|
|
41
|
+
doReload(): void;
|
|
42
|
+
afterAttach(): void;
|
|
43
|
+
setStatus(message: string): void;
|
|
44
|
+
setLoading(newStopToken: string): void;
|
|
45
|
+
setMessage(messageText: string): void;
|
|
46
|
+
setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
47
|
+
setError(error: unknown): void;
|
|
48
|
+
reload(): void;
|
|
49
|
+
beforeDestroy(): void;
|
|
50
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
51
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
52
|
+
maxFeatureScreenDensity: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
defaultValue: number;
|
|
56
|
+
};
|
|
57
|
+
fetchSizeLimit: {
|
|
58
|
+
type: string;
|
|
59
|
+
defaultValue: number;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
height: {
|
|
63
|
+
type: string;
|
|
64
|
+
defaultValue: number;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
mouseover: {
|
|
68
|
+
type: string;
|
|
69
|
+
description: string;
|
|
70
|
+
defaultValue: string;
|
|
71
|
+
contextVariable: string[];
|
|
72
|
+
};
|
|
73
|
+
jexlFilters: {
|
|
74
|
+
type: string;
|
|
75
|
+
description: string;
|
|
76
|
+
defaultValue: never[];
|
|
77
|
+
};
|
|
78
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
79
|
+
} & {
|
|
80
|
+
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
81
|
+
summaryScoreMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
82
|
+
rendererTypeNameState: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
83
|
+
configuration: AnyConfigurationSchemaType;
|
|
84
|
+
}, {
|
|
85
|
+
rendererTypeName: string;
|
|
86
|
+
error: unknown;
|
|
87
|
+
message: string | undefined;
|
|
88
|
+
} & {
|
|
89
|
+
readonly RenderingComponent: React.FC<{
|
|
90
|
+
model: {
|
|
91
|
+
id: string;
|
|
92
|
+
type: string;
|
|
93
|
+
rpcDriverName: string | undefined;
|
|
94
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
95
|
+
rendererTypeName: string;
|
|
96
|
+
error: unknown;
|
|
97
|
+
message: string | undefined;
|
|
98
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
99
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
100
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
101
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
102
|
+
}, {
|
|
103
|
+
rendererTypeName: string;
|
|
104
|
+
error: unknown;
|
|
105
|
+
message: string | undefined;
|
|
106
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
107
|
+
onHorizontalScroll?: () => void;
|
|
108
|
+
blockState?: Record<string, any>;
|
|
109
|
+
}>;
|
|
110
|
+
readonly DisplayBlurb: React.FC<{
|
|
111
|
+
model: {
|
|
112
|
+
id: string;
|
|
113
|
+
type: string;
|
|
114
|
+
rpcDriverName: string | undefined;
|
|
115
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
116
|
+
rendererTypeName: string;
|
|
117
|
+
error: unknown;
|
|
118
|
+
message: string | undefined;
|
|
119
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
120
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
121
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
122
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
123
|
+
}, {
|
|
124
|
+
rendererTypeName: string;
|
|
125
|
+
error: unknown;
|
|
126
|
+
message: string | undefined;
|
|
127
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
128
|
+
}> | null;
|
|
129
|
+
readonly adapterConfig: any;
|
|
130
|
+
readonly parentTrack: any;
|
|
131
|
+
renderProps(): any;
|
|
132
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
133
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
134
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
135
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
136
|
+
regionCannotBeRendered(): null;
|
|
137
|
+
} & {
|
|
138
|
+
setMessage(arg?: string): void;
|
|
139
|
+
setError(error?: unknown): void;
|
|
140
|
+
setRpcDriverName(rpcDriverName: string): void;
|
|
141
|
+
reload(): void;
|
|
142
|
+
} & {
|
|
143
|
+
scrollTop: number;
|
|
144
|
+
} & {
|
|
145
|
+
readonly height: number;
|
|
146
|
+
} & {
|
|
147
|
+
setScrollTop(scrollTop: number): void;
|
|
148
|
+
setHeight(displayHeight: number): number;
|
|
149
|
+
resizeHeight(distance: number): number;
|
|
150
|
+
} & {
|
|
151
|
+
featureDensityStatsP: undefined | Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
152
|
+
featureDensityStats: undefined | import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats;
|
|
153
|
+
currStatsBpPerPx: number;
|
|
154
|
+
} & {
|
|
155
|
+
readonly currentBytesRequested: number;
|
|
156
|
+
readonly currentFeatureScreenDensity: number;
|
|
157
|
+
readonly maxFeatureScreenDensity: any;
|
|
158
|
+
readonly featureDensityStatsReady: boolean;
|
|
159
|
+
readonly maxAllowableBytes: number;
|
|
160
|
+
} & {
|
|
161
|
+
afterAttach(): void;
|
|
162
|
+
} & {
|
|
163
|
+
setCurrStatsBpPerPx(n: number): void;
|
|
164
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
165
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
166
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
167
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
168
|
+
clearFeatureDensityStats(): void;
|
|
169
|
+
} & {
|
|
170
|
+
readonly regionTooLarge: boolean;
|
|
171
|
+
readonly regionTooLargeReason: string;
|
|
172
|
+
} & {
|
|
173
|
+
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
174
|
+
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
175
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
176
|
+
} & {
|
|
177
|
+
featureIdUnderMouse: undefined | string;
|
|
178
|
+
contextMenuFeature: undefined | Feature;
|
|
179
|
+
} & {
|
|
180
|
+
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
181
|
+
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
182
|
+
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
183
|
+
} & {
|
|
184
|
+
readonly renderDelay: number;
|
|
185
|
+
readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
|
|
186
|
+
readonly selectedFeatureId: string | undefined;
|
|
187
|
+
} & {
|
|
188
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
189
|
+
readonly featureUnderMouse: Feature | undefined;
|
|
190
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
191
|
+
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
192
|
+
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
193
|
+
} & {
|
|
194
|
+
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
195
|
+
deleteBlock(key: string): void;
|
|
196
|
+
selectFeature(feature: Feature): void;
|
|
197
|
+
navToFeature(feature: Feature): void;
|
|
198
|
+
clearFeatureSelection(): void;
|
|
199
|
+
setFeatureIdUnderMouse(feature?: string): void;
|
|
200
|
+
setContextMenuFeature(feature?: Feature): void;
|
|
201
|
+
} & {
|
|
202
|
+
reload(): Promise<void>;
|
|
203
|
+
} & {
|
|
204
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
205
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
206
|
+
renderProps(): any;
|
|
207
|
+
} & {
|
|
208
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
209
|
+
afterAttach(): void;
|
|
210
|
+
} & {
|
|
211
|
+
message: undefined | string;
|
|
212
|
+
} & {
|
|
213
|
+
selectFeature(feature: Feature): void;
|
|
214
|
+
setRendererType(val: string): void;
|
|
215
|
+
} & {
|
|
216
|
+
readonly adapterTypeName: any;
|
|
217
|
+
readonly rendererTypeNameSimple: any;
|
|
218
|
+
readonly filters: undefined;
|
|
219
|
+
} & {
|
|
220
|
+
readonly adapterCapabilities: string[];
|
|
221
|
+
} & {
|
|
222
|
+
reload(): Promise<void>;
|
|
223
|
+
}, {
|
|
224
|
+
type: string;
|
|
225
|
+
} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
226
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
227
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
228
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
229
|
+
} & {
|
|
230
|
+
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
231
|
+
} & {
|
|
232
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
233
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
234
|
+
} & {
|
|
235
|
+
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
236
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
237
|
+
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
238
|
+
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
239
|
+
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
240
|
+
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
241
|
+
}, {
|
|
242
|
+
stopToken: string | undefined;
|
|
243
|
+
filled: boolean;
|
|
244
|
+
reactElement: React.ReactElement | undefined;
|
|
245
|
+
features: Map<string, Feature> | undefined;
|
|
246
|
+
layout: any;
|
|
247
|
+
status: string;
|
|
248
|
+
error: unknown;
|
|
249
|
+
message: string | undefined;
|
|
250
|
+
maxHeightReached: boolean;
|
|
251
|
+
ReactComponent: ({ model, }: {
|
|
252
|
+
model: {
|
|
253
|
+
error?: unknown;
|
|
254
|
+
reload: () => void;
|
|
255
|
+
message: React.ReactNode;
|
|
256
|
+
filled?: boolean;
|
|
257
|
+
status?: string;
|
|
258
|
+
reactElement?: React.ReactElement;
|
|
259
|
+
};
|
|
260
|
+
}) => import("react").JSX.Element | undefined;
|
|
261
|
+
renderProps: any;
|
|
262
|
+
} & {
|
|
263
|
+
doReload(): void;
|
|
264
|
+
afterAttach(): void;
|
|
265
|
+
setStatus(message: string): void;
|
|
266
|
+
setLoading(newStopToken: string): void;
|
|
267
|
+
setMessage(messageText: string): void;
|
|
268
|
+
setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
269
|
+
setError(error: unknown): void;
|
|
270
|
+
reload(): void;
|
|
271
|
+
beforeDestroy(): void;
|
|
272
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
273
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
274
|
+
maxFeatureScreenDensity: {
|
|
275
|
+
type: string;
|
|
276
|
+
description: string;
|
|
277
|
+
defaultValue: number;
|
|
278
|
+
};
|
|
279
|
+
fetchSizeLimit: {
|
|
280
|
+
type: string;
|
|
281
|
+
defaultValue: number;
|
|
282
|
+
description: string;
|
|
283
|
+
};
|
|
284
|
+
height: {
|
|
285
|
+
type: string;
|
|
286
|
+
defaultValue: number;
|
|
287
|
+
description: string;
|
|
288
|
+
};
|
|
289
|
+
mouseover: {
|
|
290
|
+
type: string;
|
|
291
|
+
description: string;
|
|
292
|
+
defaultValue: string;
|
|
293
|
+
contextVariable: string[];
|
|
294
|
+
};
|
|
295
|
+
jexlFilters: {
|
|
296
|
+
type: string;
|
|
297
|
+
description: string;
|
|
298
|
+
defaultValue: never[];
|
|
299
|
+
};
|
|
300
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
301
|
+
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
|
|
302
|
+
type: string;
|
|
303
|
+
id: string;
|
|
304
|
+
configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
|
|
305
|
+
rpcDriverName: string | undefined;
|
|
306
|
+
heightPreConfig: number | undefined;
|
|
307
|
+
userBpPerPxLimit: number | undefined;
|
|
308
|
+
userByteSizeLimit: number | undefined;
|
|
309
|
+
} & import("mobx-state-tree")._NotCustomized>;
|