@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,69 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { Button, DialogActions, DialogContent, Divider } from '@mui/material'
|
|
3
|
-
import { Dialog } from '@jbrowse/core/ui'
|
|
4
|
-
|
|
5
|
-
export default function HelpDialog({
|
|
6
|
-
handleClose,
|
|
7
|
-
}: {
|
|
8
|
-
handleClose: () => void
|
|
9
|
-
}) {
|
|
10
|
-
return (
|
|
11
|
-
<Dialog
|
|
12
|
-
open
|
|
13
|
-
maxWidth="xl"
|
|
14
|
-
onClose={handleClose}
|
|
15
|
-
title="Using the search box"
|
|
16
|
-
>
|
|
17
|
-
<DialogContent>
|
|
18
|
-
<h3>Searching</h3>
|
|
19
|
-
<ul>
|
|
20
|
-
<li>
|
|
21
|
-
Jump to a feature or reference sequence by typing its name in the
|
|
22
|
-
location box and pressing Enter.
|
|
23
|
-
</li>
|
|
24
|
-
<li>
|
|
25
|
-
Jump to a specific region by typing the region into the location box
|
|
26
|
-
as: <code>ref:start..end</code> or <code>ref:start-end</code>.
|
|
27
|
-
Commas are allowed in the start and end coordinates. A
|
|
28
|
-
space-separated list of locstrings can be used to open up multiple
|
|
29
|
-
chromosomes at a time
|
|
30
|
-
</li>
|
|
31
|
-
</ul>
|
|
32
|
-
<h3>Example Searches</h3>
|
|
33
|
-
<ul>
|
|
34
|
-
<li>
|
|
35
|
-
<code>BRCA</code> - searches for the feature named BRCA
|
|
36
|
-
</li>
|
|
37
|
-
<li>
|
|
38
|
-
<code>chr4</code> - jumps to chromosome 4
|
|
39
|
-
</li>
|
|
40
|
-
<li>
|
|
41
|
-
<code>chr4:79,500,000..80,000,000</code> - jumps the region on
|
|
42
|
-
chromosome 4 between 79.5Mb and 80Mb.
|
|
43
|
-
</li>
|
|
44
|
-
<li>
|
|
45
|
-
<code>chr1:1-100 chr2:1-100</code> - create a split view of
|
|
46
|
-
chr1:1-100 and chr2:1-100
|
|
47
|
-
</li>
|
|
48
|
-
<li>
|
|
49
|
-
<code>chr1 chr2 chr3</code> - open up multiple chromosomes at once
|
|
50
|
-
</li>
|
|
51
|
-
<li>
|
|
52
|
-
<code>chr1:1-100[rev] chr2:1-100</code> - open up the first region
|
|
53
|
-
in the horizontally flipped orientation
|
|
54
|
-
</li>
|
|
55
|
-
<li>
|
|
56
|
-
<code>chr1 100 200</code> - use whitespace separated refname, start,
|
|
57
|
-
end
|
|
58
|
-
</li>
|
|
59
|
-
</ul>
|
|
60
|
-
</DialogContent>
|
|
61
|
-
<Divider />
|
|
62
|
-
<DialogActions>
|
|
63
|
-
<Button onClick={() => handleClose()} color="primary">
|
|
64
|
-
Close
|
|
65
|
-
</Button>
|
|
66
|
-
</DialogActions>
|
|
67
|
-
</Dialog>
|
|
68
|
-
)
|
|
69
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react'
|
|
2
|
-
import { observer } from 'mobx-react'
|
|
3
|
-
import { getSession, useDebounce, measureText } from '@jbrowse/core/util'
|
|
4
|
-
import BaseResult, {
|
|
5
|
-
RefSequenceResult,
|
|
6
|
-
} from '@jbrowse/core/TextSearch/BaseResults'
|
|
7
|
-
import { Autocomplete, TextFieldProps as TFP } from '@mui/material'
|
|
8
|
-
|
|
9
|
-
// locals
|
|
10
|
-
import { LinearGenomeViewModel } from '../../model'
|
|
11
|
-
import { getDeduplicatedResult, getFiltered, Option } from './util'
|
|
12
|
-
import AutocompleteTextField from './AutocompleteTextField'
|
|
13
|
-
|
|
14
|
-
export default observer(function RefNameAutocomplete({
|
|
15
|
-
model,
|
|
16
|
-
onSelect,
|
|
17
|
-
assemblyName,
|
|
18
|
-
style,
|
|
19
|
-
fetchResults,
|
|
20
|
-
onChange,
|
|
21
|
-
value,
|
|
22
|
-
showHelp = true,
|
|
23
|
-
minWidth = 200,
|
|
24
|
-
maxWidth = 550,
|
|
25
|
-
TextFieldProps = {},
|
|
26
|
-
}: {
|
|
27
|
-
model: LinearGenomeViewModel
|
|
28
|
-
onSelect?: (region: BaseResult) => void
|
|
29
|
-
onChange?: (val: string) => void
|
|
30
|
-
assemblyName?: string
|
|
31
|
-
value?: string
|
|
32
|
-
fetchResults: (query: string) => Promise<BaseResult[]>
|
|
33
|
-
style?: React.CSSProperties
|
|
34
|
-
minWidth?: number
|
|
35
|
-
maxWidth?: number
|
|
36
|
-
showHelp?: boolean
|
|
37
|
-
TextFieldProps?: TFP
|
|
38
|
-
}) {
|
|
39
|
-
const session = getSession(model)
|
|
40
|
-
const { assemblyManager } = session
|
|
41
|
-
const [open, setOpen] = useState(false)
|
|
42
|
-
const [loaded, setLoaded] = useState(true)
|
|
43
|
-
const [currentSearch, setCurrentSearch] = useState('')
|
|
44
|
-
const [inputValue, setInputValue] = useState('')
|
|
45
|
-
const [searchOptions, setSearchOptions] = useState<Option[]>()
|
|
46
|
-
const debouncedSearch = useDebounce(currentSearch, 300)
|
|
47
|
-
const assembly = assemblyName ? assemblyManager.get(assemblyName) : undefined
|
|
48
|
-
const { coarseVisibleLocStrings, hasDisplayedRegions } = model
|
|
49
|
-
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
let active = true
|
|
52
|
-
|
|
53
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
54
|
-
;(async () => {
|
|
55
|
-
try {
|
|
56
|
-
if (debouncedSearch === '' || !assemblyName) {
|
|
57
|
-
return
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
setLoaded(false)
|
|
61
|
-
const results = await fetchResults(debouncedSearch)
|
|
62
|
-
if (active) {
|
|
63
|
-
setLoaded(true)
|
|
64
|
-
setSearchOptions(getDeduplicatedResult(results))
|
|
65
|
-
}
|
|
66
|
-
} catch (e) {
|
|
67
|
-
console.error(e)
|
|
68
|
-
if (active) {
|
|
69
|
-
session.notify(`${e}`, 'error')
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
})()
|
|
73
|
-
|
|
74
|
-
return () => {
|
|
75
|
-
active = false
|
|
76
|
-
}
|
|
77
|
-
}, [assemblyName, fetchResults, debouncedSearch, session, model])
|
|
78
|
-
|
|
79
|
-
const inputBoxVal = coarseVisibleLocStrings || value || ''
|
|
80
|
-
|
|
81
|
-
// heuristic, text width + 60 accommodates help icon and search icon
|
|
82
|
-
const width = Math.min(
|
|
83
|
-
Math.max(measureText(inputBoxVal, 14) + 100, minWidth),
|
|
84
|
-
maxWidth,
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
// notes on implementation:
|
|
88
|
-
// The selectOnFocus setting helps highlight the field when clicked
|
|
89
|
-
return (
|
|
90
|
-
<>
|
|
91
|
-
<Autocomplete
|
|
92
|
-
data-testid="autocomplete"
|
|
93
|
-
disableListWrap
|
|
94
|
-
disableClearable
|
|
95
|
-
disabled={!assemblyName}
|
|
96
|
-
freeSolo
|
|
97
|
-
includeInputInList
|
|
98
|
-
selectOnFocus
|
|
99
|
-
style={{ ...style, width }}
|
|
100
|
-
value={inputBoxVal}
|
|
101
|
-
loading={!loaded}
|
|
102
|
-
inputValue={inputValue}
|
|
103
|
-
onInputChange={(_event, newInputValue) => {
|
|
104
|
-
setInputValue(newInputValue)
|
|
105
|
-
onChange?.(newInputValue)
|
|
106
|
-
}}
|
|
107
|
-
loadingText="loading results"
|
|
108
|
-
open={open}
|
|
109
|
-
onOpen={() => setOpen(true)}
|
|
110
|
-
onClose={() => {
|
|
111
|
-
setOpen(false)
|
|
112
|
-
setLoaded(true)
|
|
113
|
-
if (hasDisplayedRegions) {
|
|
114
|
-
setCurrentSearch('')
|
|
115
|
-
setSearchOptions(undefined)
|
|
116
|
-
}
|
|
117
|
-
}}
|
|
118
|
-
onChange={(_event, selectedOption) => {
|
|
119
|
-
if (!selectedOption || !assemblyName) {
|
|
120
|
-
return
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (typeof selectedOption === 'string') {
|
|
124
|
-
// handles string inputs on keyPress enter
|
|
125
|
-
onSelect?.(new BaseResult({ label: selectedOption }))
|
|
126
|
-
} else {
|
|
127
|
-
onSelect?.(selectedOption.result)
|
|
128
|
-
}
|
|
129
|
-
setInputValue(inputBoxVal)
|
|
130
|
-
}}
|
|
131
|
-
options={
|
|
132
|
-
!searchOptions?.length
|
|
133
|
-
? assembly?.regions?.map(option => ({
|
|
134
|
-
result: new RefSequenceResult({
|
|
135
|
-
refName: option.refName,
|
|
136
|
-
label: option.refName,
|
|
137
|
-
matchedAttribute: 'refName',
|
|
138
|
-
}),
|
|
139
|
-
})) || []
|
|
140
|
-
: searchOptions
|
|
141
|
-
}
|
|
142
|
-
getOptionDisabled={option => option.group === 'limitOption'}
|
|
143
|
-
filterOptions={(opts, { inputValue }) => getFiltered(opts, inputValue)}
|
|
144
|
-
renderInput={params => (
|
|
145
|
-
<AutocompleteTextField
|
|
146
|
-
showHelp={showHelp}
|
|
147
|
-
params={params}
|
|
148
|
-
inputBoxVal={inputBoxVal}
|
|
149
|
-
TextFieldProps={TextFieldProps}
|
|
150
|
-
setCurrentSearch={setCurrentSearch}
|
|
151
|
-
setInputValue={setInputValue}
|
|
152
|
-
/>
|
|
153
|
-
)}
|
|
154
|
-
getOptionLabel={opt =>
|
|
155
|
-
typeof opt === 'string' ? opt : opt.result.getDisplayString()
|
|
156
|
-
}
|
|
157
|
-
/>
|
|
158
|
-
</>
|
|
159
|
-
)
|
|
160
|
-
})
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import BaseResult from '@jbrowse/core/TextSearch/BaseResults'
|
|
2
|
-
|
|
3
|
-
export interface Option {
|
|
4
|
-
group?: string
|
|
5
|
-
result: BaseResult
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// filter so don't need re-filtering
|
|
9
|
-
function filterOptions(options: Option[], searchQuery: string) {
|
|
10
|
-
return options.filter(
|
|
11
|
-
({ result }) =>
|
|
12
|
-
result.getLabel().toLowerCase().includes(searchQuery) ||
|
|
13
|
-
result.matchedObject,
|
|
14
|
-
)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// the logic of this method is to only apply a filter to RefSequenceResults
|
|
18
|
-
// because they do not have a matchedObject. the trix search results already
|
|
19
|
-
export function getFiltered(opts: Option[], inputValue: string) {
|
|
20
|
-
const filtered = filterOptions(opts, inputValue.toLocaleLowerCase())
|
|
21
|
-
return [
|
|
22
|
-
...filtered.slice(0, 100),
|
|
23
|
-
...(filtered.length > 100
|
|
24
|
-
? [
|
|
25
|
-
{
|
|
26
|
-
group: 'limitOption',
|
|
27
|
-
result: new BaseResult({
|
|
28
|
-
label: 'keep typing for more results',
|
|
29
|
-
}),
|
|
30
|
-
},
|
|
31
|
-
]
|
|
32
|
-
: []),
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export function aggregateResults(results: BaseResult[]) {
|
|
37
|
-
const m: { [key: string]: BaseResult[] } = {}
|
|
38
|
-
|
|
39
|
-
for (const result of results) {
|
|
40
|
-
const displayString = result.getDisplayString()
|
|
41
|
-
if (!m[displayString]) {
|
|
42
|
-
m[displayString] = []
|
|
43
|
-
}
|
|
44
|
-
m[displayString].push(result)
|
|
45
|
-
}
|
|
46
|
-
return m
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function getDeduplicatedResult(results: BaseResult[]) {
|
|
50
|
-
return Object.entries(aggregateResults(results)).map(
|
|
51
|
-
([displayString, results]) =>
|
|
52
|
-
results.length === 1
|
|
53
|
-
? {
|
|
54
|
-
result: results[0],
|
|
55
|
-
}
|
|
56
|
-
: {
|
|
57
|
-
// deduplicate a "multi-result"
|
|
58
|
-
result: new BaseResult({
|
|
59
|
-
displayString,
|
|
60
|
-
results,
|
|
61
|
-
label: displayString,
|
|
62
|
-
}),
|
|
63
|
-
},
|
|
64
|
-
)
|
|
65
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import React, { useRef } from 'react'
|
|
2
|
-
import { observer } from 'mobx-react'
|
|
3
|
-
import { makeStyles } from 'tss-react/mui'
|
|
4
|
-
import { Menu } from '@jbrowse/core/ui'
|
|
5
|
-
|
|
6
|
-
// locals
|
|
7
|
-
import VerticalGuide from './VerticalGuide'
|
|
8
|
-
import RubberbandSpan from './RubberbandSpan'
|
|
9
|
-
import { useRangeSelect } from './hooks'
|
|
10
|
-
import { LinearGenomeViewModel } from '..'
|
|
11
|
-
|
|
12
|
-
type LGV = LinearGenomeViewModel
|
|
13
|
-
|
|
14
|
-
const useStyles = makeStyles()({
|
|
15
|
-
rubberbandControl: {
|
|
16
|
-
cursor: 'crosshair',
|
|
17
|
-
width: '100%',
|
|
18
|
-
minHeight: 8,
|
|
19
|
-
},
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
function Rubberband({
|
|
23
|
-
model,
|
|
24
|
-
ControlComponent = <div />,
|
|
25
|
-
}: {
|
|
26
|
-
model: LGV
|
|
27
|
-
ControlComponent?: React.ReactElement
|
|
28
|
-
}) {
|
|
29
|
-
const ref = useRef<HTMLDivElement>(null)
|
|
30
|
-
const { classes } = useStyles()
|
|
31
|
-
|
|
32
|
-
const {
|
|
33
|
-
guideX,
|
|
34
|
-
rubberbandOn,
|
|
35
|
-
leftBpOffset,
|
|
36
|
-
rightBpOffset,
|
|
37
|
-
numOfBpSelected,
|
|
38
|
-
width,
|
|
39
|
-
left,
|
|
40
|
-
anchorPosition,
|
|
41
|
-
handleMenuItemClick,
|
|
42
|
-
open,
|
|
43
|
-
handleClose,
|
|
44
|
-
mouseMove,
|
|
45
|
-
mouseDown,
|
|
46
|
-
mouseOut,
|
|
47
|
-
} = useRangeSelect(ref, model)
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<>
|
|
51
|
-
{guideX !== undefined ? (
|
|
52
|
-
<VerticalGuide model={model} coordX={guideX} />
|
|
53
|
-
) : rubberbandOn ? (
|
|
54
|
-
<RubberbandSpan
|
|
55
|
-
leftBpOffset={leftBpOffset}
|
|
56
|
-
rightBpOffset={rightBpOffset}
|
|
57
|
-
numOfBpSelected={numOfBpSelected}
|
|
58
|
-
width={width}
|
|
59
|
-
left={left}
|
|
60
|
-
/>
|
|
61
|
-
) : null}
|
|
62
|
-
{anchorPosition ? (
|
|
63
|
-
<Menu
|
|
64
|
-
anchorReference="anchorPosition"
|
|
65
|
-
anchorPosition={{
|
|
66
|
-
left: anchorPosition.clientX,
|
|
67
|
-
top: anchorPosition.clientY,
|
|
68
|
-
}}
|
|
69
|
-
onMenuItemClick={handleMenuItemClick}
|
|
70
|
-
open={open}
|
|
71
|
-
onClose={handleClose}
|
|
72
|
-
menuItems={model.rubberBandMenuItems()}
|
|
73
|
-
/>
|
|
74
|
-
) : null}
|
|
75
|
-
<div
|
|
76
|
-
data-testid="rubberband_controls"
|
|
77
|
-
className={classes.rubberbandControl}
|
|
78
|
-
ref={ref}
|
|
79
|
-
onMouseDown={mouseDown}
|
|
80
|
-
onMouseMove={mouseMove}
|
|
81
|
-
onMouseOut={mouseOut}
|
|
82
|
-
>
|
|
83
|
-
{ControlComponent}
|
|
84
|
-
</div>
|
|
85
|
-
</>
|
|
86
|
-
)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export default observer(Rubberband)
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import React, { useRef } from 'react'
|
|
2
|
-
import { makeStyles } from 'tss-react/mui'
|
|
3
|
-
import { Popover, Typography, alpha } from '@mui/material'
|
|
4
|
-
import { stringify, toLocale } from '@jbrowse/core/util'
|
|
5
|
-
|
|
6
|
-
const useStyles = makeStyles()(theme => {
|
|
7
|
-
const { primary, tertiary } = theme.palette
|
|
8
|
-
const background = tertiary
|
|
9
|
-
? alpha(tertiary.light, 0.7)
|
|
10
|
-
: alpha(primary.light, 0.7)
|
|
11
|
-
return {
|
|
12
|
-
rubberband: {
|
|
13
|
-
height: '100%',
|
|
14
|
-
background,
|
|
15
|
-
position: 'absolute',
|
|
16
|
-
zIndex: 10,
|
|
17
|
-
textAlign: 'center',
|
|
18
|
-
overflow: 'hidden',
|
|
19
|
-
},
|
|
20
|
-
rubberbandControl: {
|
|
21
|
-
cursor: 'crosshair',
|
|
22
|
-
width: '100%',
|
|
23
|
-
minHeight: 8,
|
|
24
|
-
},
|
|
25
|
-
rubberbandText: {
|
|
26
|
-
color: tertiary ? tertiary.contrastText : primary.contrastText,
|
|
27
|
-
},
|
|
28
|
-
popover: {
|
|
29
|
-
mouseEvents: 'none',
|
|
30
|
-
cursor: 'crosshair',
|
|
31
|
-
},
|
|
32
|
-
paper: {
|
|
33
|
-
paddingLeft: theme.spacing(1),
|
|
34
|
-
paddingRight: theme.spacing(1),
|
|
35
|
-
},
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
interface Offset {
|
|
40
|
-
coord: number
|
|
41
|
-
refName?: string
|
|
42
|
-
oob?: boolean
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export default function RubberbandSpan({
|
|
46
|
-
leftBpOffset,
|
|
47
|
-
rightBpOffset,
|
|
48
|
-
numOfBpSelected,
|
|
49
|
-
left,
|
|
50
|
-
width,
|
|
51
|
-
}: {
|
|
52
|
-
leftBpOffset: Offset
|
|
53
|
-
rightBpOffset: Offset
|
|
54
|
-
numOfBpSelected?: number
|
|
55
|
-
left: number
|
|
56
|
-
width: number
|
|
57
|
-
}) {
|
|
58
|
-
const ref = useRef(null)
|
|
59
|
-
const { classes } = useStyles()
|
|
60
|
-
return (
|
|
61
|
-
<>
|
|
62
|
-
{ref.current ? (
|
|
63
|
-
<>
|
|
64
|
-
<Popover
|
|
65
|
-
className={classes.popover}
|
|
66
|
-
classes={{ paper: classes.paper }}
|
|
67
|
-
open
|
|
68
|
-
anchorEl={ref.current}
|
|
69
|
-
anchorOrigin={{ vertical: 'top', horizontal: 'left' }}
|
|
70
|
-
transformOrigin={{ vertical: 'bottom', horizontal: 'right' }}
|
|
71
|
-
keepMounted
|
|
72
|
-
disableRestoreFocus
|
|
73
|
-
>
|
|
74
|
-
<Typography>{stringify(leftBpOffset)}</Typography>
|
|
75
|
-
</Popover>
|
|
76
|
-
<Popover
|
|
77
|
-
className={classes.popover}
|
|
78
|
-
classes={{ paper: classes.paper }}
|
|
79
|
-
open
|
|
80
|
-
anchorEl={ref.current}
|
|
81
|
-
anchorOrigin={{ vertical: 'top', horizontal: 'right' }}
|
|
82
|
-
transformOrigin={{ vertical: 'bottom', horizontal: 'left' }}
|
|
83
|
-
keepMounted
|
|
84
|
-
disableRestoreFocus
|
|
85
|
-
>
|
|
86
|
-
<Typography>{stringify(rightBpOffset)}</Typography>
|
|
87
|
-
</Popover>
|
|
88
|
-
</>
|
|
89
|
-
) : null}
|
|
90
|
-
<div ref={ref} className={classes.rubberband} style={{ left, width }}>
|
|
91
|
-
{numOfBpSelected ? (
|
|
92
|
-
<Typography variant="h6" className={classes.rubberbandText}>
|
|
93
|
-
{toLocale(numOfBpSelected)} bp
|
|
94
|
-
</Typography>
|
|
95
|
-
) : null}
|
|
96
|
-
</div>
|
|
97
|
-
</>
|
|
98
|
-
)
|
|
99
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import { render } from '@testing-library/react'
|
|
4
|
-
import { createTestSession } from '@jbrowse/web/src/rootModel'
|
|
5
|
-
import Scalebar from './Scalebar'
|
|
6
|
-
jest.mock('@jbrowse/web/src/makeWorkerInstance', () => () => {})
|
|
7
|
-
|
|
8
|
-
describe('Scalebar genome view component', () => {
|
|
9
|
-
it('renders two regions', () => {
|
|
10
|
-
const session = createTestSession({
|
|
11
|
-
views: [
|
|
12
|
-
{
|
|
13
|
-
type: 'LinearGenomeView',
|
|
14
|
-
offsetPx: 0,
|
|
15
|
-
bpPerPx: 1,
|
|
16
|
-
displayedRegions: [
|
|
17
|
-
{ assemblyName: 'volvox', refName: 'ctgA', start: 0, end: 100 },
|
|
18
|
-
{
|
|
19
|
-
assemblyName: 'volvox',
|
|
20
|
-
refName: 'ctgB',
|
|
21
|
-
start: 100,
|
|
22
|
-
end: 200,
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
tracks: [],
|
|
26
|
-
configuration: {},
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
}) as any
|
|
30
|
-
session.addAssemblyConf({
|
|
31
|
-
name: 'volMyt1',
|
|
32
|
-
sequence: {
|
|
33
|
-
trackId: 'ref0',
|
|
34
|
-
type: 'ReferenceSequenceTrack',
|
|
35
|
-
adapter: {
|
|
36
|
-
type: 'FromConfigSequenceAdapter',
|
|
37
|
-
features: [
|
|
38
|
-
{
|
|
39
|
-
refName: 'ctgA',
|
|
40
|
-
uniqueId: 'firstId',
|
|
41
|
-
start: 0,
|
|
42
|
-
end: 10,
|
|
43
|
-
seq: 'cattgttgcg',
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
})
|
|
49
|
-
const model = session.views[0]
|
|
50
|
-
const { getByTestId } = render(<Scalebar model={model} />)
|
|
51
|
-
const ret1 = getByTestId('refLabel-ctgA')
|
|
52
|
-
const ret2 = getByTestId('refLabel-ctgB')
|
|
53
|
-
expect(ret1.style.left).toBe('-1px')
|
|
54
|
-
expect(ret2.style.left).toBe('101px')
|
|
55
|
-
})
|
|
56
|
-
it('renders two regions when scrolled to the left, the label is ctgA to the actual blocks', () => {
|
|
57
|
-
const session = createTestSession({
|
|
58
|
-
views: [
|
|
59
|
-
{
|
|
60
|
-
type: 'LinearGenomeView',
|
|
61
|
-
offsetPx: -100,
|
|
62
|
-
bpPerPx: 1,
|
|
63
|
-
displayedRegions: [
|
|
64
|
-
{ assemblyName: 'volvox', refName: 'ctgA', start: 0, end: 100 },
|
|
65
|
-
{ assemblyName: 'volvox', refName: 'ctgB', start: 0, end: 100 },
|
|
66
|
-
],
|
|
67
|
-
tracks: [],
|
|
68
|
-
configuration: {},
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
}) as any
|
|
72
|
-
session.addAssemblyConf({
|
|
73
|
-
name: 'volMyt1',
|
|
74
|
-
sequence: {
|
|
75
|
-
trackId: 'ref0',
|
|
76
|
-
type: 'ReferenceSequenceTrack',
|
|
77
|
-
adapter: {
|
|
78
|
-
type: 'FromConfigSequenceAdapter',
|
|
79
|
-
features: [
|
|
80
|
-
{
|
|
81
|
-
refName: 'ctgA',
|
|
82
|
-
uniqueId: 'firstId',
|
|
83
|
-
start: 0,
|
|
84
|
-
end: 10,
|
|
85
|
-
seq: 'cattgttgcg',
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
})
|
|
91
|
-
const model = session.views[0]
|
|
92
|
-
const { getByTestId } = render(<Scalebar model={model} />)
|
|
93
|
-
const ret1 = getByTestId('refLabel-ctgA')
|
|
94
|
-
const ret2 = getByTestId('refLabel-ctgB')
|
|
95
|
-
expect(ret1.style.left).toBe('99px')
|
|
96
|
-
expect(ret2.style.left).toBe('201px')
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
it('renders two regions when scrolled to the left, the label is ctgA to the actual blocks', () => {
|
|
100
|
-
const session = createTestSession({
|
|
101
|
-
views: [
|
|
102
|
-
{
|
|
103
|
-
type: 'LinearGenomeView',
|
|
104
|
-
offsetPx: -100,
|
|
105
|
-
bpPerPx: 1,
|
|
106
|
-
displayedRegions: [
|
|
107
|
-
{ assemblyName: 'volvox', refName: 'ctgA', start: 0, end: 1000 },
|
|
108
|
-
{ assemblyName: 'volvox', refName: 'ctgB', start: 0, end: 1 },
|
|
109
|
-
{ assemblyName: 'volvox', refName: 'ctgC', start: 0, end: 1 },
|
|
110
|
-
{ assemblyName: 'volvox', refName: 'ctgD', start: 0, end: 1 },
|
|
111
|
-
],
|
|
112
|
-
tracks: [],
|
|
113
|
-
configuration: {},
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
}) as any
|
|
117
|
-
session.addAssemblyConf({
|
|
118
|
-
name: 'volMyt1',
|
|
119
|
-
sequence: {
|
|
120
|
-
trackId: 'ref0',
|
|
121
|
-
type: 'ReferenceSequenceTrack',
|
|
122
|
-
adapter: {
|
|
123
|
-
type: 'FromConfigSequenceAdapter',
|
|
124
|
-
features: [
|
|
125
|
-
{
|
|
126
|
-
refName: 'ctgA',
|
|
127
|
-
uniqueId: 'firstId',
|
|
128
|
-
start: 0,
|
|
129
|
-
end: 10,
|
|
130
|
-
seq: 'cattgttgcg',
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
})
|
|
136
|
-
const model = session.views[0]
|
|
137
|
-
const { queryByTestId } = render(<Scalebar model={model} />)
|
|
138
|
-
const ret2 = queryByTestId('refLabel-ctgB')
|
|
139
|
-
const ret3 = queryByTestId('refLabel-ctgC')
|
|
140
|
-
const ret4 = queryByTestId('refLabel-ctgD')
|
|
141
|
-
expect(ret2).toBe(null)
|
|
142
|
-
expect(ret3).toBe(null)
|
|
143
|
-
expect(ret4).toBe(null)
|
|
144
|
-
})
|
|
145
|
-
})
|