@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
|
@@ -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>;
|
|
@@ -1,31 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
|
|
2
|
+
import { getContainingTrack, getContainingView, getSession, isSessionModelWithWidgets, } from '@jbrowse/core/util';
|
|
2
3
|
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
3
|
-
import { getContainingTrack, getSession, getContainingView, isSessionModelWithWidgets, } from '@jbrowse/core/util';
|
|
4
4
|
import { linearBasicDisplayModelFactory } from '@jbrowse/plugin-linear-genome-view';
|
|
5
5
|
import { types } from 'mobx-state-tree';
|
|
6
|
-
/**
|
|
7
|
-
* #stateModel LinearVariantDisplay
|
|
8
|
-
* similar to basic display, but provides custom widget on feature click
|
|
9
|
-
* extends
|
|
10
|
-
*
|
|
11
|
-
* - [LinearBasicDisplay](../linearbasicdisplay)
|
|
12
|
-
*/
|
|
13
6
|
export default function stateModelFactory(configSchema) {
|
|
14
7
|
return types
|
|
15
8
|
.compose('LinearVariantDisplay', linearBasicDisplayModelFactory(configSchema), types.model({
|
|
16
|
-
/**
|
|
17
|
-
* #property
|
|
18
|
-
*/
|
|
19
9
|
type: types.literal('LinearVariantDisplay'),
|
|
20
|
-
/**
|
|
21
|
-
* #property
|
|
22
|
-
*/
|
|
23
10
|
configuration: ConfigurationReference(configSchema),
|
|
24
11
|
}))
|
|
25
12
|
.actions(self => ({
|
|
26
|
-
/**
|
|
27
|
-
* #action
|
|
28
|
-
*/
|
|
29
13
|
async selectFeature(feature) {
|
|
30
14
|
const session = getSession(self);
|
|
31
15
|
if (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,45 @@
|
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
2
|
+
import { SanitizedHTML } from '@jbrowse/core/ui';
|
|
3
|
+
import BaseTooltip from '@jbrowse/core/ui/BaseTooltip';
|
|
4
|
+
import { getContainingView } from '@jbrowse/core/util';
|
|
5
|
+
import { BaseLinearDisplayComponent } from '@jbrowse/plugin-linear-genome-view';
|
|
6
|
+
import { observer } from 'mobx-react';
|
|
7
|
+
import { makeStyles } from 'tss-react/mui';
|
|
8
|
+
import LegendBar from '../../shared/LegendBar';
|
|
9
|
+
const useStyles = makeStyles()({
|
|
10
|
+
cursor: {
|
|
11
|
+
pointerEvents: 'none',
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
const MultiLinearVariantDisplayComponent = observer(function (props) {
|
|
15
|
+
const { model } = props;
|
|
16
|
+
const { classes } = useStyles();
|
|
17
|
+
const { height, sources, rowHeight, scrollTop } = model;
|
|
18
|
+
const ref = useRef(null);
|
|
19
|
+
const [mouseY, setMouseY] = useState();
|
|
20
|
+
const [mouseX, setMouseX] = useState();
|
|
21
|
+
const { width } = getContainingView(model);
|
|
22
|
+
return (React.createElement("div", { ref: ref, onMouseMove: event => {
|
|
23
|
+
var _a;
|
|
24
|
+
const rect = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
25
|
+
const top = (rect === null || rect === void 0 ? void 0 : rect.top) || 0;
|
|
26
|
+
const left = (rect === null || rect === void 0 ? void 0 : rect.left) || 0;
|
|
27
|
+
setMouseY(event.clientY - top);
|
|
28
|
+
setMouseX(event.clientX - left);
|
|
29
|
+
}, onMouseLeave: () => {
|
|
30
|
+
setMouseY(undefined);
|
|
31
|
+
setMouseX(undefined);
|
|
32
|
+
} },
|
|
33
|
+
React.createElement(BaseLinearDisplayComponent, { ...props }),
|
|
34
|
+
React.createElement(LegendBar, { model: model }),
|
|
35
|
+
mouseY && sources ? (React.createElement("div", { style: { position: 'relative' } },
|
|
36
|
+
React.createElement("svg", { className: classes.cursor, width: width, height: height, style: { position: 'absolute', top: scrollTop } },
|
|
37
|
+
React.createElement("line", { x1: 0, x2: width, y1: mouseY - scrollTop, y2: mouseY - scrollTop, stroke: "black" }),
|
|
38
|
+
React.createElement("line", { x1: mouseX, x2: mouseX, y1: 0, y2: height, stroke: "black" })),
|
|
39
|
+
React.createElement(BaseTooltip, null,
|
|
40
|
+
React.createElement(SanitizedHTML, { html: Object.entries(sources[Math.floor(mouseY / rowHeight)] || {})
|
|
41
|
+
.filter(([key]) => key !== 'color')
|
|
42
|
+
.map(([key, value]) => `${key}:${value}`)
|
|
43
|
+
.join('\n') })))) : null));
|
|
44
|
+
});
|
|
45
|
+
export 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,24 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
import { types } from 'mobx-state-tree';
|
|
3
|
+
import sharedVariantConfigFactory from '../shared/SharedVariantConfigSchema';
|
|
4
|
+
function x() { }
|
|
5
|
+
export default function VariantConfigFactory(pluginManager) {
|
|
6
|
+
const MultiVariantRendererConfigSchema = pluginManager.getRendererType('MultiVariantRenderer').configSchema;
|
|
7
|
+
return ConfigurationSchema('MultiLinearVariantDisplay', {
|
|
8
|
+
defaultRendering: {
|
|
9
|
+
type: 'stringEnum',
|
|
10
|
+
model: types.enumeration('Rendering', ['multivariant']),
|
|
11
|
+
defaultValue: 'multivariant',
|
|
12
|
+
},
|
|
13
|
+
renderers: ConfigurationSchema('RenderersConfiguration', {
|
|
14
|
+
MultiVariantRenderer: MultiVariantRendererConfigSchema,
|
|
15
|
+
}),
|
|
16
|
+
height: {
|
|
17
|
+
type: 'number',
|
|
18
|
+
defaultValue: 200,
|
|
19
|
+
},
|
|
20
|
+
}, {
|
|
21
|
+
baseConfiguration: sharedVariantConfigFactory(),
|
|
22
|
+
explicitlyTyped: true,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
3
|
+
import configSchemaFactory from './configSchema';
|
|
4
|
+
import modelFactory from './model';
|
|
5
|
+
export default function MultiLinearVariantDisplayF(pluginManager) {
|
|
6
|
+
pluginManager.addDisplayType(() => {
|
|
7
|
+
const configSchema = configSchemaFactory(pluginManager);
|
|
8
|
+
return new DisplayType({
|
|
9
|
+
name: 'MultiLinearVariantDisplay',
|
|
10
|
+
displayName: 'Multi-variant display (regular)',
|
|
11
|
+
configSchema,
|
|
12
|
+
stateModel: modelFactory(pluginManager, configSchema),
|
|
13
|
+
trackType: 'VariantTrack',
|
|
14
|
+
viewType: 'LinearGenomeView',
|
|
15
|
+
ReactComponent: lazy(() => import('./components/VariantDisplayComponent')),
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { type ExportSvgDisplayOptions } from '@jbrowse/plugin-linear-genome-view';
|
|
2
|
+
import type { Source } from '../util';
|
|
3
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
4
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
5
|
+
import type { AnyReactComponentType, Feature } from '@jbrowse/core/util';
|
|
6
|
+
import type { Instance } from 'mobx-state-tree';
|
|
7
|
+
export declare function stateModelFactory(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
8
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
9
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
10
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
11
|
+
} & {
|
|
12
|
+
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
13
|
+
} & {
|
|
14
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
15
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
16
|
+
} & {
|
|
17
|
+
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
18
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
19
|
+
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
20
|
+
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
21
|
+
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
22
|
+
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
23
|
+
}, {
|
|
24
|
+
stopToken: string | undefined;
|
|
25
|
+
filled: boolean;
|
|
26
|
+
reactElement: React.ReactElement | undefined;
|
|
27
|
+
features: Map<string, Feature> | undefined;
|
|
28
|
+
layout: any;
|
|
29
|
+
status: string;
|
|
30
|
+
error: unknown;
|
|
31
|
+
message: string | undefined;
|
|
32
|
+
maxHeightReached: boolean;
|
|
33
|
+
ReactComponent: ({ model, }: {
|
|
34
|
+
model: {
|
|
35
|
+
error?: unknown;
|
|
36
|
+
reload: () => void;
|
|
37
|
+
message: React.ReactNode;
|
|
38
|
+
filled?: boolean;
|
|
39
|
+
status?: string;
|
|
40
|
+
reactElement?: React.ReactElement;
|
|
41
|
+
};
|
|
42
|
+
}) => import("react").JSX.Element | undefined;
|
|
43
|
+
renderProps: any;
|
|
44
|
+
} & {
|
|
45
|
+
doReload(): void;
|
|
46
|
+
afterAttach(): void;
|
|
47
|
+
setStatus(message: string): void;
|
|
48
|
+
setLoading(newStopToken: string): void;
|
|
49
|
+
setMessage(messageText: string): void;
|
|
50
|
+
setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
51
|
+
setError(error: unknown): void;
|
|
52
|
+
reload(): void;
|
|
53
|
+
beforeDestroy(): void;
|
|
54
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
55
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
56
|
+
maxFeatureScreenDensity: {
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
defaultValue: number;
|
|
60
|
+
};
|
|
61
|
+
fetchSizeLimit: {
|
|
62
|
+
type: string;
|
|
63
|
+
defaultValue: number;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
height: {
|
|
67
|
+
type: string;
|
|
68
|
+
defaultValue: number;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
mouseover: {
|
|
72
|
+
type: string;
|
|
73
|
+
description: string;
|
|
74
|
+
defaultValue: string;
|
|
75
|
+
contextVariable: string[];
|
|
76
|
+
};
|
|
77
|
+
jexlFilters: {
|
|
78
|
+
type: string;
|
|
79
|
+
description: string;
|
|
80
|
+
defaultValue: never[];
|
|
81
|
+
};
|
|
82
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
83
|
+
} & {
|
|
84
|
+
type: import("mobx-state-tree").ISimpleType<"LinearBareDisplay">;
|
|
85
|
+
configuration: AnyConfigurationSchemaType;
|
|
86
|
+
} & {
|
|
87
|
+
type: import("mobx-state-tree").ISimpleType<"MultiLinearVariantDisplay">;
|
|
88
|
+
layout: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<Source[], Source[], Source[]>, [undefined]>;
|
|
89
|
+
rowHeightSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
90
|
+
autoHeight: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
91
|
+
showSidebarLabelsSetting: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
92
|
+
}, {
|
|
93
|
+
rendererTypeName: string;
|
|
94
|
+
error: unknown;
|
|
95
|
+
message: string | undefined;
|
|
96
|
+
} & {
|
|
97
|
+
readonly RenderingComponent: React.FC<{
|
|
98
|
+
model: {
|
|
99
|
+
id: string;
|
|
100
|
+
type: string;
|
|
101
|
+
rpcDriverName: string | undefined;
|
|
102
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
103
|
+
rendererTypeName: string;
|
|
104
|
+
error: unknown;
|
|
105
|
+
message: string | undefined;
|
|
106
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
107
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
108
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
109
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
110
|
+
}, {
|
|
111
|
+
rendererTypeName: string;
|
|
112
|
+
error: unknown;
|
|
113
|
+
message: string | undefined;
|
|
114
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
115
|
+
onHorizontalScroll?: () => void;
|
|
116
|
+
blockState?: Record<string, any>;
|
|
117
|
+
}>;
|
|
118
|
+
readonly DisplayBlurb: React.FC<{
|
|
119
|
+
model: {
|
|
120
|
+
id: string;
|
|
121
|
+
type: string;
|
|
122
|
+
rpcDriverName: string | undefined;
|
|
123
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
124
|
+
rendererTypeName: string;
|
|
125
|
+
error: unknown;
|
|
126
|
+
message: string | undefined;
|
|
127
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
128
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
129
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
130
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
131
|
+
}, {
|
|
132
|
+
rendererTypeName: string;
|
|
133
|
+
error: unknown;
|
|
134
|
+
message: string | undefined;
|
|
135
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
136
|
+
}> | null;
|
|
137
|
+
readonly adapterConfig: any;
|
|
138
|
+
readonly parentTrack: any;
|
|
139
|
+
renderProps(): any;
|
|
140
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
141
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
142
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
143
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
144
|
+
regionCannotBeRendered(): null;
|
|
145
|
+
} & {
|
|
146
|
+
setMessage(arg?: string): void;
|
|
147
|
+
setError(error?: unknown): void;
|
|
148
|
+
setRpcDriverName(rpcDriverName: string): void;
|
|
149
|
+
reload(): void;
|
|
150
|
+
} & {
|
|
151
|
+
scrollTop: number;
|
|
152
|
+
} & {
|
|
153
|
+
readonly height: number;
|
|
154
|
+
} & {
|
|
155
|
+
setScrollTop(scrollTop: number): void;
|
|
156
|
+
setHeight(displayHeight: number): number;
|
|
157
|
+
resizeHeight(distance: number): number;
|
|
158
|
+
} & {
|
|
159
|
+
featureDensityStatsP: undefined | Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
160
|
+
featureDensityStats: undefined | import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats;
|
|
161
|
+
currStatsBpPerPx: number;
|
|
162
|
+
} & {
|
|
163
|
+
readonly currentBytesRequested: number;
|
|
164
|
+
readonly currentFeatureScreenDensity: number;
|
|
165
|
+
readonly maxFeatureScreenDensity: any;
|
|
166
|
+
readonly featureDensityStatsReady: boolean;
|
|
167
|
+
readonly maxAllowableBytes: number;
|
|
168
|
+
} & {
|
|
169
|
+
afterAttach(): void;
|
|
170
|
+
} & {
|
|
171
|
+
setCurrStatsBpPerPx(n: number): void;
|
|
172
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
173
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
174
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
175
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
176
|
+
clearFeatureDensityStats(): void;
|
|
177
|
+
} & {
|
|
178
|
+
readonly regionTooLarge: boolean;
|
|
179
|
+
readonly regionTooLargeReason: string;
|
|
180
|
+
} & {
|
|
181
|
+
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
182
|
+
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
183
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
184
|
+
} & {
|
|
185
|
+
featureIdUnderMouse: undefined | string;
|
|
186
|
+
contextMenuFeature: undefined | Feature;
|
|
187
|
+
} & {
|
|
188
|
+
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
189
|
+
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
190
|
+
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
191
|
+
} & {
|
|
192
|
+
readonly renderDelay: number;
|
|
193
|
+
readonly TooltipComponent: AnyReactComponentType;
|
|
194
|
+
readonly selectedFeatureId: string | undefined;
|
|
195
|
+
} & {
|
|
196
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
|
|
197
|
+
readonly featureUnderMouse: Feature | undefined;
|
|
198
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
199
|
+
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
200
|
+
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
201
|
+
} & {
|
|
202
|
+
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
203
|
+
deleteBlock(key: string): void;
|
|
204
|
+
selectFeature(feature: Feature): void;
|
|
205
|
+
navToFeature(feature: Feature): void;
|
|
206
|
+
clearFeatureSelection(): void;
|
|
207
|
+
setFeatureIdUnderMouse(feature?: string): void;
|
|
208
|
+
setContextMenuFeature(feature?: Feature): void;
|
|
209
|
+
} & {
|
|
210
|
+
reload(): Promise<void>;
|
|
211
|
+
} & {
|
|
212
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
213
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
214
|
+
renderProps(): any;
|
|
215
|
+
} & {
|
|
216
|
+
renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
217
|
+
afterAttach(): void;
|
|
218
|
+
} & {
|
|
219
|
+
readonly rendererConfig: {
|
|
220
|
+
[x: string]: any;
|
|
221
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
222
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
223
|
+
[x: string]: any;
|
|
224
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
225
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
226
|
+
[x: string]: any;
|
|
227
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
228
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
229
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
230
|
+
readonly rendererTypeName: any;
|
|
231
|
+
} & {
|
|
232
|
+
renderProps(): any;
|
|
233
|
+
} & {
|
|
234
|
+
sourcesLoadingStopToken: string | undefined;
|
|
235
|
+
featureUnderMouseVolatile: Feature | undefined;
|
|
236
|
+
sourcesVolatile: Source[] | undefined;
|
|
237
|
+
} & {
|
|
238
|
+
setSourcesLoading(str: string): void;
|
|
239
|
+
setLayout(layout: Source[]): void;
|
|
240
|
+
clearLayout(): void;
|
|
241
|
+
setSources(sources: Source[]): void;
|
|
242
|
+
setFeatureUnderMouse(f?: Feature): void;
|
|
243
|
+
setRowHeight(arg: number): void;
|
|
244
|
+
setAutoHeight(arg: boolean): void;
|
|
245
|
+
setShowSidebarLabels(arg: boolean): void;
|
|
246
|
+
} & {
|
|
247
|
+
readonly featureUnderMouse: Feature | undefined;
|
|
248
|
+
readonly TooltipComponent: AnyReactComponentType;
|
|
249
|
+
} & {
|
|
250
|
+
readonly rendererTypeName: string;
|
|
251
|
+
readonly sources: {
|
|
252
|
+
color: string;
|
|
253
|
+
baseUri?: string;
|
|
254
|
+
name: string;
|
|
255
|
+
group?: string;
|
|
256
|
+
}[] | undefined;
|
|
257
|
+
} & {
|
|
258
|
+
readonly rowHeight: number;
|
|
259
|
+
} & {
|
|
260
|
+
readonly canDisplayLabels: boolean;
|
|
261
|
+
readonly totalHeight: number;
|
|
262
|
+
adapterProps(): any;
|
|
263
|
+
} & {
|
|
264
|
+
renderProps(): any;
|
|
265
|
+
} & {
|
|
266
|
+
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
267
|
+
label: string;
|
|
268
|
+
type: string;
|
|
269
|
+
checked: boolean;
|
|
270
|
+
onClick: () => void;
|
|
271
|
+
})[];
|
|
272
|
+
} & {
|
|
273
|
+
afterAttach(): void;
|
|
274
|
+
renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
275
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
276
|
+
export type MultiLinearVariantDisplayStateModel = ReturnType<typeof stateModelFactory>;
|
|
277
|
+
export type MultiLinearVariantDisplayModel = Instance<MultiLinearVariantDisplayStateModel>;
|
|
278
|
+
export default stateModelFactory;
|