@jbrowse/plugin-linear-genome-view 2.5.0 → 2.6.2
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/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +1 -1
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -1
- package/dist/BaseLinearDisplay/components/Block.d.ts +3 -3
- package/dist/BaseLinearDisplay/components/Block.js +0 -1
- package/dist/BaseLinearDisplay/components/BlockMsg.d.ts +1 -1
- package/dist/BaseLinearDisplay/components/BlockMsg.js +0 -1
- package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +3 -2
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +0 -1
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +0 -1
- package/dist/BaseLinearDisplay/components/Tooltip.d.ts +2 -1
- package/dist/BaseLinearDisplay/components/Tooltip.js +0 -1
- package/dist/BaseLinearDisplay/index.d.ts +5 -2
- package/dist/BaseLinearDisplay/index.js +7 -2
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +62 -142
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +34 -356
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +99 -0
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +189 -0
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.d.ts +30 -0
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +55 -0
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +2 -0
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +41 -0
- package/dist/BaseLinearDisplay/models/configSchema.js +1 -1
- package/dist/BaseLinearDisplay/models/renderSvg.d.ts +8 -0
- package/dist/BaseLinearDisplay/models/renderSvg.js +82 -0
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +20 -17
- package/dist/BaseLinearDisplay/models/util.js +0 -1
- package/dist/BasicTrack/configSchema.js +1 -1
- package/dist/BasicTrack/index.js +0 -1
- package/dist/FeatureTrack/configSchema.d.ts +1 -3
- package/dist/FeatureTrack/configSchema.js +1 -1
- package/dist/FeatureTrack/index.js +0 -1
- package/dist/LaunchLinearGenomeView/index.js +0 -1
- package/dist/LinearBareDisplay/configSchema.d.ts +1 -0
- package/dist/LinearBareDisplay/configSchema.js +1 -1
- package/dist/LinearBareDisplay/index.js +0 -1
- package/dist/LinearBareDisplay/model.d.ts +52 -39
- package/dist/LinearBareDisplay/model.js +1 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.d.ts +2 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +0 -1
- package/dist/LinearBasicDisplay/configSchema.d.ts +1 -0
- package/dist/LinearBasicDisplay/configSchema.js +1 -1
- package/dist/LinearBasicDisplay/index.js +0 -1
- package/dist/LinearBasicDisplay/model.d.ts +67 -66
- package/dist/LinearBasicDisplay/model.js +1 -1
- package/dist/LinearGenomeView/components/CenterLine.d.ts +2 -1
- package/dist/LinearGenomeView/components/CenterLine.js +0 -1
- package/dist/LinearGenomeView/components/Cytobands.d.ts +2 -1
- package/dist/LinearGenomeView/components/Cytobands.js +0 -1
- package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +2 -1
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +2 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.js +0 -1
- package/dist/LinearGenomeView/components/Gridlines.d.ts +2 -1
- package/dist/LinearGenomeView/components/Gridlines.js +0 -1
- package/dist/LinearGenomeView/components/Header.d.ts +2 -1
- package/dist/LinearGenomeView/components/Header.js +0 -1
- package/dist/LinearGenomeView/components/ImportForm.d.ts +2 -1
- package/dist/LinearGenomeView/components/ImportForm.js +0 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +2 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.js +28 -5
- package/dist/LinearGenomeView/components/MiniControls.d.ts +3 -2
- package/dist/LinearGenomeView/components/MiniControls.js +20 -41
- package/dist/LinearGenomeView/components/OverviewRubberband.d.ts +1 -1
- package/dist/LinearGenomeView/components/OverviewRubberband.js +0 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.d.ts +2 -2
- package/dist/LinearGenomeView/components/OverviewScalebar.js +10 -5
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +10 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +21 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +5 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +51 -0
- package/dist/LinearGenomeView/components/{HelpDialog.d.ts → RefNameAutocomplete/HelpDialog.d.ts} +2 -1
- package/dist/LinearGenomeView/components/{HelpDialog.js → RefNameAutocomplete/HelpDialog.js} +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +18 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +110 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.d.ts +12 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +58 -0
- package/dist/LinearGenomeView/components/Rubberband.d.ts +1 -1
- package/dist/LinearGenomeView/components/Rubberband.js +0 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +2 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.js +0 -1
- package/dist/LinearGenomeView/components/Scalebar.js +0 -1
- package/dist/LinearGenomeView/components/SearchBox.d.ts +2 -1
- package/dist/LinearGenomeView/components/SearchBox.js +0 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +2 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +0 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +2 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.js +0 -1
- package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +2 -1
- package/dist/LinearGenomeView/components/SequenceSearchDialog.js +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +3 -3
- package/dist/LinearGenomeView/components/TrackContainer.js +12 -69
- package/dist/LinearGenomeView/components/TrackLabel.js +7 -12
- package/dist/LinearGenomeView/components/TrackLabelContainer.d.ts +9 -0
- package/dist/LinearGenomeView/components/TrackLabelContainer.js +31 -0
- package/dist/LinearGenomeView/components/TrackRenderingContainer.d.ts +10 -0
- package/dist/LinearGenomeView/components/TrackRenderingContainer.js +73 -0
- package/dist/LinearGenomeView/components/TracksContainer.d.ts +1 -1
- package/dist/LinearGenomeView/components/TracksContainer.js +2 -3
- package/dist/LinearGenomeView/components/VerticalGuide.d.ts +2 -1
- package/dist/LinearGenomeView/components/VerticalGuide.js +0 -1
- package/dist/LinearGenomeView/components/ZoomControls.d.ts +2 -1
- package/dist/LinearGenomeView/components/ZoomControls.js +0 -1
- package/dist/LinearGenomeView/components/hooks.js +0 -1
- package/dist/LinearGenomeView/components/util.js +0 -1
- package/dist/LinearGenomeView/index.js +0 -1
- package/dist/LinearGenomeView/model.d.ts +13 -12
- package/dist/LinearGenomeView/model.js +25 -26
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +3 -4
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +7 -3
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +1 -2
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +0 -1
- package/dist/LinearGenomeView/util.d.ts +2 -2
- package/dist/LinearGenomeView/util.js +0 -1
- package/dist/index.d.ts +160 -134
- package/dist/index.js +6 -4
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +1 -1
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -1
- package/esm/BaseLinearDisplay/components/Block.d.ts +3 -3
- package/esm/BaseLinearDisplay/components/Block.js +0 -1
- package/esm/BaseLinearDisplay/components/BlockMsg.d.ts +1 -1
- package/esm/BaseLinearDisplay/components/BlockMsg.js +0 -1
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +3 -2
- package/esm/BaseLinearDisplay/components/LinearBlocks.js +0 -1
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +0 -1
- package/esm/BaseLinearDisplay/components/Tooltip.d.ts +2 -1
- package/esm/BaseLinearDisplay/components/Tooltip.js +0 -1
- package/esm/BaseLinearDisplay/index.d.ts +5 -2
- package/esm/BaseLinearDisplay/index.js +3 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +62 -142
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +36 -335
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +99 -0
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +183 -0
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.d.ts +30 -0
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.js +52 -0
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +2 -0
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js +38 -0
- package/esm/BaseLinearDisplay/models/configSchema.js +1 -1
- package/esm/BaseLinearDisplay/models/renderSvg.d.ts +8 -0
- package/esm/BaseLinearDisplay/models/renderSvg.js +53 -0
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +20 -17
- package/esm/BaseLinearDisplay/models/util.js +0 -1
- package/esm/BasicTrack/configSchema.js +1 -1
- package/esm/BasicTrack/index.js +0 -1
- package/esm/FeatureTrack/configSchema.d.ts +1 -3
- package/esm/FeatureTrack/configSchema.js +1 -1
- package/esm/FeatureTrack/index.js +0 -1
- package/esm/LaunchLinearGenomeView/index.js +0 -1
- package/esm/LinearBareDisplay/configSchema.d.ts +1 -0
- package/esm/LinearBareDisplay/configSchema.js +1 -1
- package/esm/LinearBareDisplay/index.js +0 -1
- package/esm/LinearBareDisplay/model.d.ts +52 -39
- package/esm/LinearBareDisplay/model.js +1 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.d.ts +2 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js +0 -1
- package/esm/LinearBasicDisplay/configSchema.d.ts +1 -0
- package/esm/LinearBasicDisplay/configSchema.js +1 -1
- package/esm/LinearBasicDisplay/index.js +0 -1
- package/esm/LinearBasicDisplay/model.d.ts +67 -66
- package/esm/LinearBasicDisplay/model.js +1 -1
- package/esm/LinearGenomeView/components/CenterLine.d.ts +2 -1
- package/esm/LinearGenomeView/components/CenterLine.js +0 -1
- package/esm/LinearGenomeView/components/Cytobands.d.ts +2 -1
- package/esm/LinearGenomeView/components/Cytobands.js +0 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +2 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +2 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +0 -1
- package/esm/LinearGenomeView/components/Gridlines.d.ts +2 -1
- package/esm/LinearGenomeView/components/Gridlines.js +0 -1
- package/esm/LinearGenomeView/components/Header.d.ts +2 -1
- package/esm/LinearGenomeView/components/Header.js +0 -1
- package/esm/LinearGenomeView/components/ImportForm.d.ts +2 -1
- package/esm/LinearGenomeView/components/ImportForm.js +0 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +2 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js +4 -4
- package/esm/LinearGenomeView/components/MiniControls.d.ts +3 -2
- package/esm/LinearGenomeView/components/MiniControls.js +20 -18
- package/esm/LinearGenomeView/components/OverviewRubberband.d.ts +1 -1
- package/esm/LinearGenomeView/components/OverviewRubberband.js +0 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.d.ts +2 -2
- package/esm/LinearGenomeView/components/OverviewScalebar.js +10 -5
- package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +10 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +15 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +5 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +22 -0
- package/esm/LinearGenomeView/components/{HelpDialog.d.ts → RefNameAutocomplete/HelpDialog.d.ts} +2 -1
- package/esm/LinearGenomeView/components/{HelpDialog.js → RefNameAutocomplete/HelpDialog.js} +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +18 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +82 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/util.d.ts +12 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/util.js +49 -0
- package/esm/LinearGenomeView/components/Rubberband.d.ts +1 -1
- package/esm/LinearGenomeView/components/Rubberband.js +0 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +2 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.js +0 -1
- package/esm/LinearGenomeView/components/Scalebar.js +0 -1
- package/esm/LinearGenomeView/components/SearchBox.d.ts +2 -1
- package/esm/LinearGenomeView/components/SearchBox.js +0 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +2 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +0 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +2 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.js +0 -1
- package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +2 -1
- package/esm/LinearGenomeView/components/SequenceSearchDialog.js +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.d.ts +3 -3
- package/esm/LinearGenomeView/components/TrackContainer.js +13 -70
- package/esm/LinearGenomeView/components/TrackLabel.js +7 -12
- package/esm/LinearGenomeView/components/TrackLabelContainer.d.ts +9 -0
- package/esm/LinearGenomeView/components/TrackLabelContainer.js +26 -0
- package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +10 -0
- package/esm/LinearGenomeView/components/TrackRenderingContainer.js +48 -0
- package/esm/LinearGenomeView/components/TracksContainer.d.ts +1 -1
- package/esm/LinearGenomeView/components/TracksContainer.js +2 -3
- package/esm/LinearGenomeView/components/VerticalGuide.d.ts +2 -1
- package/esm/LinearGenomeView/components/VerticalGuide.js +0 -1
- package/esm/LinearGenomeView/components/ZoomControls.d.ts +2 -1
- package/esm/LinearGenomeView/components/ZoomControls.js +0 -1
- package/esm/LinearGenomeView/components/hooks.js +0 -1
- package/esm/LinearGenomeView/components/util.js +0 -1
- package/esm/LinearGenomeView/index.js +0 -1
- package/esm/LinearGenomeView/model.d.ts +13 -12
- package/esm/LinearGenomeView/model.js +21 -22
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +3 -4
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +7 -3
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +1 -2
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +0 -1
- package/esm/LinearGenomeView/util.d.ts +2 -2
- package/esm/LinearGenomeView/util.js +0 -1
- package/esm/index.d.ts +160 -134
- package/esm/index.js +1 -2
- package/package.json +3 -4
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js.map +0 -1
- package/dist/BaseLinearDisplay/components/Block.js.map +0 -1
- package/dist/BaseLinearDisplay/components/BlockMsg.js.map +0 -1
- package/dist/BaseLinearDisplay/components/LinearBlocks.js.map +0 -1
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +0 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js.map +0 -1
- package/dist/BaseLinearDisplay/components/Tooltip.js.map +0 -1
- package/dist/BaseLinearDisplay/index.js.map +0 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +0 -1
- package/dist/BaseLinearDisplay/models/configSchema.js.map +0 -1
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +0 -1
- package/dist/BaseLinearDisplay/models/util.js.map +0 -1
- package/dist/BasicTrack/configSchema.js.map +0 -1
- package/dist/BasicTrack/index.js.map +0 -1
- package/dist/FeatureTrack/configSchema.js.map +0 -1
- package/dist/FeatureTrack/index.js.map +0 -1
- package/dist/LaunchLinearGenomeView/index.js.map +0 -1
- package/dist/LinearBareDisplay/configSchema.js.map +0 -1
- package/dist/LinearBareDisplay/index.js.map +0 -1
- package/dist/LinearBareDisplay/model.js.map +0 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js.map +0 -1
- package/dist/LinearBasicDisplay/configSchema.js.map +0 -1
- package/dist/LinearBasicDisplay/index.js.map +0 -1
- package/dist/LinearBasicDisplay/model.js.map +0 -1
- package/dist/LinearGenomeView/components/CenterLine.js.map +0 -1
- package/dist/LinearGenomeView/components/Cytobands.js.map +0 -1
- package/dist/LinearGenomeView/components/ExportSvgDialog.js.map +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.js.map +0 -1
- package/dist/LinearGenomeView/components/Gridlines.js.map +0 -1
- package/dist/LinearGenomeView/components/Header.js.map +0 -1
- package/dist/LinearGenomeView/components/HelpDialog.js.map +0 -1
- package/dist/LinearGenomeView/components/ImportForm.js.map +0 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.js.map +0 -1
- package/dist/LinearGenomeView/components/MiniControls.js.map +0 -1
- package/dist/LinearGenomeView/components/OverviewRubberband.js.map +0 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.js.map +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete.d.ts +0 -23
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +0 -189
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js.map +0 -1
- package/dist/LinearGenomeView/components/Rubberband.js.map +0 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.js.map +0 -1
- package/dist/LinearGenomeView/components/Scalebar.js.map +0 -1
- package/dist/LinearGenomeView/components/SearchBox.js.map +0 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.js.map +0 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.js.map +0 -1
- package/dist/LinearGenomeView/components/SequenceSearchDialog.js.map +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.js.map +0 -1
- package/dist/LinearGenomeView/components/TrackLabel.js.map +0 -1
- package/dist/LinearGenomeView/components/TracksContainer.js.map +0 -1
- package/dist/LinearGenomeView/components/VerticalGuide.js.map +0 -1
- package/dist/LinearGenomeView/components/ZoomControls.js.map +0 -1
- package/dist/LinearGenomeView/components/hooks.js.map +0 -1
- package/dist/LinearGenomeView/components/util.js.map +0 -1
- package/dist/LinearGenomeView/index.js.map +0 -1
- package/dist/LinearGenomeView/model.js.map +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.js.map +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js.map +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js.map +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js.map +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js.map +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js.map +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js.map +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.js.map +0 -1
- package/dist/LinearGenomeView/util.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js.map +0 -1
- package/esm/BaseLinearDisplay/components/Block.js.map +0 -1
- package/esm/BaseLinearDisplay/components/BlockMsg.js.map +0 -1
- package/esm/BaseLinearDisplay/components/LinearBlocks.js.map +0 -1
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +0 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js.map +0 -1
- package/esm/BaseLinearDisplay/components/Tooltip.js.map +0 -1
- package/esm/BaseLinearDisplay/index.js.map +0 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +0 -1
- package/esm/BaseLinearDisplay/models/configSchema.js.map +0 -1
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +0 -1
- package/esm/BaseLinearDisplay/models/util.js.map +0 -1
- package/esm/BasicTrack/configSchema.js.map +0 -1
- package/esm/BasicTrack/index.js.map +0 -1
- package/esm/FeatureTrack/configSchema.js.map +0 -1
- package/esm/FeatureTrack/index.js.map +0 -1
- package/esm/LaunchLinearGenomeView/index.js.map +0 -1
- package/esm/LinearBareDisplay/configSchema.js.map +0 -1
- package/esm/LinearBareDisplay/index.js.map +0 -1
- package/esm/LinearBareDisplay/model.js.map +0 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js.map +0 -1
- package/esm/LinearBasicDisplay/configSchema.js.map +0 -1
- package/esm/LinearBasicDisplay/index.js.map +0 -1
- package/esm/LinearBasicDisplay/model.js.map +0 -1
- package/esm/LinearGenomeView/components/CenterLine.js.map +0 -1
- package/esm/LinearGenomeView/components/Cytobands.js.map +0 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.js.map +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.js.map +0 -1
- package/esm/LinearGenomeView/components/Gridlines.js.map +0 -1
- package/esm/LinearGenomeView/components/Header.js.map +0 -1
- package/esm/LinearGenomeView/components/HelpDialog.js.map +0 -1
- package/esm/LinearGenomeView/components/ImportForm.js.map +0 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js.map +0 -1
- package/esm/LinearGenomeView/components/MiniControls.js.map +0 -1
- package/esm/LinearGenomeView/components/OverviewRubberband.js.map +0 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.js.map +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete.d.ts +0 -23
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js +0 -161
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js.map +0 -1
- package/esm/LinearGenomeView/components/Rubberband.js.map +0 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.js.map +0 -1
- package/esm/LinearGenomeView/components/Scalebar.js.map +0 -1
- package/esm/LinearGenomeView/components/SearchBox.js.map +0 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.js.map +0 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.js.map +0 -1
- package/esm/LinearGenomeView/components/SequenceSearchDialog.js.map +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.js.map +0 -1
- package/esm/LinearGenomeView/components/TrackLabel.js.map +0 -1
- package/esm/LinearGenomeView/components/TracksContainer.js.map +0 -1
- package/esm/LinearGenomeView/components/VerticalGuide.js.map +0 -1
- package/esm/LinearGenomeView/components/ZoomControls.js.map +0 -1
- package/esm/LinearGenomeView/components/hooks.js.map +0 -1
- package/esm/LinearGenomeView/components/util.js.map +0 -1
- package/esm/LinearGenomeView/index.js.map +0 -1
- package/esm/LinearGenomeView/model.js.map +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.js.map +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js.map +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js.map +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js.map +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js.map +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js.map +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js.map +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.js.map +0 -1
- package/esm/LinearGenomeView/util.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/src/BaseLinearDisplay/components/BaseLinearDisplay.tsx +0 -117
- package/src/BaseLinearDisplay/components/Block.tsx +0 -77
- package/src/BaseLinearDisplay/components/BlockMsg.tsx +0 -42
- package/src/BaseLinearDisplay/components/LinearBlocks.tsx +0 -119
- package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +0 -69
- package/src/BaseLinearDisplay/components/TooLargeMessage.tsx +0 -36
- package/src/BaseLinearDisplay/components/Tooltip.tsx +0 -107
- package/src/BaseLinearDisplay/index.ts +0 -12
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +0 -768
- package/src/BaseLinearDisplay/models/configSchema.ts +0 -59
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +0 -318
- package/src/BaseLinearDisplay/models/util.ts +0 -67
- package/src/BasicTrack/configSchema.ts +0 -23
- package/src/BasicTrack/index.ts +0 -18
- package/src/FeatureTrack/configSchema.ts +0 -27
- package/src/FeatureTrack/index.ts +0 -18
- package/src/LaunchLinearGenomeView/index.ts +0 -66
- package/src/LinearBareDisplay/configSchema.ts +0 -27
- package/src/LinearBareDisplay/index.test.js +0 -34
- package/src/LinearBareDisplay/index.ts +0 -25
- package/src/LinearBareDisplay/model.ts +0 -53
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +0 -73
- package/src/LinearBasicDisplay/configSchema.ts +0 -27
- package/src/LinearBasicDisplay/index.ts +0 -25
- package/src/LinearBasicDisplay/model.ts +0 -214
- package/src/LinearGenomeView/README.md +0 -9
- package/src/LinearGenomeView/components/CenterLine.tsx +0 -65
- package/src/LinearGenomeView/components/Cytobands.tsx +0 -154
- package/src/LinearGenomeView/components/ExportSvgDialog.tsx +0 -149
- package/src/LinearGenomeView/components/GetSequenceDialog.tsx +0 -269
- package/src/LinearGenomeView/components/Gridlines.tsx +0 -119
- package/src/LinearGenomeView/components/Header.tsx +0 -126
- package/src/LinearGenomeView/components/HelpDialog.tsx +0 -69
- package/src/LinearGenomeView/components/ImportForm.tsx +0 -217
- package/src/LinearGenomeView/components/LinearGenomeView.test.tsx +0 -167
- package/src/LinearGenomeView/components/LinearGenomeView.tsx +0 -72
- package/src/LinearGenomeView/components/MiniControls.tsx +0 -55
- package/src/LinearGenomeView/components/OverviewRubberband.tsx +0 -219
- package/src/LinearGenomeView/components/OverviewScalebar.tsx +0 -345
- package/src/LinearGenomeView/components/RefNameAutocomplete.tsx +0 -321
- package/src/LinearGenomeView/components/Rubberband.tsx +0 -89
- package/src/LinearGenomeView/components/RubberbandSpan.tsx +0 -99
- package/src/LinearGenomeView/components/Scalebar.test.tsx +0 -145
- package/src/LinearGenomeView/components/Scalebar.tsx +0 -199
- package/src/LinearGenomeView/components/SearchBox.tsx +0 -123
- package/src/LinearGenomeView/components/SearchResultsDialog.tsx +0 -57
- package/src/LinearGenomeView/components/SearchResultsTable.tsx +0 -121
- package/src/LinearGenomeView/components/SequenceSearchDialog.tsx +0 -136
- package/src/LinearGenomeView/components/TrackContainer.tsx +0 -180
- package/src/LinearGenomeView/components/TrackLabel.tsx +0 -143
- package/src/LinearGenomeView/components/TracksContainer.tsx +0 -114
- package/src/LinearGenomeView/components/VerticalGuide.tsx +0 -37
- package/src/LinearGenomeView/components/ZoomControls.tsx +0 -62
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +0 -1520
- package/src/LinearGenomeView/components/hooks.ts +0 -306
- package/src/LinearGenomeView/components/util.ts +0 -76
- package/src/LinearGenomeView/hg38DisplayedRegions.json +0 -3187
- package/src/LinearGenomeView/index.test.ts +0 -993
- package/src/LinearGenomeView/index.ts +0 -17
- package/src/LinearGenomeView/model.ts +0 -1532
- package/src/LinearGenomeView/svgcomponents/SVGBackground.tsx +0 -21
- package/src/LinearGenomeView/svgcomponents/SVGHeader.tsx +0 -93
- package/src/LinearGenomeView/svgcomponents/SVGLinearGenomeView.tsx +0 -114
- package/src/LinearGenomeView/svgcomponents/SVGRegionSeparators.tsx +0 -31
- package/src/LinearGenomeView/svgcomponents/SVGRuler.tsx +0 -125
- package/src/LinearGenomeView/svgcomponents/SVGScalebar.tsx +0 -57
- package/src/LinearGenomeView/svgcomponents/SVGTrackLabel.tsx +0 -47
- package/src/LinearGenomeView/svgcomponents/SVGTracks.tsx +0 -67
- package/src/LinearGenomeView/util.test.ts +0 -33
- package/src/LinearGenomeView/util.ts +0 -182
- package/src/LinearGenomeView/volvoxDisplayedRegions.json +0 -16
- package/src/index.ts +0 -85
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* #config BaseLinearDisplay
|
|
5
|
-
* `BaseLinearDisplay` is a "base" config that is extended by classes like
|
|
6
|
-
* `LinearBasicDisplay` (used for feature tracks, etc) and `LinearBareDisplay`
|
|
7
|
-
* (more stripped down than even the basic display, not commonly used)
|
|
8
|
-
*/
|
|
9
|
-
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
10
|
-
|
|
11
|
-
const baseLinearDisplayConfigSchema = ConfigurationSchema(
|
|
12
|
-
'BaseLinearDisplay',
|
|
13
|
-
{
|
|
14
|
-
/**
|
|
15
|
-
* #slot
|
|
16
|
-
*/
|
|
17
|
-
maxFeatureScreenDensity: {
|
|
18
|
-
type: 'number',
|
|
19
|
-
description:
|
|
20
|
-
'maximum features per pixel that is displayed in the view, used if byte size estimates not available',
|
|
21
|
-
defaultValue: 0.3,
|
|
22
|
-
},
|
|
23
|
-
/**
|
|
24
|
-
* #slot
|
|
25
|
-
*/
|
|
26
|
-
fetchSizeLimit: {
|
|
27
|
-
type: 'number',
|
|
28
|
-
defaultValue: 1_000_000,
|
|
29
|
-
description:
|
|
30
|
-
"maximum data to attempt to download for a given track, used if adapter doesn't specify one",
|
|
31
|
-
},
|
|
32
|
-
/**
|
|
33
|
-
* #slot
|
|
34
|
-
*/
|
|
35
|
-
height: {
|
|
36
|
-
type: 'number',
|
|
37
|
-
defaultValue: 100,
|
|
38
|
-
description: 'default height for the track',
|
|
39
|
-
},
|
|
40
|
-
/**
|
|
41
|
-
* #slot
|
|
42
|
-
*/
|
|
43
|
-
mouseover: {
|
|
44
|
-
type: 'string',
|
|
45
|
-
description: 'text to display when the cursor hovers over a feature',
|
|
46
|
-
defaultValue: `jexl:get(feature,'name')`,
|
|
47
|
-
|
|
48
|
-
contextVariable: ['feature'],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
/**
|
|
53
|
-
* #identifier
|
|
54
|
-
*/
|
|
55
|
-
explicitIdentifier: 'displayId',
|
|
56
|
-
},
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
export default baseLinearDisplayConfigSchema
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import {
|
|
4
|
-
types,
|
|
5
|
-
getParent,
|
|
6
|
-
isAlive,
|
|
7
|
-
cast,
|
|
8
|
-
Instance,
|
|
9
|
-
getSnapshot,
|
|
10
|
-
} from 'mobx-state-tree'
|
|
11
|
-
import { readConfObject } from '@jbrowse/core/configuration'
|
|
12
|
-
import {
|
|
13
|
-
assembleLocString,
|
|
14
|
-
getSession,
|
|
15
|
-
getContainingDisplay,
|
|
16
|
-
getContainingView,
|
|
17
|
-
getViewParams,
|
|
18
|
-
makeAbortableReaction,
|
|
19
|
-
Feature,
|
|
20
|
-
} from '@jbrowse/core/util'
|
|
21
|
-
import { Region } from '@jbrowse/core/util/types/mst'
|
|
22
|
-
import {
|
|
23
|
-
AbstractDisplayModel,
|
|
24
|
-
isRetryException,
|
|
25
|
-
} from '@jbrowse/core/util/types'
|
|
26
|
-
|
|
27
|
-
import {
|
|
28
|
-
getTrackAssemblyNames,
|
|
29
|
-
getRpcSessionId,
|
|
30
|
-
} from '@jbrowse/core/util/tracks'
|
|
31
|
-
|
|
32
|
-
// locals
|
|
33
|
-
import ServerSideRenderedBlockContent from '../components/ServerSideRenderedBlockContent'
|
|
34
|
-
|
|
35
|
-
// the MST state of a single server-side-rendered block in a display
|
|
36
|
-
const blockState = types
|
|
37
|
-
.model('BlockState', {
|
|
38
|
-
key: types.string,
|
|
39
|
-
region: Region,
|
|
40
|
-
reloadFlag: 0,
|
|
41
|
-
isLeftEndOfDisplayedRegion: false,
|
|
42
|
-
isRightEndOfDisplayedRegion: false,
|
|
43
|
-
})
|
|
44
|
-
// NOTE: all this volatile stuff has to be filled in at once, so that it stays consistent
|
|
45
|
-
.volatile(() => ({
|
|
46
|
-
renderInProgress: undefined as AbortController | undefined,
|
|
47
|
-
filled: false,
|
|
48
|
-
reactElement: undefined as React.ReactElement | undefined,
|
|
49
|
-
features: undefined as Map<string, Feature> | undefined,
|
|
50
|
-
layout: undefined as any,
|
|
51
|
-
status: '',
|
|
52
|
-
error: undefined as unknown,
|
|
53
|
-
message: undefined as string | undefined,
|
|
54
|
-
maxHeightReached: false,
|
|
55
|
-
ReactComponent: ServerSideRenderedBlockContent,
|
|
56
|
-
renderProps: undefined as any,
|
|
57
|
-
}))
|
|
58
|
-
.actions(self => {
|
|
59
|
-
let renderInProgress: undefined | AbortController
|
|
60
|
-
return {
|
|
61
|
-
doReload() {
|
|
62
|
-
self.reloadFlag = self.reloadFlag + 1
|
|
63
|
-
},
|
|
64
|
-
afterAttach() {
|
|
65
|
-
const display = getContainingDisplay(self)
|
|
66
|
-
setTimeout(() => {
|
|
67
|
-
if (isAlive(self)) {
|
|
68
|
-
makeAbortableReaction(
|
|
69
|
-
self as any,
|
|
70
|
-
renderBlockData,
|
|
71
|
-
renderBlockEffect, // reaction doesn't expect async here
|
|
72
|
-
{
|
|
73
|
-
name: `${display.id}/${assembleLocString(
|
|
74
|
-
self.region,
|
|
75
|
-
)} rendering`,
|
|
76
|
-
delay: display.renderDelay,
|
|
77
|
-
fireImmediately: true,
|
|
78
|
-
},
|
|
79
|
-
this.setLoading,
|
|
80
|
-
this.setRendered,
|
|
81
|
-
this.setError,
|
|
82
|
-
)
|
|
83
|
-
}
|
|
84
|
-
}, display.renderDelay)
|
|
85
|
-
},
|
|
86
|
-
setStatus(message: string) {
|
|
87
|
-
self.status = message
|
|
88
|
-
},
|
|
89
|
-
setLoading(abortController: AbortController) {
|
|
90
|
-
if (
|
|
91
|
-
renderInProgress !== undefined &&
|
|
92
|
-
!renderInProgress.signal.aborted
|
|
93
|
-
) {
|
|
94
|
-
renderInProgress.abort()
|
|
95
|
-
}
|
|
96
|
-
self.filled = false
|
|
97
|
-
self.message = undefined
|
|
98
|
-
self.reactElement = undefined
|
|
99
|
-
self.features = undefined
|
|
100
|
-
self.layout = undefined
|
|
101
|
-
self.error = undefined
|
|
102
|
-
self.maxHeightReached = false
|
|
103
|
-
self.renderProps = undefined
|
|
104
|
-
renderInProgress = abortController
|
|
105
|
-
},
|
|
106
|
-
setMessage(messageText: string) {
|
|
107
|
-
if (renderInProgress && !renderInProgress.signal.aborted) {
|
|
108
|
-
renderInProgress.abort()
|
|
109
|
-
}
|
|
110
|
-
self.filled = false
|
|
111
|
-
self.message = messageText
|
|
112
|
-
self.reactElement = undefined
|
|
113
|
-
self.features = undefined
|
|
114
|
-
self.layout = undefined
|
|
115
|
-
self.error = undefined
|
|
116
|
-
self.maxHeightReached = false
|
|
117
|
-
self.renderProps = undefined
|
|
118
|
-
renderInProgress = undefined
|
|
119
|
-
},
|
|
120
|
-
setRendered(
|
|
121
|
-
props:
|
|
122
|
-
| {
|
|
123
|
-
reactElement: React.ReactElement
|
|
124
|
-
features: Map<string, Feature>
|
|
125
|
-
layout: any
|
|
126
|
-
maxHeightReached: boolean
|
|
127
|
-
renderProps: any
|
|
128
|
-
}
|
|
129
|
-
| undefined,
|
|
130
|
-
) {
|
|
131
|
-
if (!props) {
|
|
132
|
-
return
|
|
133
|
-
}
|
|
134
|
-
const {
|
|
135
|
-
reactElement,
|
|
136
|
-
features,
|
|
137
|
-
layout,
|
|
138
|
-
maxHeightReached,
|
|
139
|
-
renderProps,
|
|
140
|
-
} = props
|
|
141
|
-
self.filled = true
|
|
142
|
-
self.message = undefined
|
|
143
|
-
self.reactElement = reactElement
|
|
144
|
-
self.features = features
|
|
145
|
-
self.layout = layout
|
|
146
|
-
self.error = undefined
|
|
147
|
-
self.maxHeightReached = maxHeightReached
|
|
148
|
-
self.renderProps = renderProps
|
|
149
|
-
renderInProgress = undefined
|
|
150
|
-
},
|
|
151
|
-
setError(error: unknown) {
|
|
152
|
-
console.error(error)
|
|
153
|
-
if (renderInProgress && !renderInProgress.signal.aborted) {
|
|
154
|
-
renderInProgress.abort()
|
|
155
|
-
}
|
|
156
|
-
// the rendering failed for some reason
|
|
157
|
-
self.filled = false
|
|
158
|
-
self.message = undefined
|
|
159
|
-
self.reactElement = undefined
|
|
160
|
-
self.features = undefined
|
|
161
|
-
self.layout = undefined
|
|
162
|
-
self.maxHeightReached = false
|
|
163
|
-
self.error = error
|
|
164
|
-
self.renderProps = undefined
|
|
165
|
-
renderInProgress = undefined
|
|
166
|
-
if (isRetryException(error as Error)) {
|
|
167
|
-
this.reload()
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
reload() {
|
|
171
|
-
self.renderInProgress = undefined
|
|
172
|
-
self.filled = false
|
|
173
|
-
self.reactElement = undefined
|
|
174
|
-
self.features = undefined
|
|
175
|
-
self.layout = undefined
|
|
176
|
-
self.error = undefined
|
|
177
|
-
self.message = undefined
|
|
178
|
-
self.maxHeightReached = false
|
|
179
|
-
self.ReactComponent = ServerSideRenderedBlockContent
|
|
180
|
-
self.renderProps = undefined
|
|
181
|
-
getParent<any>(self, 2).reload()
|
|
182
|
-
},
|
|
183
|
-
beforeDestroy() {
|
|
184
|
-
if (renderInProgress && !renderInProgress.signal.aborted) {
|
|
185
|
-
renderInProgress.abort()
|
|
186
|
-
}
|
|
187
|
-
const display = getContainingDisplay(self)
|
|
188
|
-
const { rpcManager } = getSession(self)
|
|
189
|
-
const { rendererType } = display
|
|
190
|
-
const { renderArgs } = renderBlockData(cast(self))
|
|
191
|
-
// renderArgs can be undefined if an error occurred in this block
|
|
192
|
-
if (renderArgs) {
|
|
193
|
-
rendererType
|
|
194
|
-
.freeResourcesInClient(
|
|
195
|
-
rpcManager,
|
|
196
|
-
JSON.parse(JSON.stringify(renderArgs)),
|
|
197
|
-
)
|
|
198
|
-
.catch((e: Error) => {
|
|
199
|
-
// just console.error if it's something while it's being destroyed
|
|
200
|
-
console.warn('Error while destroying block', e)
|
|
201
|
-
})
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
}
|
|
205
|
-
})
|
|
206
|
-
|
|
207
|
-
export default blockState
|
|
208
|
-
export type BlockStateModel = typeof blockState
|
|
209
|
-
export type BlockModel = Instance<BlockStateModel>
|
|
210
|
-
|
|
211
|
-
// calls the render worker to render the block content not using a flow for
|
|
212
|
-
// this, because the flow doesn't work with autorun
|
|
213
|
-
export function renderBlockData(
|
|
214
|
-
self: BlockModel,
|
|
215
|
-
optDisplay?: AbstractDisplayModel,
|
|
216
|
-
) {
|
|
217
|
-
try {
|
|
218
|
-
const display = optDisplay || (getContainingDisplay(self) as any)
|
|
219
|
-
const { assemblyManager, rpcManager } = getSession(display)
|
|
220
|
-
const { adapterConfig, rendererType, error, parentTrack } = display
|
|
221
|
-
const assemblyNames = getTrackAssemblyNames(parentTrack)
|
|
222
|
-
const regionAsm = self.region.assemblyName
|
|
223
|
-
if (
|
|
224
|
-
!assemblyNames.includes(regionAsm) &&
|
|
225
|
-
!assemblyNames.some(name => assemblyManager.get(name)?.hasName(regionAsm))
|
|
226
|
-
) {
|
|
227
|
-
throw new Error(
|
|
228
|
-
`region assembly (${regionAsm}) does not match track assemblies (${assemblyNames})`,
|
|
229
|
-
)
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
const renderProps = display.renderProps()
|
|
233
|
-
const { config } = renderProps
|
|
234
|
-
|
|
235
|
-
// This line is to trigger the mobx reaction when the config changes
|
|
236
|
-
// It won't trigger the reaction if it doesn't think we're accessing it
|
|
237
|
-
readConfObject(config)
|
|
238
|
-
|
|
239
|
-
const sessionId = getRpcSessionId(display)
|
|
240
|
-
const layoutId = getContainingView(display).id
|
|
241
|
-
const cannotBeRenderedReason = display.regionCannotBeRendered(self.region)
|
|
242
|
-
|
|
243
|
-
return {
|
|
244
|
-
rendererType,
|
|
245
|
-
rpcManager,
|
|
246
|
-
renderProps,
|
|
247
|
-
cannotBeRenderedReason,
|
|
248
|
-
displayError: error,
|
|
249
|
-
renderArgs: {
|
|
250
|
-
statusCallback: (message: string) => {
|
|
251
|
-
if (isAlive(self)) {
|
|
252
|
-
self.setStatus(message)
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
assemblyName: self.region.assemblyName,
|
|
256
|
-
regions: [getSnapshot(self.region)],
|
|
257
|
-
adapterConfig,
|
|
258
|
-
rendererType: rendererType.name,
|
|
259
|
-
sessionId,
|
|
260
|
-
layoutId,
|
|
261
|
-
blockKey: self.key,
|
|
262
|
-
reloadFlag: self.reloadFlag,
|
|
263
|
-
timeout: 1000000, // 10000,
|
|
264
|
-
},
|
|
265
|
-
}
|
|
266
|
-
} catch (e) {
|
|
267
|
-
return { displayError: e }
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
async function renderBlockEffect(
|
|
272
|
-
props: ReturnType<typeof renderBlockData> | undefined,
|
|
273
|
-
signal: AbortSignal,
|
|
274
|
-
self: BlockModel,
|
|
275
|
-
) {
|
|
276
|
-
if (!props) {
|
|
277
|
-
return
|
|
278
|
-
}
|
|
279
|
-
const {
|
|
280
|
-
rendererType,
|
|
281
|
-
renderProps,
|
|
282
|
-
rpcManager,
|
|
283
|
-
renderArgs,
|
|
284
|
-
cannotBeRenderedReason,
|
|
285
|
-
displayError,
|
|
286
|
-
} = props
|
|
287
|
-
if (!isAlive(self)) {
|
|
288
|
-
return undefined
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (displayError) {
|
|
292
|
-
self.setError(displayError)
|
|
293
|
-
return undefined
|
|
294
|
-
}
|
|
295
|
-
if (cannotBeRenderedReason) {
|
|
296
|
-
self.setMessage(cannotBeRenderedReason)
|
|
297
|
-
return undefined
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
if (renderProps.notReady) {
|
|
301
|
-
return undefined
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
const { reactElement, features, layout, maxHeightReached } =
|
|
305
|
-
await rendererType.renderInClient(rpcManager, {
|
|
306
|
-
...renderArgs,
|
|
307
|
-
...renderProps,
|
|
308
|
-
viewParams: getViewParams(self),
|
|
309
|
-
signal,
|
|
310
|
-
})
|
|
311
|
-
return {
|
|
312
|
-
reactElement,
|
|
313
|
-
features,
|
|
314
|
-
layout,
|
|
315
|
-
maxHeightReached,
|
|
316
|
-
renderProps,
|
|
317
|
-
}
|
|
318
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration'
|
|
2
|
-
import { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter'
|
|
3
|
-
import { getContainingView, getSession } from '@jbrowse/core/util'
|
|
4
|
-
import { getRpcSessionId } from '@jbrowse/core/util/tracks'
|
|
5
|
-
import { IAnyStateTreeNode, isAlive } from 'mobx-state-tree'
|
|
6
|
-
import { LinearGenomeViewModel } from '../../LinearGenomeView'
|
|
7
|
-
|
|
8
|
-
export interface RenderProps {
|
|
9
|
-
rendererType: any // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
10
|
-
renderArgs: { [key: string]: any } // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
11
|
-
renderProps: { [key: string]: any } // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
12
|
-
displayError: unknown
|
|
13
|
-
rpcManager: { call: Function }
|
|
14
|
-
cannotBeRenderedReason: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface ErrorProps {
|
|
18
|
-
displayError: string
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function getDisplayStr(totalBytes: number) {
|
|
22
|
-
let displayBp
|
|
23
|
-
if (Math.floor(totalBytes / 1000000) > 0) {
|
|
24
|
-
displayBp = `${Number.parseFloat((totalBytes / 1000000).toPrecision(3))} Mb`
|
|
25
|
-
} else if (Math.floor(totalBytes / 1000) > 0) {
|
|
26
|
-
displayBp = `${Number.parseFloat((totalBytes / 1000).toPrecision(3))} Kb`
|
|
27
|
-
} else {
|
|
28
|
-
displayBp = `${Math.floor(totalBytes)} bytes`
|
|
29
|
-
}
|
|
30
|
-
return displayBp
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// stabilize clipid under test for snapshot
|
|
34
|
-
export function getId(id: string, index: number) {
|
|
35
|
-
const isJest = typeof jest === 'undefined'
|
|
36
|
-
return `clip-${isJest ? id : 'jest'}-${index}`
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export async function getFeatureDensityStatsPre(
|
|
40
|
-
self: IAnyStateTreeNode & {
|
|
41
|
-
adapterConfig?: AnyConfigurationModel
|
|
42
|
-
setMessage: (arg: string) => void
|
|
43
|
-
},
|
|
44
|
-
) {
|
|
45
|
-
const view = getContainingView(self) as LinearGenomeViewModel
|
|
46
|
-
const regions = view.staticBlocks.contentBlocks
|
|
47
|
-
|
|
48
|
-
const { rpcManager } = getSession(self)
|
|
49
|
-
const { adapterConfig } = self
|
|
50
|
-
if (!adapterConfig) {
|
|
51
|
-
// A track extending the base track might not have an adapter config
|
|
52
|
-
// e.g. Apollo tracks don't use adapters
|
|
53
|
-
return {}
|
|
54
|
-
}
|
|
55
|
-
const sessionId = getRpcSessionId(self)
|
|
56
|
-
|
|
57
|
-
return rpcManager.call(sessionId, 'CoreGetFeatureDensityStats', {
|
|
58
|
-
sessionId,
|
|
59
|
-
regions,
|
|
60
|
-
adapterConfig,
|
|
61
|
-
statusCallback: (message: string) => {
|
|
62
|
-
if (isAlive(self)) {
|
|
63
|
-
self.setMessage(message)
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
}) as Promise<FeatureDensityStats>
|
|
67
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
-
import { createBaseTrackConfig } from '@jbrowse/core/pluggableElementTypes'
|
|
3
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* #config BasicTrack
|
|
7
|
-
* synonym for FeatureTrack
|
|
8
|
-
*/
|
|
9
|
-
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
10
|
-
|
|
11
|
-
const configSchema = (pluginManager: PluginManager) =>
|
|
12
|
-
ConfigurationSchema(
|
|
13
|
-
'BasicTrack',
|
|
14
|
-
{},
|
|
15
|
-
{
|
|
16
|
-
/**
|
|
17
|
-
* #baseConfiguration
|
|
18
|
-
*/
|
|
19
|
-
baseConfiguration: createBaseTrackConfig(pluginManager),
|
|
20
|
-
explicitIdentifier: 'trackId',
|
|
21
|
-
},
|
|
22
|
-
)
|
|
23
|
-
export default configSchema
|
package/src/BasicTrack/index.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createBaseTrackModel,
|
|
3
|
-
TrackType,
|
|
4
|
-
} from '@jbrowse/core/pluggableElementTypes'
|
|
5
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
6
|
-
import configSchemaF from './configSchema'
|
|
7
|
-
|
|
8
|
-
export default (pm: PluginManager) => {
|
|
9
|
-
pm.addTrackType(() => {
|
|
10
|
-
const configSchema = configSchemaF(pm)
|
|
11
|
-
|
|
12
|
-
return new TrackType({
|
|
13
|
-
name: 'BasicTrack',
|
|
14
|
-
configSchema,
|
|
15
|
-
stateModel: createBaseTrackModel(pm, 'BasicTrack', configSchema),
|
|
16
|
-
})
|
|
17
|
-
})
|
|
18
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
-
import { createBaseTrackConfig } from '@jbrowse/core/pluggableElementTypes'
|
|
3
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* #config FeatureTrack
|
|
7
|
-
* used for basic gene and feature tracks, generally used with LinearBasicDisplay
|
|
8
|
-
*/
|
|
9
|
-
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
10
|
-
|
|
11
|
-
const configSchema = (pluginManager: PluginManager) =>
|
|
12
|
-
ConfigurationSchema(
|
|
13
|
-
'FeatureTrack',
|
|
14
|
-
{},
|
|
15
|
-
{
|
|
16
|
-
/**
|
|
17
|
-
* #baseConfiguration
|
|
18
|
-
*/
|
|
19
|
-
baseConfiguration: createBaseTrackConfig(pluginManager),
|
|
20
|
-
/**
|
|
21
|
-
* #identifier
|
|
22
|
-
*/
|
|
23
|
-
explicitIdentifier: 'trackId',
|
|
24
|
-
},
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
export default configSchema
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createBaseTrackModel,
|
|
3
|
-
TrackType,
|
|
4
|
-
} from '@jbrowse/core/pluggableElementTypes'
|
|
5
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
6
|
-
import configSchemaF from './configSchema'
|
|
7
|
-
|
|
8
|
-
export default (pm: PluginManager) => {
|
|
9
|
-
pm.addTrackType(() => {
|
|
10
|
-
const configSchema = configSchemaF(pm)
|
|
11
|
-
return new TrackType({
|
|
12
|
-
name: 'FeatureTrack',
|
|
13
|
-
displayName: 'Feature track',
|
|
14
|
-
configSchema,
|
|
15
|
-
stateModel: createBaseTrackModel(pm, 'FeatureTrack', configSchema),
|
|
16
|
-
})
|
|
17
|
-
})
|
|
18
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import { AbstractSessionModel, when } from '@jbrowse/core/util'
|
|
3
|
-
import { LinearGenomeViewModel } from '../LinearGenomeView'
|
|
4
|
-
|
|
5
|
-
type LGV = LinearGenomeViewModel
|
|
6
|
-
|
|
7
|
-
export default (pluginManager: PluginManager) => {
|
|
8
|
-
pluginManager.addToExtensionPoint(
|
|
9
|
-
'LaunchView-LinearGenomeView',
|
|
10
|
-
// @ts-expect-error
|
|
11
|
-
async ({
|
|
12
|
-
session,
|
|
13
|
-
assembly,
|
|
14
|
-
loc,
|
|
15
|
-
tracks = [],
|
|
16
|
-
}: {
|
|
17
|
-
session: AbstractSessionModel
|
|
18
|
-
assembly?: string
|
|
19
|
-
loc: string
|
|
20
|
-
tracks?: string[]
|
|
21
|
-
}) => {
|
|
22
|
-
try {
|
|
23
|
-
const { assemblyManager } = session
|
|
24
|
-
const view = session.addView('LinearGenomeView', {}) as LGV
|
|
25
|
-
|
|
26
|
-
await when(() => !!view.volatileWidth)
|
|
27
|
-
|
|
28
|
-
if (!assembly) {
|
|
29
|
-
throw new Error(
|
|
30
|
-
'No assembly provided when launching linear genome view',
|
|
31
|
-
)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const asm = await assemblyManager.waitForAssembly(assembly)
|
|
35
|
-
if (!asm) {
|
|
36
|
-
throw new Error(
|
|
37
|
-
`Assembly "${assembly}" not found when launching linear genome view`,
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
await view.navToLocString(loc, assembly)
|
|
42
|
-
|
|
43
|
-
const idsNotFound = [] as string[]
|
|
44
|
-
tracks.forEach(track => {
|
|
45
|
-
try {
|
|
46
|
-
view.showTrack(track)
|
|
47
|
-
} catch (e) {
|
|
48
|
-
if (`${e}`.match('Could not resolve identifier')) {
|
|
49
|
-
idsNotFound.push(track)
|
|
50
|
-
} else {
|
|
51
|
-
throw e
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
if (idsNotFound.length) {
|
|
56
|
-
throw new Error(
|
|
57
|
-
`Could not resolve identifiers: ${idsNotFound.join(',')}`,
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
} catch (e) {
|
|
61
|
-
session.notify(`${e}`, 'error')
|
|
62
|
-
throw e
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
)
|
|
66
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
3
|
-
import { baseLinearDisplayConfigSchema } from '../BaseLinearDisplay'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* #config LinearBareDisplay
|
|
7
|
-
*/
|
|
8
|
-
function configSchemaFactory(pluginManager: PluginManager) {
|
|
9
|
-
return ConfigurationSchema(
|
|
10
|
-
'LinearBareDisplay',
|
|
11
|
-
{
|
|
12
|
-
/**
|
|
13
|
-
* #slot
|
|
14
|
-
*/
|
|
15
|
-
renderer: pluginManager.pluggableConfigSchemaType('renderer'),
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
/**
|
|
19
|
-
* #baseConfiguration
|
|
20
|
-
*/
|
|
21
|
-
baseConfiguration: baseLinearDisplayConfigSchema,
|
|
22
|
-
explicitlyTyped: true,
|
|
23
|
-
},
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { configSchemaFactory }
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { types } from 'mobx-state-tree'
|
|
2
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
3
|
-
import { configSchemaFactory } from '.'
|
|
4
|
-
|
|
5
|
-
test('config schema renderer type', () => {
|
|
6
|
-
const stubPluginManager = {
|
|
7
|
-
pluggableConfigSchemaType(type) {
|
|
8
|
-
const one = ConfigurationSchema(
|
|
9
|
-
`${type}_TypeOne`,
|
|
10
|
-
{},
|
|
11
|
-
{ explicitlyTyped: true },
|
|
12
|
-
)
|
|
13
|
-
const two = ConfigurationSchema(
|
|
14
|
-
`${type}_TypeTwo`,
|
|
15
|
-
{},
|
|
16
|
-
{ explicitlyTyped: true },
|
|
17
|
-
)
|
|
18
|
-
const three = ConfigurationSchema(
|
|
19
|
-
`${type}_TypeThree`,
|
|
20
|
-
{},
|
|
21
|
-
{ explicitlyTyped: true },
|
|
22
|
-
)
|
|
23
|
-
return types.union(one, two, three)
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const configSchema = configSchemaFactory(stubPluginManager)
|
|
28
|
-
const instance = configSchema.create({
|
|
29
|
-
type: 'LinearBareDisplay',
|
|
30
|
-
displayId: 'displayId0',
|
|
31
|
-
renderer: { type: 'renderer_TypeTwo' },
|
|
32
|
-
})
|
|
33
|
-
expect(instance.renderer.type).toBe('renderer_TypeTwo')
|
|
34
|
-
})
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import { DisplayType } from '@jbrowse/core/pluggableElementTypes'
|
|
3
|
-
|
|
4
|
-
// locals
|
|
5
|
-
import { configSchemaFactory } from './configSchema'
|
|
6
|
-
import { stateModelFactory } from './model'
|
|
7
|
-
import { BaseLinearDisplayComponent } from '../BaseLinearDisplay/'
|
|
8
|
-
|
|
9
|
-
export default (pluginManager: PluginManager) => {
|
|
10
|
-
pluginManager.addDisplayType(() => {
|
|
11
|
-
const configSchema = configSchemaFactory(pluginManager)
|
|
12
|
-
return new DisplayType({
|
|
13
|
-
name: 'LinearBareDisplay',
|
|
14
|
-
configSchema,
|
|
15
|
-
displayName: 'Bare feature display',
|
|
16
|
-
stateModel: stateModelFactory(configSchema),
|
|
17
|
-
trackType: 'BasicTrack',
|
|
18
|
-
viewType: 'LinearGenomeView',
|
|
19
|
-
ReactComponent: BaseLinearDisplayComponent,
|
|
20
|
-
})
|
|
21
|
-
})
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { configSchemaFactory } from './configSchema'
|
|
25
|
-
export { stateModelFactory } from './model'
|