@jbrowse/plugin-variants 2.17.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +2 -2
- 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 +3 -5
- 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 +2 -2
- 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 +4 -6
- 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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function ChordVariantDisplayF(pluginManager: PluginManager): void;
|
|
@@ -4,9 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = ChordVariantDisplayF;
|
|
7
|
-
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
8
7
|
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
9
|
-
|
|
8
|
+
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
10
9
|
const configSchema_1 = __importDefault(require("./models/configSchema"));
|
|
11
10
|
const stateModelFactory_1 = __importDefault(require("./models/stateModelFactory"));
|
|
12
11
|
function ChordVariantDisplayF(pluginManager) {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
declare function stateModelFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
-
/**
|
|
4
|
-
* #slot
|
|
5
|
-
*/
|
|
6
3
|
renderer: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IAnyModelType, [undefined]>;
|
|
7
4
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
5
|
onChordClick: {
|
|
@@ -3,20 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
4
|
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
5
5
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
|
-
|
|
7
|
-
* #config ChordVariantDisplay
|
|
8
|
-
*/
|
|
9
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6
|
+
function x() { }
|
|
10
7
|
function stateModelFactory(pluginManager) {
|
|
11
8
|
return (0, configuration_1.ConfigurationSchema)('ChordVariantDisplay', {
|
|
12
|
-
/**
|
|
13
|
-
* #slot
|
|
14
|
-
*/
|
|
15
9
|
renderer: mobx_state_tree_1.types.optional(pluginManager.pluggableConfigSchemaType('renderer'), { type: 'StructuralVariantChordRenderer' }),
|
|
16
10
|
}, {
|
|
17
|
-
/**
|
|
18
|
-
* #baseConfiguration
|
|
19
|
-
*/
|
|
20
11
|
baseConfiguration: plugin_circular_view_1.baseChordDisplayConfig,
|
|
21
12
|
explicitlyTyped: true,
|
|
22
13
|
});
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
-
import { Feature } from '@jbrowse/core/util';
|
|
3
|
-
/**
|
|
4
|
-
* #stateModel ChordVariantDisplay
|
|
5
|
-
* extends
|
|
6
|
-
* - [BaseChordDisplay](../basechorddisplay)
|
|
7
|
-
*/
|
|
1
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
8
3
|
declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => import("mobx-state-tree").IModelType<{
|
|
9
4
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
10
5
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -21,13 +16,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
21
16
|
};
|
|
22
17
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
23
18
|
} & {
|
|
24
|
-
/**
|
|
25
|
-
* #property
|
|
26
|
-
*/
|
|
27
19
|
type: import("mobx-state-tree").ISimpleType<"ChordVariantDisplay">;
|
|
28
|
-
/**
|
|
29
|
-
* #property
|
|
30
|
-
*/
|
|
31
20
|
configuration: AnyConfigurationSchemaType;
|
|
32
21
|
}, {
|
|
33
22
|
rendererTypeName: string;
|
|
@@ -98,36 +87,29 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
98
87
|
} & {
|
|
99
88
|
onChordClick(feature: Feature): void;
|
|
100
89
|
} & {
|
|
101
|
-
readonly blockDefinitions: import("@jbrowse/plugin-circular-view/src/CircularView/
|
|
90
|
+
readonly blockDefinitions: import("@jbrowse/plugin-circular-view/src/CircularView/slices").Slice[];
|
|
102
91
|
renderProps(): any;
|
|
103
92
|
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType | undefined;
|
|
104
|
-
isCompatibleWithRenderer(renderer: import("@jbrowse/core/pluggableElementTypes").RendererType): renderer is import("@jbrowse/core/pluggableElementTypes").CircularChordRendererType;
|
|
105
93
|
readonly selectedFeatureId: string | undefined;
|
|
106
94
|
} & {
|
|
107
95
|
renderStarted(): void;
|
|
108
96
|
renderSuccess({ message, data, reactElement, html, renderingComponent, }: {
|
|
109
|
-
message
|
|
110
|
-
data
|
|
111
|
-
html
|
|
112
|
-
reactElement
|
|
113
|
-
renderingComponent
|
|
97
|
+
message?: string;
|
|
98
|
+
data?: any;
|
|
99
|
+
html?: string;
|
|
100
|
+
reactElement?: React.ReactElement;
|
|
101
|
+
renderingComponent?: import("@jbrowse/core/util").AnyReactComponentType;
|
|
114
102
|
}): void;
|
|
115
103
|
renderError(error: unknown): void;
|
|
116
104
|
setRefNameMap(refNameMap: Record<string, string>): void;
|
|
117
105
|
} & {
|
|
118
106
|
afterAttach(): void;
|
|
119
107
|
} & {
|
|
120
|
-
renderSvg(opts: import("@jbrowse/plugin-circular-view/src/CircularView/
|
|
108
|
+
renderSvg(opts: import("@jbrowse/plugin-circular-view/src/CircularView/model").ExportSvgOptions & {
|
|
121
109
|
theme?: import("@mui/material").ThemeOptions;
|
|
122
110
|
}): Promise<import("react").JSX.Element>;
|
|
123
111
|
} & {
|
|
124
|
-
/**
|
|
125
|
-
* #getter
|
|
126
|
-
*/
|
|
127
112
|
readonly rendererTypeName: any;
|
|
128
|
-
/**
|
|
129
|
-
* #method
|
|
130
|
-
*/
|
|
131
113
|
renderProps(): Record<string, unknown>;
|
|
132
114
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
133
115
|
export default stateModelFactory;
|
|
@@ -1,37 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
4
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
4
|
const util_1 = require("@jbrowse/core/util");
|
|
7
5
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* extends
|
|
11
|
-
* - [BaseChordDisplay](../basechorddisplay)
|
|
12
|
-
*/
|
|
6
|
+
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
7
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
13
8
|
const stateModelFactory = (configSchema) => {
|
|
14
9
|
return mobx_state_tree_1.types
|
|
15
10
|
.compose('ChordVariantDisplay', plugin_circular_view_1.BaseChordDisplayModel, mobx_state_tree_1.types.model({
|
|
16
|
-
/**
|
|
17
|
-
* #property
|
|
18
|
-
*/
|
|
19
11
|
type: mobx_state_tree_1.types.literal('ChordVariantDisplay'),
|
|
20
|
-
/**
|
|
21
|
-
* #property
|
|
22
|
-
*/
|
|
23
12
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
24
13
|
}))
|
|
25
14
|
.views(self => ({
|
|
26
|
-
/**
|
|
27
|
-
* #getter
|
|
28
|
-
*/
|
|
29
15
|
get rendererTypeName() {
|
|
30
16
|
return self.configuration.renderer.type;
|
|
31
17
|
},
|
|
32
|
-
/**
|
|
33
|
-
* #method
|
|
34
|
-
*/
|
|
35
18
|
renderProps() {
|
|
36
19
|
const view = (0, util_1.getContainingView)(self);
|
|
37
20
|
return {
|
|
@@ -49,8 +32,4 @@ const stateModelFactory = (configSchema) => {
|
|
|
49
32
|
},
|
|
50
33
|
}));
|
|
51
34
|
};
|
|
52
|
-
// http://localhost:3000/test_data/hs37d5.HG002-SequelII-CCS.sv.vcf.gz.tbi
|
|
53
|
-
// render request is for 1.5x the current viewing window
|
|
54
|
-
// tracks all have a height
|
|
55
|
-
//
|
|
56
35
|
exports.default = stateModelFactory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type { Instance } from 'mobx-state-tree';
|
|
3
3
|
export default function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
4
4
|
renderer: import("mobx-state-tree").IAnyModelType;
|
|
5
5
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
@@ -3,18 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = configSchemaF;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
5
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
6
|
-
|
|
7
|
-
* #config LinearVariantDisplay
|
|
8
|
-
* mostly empty, this display type is very much
|
|
9
|
-
* like a `FeatureTrack` with a `LinearBasicDisplay` except it has a custom
|
|
10
|
-
* feature details widget
|
|
11
|
-
*/
|
|
12
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6
|
+
function x() { }
|
|
13
7
|
function configSchemaF(pluginManager) {
|
|
14
8
|
return (0, configuration_1.ConfigurationSchema)('LinearVariantDisplay', {}, {
|
|
15
|
-
/**
|
|
16
|
-
* #baseConfiguration
|
|
17
|
-
*/
|
|
18
9
|
baseConfiguration: (0, plugin_linear_genome_view_1.linearBasicDisplayConfigSchemaFactory)(pluginManager),
|
|
19
10
|
explicitlyTyped: true,
|
|
20
11
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function LinearVariantDisplayF(pluginManager: PluginManager): void;
|
|
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = LinearVariantDisplayF;
|
|
7
|
-
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
8
7
|
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
9
|
-
const
|
|
8
|
+
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
10
9
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
10
|
+
const model_1 = __importDefault(require("./model"));
|
|
11
11
|
function LinearVariantDisplayF(pluginManager) {
|
|
12
12
|
pluginManager.addDisplayType(() => {
|
|
13
13
|
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* #stateModel LinearVariantDisplay
|
|
6
|
-
* similar to basic display, but provides custom widget on feature click
|
|
7
|
-
* extends
|
|
8
|
-
*
|
|
9
|
-
* - [LinearBasicDisplay](../linearbasicdisplay)
|
|
10
|
-
*/
|
|
1
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
+
import type { Instance } from 'mobx-state-tree';
|
|
11
4
|
export default function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
12
5
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
13
6
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -20,21 +13,12 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
20
13
|
} & {
|
|
21
14
|
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
22
15
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
23
|
-
region: import("mobx-state-tree").
|
|
24
|
-
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
25
|
-
start: import("mobx-state-tree").ISimpleType<number>;
|
|
26
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
27
|
-
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
28
|
-
} & {
|
|
29
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
30
|
-
}, {
|
|
31
|
-
setRefName(newRefName: string): void;
|
|
32
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
16
|
+
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
33
17
|
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
34
18
|
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
35
19
|
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
36
20
|
}, {
|
|
37
|
-
|
|
21
|
+
stopToken: string | undefined;
|
|
38
22
|
filled: boolean;
|
|
39
23
|
reactElement: React.ReactElement | undefined;
|
|
40
24
|
features: Map<string, Feature> | undefined;
|
|
@@ -58,15 +42,9 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
58
42
|
doReload(): void;
|
|
59
43
|
afterAttach(): void;
|
|
60
44
|
setStatus(message: string): void;
|
|
61
|
-
setLoading(
|
|
45
|
+
setLoading(newStopToken: string): void;
|
|
62
46
|
setMessage(messageText: string): void;
|
|
63
|
-
setRendered(props:
|
|
64
|
-
reactElement: React.ReactElement;
|
|
65
|
-
features: Map<string, Feature>;
|
|
66
|
-
layout: any;
|
|
67
|
-
maxHeightReached: boolean;
|
|
68
|
-
renderProps: any;
|
|
69
|
-
} | undefined): void;
|
|
47
|
+
setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
70
48
|
setError(error: unknown): void;
|
|
71
49
|
reload(): void;
|
|
72
50
|
beforeDestroy(): void;
|
|
@@ -108,13 +86,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
108
86
|
configuration: AnyConfigurationSchemaType;
|
|
109
87
|
jexlFilters: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>>;
|
|
110
88
|
} & {
|
|
111
|
-
/**
|
|
112
|
-
* #property
|
|
113
|
-
*/
|
|
114
89
|
type: import("mobx-state-tree").ISimpleType<"LinearVariantDisplay">;
|
|
115
|
-
/**
|
|
116
|
-
* #property
|
|
117
|
-
*/
|
|
118
90
|
configuration: AnyConfigurationSchemaType;
|
|
119
91
|
}, {
|
|
120
92
|
rendererTypeName: string;
|
|
@@ -205,6 +177,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
205
177
|
readonly regionTooLarge: boolean;
|
|
206
178
|
readonly regionTooLargeReason: string;
|
|
207
179
|
} & {
|
|
180
|
+
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
208
181
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
209
182
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
210
183
|
} & {
|
|
@@ -283,9 +256,6 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
283
256
|
};
|
|
284
257
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
285
258
|
} & {
|
|
286
|
-
/**
|
|
287
|
-
* #action
|
|
288
|
-
*/
|
|
289
259
|
selectFeature(feature: Feature): Promise<void>;
|
|
290
260
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
291
261
|
export type LinearVariantDisplayStateModel = ReturnType<typeof stateModelFactory>;
|
|
@@ -2,33 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = stateModelFactory;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
6
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
|
+
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
7
7
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
8
8
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
9
|
-
/**
|
|
10
|
-
* #stateModel LinearVariantDisplay
|
|
11
|
-
* similar to basic display, but provides custom widget on feature click
|
|
12
|
-
* extends
|
|
13
|
-
*
|
|
14
|
-
* - [LinearBasicDisplay](../linearbasicdisplay)
|
|
15
|
-
*/
|
|
16
9
|
function stateModelFactory(configSchema) {
|
|
17
10
|
return mobx_state_tree_1.types
|
|
18
11
|
.compose('LinearVariantDisplay', (0, plugin_linear_genome_view_1.linearBasicDisplayModelFactory)(configSchema), mobx_state_tree_1.types.model({
|
|
19
|
-
/**
|
|
20
|
-
* #property
|
|
21
|
-
*/
|
|
22
12
|
type: mobx_state_tree_1.types.literal('LinearVariantDisplay'),
|
|
23
|
-
/**
|
|
24
|
-
* #property
|
|
25
|
-
*/
|
|
26
13
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
27
14
|
}))
|
|
28
15
|
.actions(self => ({
|
|
29
|
-
/**
|
|
30
|
-
* #action
|
|
31
|
-
*/
|
|
32
16
|
async selectFeature(feature) {
|
|
33
17
|
const session = (0, util_1.getSession)(self);
|
|
34
18
|
if ((0, util_1.isSessionModelWithWidgets)(session)) {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MultiLinearVariantDisplayModel } from '../model';
|
|
3
|
+
declare const MultiLinearVariantDisplayComponent: (props: {
|
|
4
|
+
model: MultiLinearVariantDisplayModel;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export default MultiLinearVariantDisplayComponent;
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
const react_1 = __importStar(require("react"));
|
|
30
|
+
const ui_1 = require("@jbrowse/core/ui");
|
|
31
|
+
const BaseTooltip_1 = __importDefault(require("@jbrowse/core/ui/BaseTooltip"));
|
|
32
|
+
const util_1 = require("@jbrowse/core/util");
|
|
33
|
+
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
34
|
+
const mobx_react_1 = require("mobx-react");
|
|
35
|
+
const mui_1 = require("tss-react/mui");
|
|
36
|
+
const LegendBar_1 = __importDefault(require("../../shared/LegendBar"));
|
|
37
|
+
const useStyles = (0, mui_1.makeStyles)()({
|
|
38
|
+
cursor: {
|
|
39
|
+
pointerEvents: 'none',
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
const MultiLinearVariantDisplayComponent = (0, mobx_react_1.observer)(function (props) {
|
|
43
|
+
const { model } = props;
|
|
44
|
+
const { classes } = useStyles();
|
|
45
|
+
const { height, sources, rowHeight, scrollTop } = model;
|
|
46
|
+
const ref = (0, react_1.useRef)(null);
|
|
47
|
+
const [mouseY, setMouseY] = (0, react_1.useState)();
|
|
48
|
+
const [mouseX, setMouseX] = (0, react_1.useState)();
|
|
49
|
+
const { width } = (0, util_1.getContainingView)(model);
|
|
50
|
+
return (react_1.default.createElement("div", { ref: ref, onMouseMove: event => {
|
|
51
|
+
var _a;
|
|
52
|
+
const rect = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
53
|
+
const top = (rect === null || rect === void 0 ? void 0 : rect.top) || 0;
|
|
54
|
+
const left = (rect === null || rect === void 0 ? void 0 : rect.left) || 0;
|
|
55
|
+
setMouseY(event.clientY - top);
|
|
56
|
+
setMouseX(event.clientX - left);
|
|
57
|
+
}, onMouseLeave: () => {
|
|
58
|
+
setMouseY(undefined);
|
|
59
|
+
setMouseX(undefined);
|
|
60
|
+
} },
|
|
61
|
+
react_1.default.createElement(plugin_linear_genome_view_1.BaseLinearDisplayComponent, { ...props }),
|
|
62
|
+
react_1.default.createElement(LegendBar_1.default, { model: model }),
|
|
63
|
+
mouseY && sources ? (react_1.default.createElement("div", { style: { position: 'relative' } },
|
|
64
|
+
react_1.default.createElement("svg", { className: classes.cursor, width: width, height: height, style: { position: 'absolute', top: scrollTop } },
|
|
65
|
+
react_1.default.createElement("line", { x1: 0, x2: width, y1: mouseY - scrollTop, y2: mouseY - scrollTop, stroke: "black" }),
|
|
66
|
+
react_1.default.createElement("line", { x1: mouseX, x2: mouseX, y1: 0, y2: height, stroke: "black" })),
|
|
67
|
+
react_1.default.createElement(BaseTooltip_1.default, null,
|
|
68
|
+
react_1.default.createElement(ui_1.SanitizedHTML, { html: Object.entries(sources[Math.floor(mouseY / rowHeight)] || {})
|
|
69
|
+
.filter(([key]) => key !== 'color')
|
|
70
|
+
.map(([key, value]) => `${key}:${value}`)
|
|
71
|
+
.join('\n') })))) : null));
|
|
72
|
+
});
|
|
73
|
+
exports.default = MultiLinearVariantDisplayComponent;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
export default function VariantConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
defaultRendering: {
|
|
4
|
+
type: string;
|
|
5
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
};
|
|
8
|
+
renderers: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
9
|
+
MultiVariantRenderer: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
10
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
11
|
+
height: {
|
|
12
|
+
type: string;
|
|
13
|
+
defaultValue: number;
|
|
14
|
+
};
|
|
15
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
16
|
+
autoscale: {
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
minimalTicks: {
|
|
23
|
+
type: string;
|
|
24
|
+
defaultValue: boolean;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
minScore: {
|
|
28
|
+
type: string;
|
|
29
|
+
defaultValue: number;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
maxScore: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
defaultValue: number;
|
|
36
|
+
};
|
|
37
|
+
numStdDev: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
defaultValue: number;
|
|
41
|
+
};
|
|
42
|
+
scaleType: {
|
|
43
|
+
type: string;
|
|
44
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
45
|
+
description: string;
|
|
46
|
+
defaultValue: string;
|
|
47
|
+
};
|
|
48
|
+
inverted: {
|
|
49
|
+
type: string;
|
|
50
|
+
description: string;
|
|
51
|
+
defaultValue: boolean;
|
|
52
|
+
};
|
|
53
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
54
|
+
maxFeatureScreenDensity: {
|
|
55
|
+
type: string;
|
|
56
|
+
description: string;
|
|
57
|
+
defaultValue: number;
|
|
58
|
+
};
|
|
59
|
+
fetchSizeLimit: {
|
|
60
|
+
type: string;
|
|
61
|
+
defaultValue: number;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
height: {
|
|
65
|
+
type: string;
|
|
66
|
+
defaultValue: number;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
mouseover: {
|
|
70
|
+
type: string;
|
|
71
|
+
description: string;
|
|
72
|
+
defaultValue: string;
|
|
73
|
+
contextVariable: string[];
|
|
74
|
+
};
|
|
75
|
+
jexlFilters: {
|
|
76
|
+
type: string;
|
|
77
|
+
description: string;
|
|
78
|
+
defaultValue: never[];
|
|
79
|
+
};
|
|
80
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 = VariantConfigFactory;
|
|
7
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
9
|
+
const SharedVariantConfigSchema_1 = __importDefault(require("../shared/SharedVariantConfigSchema"));
|
|
10
|
+
function x() { }
|
|
11
|
+
function VariantConfigFactory(pluginManager) {
|
|
12
|
+
const MultiVariantRendererConfigSchema = pluginManager.getRendererType('MultiVariantRenderer').configSchema;
|
|
13
|
+
return (0, configuration_1.ConfigurationSchema)('MultiLinearVariantDisplay', {
|
|
14
|
+
defaultRendering: {
|
|
15
|
+
type: 'stringEnum',
|
|
16
|
+
model: mobx_state_tree_1.types.enumeration('Rendering', ['multivariant']),
|
|
17
|
+
defaultValue: 'multivariant',
|
|
18
|
+
},
|
|
19
|
+
renderers: (0, configuration_1.ConfigurationSchema)('RenderersConfiguration', {
|
|
20
|
+
MultiVariantRenderer: MultiVariantRendererConfigSchema,
|
|
21
|
+
}),
|
|
22
|
+
height: {
|
|
23
|
+
type: 'number',
|
|
24
|
+
defaultValue: 200,
|
|
25
|
+
},
|
|
26
|
+
}, {
|
|
27
|
+
baseConfiguration: (0, SharedVariantConfigSchema_1.default)(),
|
|
28
|
+
explicitlyTyped: true,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 = MultiLinearVariantDisplayF;
|
|
30
|
+
const react_1 = require("react");
|
|
31
|
+
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
32
|
+
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
33
|
+
const model_1 = __importDefault(require("./model"));
|
|
34
|
+
function MultiLinearVariantDisplayF(pluginManager) {
|
|
35
|
+
pluginManager.addDisplayType(() => {
|
|
36
|
+
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
37
|
+
return new DisplayType_1.default({
|
|
38
|
+
name: 'MultiLinearVariantDisplay',
|
|
39
|
+
displayName: 'Multi-variant display (regular)',
|
|
40
|
+
configSchema,
|
|
41
|
+
stateModel: (0, model_1.default)(pluginManager, configSchema),
|
|
42
|
+
trackType: 'VariantTrack',
|
|
43
|
+
viewType: 'LinearGenomeView',
|
|
44
|
+
ReactComponent: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/VariantDisplayComponent')))),
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
}
|