@jbrowse/plugin-linear-genome-view 2.6.1 → 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.js +0 -1
- package/dist/BaseLinearDisplay/components/Block.js +0 -1
- package/dist/BaseLinearDisplay/components/BlockMsg.js +0 -1
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +0 -1
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +0 -1
- package/dist/BaseLinearDisplay/components/Tooltip.js +0 -1
- package/dist/BaseLinearDisplay/index.js +0 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -1
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +0 -1
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +0 -1
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +0 -1
- package/dist/BaseLinearDisplay/models/configSchema.js +0 -1
- package/dist/BaseLinearDisplay/models/renderSvg.js +0 -1
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +0 -1
- package/dist/BaseLinearDisplay/models/util.js +0 -1
- package/dist/BasicTrack/configSchema.js +0 -1
- package/dist/BasicTrack/index.js +0 -1
- package/dist/FeatureTrack/configSchema.js +0 -1
- package/dist/FeatureTrack/index.js +0 -1
- package/dist/LaunchLinearGenomeView/index.js +0 -1
- package/dist/LinearBareDisplay/configSchema.js +0 -1
- package/dist/LinearBareDisplay/index.js +0 -1
- package/dist/LinearBareDisplay/model.js +0 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +0 -1
- package/dist/LinearBasicDisplay/configSchema.js +0 -1
- package/dist/LinearBasicDisplay/index.js +0 -1
- package/dist/LinearBasicDisplay/model.js +0 -1
- package/dist/LinearGenomeView/components/CenterLine.js +0 -1
- package/dist/LinearGenomeView/components/Cytobands.js +0 -1
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.js +0 -1
- package/dist/LinearGenomeView/components/Gridlines.js +0 -1
- package/dist/LinearGenomeView/components/Header.js +0 -1
- package/dist/LinearGenomeView/components/ImportForm.js +0 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -1
- package/dist/LinearGenomeView/components/MiniControls.js +0 -1
- package/dist/LinearGenomeView/components/OverviewRubberband.js +0 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.js +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +0 -1
- package/dist/LinearGenomeView/components/Rubberband.js +0 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.js +0 -1
- package/dist/LinearGenomeView/components/Scalebar.js +0 -1
- package/dist/LinearGenomeView/components/SearchBox.js +0 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +0 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.js +0 -1
- package/dist/LinearGenomeView/components/SequenceSearchDialog.js +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.js +0 -1
- package/dist/LinearGenomeView/components/TrackLabel.js +1 -2
- package/dist/LinearGenomeView/components/TrackLabelContainer.js +0 -1
- package/dist/LinearGenomeView/components/TrackRenderingContainer.js +0 -1
- package/dist/LinearGenomeView/components/TracksContainer.js +0 -1
- package/dist/LinearGenomeView/components/VerticalGuide.js +0 -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.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +0 -1
- package/dist/LinearGenomeView/util.js +0 -1
- package/dist/index.js +0 -1
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -1
- package/esm/BaseLinearDisplay/components/Block.js +0 -1
- package/esm/BaseLinearDisplay/components/BlockMsg.js +0 -1
- package/esm/BaseLinearDisplay/components/LinearBlocks.js +0 -1
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +0 -1
- package/esm/BaseLinearDisplay/components/Tooltip.js +0 -1
- package/esm/BaseLinearDisplay/index.js +0 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -1
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +0 -1
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.js +0 -1
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js +0 -1
- package/esm/BaseLinearDisplay/models/configSchema.js +0 -1
- package/esm/BaseLinearDisplay/models/renderSvg.js +0 -1
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +0 -1
- package/esm/BaseLinearDisplay/models/util.js +0 -1
- package/esm/BasicTrack/configSchema.js +0 -1
- package/esm/BasicTrack/index.js +0 -1
- package/esm/FeatureTrack/configSchema.js +0 -1
- package/esm/FeatureTrack/index.js +0 -1
- package/esm/LaunchLinearGenomeView/index.js +0 -1
- package/esm/LinearBareDisplay/configSchema.js +0 -1
- package/esm/LinearBareDisplay/index.js +0 -1
- package/esm/LinearBareDisplay/model.js +0 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js +0 -1
- package/esm/LinearBasicDisplay/configSchema.js +0 -1
- package/esm/LinearBasicDisplay/index.js +0 -1
- package/esm/LinearBasicDisplay/model.js +0 -1
- package/esm/LinearGenomeView/components/CenterLine.js +0 -1
- package/esm/LinearGenomeView/components/Cytobands.js +0 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +0 -1
- package/esm/LinearGenomeView/components/Gridlines.js +0 -1
- package/esm/LinearGenomeView/components/Header.js +0 -1
- package/esm/LinearGenomeView/components/ImportForm.js +0 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js +0 -1
- package/esm/LinearGenomeView/components/MiniControls.js +0 -1
- package/esm/LinearGenomeView/components/OverviewRubberband.js +0 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.js +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/util.js +0 -1
- package/esm/LinearGenomeView/components/Rubberband.js +0 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.js +0 -1
- package/esm/LinearGenomeView/components/Scalebar.js +0 -1
- package/esm/LinearGenomeView/components/SearchBox.js +0 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +0 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.js +0 -1
- package/esm/LinearGenomeView/components/SequenceSearchDialog.js +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.js +0 -1
- package/esm/LinearGenomeView/components/TrackLabel.js +1 -2
- package/esm/LinearGenomeView/components/TrackLabelContainer.js +0 -1
- package/esm/LinearGenomeView/components/TrackRenderingContainer.js +0 -1
- package/esm/LinearGenomeView/components/TracksContainer.js +0 -1
- package/esm/LinearGenomeView/components/VerticalGuide.js +0 -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.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +0 -1
- package/esm/LinearGenomeView/util.js +0 -1
- package/esm/index.js +0 -1
- 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/FeatureDensityMixin.js.map +0 -1
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.js.map +0 -1
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js.map +0 -1
- package/dist/BaseLinearDisplay/models/configSchema.js.map +0 -1
- package/dist/BaseLinearDisplay/models/renderSvg.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/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/AutocompleteTextField.js.map +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js.map +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js.map +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js.map +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.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/TrackLabelContainer.js.map +0 -1
- package/dist/LinearGenomeView/components/TrackRenderingContainer.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/FeatureDensityMixin.js.map +0 -1
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.js.map +0 -1
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js.map +0 -1
- package/esm/BaseLinearDisplay/models/configSchema.js.map +0 -1
- package/esm/BaseLinearDisplay/models/renderSvg.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/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/AutocompleteTextField.js.map +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js.map +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js.map +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js.map +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/util.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/TrackLabelContainer.js.map +0 -1
- package/esm/LinearGenomeView/components/TrackRenderingContainer.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 -16
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +0 -407
- package/src/BaseLinearDisplay/models/FeatureDensityMixin.tsx +0 -213
- package/src/BaseLinearDisplay/models/TrackHeightMixin.tsx +0 -59
- package/src/BaseLinearDisplay/models/autorunFeatureDensityStats.ts +0 -46
- package/src/BaseLinearDisplay/models/configSchema.ts +0 -60
- package/src/BaseLinearDisplay/models/renderSvg.tsx +0 -101
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +0 -320
- package/src/BaseLinearDisplay/models/util.ts +0 -67
- package/src/BasicTrack/configSchema.ts +0 -24
- package/src/BasicTrack/index.ts +0 -18
- package/src/FeatureTrack/configSchema.ts +0 -28
- package/src/FeatureTrack/index.ts +0 -18
- package/src/LaunchLinearGenomeView/index.ts +0 -66
- package/src/LinearBareDisplay/configSchema.ts +0 -28
- package/src/LinearBareDisplay/index.test.js +0 -34
- package/src/LinearBareDisplay/index.ts +0 -25
- package/src/LinearBareDisplay/model.ts +0 -54
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +0 -73
- package/src/LinearBasicDisplay/configSchema.ts +0 -28
- package/src/LinearBasicDisplay/index.ts +0 -25
- package/src/LinearBasicDisplay/model.ts +0 -215
- 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/ImportForm.tsx +0 -217
- package/src/LinearGenomeView/components/LinearGenomeView.test.tsx +0 -167
- package/src/LinearGenomeView/components/LinearGenomeView.tsx +0 -75
- package/src/LinearGenomeView/components/MiniControls.tsx +0 -54
- package/src/LinearGenomeView/components/OverviewRubberband.tsx +0 -219
- package/src/LinearGenomeView/components/OverviewScalebar.tsx +0 -351
- package/src/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.tsx +0 -53
- package/src/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.tsx +0 -44
- package/src/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.tsx +0 -69
- package/src/LinearGenomeView/components/RefNameAutocomplete/index.tsx +0 -160
- package/src/LinearGenomeView/components/RefNameAutocomplete/util.ts +0 -65
- 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 -92
- package/src/LinearGenomeView/components/TrackLabel.tsx +0 -123
- package/src/LinearGenomeView/components/TrackLabelContainer.tsx +0 -48
- package/src/LinearGenomeView/components/TrackRenderingContainer.tsx +0 -96
- 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 -1533
- package/src/LinearGenomeView/svgcomponents/SVGBackground.tsx +0 -21
- package/src/LinearGenomeView/svgcomponents/SVGHeader.tsx +0 -95
- 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 -91
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { observer } from 'mobx-react'
|
|
3
|
-
import { Button, IconButton, FormGroup, Typography, alpha } from '@mui/material'
|
|
4
|
-
import { makeStyles } from 'tss-react/mui'
|
|
5
|
-
import { getBpDisplayStr } from '@jbrowse/core/util'
|
|
6
|
-
|
|
7
|
-
// icons
|
|
8
|
-
import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons'
|
|
9
|
-
import ArrowForwardIcon from '@mui/icons-material/ArrowForward'
|
|
10
|
-
import ArrowBackIcon from '@mui/icons-material/ArrowBack'
|
|
11
|
-
|
|
12
|
-
// locals
|
|
13
|
-
import { LinearGenomeViewModel, SPACING } from '..'
|
|
14
|
-
import OverviewScalebar from './OverviewScalebar'
|
|
15
|
-
import ZoomControls from './ZoomControls'
|
|
16
|
-
import SearchBox from './SearchBox'
|
|
17
|
-
|
|
18
|
-
type LGV = LinearGenomeViewModel
|
|
19
|
-
const useStyles = makeStyles()(theme => ({
|
|
20
|
-
headerBar: {
|
|
21
|
-
display: 'flex',
|
|
22
|
-
},
|
|
23
|
-
headerForm: {
|
|
24
|
-
flexWrap: 'nowrap',
|
|
25
|
-
marginRight: 7,
|
|
26
|
-
},
|
|
27
|
-
spacer: {
|
|
28
|
-
flexGrow: 1,
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
panButton: {
|
|
32
|
-
background: alpha(theme.palette.background.paper, 0.8),
|
|
33
|
-
color: theme.palette.text.primary,
|
|
34
|
-
margin: SPACING,
|
|
35
|
-
},
|
|
36
|
-
bp: {
|
|
37
|
-
display: 'flex',
|
|
38
|
-
alignItems: 'center',
|
|
39
|
-
marginLeft: 5,
|
|
40
|
-
},
|
|
41
|
-
toggleButton: {
|
|
42
|
-
height: 44,
|
|
43
|
-
border: 'none',
|
|
44
|
-
marginLeft: theme.spacing(4),
|
|
45
|
-
},
|
|
46
|
-
buttonSpacer: {
|
|
47
|
-
marginRight: theme.spacing(2),
|
|
48
|
-
},
|
|
49
|
-
}))
|
|
50
|
-
|
|
51
|
-
const HeaderButtons = observer(({ model }: { model: LGV }) => {
|
|
52
|
-
const { classes } = useStyles()
|
|
53
|
-
return (
|
|
54
|
-
<IconButton
|
|
55
|
-
onClick={model.activateTrackSelector}
|
|
56
|
-
className={classes.toggleButton}
|
|
57
|
-
title="Open track selector"
|
|
58
|
-
value="track_select"
|
|
59
|
-
>
|
|
60
|
-
<TrackSelectorIcon className={classes.buttonSpacer} />
|
|
61
|
-
</IconButton>
|
|
62
|
-
)
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
function PanControls({ model }: { model: LGV }) {
|
|
66
|
-
const { classes } = useStyles()
|
|
67
|
-
return (
|
|
68
|
-
<>
|
|
69
|
-
<Button
|
|
70
|
-
variant="outlined"
|
|
71
|
-
className={classes.panButton}
|
|
72
|
-
onClick={() => model.slide(-0.9)}
|
|
73
|
-
>
|
|
74
|
-
<ArrowBackIcon />
|
|
75
|
-
</Button>
|
|
76
|
-
<Button
|
|
77
|
-
variant="outlined"
|
|
78
|
-
className={classes.panButton}
|
|
79
|
-
onClick={() => model.slide(0.9)}
|
|
80
|
-
>
|
|
81
|
-
<ArrowForwardIcon />
|
|
82
|
-
</Button>
|
|
83
|
-
</>
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const RegionWidth = observer(({ model }: { model: LGV }) => {
|
|
88
|
-
const { classes } = useStyles()
|
|
89
|
-
const { coarseTotalBp } = model
|
|
90
|
-
return (
|
|
91
|
-
<Typography variant="body2" color="textSecondary" className={classes.bp}>
|
|
92
|
-
{getBpDisplayStr(coarseTotalBp)}
|
|
93
|
-
</Typography>
|
|
94
|
-
)
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
const Controls = ({ model }: { model: LGV }) => {
|
|
98
|
-
const { classes } = useStyles()
|
|
99
|
-
return (
|
|
100
|
-
<div className={classes.headerBar}>
|
|
101
|
-
<HeaderButtons model={model} />
|
|
102
|
-
<div className={classes.spacer} />
|
|
103
|
-
<FormGroup row className={classes.headerForm}>
|
|
104
|
-
<PanControls model={model} />
|
|
105
|
-
<SearchBox model={model} />
|
|
106
|
-
</FormGroup>
|
|
107
|
-
<RegionWidth model={model} />
|
|
108
|
-
<ZoomControls model={model} />
|
|
109
|
-
<div className={classes.spacer} />
|
|
110
|
-
</div>
|
|
111
|
-
)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
const LinearGenomeViewHeader = observer(({ model }: { model: LGV }) => {
|
|
115
|
-
return !model.hideHeader ? (
|
|
116
|
-
model.hideHeaderOverview ? (
|
|
117
|
-
<Controls model={model} />
|
|
118
|
-
) : (
|
|
119
|
-
<OverviewScalebar model={model}>
|
|
120
|
-
<Controls model={model} />
|
|
121
|
-
</OverviewScalebar>
|
|
122
|
-
)
|
|
123
|
-
) : null
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
export default LinearGenomeViewHeader
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react'
|
|
2
|
-
import { makeStyles } from 'tss-react/mui'
|
|
3
|
-
import { observer } from 'mobx-react'
|
|
4
|
-
import { getSession } from '@jbrowse/core/util'
|
|
5
|
-
import {
|
|
6
|
-
Button,
|
|
7
|
-
FormControl,
|
|
8
|
-
Container,
|
|
9
|
-
Grid,
|
|
10
|
-
CircularProgress,
|
|
11
|
-
} from '@mui/material'
|
|
12
|
-
import { ErrorMessage, AssemblySelector } from '@jbrowse/core/ui'
|
|
13
|
-
import BaseResult from '@jbrowse/core/TextSearch/BaseResults'
|
|
14
|
-
|
|
15
|
-
// icons
|
|
16
|
-
import CloseIcon from '@mui/icons-material/Close'
|
|
17
|
-
|
|
18
|
-
// locals
|
|
19
|
-
import RefNameAutocomplete from './RefNameAutocomplete'
|
|
20
|
-
import { fetchResults, splitLast } from './util'
|
|
21
|
-
import { LinearGenomeViewModel } from '..'
|
|
22
|
-
|
|
23
|
-
const useStyles = makeStyles()(theme => ({
|
|
24
|
-
importFormContainer: {
|
|
25
|
-
padding: theme.spacing(2),
|
|
26
|
-
},
|
|
27
|
-
button: {
|
|
28
|
-
margin: theme.spacing(2),
|
|
29
|
-
},
|
|
30
|
-
container: {
|
|
31
|
-
padding: theme.spacing(4),
|
|
32
|
-
},
|
|
33
|
-
}))
|
|
34
|
-
|
|
35
|
-
type LGV = LinearGenomeViewModel
|
|
36
|
-
|
|
37
|
-
export default observer(function ({ model }: { model: LGV }) {
|
|
38
|
-
const { classes } = useStyles()
|
|
39
|
-
const session = getSession(model)
|
|
40
|
-
const { assemblyNames, assemblyManager, textSearchManager } = session
|
|
41
|
-
const { rankSearchResults, error } = model
|
|
42
|
-
const [selectedAsm, setSelectedAsm] = useState(assemblyNames[0])
|
|
43
|
-
const [option, setOption] = useState<BaseResult>()
|
|
44
|
-
const searchScope = model.searchScope(selectedAsm)
|
|
45
|
-
const assembly = assemblyManager.get(selectedAsm)
|
|
46
|
-
const assemblyError = assemblyNames.length
|
|
47
|
-
? assembly?.error
|
|
48
|
-
: 'No configured assemblies'
|
|
49
|
-
const displayError = assemblyError || error
|
|
50
|
-
const [value, setValue] = useState('')
|
|
51
|
-
const regions = assembly?.regions
|
|
52
|
-
const assemblyLoaded = !!regions
|
|
53
|
-
const r0 = regions ? regions[0]?.refName : ''
|
|
54
|
-
|
|
55
|
-
// useEffect resets to an "initial state" of displaying first region from
|
|
56
|
-
// assembly after assembly change. needs to react to selectedAsm as well as
|
|
57
|
-
// r0 because changing assembly will run setValue('') and then r0 may not
|
|
58
|
-
// change if assembly names are the same across assemblies, but it still
|
|
59
|
-
// needs to be reset
|
|
60
|
-
useEffect(() => {
|
|
61
|
-
setValue(r0)
|
|
62
|
-
}, [r0, selectedAsm])
|
|
63
|
-
|
|
64
|
-
async function navToOption(option: BaseResult) {
|
|
65
|
-
const location = option.getLocation()
|
|
66
|
-
const trackId = option.getTrackId()
|
|
67
|
-
if (location) {
|
|
68
|
-
await model.navToLocString(location, selectedAsm)
|
|
69
|
-
if (trackId) {
|
|
70
|
-
model.showTrack(trackId)
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// gets a string as input, or use stored option results from previous query,
|
|
76
|
-
// then re-query and
|
|
77
|
-
// 1) if it has multiple results: pop a dialog
|
|
78
|
-
// 2) if it's a single result navigate to it
|
|
79
|
-
// 3) else assume it's a locstring and navigate to it
|
|
80
|
-
async function handleSelectedRegion(input: string) {
|
|
81
|
-
try {
|
|
82
|
-
if (option?.getDisplayString() === input && option.hasLocation()) {
|
|
83
|
-
await navToOption(option)
|
|
84
|
-
} else if (option?.results?.length) {
|
|
85
|
-
model.setSearchResults(option.results, option.getLabel(), selectedAsm)
|
|
86
|
-
} else {
|
|
87
|
-
const [ref, rest] = splitLast(input, ':')
|
|
88
|
-
const allRefs = assembly?.allRefNamesWithLowerCase || []
|
|
89
|
-
if (
|
|
90
|
-
allRefs.includes(input) ||
|
|
91
|
-
(allRefs.includes(ref) && !Number.isNaN(Number.parseInt(rest, 10)))
|
|
92
|
-
) {
|
|
93
|
-
await model.navToLocString(input, selectedAsm)
|
|
94
|
-
} else {
|
|
95
|
-
const results = await fetchResults({
|
|
96
|
-
queryString: input,
|
|
97
|
-
searchType: 'exact',
|
|
98
|
-
searchScope,
|
|
99
|
-
rankSearchResults,
|
|
100
|
-
textSearchManager,
|
|
101
|
-
assembly,
|
|
102
|
-
})
|
|
103
|
-
|
|
104
|
-
if (results.length > 1) {
|
|
105
|
-
model.setSearchResults(results, input.toLowerCase(), selectedAsm)
|
|
106
|
-
} else if (results.length === 1) {
|
|
107
|
-
await navToOption(results[0])
|
|
108
|
-
} else {
|
|
109
|
-
await model.navToLocString(input, selectedAsm)
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
} catch (e) {
|
|
114
|
-
console.error(e)
|
|
115
|
-
session.notify(`${e}`, 'warning')
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// implementation notes:
|
|
120
|
-
// having this wrapped in a form allows intuitive use of enter key to submit
|
|
121
|
-
return (
|
|
122
|
-
<div className={classes.container}>
|
|
123
|
-
{displayError ? <ErrorMessage error={displayError} /> : null}
|
|
124
|
-
<Container className={classes.importFormContainer}>
|
|
125
|
-
<form
|
|
126
|
-
onSubmit={async event => {
|
|
127
|
-
event.preventDefault()
|
|
128
|
-
model.setError(undefined)
|
|
129
|
-
if (value) {
|
|
130
|
-
// has it's own error handling
|
|
131
|
-
await handleSelectedRegion(value)
|
|
132
|
-
}
|
|
133
|
-
}}
|
|
134
|
-
>
|
|
135
|
-
<Grid
|
|
136
|
-
container
|
|
137
|
-
spacing={1}
|
|
138
|
-
justifyContent="center"
|
|
139
|
-
alignItems="center"
|
|
140
|
-
>
|
|
141
|
-
<Grid item>
|
|
142
|
-
<FormControl>
|
|
143
|
-
<AssemblySelector
|
|
144
|
-
onChange={val => setSelectedAsm(val)}
|
|
145
|
-
localStorageKey="lgv"
|
|
146
|
-
session={session}
|
|
147
|
-
selected={selectedAsm}
|
|
148
|
-
/>
|
|
149
|
-
</FormControl>
|
|
150
|
-
</Grid>
|
|
151
|
-
<Grid item>
|
|
152
|
-
{selectedAsm ? (
|
|
153
|
-
assemblyError ? (
|
|
154
|
-
<CloseIcon style={{ color: 'red' }} />
|
|
155
|
-
) : assemblyLoaded ? (
|
|
156
|
-
<FormControl>
|
|
157
|
-
<RefNameAutocomplete
|
|
158
|
-
fetchResults={queryString =>
|
|
159
|
-
fetchResults({
|
|
160
|
-
queryString,
|
|
161
|
-
assembly,
|
|
162
|
-
textSearchManager,
|
|
163
|
-
rankSearchResults,
|
|
164
|
-
searchScope,
|
|
165
|
-
})
|
|
166
|
-
}
|
|
167
|
-
model={model}
|
|
168
|
-
assemblyName={selectedAsm}
|
|
169
|
-
value={value}
|
|
170
|
-
minWidth={270}
|
|
171
|
-
onChange={str => setValue(str)}
|
|
172
|
-
onSelect={val => setOption(val)}
|
|
173
|
-
TextFieldProps={{
|
|
174
|
-
variant: 'outlined',
|
|
175
|
-
helperText:
|
|
176
|
-
'Enter sequence name, feature name, or location',
|
|
177
|
-
}}
|
|
178
|
-
/>
|
|
179
|
-
</FormControl>
|
|
180
|
-
) : (
|
|
181
|
-
<CircularProgress size={20} disableShrink />
|
|
182
|
-
)
|
|
183
|
-
) : null}
|
|
184
|
-
</Grid>
|
|
185
|
-
<Grid item>
|
|
186
|
-
<FormControl>
|
|
187
|
-
<Button
|
|
188
|
-
type="submit"
|
|
189
|
-
disabled={!value}
|
|
190
|
-
className={classes.button}
|
|
191
|
-
variant="contained"
|
|
192
|
-
color="primary"
|
|
193
|
-
>
|
|
194
|
-
Open
|
|
195
|
-
</Button>
|
|
196
|
-
</FormControl>
|
|
197
|
-
<FormControl>
|
|
198
|
-
<Button
|
|
199
|
-
disabled={!value}
|
|
200
|
-
className={classes.button}
|
|
201
|
-
onClick={() => {
|
|
202
|
-
model.setError(undefined)
|
|
203
|
-
model.showAllRegionsInAssembly(selectedAsm)
|
|
204
|
-
}}
|
|
205
|
-
variant="contained"
|
|
206
|
-
color="secondary"
|
|
207
|
-
>
|
|
208
|
-
Show all regions in assembly
|
|
209
|
-
</Button>
|
|
210
|
-
</FormControl>
|
|
211
|
-
</Grid>
|
|
212
|
-
</Grid>
|
|
213
|
-
</form>
|
|
214
|
-
</Container>
|
|
215
|
-
</div>
|
|
216
|
-
)
|
|
217
|
-
})
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { fireEvent, render, waitFor } from '@testing-library/react'
|
|
3
|
-
import { createTestSession } from '@jbrowse/web/src/rootModel'
|
|
4
|
-
import 'requestidlecallback-polyfill'
|
|
5
|
-
|
|
6
|
-
// locals
|
|
7
|
-
import LinearGenomeView from './LinearGenomeView'
|
|
8
|
-
|
|
9
|
-
// mock
|
|
10
|
-
jest.mock('@jbrowse/web/src/makeWorkerInstance', () => () => {})
|
|
11
|
-
|
|
12
|
-
const assemblyConf = {
|
|
13
|
-
name: 'volMyt1',
|
|
14
|
-
sequence: {
|
|
15
|
-
trackId: 'sequenceConfigId',
|
|
16
|
-
type: 'ReferenceSequenceTrack',
|
|
17
|
-
adapter: {
|
|
18
|
-
type: 'FromConfigSequenceAdapter',
|
|
19
|
-
features: [
|
|
20
|
-
{
|
|
21
|
-
refName: 'ctgA',
|
|
22
|
-
uniqueId: 'firstId',
|
|
23
|
-
start: 0,
|
|
24
|
-
end: 10,
|
|
25
|
-
seq: 'cattgttgcg',
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
test('renders setup wizard', async () => {
|
|
33
|
-
const session = createTestSession()
|
|
34
|
-
session.addAssemblyConf(assemblyConf)
|
|
35
|
-
session.addView('LinearGenomeView', { id: 'lgv' })
|
|
36
|
-
const model = session.views[0]
|
|
37
|
-
model.setWidth(800)
|
|
38
|
-
const { findByText } = render(<LinearGenomeView model={model} />)
|
|
39
|
-
expect(model.displayedRegions.length).toEqual(0)
|
|
40
|
-
const elt = await findByText('Open')
|
|
41
|
-
await waitFor(() => expect(elt.getAttribute('disabled')).toBe(null))
|
|
42
|
-
fireEvent.click(elt)
|
|
43
|
-
await waitFor(() => expect(model.displayedRegions.length).toEqual(1), {
|
|
44
|
-
timeout: 15000,
|
|
45
|
-
})
|
|
46
|
-
}, 15000)
|
|
47
|
-
|
|
48
|
-
test('renders one track, one region', async () => {
|
|
49
|
-
const session = createTestSession()
|
|
50
|
-
session.addAssemblyConf(assemblyConf)
|
|
51
|
-
session.addTrackConf({
|
|
52
|
-
trackId: 'testConfig',
|
|
53
|
-
assemblyNames: ['volMyt1'],
|
|
54
|
-
name: 'Foo Track',
|
|
55
|
-
type: 'BasicTrack',
|
|
56
|
-
adapter: { type: 'FromConfigAdapter', features: [] },
|
|
57
|
-
})
|
|
58
|
-
session.addView('LinearGenomeView', {
|
|
59
|
-
type: 'LinearGenomeView',
|
|
60
|
-
id: 'lgv',
|
|
61
|
-
offsetPx: 0,
|
|
62
|
-
bpPerPx: 1,
|
|
63
|
-
tracks: [
|
|
64
|
-
{
|
|
65
|
-
id: 'foo',
|
|
66
|
-
type: 'BasicTrack',
|
|
67
|
-
height: 20,
|
|
68
|
-
configuration: 'testConfig',
|
|
69
|
-
displays: [
|
|
70
|
-
{
|
|
71
|
-
type: 'LinearBareDisplay',
|
|
72
|
-
configuration: 'testConfig-LinearBareDisplay',
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
displayedRegions: [
|
|
78
|
-
{ assemblyName: 'volMyt1', refName: 'ctgA', start: 0, end: 100 },
|
|
79
|
-
],
|
|
80
|
-
})
|
|
81
|
-
const model = session.views[0]
|
|
82
|
-
model.setWidth(800)
|
|
83
|
-
const { container, queryAllByTestId, getByPlaceholderText, findByText } =
|
|
84
|
-
render(<LinearGenomeView model={model} />)
|
|
85
|
-
await findByText('Foo Track')
|
|
86
|
-
// test needs to wait until it's updated to display 100 bp in the header to
|
|
87
|
-
// make snapshot pass
|
|
88
|
-
await findByText('100bp')
|
|
89
|
-
|
|
90
|
-
await waitFor(() => {
|
|
91
|
-
expect(
|
|
92
|
-
(getByPlaceholderText('Search for location') as HTMLInputElement).value,
|
|
93
|
-
).toEqual('ctgA:1..100')
|
|
94
|
-
})
|
|
95
|
-
await waitFor(() => expect(queryAllByTestId('svgfeatures').length).toBe(1))
|
|
96
|
-
// snapshot has no features rendered
|
|
97
|
-
expect(container).toMatchSnapshot()
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
test('renders two tracks, two regions', async () => {
|
|
101
|
-
const session = createTestSession()
|
|
102
|
-
session.addAssemblyConf(assemblyConf)
|
|
103
|
-
session.addTrackConf({
|
|
104
|
-
trackId: 'testConfig',
|
|
105
|
-
name: 'Foo Track',
|
|
106
|
-
assemblyNames: ['volMyt1'],
|
|
107
|
-
type: 'BasicTrack',
|
|
108
|
-
adapter: { type: 'FromConfigAdapter', features: [] },
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
session.addTrackConf({
|
|
112
|
-
trackId: 'testConfig2',
|
|
113
|
-
name: 'Bar Track',
|
|
114
|
-
assemblyNames: ['volMyt1'],
|
|
115
|
-
type: 'BasicTrack',
|
|
116
|
-
adapter: { type: 'FromConfigAdapter', features: [] },
|
|
117
|
-
})
|
|
118
|
-
session.addView('LinearGenomeView', {
|
|
119
|
-
id: 'lgv',
|
|
120
|
-
offsetPx: 0,
|
|
121
|
-
bpPerPx: 1,
|
|
122
|
-
displayedRegions: [
|
|
123
|
-
{ assemblyName: 'volMyt1', refName: 'ctgA', start: 0, end: 100 },
|
|
124
|
-
{
|
|
125
|
-
assemblyName: 'volMyt1',
|
|
126
|
-
refName: 'ctgB',
|
|
127
|
-
start: 1000,
|
|
128
|
-
end: 2000,
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
tracks: [
|
|
132
|
-
{
|
|
133
|
-
id: 'foo',
|
|
134
|
-
type: 'BasicTrack',
|
|
135
|
-
height: 20,
|
|
136
|
-
configuration: 'testConfig',
|
|
137
|
-
displays: [
|
|
138
|
-
{
|
|
139
|
-
type: 'LinearBareDisplay',
|
|
140
|
-
configuration: 'testConfig-LinearBareDisplay',
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
id: 'bar',
|
|
146
|
-
type: 'BasicTrack',
|
|
147
|
-
height: 20,
|
|
148
|
-
configuration: 'testConfig2',
|
|
149
|
-
displays: [
|
|
150
|
-
{
|
|
151
|
-
type: 'LinearBareDisplay',
|
|
152
|
-
configuration: 'testConfig2-LinearBareDisplay',
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
|
-
})
|
|
158
|
-
const model = session.views[0]
|
|
159
|
-
model.setWidth(800)
|
|
160
|
-
const { container, findByDisplayValue, findByText, queryAllByTestId } =
|
|
161
|
-
render(<LinearGenomeView model={model} />)
|
|
162
|
-
await findByText('Foo Track')
|
|
163
|
-
await findByText('798bp')
|
|
164
|
-
await findByDisplayValue('ctgA:1..100 ctgB:1,001..1,698')
|
|
165
|
-
await waitFor(() => expect(queryAllByTestId('svgfeatures').length).toBe(4))
|
|
166
|
-
expect(container).toMatchSnapshot()
|
|
167
|
-
}, 15000)
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import React, { lazy } from 'react'
|
|
2
|
-
import { Button, Paper, Typography } from '@mui/material'
|
|
3
|
-
import { makeStyles } from 'tss-react/mui'
|
|
4
|
-
import { LoadingEllipses } from '@jbrowse/core/ui'
|
|
5
|
-
import { observer } from 'mobx-react'
|
|
6
|
-
|
|
7
|
-
// icons
|
|
8
|
-
import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons'
|
|
9
|
-
|
|
10
|
-
// locals
|
|
11
|
-
import { LinearGenomeViewModel } from '..'
|
|
12
|
-
import TrackContainer from './TrackContainer'
|
|
13
|
-
import TracksContainer from './TracksContainer'
|
|
14
|
-
|
|
15
|
-
const ImportForm = lazy(() => import('./ImportForm'))
|
|
16
|
-
|
|
17
|
-
type LGV = LinearGenomeViewModel
|
|
18
|
-
|
|
19
|
-
const useStyles = makeStyles()(theme => ({
|
|
20
|
-
note: {
|
|
21
|
-
textAlign: 'center',
|
|
22
|
-
paddingTop: theme.spacing(1),
|
|
23
|
-
paddingBottom: theme.spacing(1),
|
|
24
|
-
},
|
|
25
|
-
}))
|
|
26
|
-
|
|
27
|
-
const LinearGenomeView = observer(({ model }: { model: LGV }) => {
|
|
28
|
-
const { tracks, error, initialized, hasDisplayedRegions } = model
|
|
29
|
-
const { classes } = useStyles()
|
|
30
|
-
|
|
31
|
-
if (!initialized && !error) {
|
|
32
|
-
return <LoadingEllipses variant="h6" />
|
|
33
|
-
}
|
|
34
|
-
if (!hasDisplayedRegions || error) {
|
|
35
|
-
return <ImportForm model={model} />
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const MiniControlsComponent = model.MiniControlsComponent()
|
|
39
|
-
const HeaderComponent = model.HeaderComponent()
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<div style={{ position: 'relative' }}>
|
|
43
|
-
<HeaderComponent model={model} />
|
|
44
|
-
<MiniControlsComponent model={model} />
|
|
45
|
-
<TracksContainer model={model}>
|
|
46
|
-
{!tracks.length ? (
|
|
47
|
-
<Paper variant="outlined" className={classes.note}>
|
|
48
|
-
{!model.hideNoTracksActive ? (
|
|
49
|
-
<>
|
|
50
|
-
<Typography>No tracks active.</Typography>
|
|
51
|
-
<Button
|
|
52
|
-
variant="contained"
|
|
53
|
-
color="primary"
|
|
54
|
-
onClick={model.activateTrackSelector}
|
|
55
|
-
style={{ zIndex: 1000 }}
|
|
56
|
-
startIcon={<TrackSelectorIcon />}
|
|
57
|
-
>
|
|
58
|
-
Open track selector
|
|
59
|
-
</Button>
|
|
60
|
-
</>
|
|
61
|
-
) : (
|
|
62
|
-
<div style={{ height: '48px' }}></div>
|
|
63
|
-
)}
|
|
64
|
-
</Paper>
|
|
65
|
-
) : (
|
|
66
|
-
tracks.map(track => (
|
|
67
|
-
<TrackContainer key={track.id} model={model} track={track} />
|
|
68
|
-
))
|
|
69
|
-
)}
|
|
70
|
-
</TracksContainer>
|
|
71
|
-
</div>
|
|
72
|
-
)
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
export default LinearGenomeView
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { observer } from 'mobx-react'
|
|
3
|
-
import { IconButton, Paper } from '@mui/material'
|
|
4
|
-
|
|
5
|
-
// icons
|
|
6
|
-
import ZoomIn from '@mui/icons-material/ZoomIn'
|
|
7
|
-
import ZoomOut from '@mui/icons-material/ZoomOut'
|
|
8
|
-
import ArrowDown from '@mui/icons-material/KeyboardArrowDown'
|
|
9
|
-
|
|
10
|
-
// locals
|
|
11
|
-
import { LinearGenomeViewModel } from '..'
|
|
12
|
-
import CascadingMenuButton from '@jbrowse/core/ui/CascadingMenuButton'
|
|
13
|
-
import { makeStyles } from 'tss-react/mui'
|
|
14
|
-
|
|
15
|
-
const useStyles = makeStyles()(theme => ({
|
|
16
|
-
bg: {
|
|
17
|
-
position: 'absolute',
|
|
18
|
-
right: 0,
|
|
19
|
-
zIndex: 1001,
|
|
20
|
-
background: theme.palette.background.paper,
|
|
21
|
-
},
|
|
22
|
-
}))
|
|
23
|
-
|
|
24
|
-
const MiniControls = observer(function ({
|
|
25
|
-
model,
|
|
26
|
-
}: {
|
|
27
|
-
model: LinearGenomeViewModel
|
|
28
|
-
}) {
|
|
29
|
-
const { classes } = useStyles()
|
|
30
|
-
const { bpPerPx, maxBpPerPx, minBpPerPx, scaleFactor, hideHeader } = model
|
|
31
|
-
return hideHeader ? (
|
|
32
|
-
<Paper className={classes.bg}>
|
|
33
|
-
<CascadingMenuButton menuItems={model.menuItems()}>
|
|
34
|
-
<ArrowDown fontSize="small" />
|
|
35
|
-
</CascadingMenuButton>
|
|
36
|
-
<IconButton
|
|
37
|
-
data-testid="zoom_out"
|
|
38
|
-
onClick={() => model.zoom(bpPerPx * 2)}
|
|
39
|
-
disabled={bpPerPx >= maxBpPerPx - 0.0001 || scaleFactor !== 1}
|
|
40
|
-
>
|
|
41
|
-
<ZoomOut fontSize="small" />
|
|
42
|
-
</IconButton>
|
|
43
|
-
<IconButton
|
|
44
|
-
data-testid="zoom_in"
|
|
45
|
-
onClick={() => model.zoom(model.bpPerPx / 2)}
|
|
46
|
-
disabled={bpPerPx <= minBpPerPx + 0.0001 || scaleFactor !== 1}
|
|
47
|
-
>
|
|
48
|
-
<ZoomIn fontSize="small" />
|
|
49
|
-
</IconButton>
|
|
50
|
-
</Paper>
|
|
51
|
-
) : null
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
export default MiniControls
|