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