@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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function ChordVariantDisplayF(pluginManager: PluginManager): void;
|
|
@@ -4,9 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = ChordVariantDisplayF;
|
|
7
|
-
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
8
7
|
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
9
|
-
|
|
8
|
+
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
10
9
|
const configSchema_1 = __importDefault(require("./models/configSchema"));
|
|
11
10
|
const stateModelFactory_1 = __importDefault(require("./models/stateModelFactory"));
|
|
12
11
|
function ChordVariantDisplayF(pluginManager) {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
declare function stateModelFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
-
/**
|
|
4
|
-
* #slot
|
|
5
|
-
*/
|
|
6
3
|
renderer: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IAnyModelType, [undefined]>;
|
|
7
4
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
5
|
onChordClick: {
|
|
@@ -3,20 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
4
|
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
5
5
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
|
-
|
|
7
|
-
* #config ChordVariantDisplay
|
|
8
|
-
*/
|
|
9
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6
|
+
function x() { }
|
|
10
7
|
function stateModelFactory(pluginManager) {
|
|
11
8
|
return (0, configuration_1.ConfigurationSchema)('ChordVariantDisplay', {
|
|
12
|
-
/**
|
|
13
|
-
* #slot
|
|
14
|
-
*/
|
|
15
9
|
renderer: mobx_state_tree_1.types.optional(pluginManager.pluggableConfigSchemaType('renderer'), { type: 'StructuralVariantChordRenderer' }),
|
|
16
10
|
}, {
|
|
17
|
-
/**
|
|
18
|
-
* #baseConfiguration
|
|
19
|
-
*/
|
|
20
11
|
baseConfiguration: plugin_circular_view_1.baseChordDisplayConfig,
|
|
21
12
|
explicitlyTyped: true,
|
|
22
13
|
});
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
-
import { Feature } from '@jbrowse/core/util';
|
|
3
|
-
/**
|
|
4
|
-
* #stateModel ChordVariantDisplay
|
|
5
|
-
* extends
|
|
6
|
-
* - [BaseChordDisplay](../basechorddisplay)
|
|
7
|
-
*/
|
|
1
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
8
3
|
declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => import("mobx-state-tree").IModelType<{
|
|
9
4
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
10
5
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -21,13 +16,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
21
16
|
};
|
|
22
17
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
23
18
|
} & {
|
|
24
|
-
/**
|
|
25
|
-
* #property
|
|
26
|
-
*/
|
|
27
19
|
type: import("mobx-state-tree").ISimpleType<"ChordVariantDisplay">;
|
|
28
|
-
/**
|
|
29
|
-
* #property
|
|
30
|
-
*/
|
|
31
20
|
configuration: AnyConfigurationSchemaType;
|
|
32
21
|
}, {
|
|
33
22
|
rendererTypeName: string;
|
|
@@ -98,36 +87,29 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
98
87
|
} & {
|
|
99
88
|
onChordClick(feature: Feature): void;
|
|
100
89
|
} & {
|
|
101
|
-
readonly blockDefinitions: import("@jbrowse/plugin-circular-view/src/CircularView/
|
|
90
|
+
readonly blockDefinitions: import("@jbrowse/plugin-circular-view/src/CircularView/slices").Slice[];
|
|
102
91
|
renderProps(): any;
|
|
103
92
|
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType | undefined;
|
|
104
|
-
isCompatibleWithRenderer(renderer: import("@jbrowse/core/pluggableElementTypes").RendererType): renderer is import("@jbrowse/core/pluggableElementTypes").CircularChordRendererType;
|
|
105
93
|
readonly selectedFeatureId: string | undefined;
|
|
106
94
|
} & {
|
|
107
95
|
renderStarted(): void;
|
|
108
96
|
renderSuccess({ message, data, reactElement, html, renderingComponent, }: {
|
|
109
|
-
message
|
|
110
|
-
data
|
|
111
|
-
html
|
|
112
|
-
reactElement
|
|
113
|
-
renderingComponent
|
|
97
|
+
message?: string;
|
|
98
|
+
data?: any;
|
|
99
|
+
html?: string;
|
|
100
|
+
reactElement?: React.ReactElement;
|
|
101
|
+
renderingComponent?: import("@jbrowse/core/util").AnyReactComponentType;
|
|
114
102
|
}): void;
|
|
115
103
|
renderError(error: unknown): void;
|
|
116
104
|
setRefNameMap(refNameMap: Record<string, string>): void;
|
|
117
105
|
} & {
|
|
118
106
|
afterAttach(): void;
|
|
119
107
|
} & {
|
|
120
|
-
renderSvg(opts: import("@jbrowse/plugin-circular-view/src/CircularView/
|
|
108
|
+
renderSvg(opts: import("@jbrowse/plugin-circular-view/src/CircularView/model").ExportSvgOptions & {
|
|
121
109
|
theme?: import("@mui/material").ThemeOptions;
|
|
122
|
-
}): Promise<import("react").JSX.Element>;
|
|
110
|
+
}): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
123
111
|
} & {
|
|
124
|
-
/**
|
|
125
|
-
* #getter
|
|
126
|
-
*/
|
|
127
112
|
readonly rendererTypeName: any;
|
|
128
|
-
/**
|
|
129
|
-
* #method
|
|
130
|
-
*/
|
|
131
113
|
renderProps(): Record<string, unknown>;
|
|
132
114
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
133
115
|
export default stateModelFactory;
|
|
@@ -1,37 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
4
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
4
|
const util_1 = require("@jbrowse/core/util");
|
|
7
5
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* extends
|
|
11
|
-
* - [BaseChordDisplay](../basechorddisplay)
|
|
12
|
-
*/
|
|
6
|
+
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
7
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
13
8
|
const stateModelFactory = (configSchema) => {
|
|
14
9
|
return mobx_state_tree_1.types
|
|
15
10
|
.compose('ChordVariantDisplay', plugin_circular_view_1.BaseChordDisplayModel, mobx_state_tree_1.types.model({
|
|
16
|
-
/**
|
|
17
|
-
* #property
|
|
18
|
-
*/
|
|
19
11
|
type: mobx_state_tree_1.types.literal('ChordVariantDisplay'),
|
|
20
|
-
/**
|
|
21
|
-
* #property
|
|
22
|
-
*/
|
|
23
12
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
24
13
|
}))
|
|
25
14
|
.views(self => ({
|
|
26
|
-
/**
|
|
27
|
-
* #getter
|
|
28
|
-
*/
|
|
29
15
|
get rendererTypeName() {
|
|
30
16
|
return self.configuration.renderer.type;
|
|
31
17
|
},
|
|
32
|
-
/**
|
|
33
|
-
* #method
|
|
34
|
-
*/
|
|
35
18
|
renderProps() {
|
|
36
19
|
const view = (0, util_1.getContainingView)(self);
|
|
37
20
|
return {
|
|
@@ -49,8 +32,4 @@ const stateModelFactory = (configSchema) => {
|
|
|
49
32
|
},
|
|
50
33
|
}));
|
|
51
34
|
};
|
|
52
|
-
// http://localhost:3000/test_data/hs37d5.HG002-SequelII-CCS.sv.vcf.gz.tbi
|
|
53
|
-
// render request is for 1.5x the current viewing window
|
|
54
|
-
// tracks all have a height
|
|
55
|
-
//
|
|
56
35
|
exports.default = stateModelFactory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type { Instance } from 'mobx-state-tree';
|
|
3
3
|
export default function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
4
4
|
renderer: import("mobx-state-tree").IAnyModelType;
|
|
5
5
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
@@ -3,18 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = configSchemaF;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
5
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
6
|
-
|
|
7
|
-
* #config LinearVariantDisplay
|
|
8
|
-
* mostly empty, this display type is very much
|
|
9
|
-
* like a `FeatureTrack` with a `LinearBasicDisplay` except it has a custom
|
|
10
|
-
* feature details widget
|
|
11
|
-
*/
|
|
12
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6
|
+
function x() { }
|
|
13
7
|
function configSchemaF(pluginManager) {
|
|
14
8
|
return (0, configuration_1.ConfigurationSchema)('LinearVariantDisplay', {}, {
|
|
15
|
-
/**
|
|
16
|
-
* #baseConfiguration
|
|
17
|
-
*/
|
|
18
9
|
baseConfiguration: (0, plugin_linear_genome_view_1.linearBasicDisplayConfigSchemaFactory)(pluginManager),
|
|
19
10
|
explicitlyTyped: true,
|
|
20
11
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function LinearVariantDisplayF(pluginManager: PluginManager): void;
|
|
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = LinearVariantDisplayF;
|
|
7
|
-
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
8
7
|
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
9
|
-
const
|
|
8
|
+
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
10
9
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
10
|
+
const model_1 = __importDefault(require("./model"));
|
|
11
11
|
function LinearVariantDisplayF(pluginManager) {
|
|
12
12
|
pluginManager.addDisplayType(() => {
|
|
13
13
|
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* #stateModel LinearVariantDisplay
|
|
6
|
-
* similar to basic display, but provides custom widget on feature click
|
|
7
|
-
* extends
|
|
8
|
-
*
|
|
9
|
-
* - [LinearBasicDisplay](../linearbasicdisplay)
|
|
10
|
-
*/
|
|
1
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
+
import type { Instance } from 'mobx-state-tree';
|
|
11
4
|
export default function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
12
5
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
13
6
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -20,21 +13,12 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
20
13
|
} & {
|
|
21
14
|
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
22
15
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
23
|
-
region: import("mobx-state-tree").
|
|
24
|
-
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
25
|
-
start: import("mobx-state-tree").ISimpleType<number>;
|
|
26
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
27
|
-
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
28
|
-
} & {
|
|
29
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
30
|
-
}, {
|
|
31
|
-
setRefName(newRefName: string): void;
|
|
32
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
16
|
+
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
33
17
|
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
34
18
|
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
35
19
|
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
36
20
|
}, {
|
|
37
|
-
|
|
21
|
+
stopToken: string | undefined;
|
|
38
22
|
filled: boolean;
|
|
39
23
|
reactElement: React.ReactElement | undefined;
|
|
40
24
|
features: Map<string, Feature> | undefined;
|
|
@@ -52,21 +36,15 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
52
36
|
status?: string;
|
|
53
37
|
reactElement?: React.ReactElement;
|
|
54
38
|
};
|
|
55
|
-
}) => import("react").JSX.Element | undefined;
|
|
39
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
56
40
|
renderProps: any;
|
|
57
41
|
} & {
|
|
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,14 +177,15 @@ 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
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
182
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
210
183
|
} & {
|
|
211
184
|
featureIdUnderMouse: undefined | string;
|
|
212
185
|
contextMenuFeature: undefined | Feature;
|
|
213
186
|
} & {
|
|
214
|
-
readonly DisplayMessageComponent:
|
|
215
|
-
readonly blockType: "
|
|
187
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
188
|
+
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
216
189
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
217
190
|
} & {
|
|
218
191
|
readonly renderDelay: number;
|
|
@@ -239,7 +212,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
239
212
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
240
213
|
renderProps(): any;
|
|
241
214
|
} & {
|
|
242
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
215
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
243
216
|
afterAttach(): void;
|
|
244
217
|
} & {
|
|
245
218
|
readonly activeFilters: any;
|
|
@@ -283,9 +256,6 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
283
256
|
};
|
|
284
257
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
285
258
|
} & {
|
|
286
|
-
/**
|
|
287
|
-
* #action
|
|
288
|
-
*/
|
|
289
259
|
selectFeature(feature: Feature): Promise<void>;
|
|
290
260
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
291
261
|
export type LinearVariantDisplayStateModel = ReturnType<typeof stateModelFactory>;
|
|
@@ -2,33 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = stateModelFactory;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
6
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
|
+
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
7
7
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
8
8
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
9
|
-
/**
|
|
10
|
-
* #stateModel LinearVariantDisplay
|
|
11
|
-
* similar to basic display, but provides custom widget on feature click
|
|
12
|
-
* extends
|
|
13
|
-
*
|
|
14
|
-
* - [LinearBasicDisplay](../linearbasicdisplay)
|
|
15
|
-
*/
|
|
16
9
|
function stateModelFactory(configSchema) {
|
|
17
10
|
return mobx_state_tree_1.types
|
|
18
11
|
.compose('LinearVariantDisplay', (0, plugin_linear_genome_view_1.linearBasicDisplayModelFactory)(configSchema), mobx_state_tree_1.types.model({
|
|
19
|
-
/**
|
|
20
|
-
* #property
|
|
21
|
-
*/
|
|
22
12
|
type: mobx_state_tree_1.types.literal('LinearVariantDisplay'),
|
|
23
|
-
/**
|
|
24
|
-
* #property
|
|
25
|
-
*/
|
|
26
13
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
27
14
|
}))
|
|
28
15
|
.actions(self => ({
|
|
29
|
-
/**
|
|
30
|
-
* #action
|
|
31
|
-
*/
|
|
32
16
|
async selectFeature(feature) {
|
|
33
17
|
const session = (0, util_1.getSession)(self);
|
|
34
18
|
if ((0, util_1.isSessionModelWithWidgets)(session)) {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MultiLinearVariantDisplayModel } from '../model';
|
|
2
|
+
declare const Crosshair: ({ mouseX, mouseY, model, }: {
|
|
3
|
+
mouseX: number;
|
|
4
|
+
mouseY: number;
|
|
5
|
+
model: MultiLinearVariantDisplayModel;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default Crosshair;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const util_1 = require("@jbrowse/core/util");
|
|
8
|
+
const mobx_react_1 = require("mobx-react");
|
|
9
|
+
const mui_1 = require("tss-react/mui");
|
|
10
|
+
const MultiVariantTooltip_1 = __importDefault(require("../../shared/MultiVariantTooltip"));
|
|
11
|
+
const useStyles = (0, mui_1.makeStyles)()({
|
|
12
|
+
rel: {
|
|
13
|
+
position: 'relative',
|
|
14
|
+
},
|
|
15
|
+
cursor: {
|
|
16
|
+
pointerEvents: 'none',
|
|
17
|
+
zIndex: 1000,
|
|
18
|
+
position: 'absolute',
|
|
19
|
+
},
|
|
20
|
+
color: {
|
|
21
|
+
width: 10,
|
|
22
|
+
height: 10,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
const Crosshair = (0, mobx_react_1.observer)(function ({ mouseX, mouseY, model, }) {
|
|
26
|
+
const { classes } = useStyles();
|
|
27
|
+
const { hoveredGenotype, height, scrollTop, rowHeight, sources } = model;
|
|
28
|
+
const { width } = (0, util_1.getContainingView)(model);
|
|
29
|
+
const source = sources === null || sources === void 0 ? void 0 : sources[Math.floor(mouseY / rowHeight)];
|
|
30
|
+
const y = mouseY - scrollTop;
|
|
31
|
+
return source ? ((0, jsx_runtime_1.jsxs)("div", { className: classes.rel, children: [(0, jsx_runtime_1.jsxs)("svg", { className: classes.cursor, width: width, height: height, style: {
|
|
32
|
+
top: scrollTop,
|
|
33
|
+
}, children: [(0, jsx_runtime_1.jsx)("line", { x1: 0, x2: width, y1: y, y2: y, stroke: "black" }), (0, jsx_runtime_1.jsx)("line", { x1: mouseX, x2: mouseX, y1: 0, y2: height, stroke: "black" })] }), (0, jsx_runtime_1.jsx)(MultiVariantTooltip_1.default, { source: { ...source, hoveredGenotype } })] })) : null;
|
|
34
|
+
});
|
|
35
|
+
exports.default = Crosshair;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
9
|
+
const mobx_react_1 = require("mobx-react");
|
|
10
|
+
const Crosshair_1 = __importDefault(require("./Crosshair"));
|
|
11
|
+
const LegendBar_1 = __importDefault(require("../../shared/LegendBar"));
|
|
12
|
+
const MultiLinearVariantDisplayComponent = (0, mobx_react_1.observer)(function (props) {
|
|
13
|
+
const { model } = props;
|
|
14
|
+
const ref = (0, react_1.useRef)(null);
|
|
15
|
+
const [mouseY, setMouseY] = (0, react_1.useState)();
|
|
16
|
+
const [mouseX, setMouseX] = (0, react_1.useState)();
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, onMouseMove: event => {
|
|
18
|
+
var _a;
|
|
19
|
+
const rect = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
20
|
+
const top = (rect === null || rect === void 0 ? void 0 : rect.top) || 0;
|
|
21
|
+
const left = (rect === null || rect === void 0 ? void 0 : rect.left) || 0;
|
|
22
|
+
setMouseY(event.clientY - top);
|
|
23
|
+
setMouseX(event.clientX - left);
|
|
24
|
+
}, onMouseLeave: () => {
|
|
25
|
+
setMouseY(undefined);
|
|
26
|
+
setMouseX(undefined);
|
|
27
|
+
}, children: [(0, jsx_runtime_1.jsx)(plugin_linear_genome_view_1.BaseLinearDisplayComponent, { ...props }), (0, jsx_runtime_1.jsx)(LegendBar_1.default, { model: model }), mouseX && mouseY ? ((0, jsx_runtime_1.jsx)(Crosshair_1.default, { mouseX: mouseX, mouseY: mouseY, model: model })) : null] }));
|
|
28
|
+
});
|
|
29
|
+
exports.default = MultiLinearVariantDisplayComponent;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
export default function VariantConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
defaultRendering: {
|
|
4
|
+
type: string;
|
|
5
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
};
|
|
8
|
+
renderers: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
9
|
+
MultiVariantRenderer: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
10
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
11
|
+
height: {
|
|
12
|
+
type: string;
|
|
13
|
+
defaultValue: number;
|
|
14
|
+
};
|
|
15
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
16
|
+
autoscale: {
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
minimalTicks: {
|
|
23
|
+
type: string;
|
|
24
|
+
defaultValue: boolean;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
minScore: {
|
|
28
|
+
type: string;
|
|
29
|
+
defaultValue: number;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
maxScore: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
defaultValue: number;
|
|
36
|
+
};
|
|
37
|
+
numStdDev: {
|
|
38
|
+
type: string;
|
|
39
|
+
description: string;
|
|
40
|
+
defaultValue: number;
|
|
41
|
+
};
|
|
42
|
+
scaleType: {
|
|
43
|
+
type: string;
|
|
44
|
+
model: import("mobx-state-tree").ISimpleType<string>;
|
|
45
|
+
description: string;
|
|
46
|
+
defaultValue: string;
|
|
47
|
+
};
|
|
48
|
+
inverted: {
|
|
49
|
+
type: string;
|
|
50
|
+
description: string;
|
|
51
|
+
defaultValue: boolean;
|
|
52
|
+
};
|
|
53
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
54
|
+
maxFeatureScreenDensity: {
|
|
55
|
+
type: string;
|
|
56
|
+
description: string;
|
|
57
|
+
defaultValue: number;
|
|
58
|
+
};
|
|
59
|
+
fetchSizeLimit: {
|
|
60
|
+
type: string;
|
|
61
|
+
defaultValue: number;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
height: {
|
|
65
|
+
type: string;
|
|
66
|
+
defaultValue: number;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
mouseover: {
|
|
70
|
+
type: string;
|
|
71
|
+
description: string;
|
|
72
|
+
defaultValue: string;
|
|
73
|
+
contextVariable: string[];
|
|
74
|
+
};
|
|
75
|
+
jexlFilters: {
|
|
76
|
+
type: string;
|
|
77
|
+
description: string;
|
|
78
|
+
defaultValue: never[];
|
|
79
|
+
};
|
|
80
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = VariantConfigFactory;
|
|
7
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
9
|
+
const SharedVariantConfigSchema_1 = __importDefault(require("../shared/SharedVariantConfigSchema"));
|
|
10
|
+
function x() { }
|
|
11
|
+
function VariantConfigFactory(pluginManager) {
|
|
12
|
+
const MultiVariantRendererConfigSchema = pluginManager.getRendererType('MultiVariantRenderer').configSchema;
|
|
13
|
+
return (0, configuration_1.ConfigurationSchema)('MultiLinearVariantDisplay', {
|
|
14
|
+
defaultRendering: {
|
|
15
|
+
type: 'stringEnum',
|
|
16
|
+
model: mobx_state_tree_1.types.enumeration('Rendering', ['multivariant']),
|
|
17
|
+
defaultValue: 'multivariant',
|
|
18
|
+
},
|
|
19
|
+
renderers: (0, configuration_1.ConfigurationSchema)('RenderersConfiguration', {
|
|
20
|
+
MultiVariantRenderer: MultiVariantRendererConfigSchema,
|
|
21
|
+
}),
|
|
22
|
+
height: {
|
|
23
|
+
type: 'number',
|
|
24
|
+
defaultValue: 200,
|
|
25
|
+
},
|
|
26
|
+
}, {
|
|
27
|
+
baseConfiguration: (0, SharedVariantConfigSchema_1.default)(),
|
|
28
|
+
explicitlyTyped: true,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.default = MultiLinearVariantDisplayF;
|
|
40
|
+
const react_1 = require("react");
|
|
41
|
+
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
42
|
+
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
43
|
+
const model_1 = __importDefault(require("./model"));
|
|
44
|
+
function MultiLinearVariantDisplayF(pluginManager) {
|
|
45
|
+
pluginManager.addDisplayType(() => {
|
|
46
|
+
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
47
|
+
return new DisplayType_1.default({
|
|
48
|
+
name: 'MultiLinearVariantDisplay',
|
|
49
|
+
displayName: 'Multi-variant display (regular)',
|
|
50
|
+
configSchema,
|
|
51
|
+
stateModel: (0, model_1.default)(configSchema),
|
|
52
|
+
trackType: 'VariantTrack',
|
|
53
|
+
viewType: 'LinearGenomeView',
|
|
54
|
+
ReactComponent: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/VariantDisplayComponent')))),
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
}
|