@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,219 +0,0 @@
|
|
|
1
|
-
import React, { useRef, useEffect, useState } from 'react'
|
|
2
|
-
import { Tooltip } from '@mui/material'
|
|
3
|
-
import { makeStyles } from 'tss-react/mui'
|
|
4
|
-
import { getSession, stringify } from '@jbrowse/core/util'
|
|
5
|
-
import { observer } from 'mobx-react'
|
|
6
|
-
import { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel'
|
|
7
|
-
|
|
8
|
-
// locals
|
|
9
|
-
import { LinearGenomeViewModel } from '..'
|
|
10
|
-
import RubberbandSpan from './RubberbandSpan'
|
|
11
|
-
import { getRelativeX } from './util'
|
|
12
|
-
|
|
13
|
-
type LGV = LinearGenomeViewModel
|
|
14
|
-
|
|
15
|
-
const useStyles = makeStyles()({
|
|
16
|
-
rubberbandControl: {
|
|
17
|
-
cursor: 'crosshair',
|
|
18
|
-
width: '100%',
|
|
19
|
-
minHeight: 8,
|
|
20
|
-
},
|
|
21
|
-
guide: {
|
|
22
|
-
pointerEvents: 'none',
|
|
23
|
-
height: '100%',
|
|
24
|
-
width: 1,
|
|
25
|
-
position: 'absolute',
|
|
26
|
-
zIndex: 10,
|
|
27
|
-
},
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
const HoverTooltip = observer(function ({
|
|
31
|
-
model,
|
|
32
|
-
open,
|
|
33
|
-
guideX,
|
|
34
|
-
overview,
|
|
35
|
-
}: {
|
|
36
|
-
model: LGV
|
|
37
|
-
open: boolean
|
|
38
|
-
guideX: number
|
|
39
|
-
overview: Base1DViewModel
|
|
40
|
-
}) {
|
|
41
|
-
const { classes } = useStyles()
|
|
42
|
-
const { cytobandOffset } = model
|
|
43
|
-
const { assemblyManager } = getSession(model)
|
|
44
|
-
|
|
45
|
-
const px = overview.pxToBp(guideX - cytobandOffset)
|
|
46
|
-
const assembly = assemblyManager.get(px.assemblyName)
|
|
47
|
-
const cytoband = assembly?.cytobands?.find(
|
|
48
|
-
f =>
|
|
49
|
-
px.coord > f.get('start') &&
|
|
50
|
-
px.coord < f.get('end') &&
|
|
51
|
-
px.refName === assembly.getCanonicalRefName(f.get('refName')),
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<Tooltip
|
|
56
|
-
open={open}
|
|
57
|
-
placement="top"
|
|
58
|
-
title={[stringify(px), cytoband?.get('name')].join(' ')}
|
|
59
|
-
arrow
|
|
60
|
-
>
|
|
61
|
-
<div className={classes.guide} style={{ left: guideX }} />
|
|
62
|
-
</Tooltip>
|
|
63
|
-
)
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
export default observer(function OverviewRubberband({
|
|
67
|
-
model,
|
|
68
|
-
overview,
|
|
69
|
-
ControlComponent = <div />,
|
|
70
|
-
}: {
|
|
71
|
-
model: LGV
|
|
72
|
-
overview: Base1DViewModel
|
|
73
|
-
ControlComponent?: React.ReactElement
|
|
74
|
-
}) {
|
|
75
|
-
const { cytobandOffset } = model
|
|
76
|
-
const [startX, setStartX] = useState<number>()
|
|
77
|
-
const [currentX, setCurrentX] = useState<number>()
|
|
78
|
-
const [guideX, setGuideX] = useState<number>()
|
|
79
|
-
const controlsRef = useRef<HTMLDivElement>(null)
|
|
80
|
-
const { classes } = useStyles()
|
|
81
|
-
const mouseDragging = startX !== undefined
|
|
82
|
-
|
|
83
|
-
useEffect(() => {
|
|
84
|
-
function globalMouseMove(event: MouseEvent) {
|
|
85
|
-
const ref = controlsRef.current
|
|
86
|
-
if (ref && mouseDragging) {
|
|
87
|
-
setCurrentX(getRelativeX(event, ref))
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function globalMouseUp() {
|
|
92
|
-
// click and drag
|
|
93
|
-
if (startX !== undefined && currentX !== undefined) {
|
|
94
|
-
if (Math.abs(currentX - startX) > 3) {
|
|
95
|
-
const left = Math.min(startX, currentX)
|
|
96
|
-
const right = Math.max(startX, currentX)
|
|
97
|
-
model.moveTo(
|
|
98
|
-
overview.pxToBp(left - cytobandOffset),
|
|
99
|
-
overview.pxToBp(right - cytobandOffset),
|
|
100
|
-
)
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// just a click
|
|
105
|
-
if (startX !== undefined && currentX === undefined) {
|
|
106
|
-
const click = overview.pxToBp(startX - cytobandOffset)
|
|
107
|
-
if (!click.refName) {
|
|
108
|
-
getSession(model).notify('unknown position clicked')
|
|
109
|
-
console.error('unknown position clicked', click)
|
|
110
|
-
} else {
|
|
111
|
-
model.centerAt(Math.round(click.coord), click.refName, click.index)
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
setStartX(undefined)
|
|
115
|
-
setCurrentX(undefined)
|
|
116
|
-
|
|
117
|
-
if (startX !== undefined) {
|
|
118
|
-
setGuideX(undefined)
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
function globalKeyDown(event: KeyboardEvent) {
|
|
123
|
-
if (event.key === 'Escape') {
|
|
124
|
-
setStartX(undefined)
|
|
125
|
-
setCurrentX(undefined)
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
if (mouseDragging) {
|
|
130
|
-
window.addEventListener('mousemove', globalMouseMove, true)
|
|
131
|
-
window.addEventListener('mouseup', globalMouseUp, true)
|
|
132
|
-
window.addEventListener('keydown', globalKeyDown, true)
|
|
133
|
-
return () => {
|
|
134
|
-
window.removeEventListener('mousemove', globalMouseMove, true)
|
|
135
|
-
window.removeEventListener('mouseup', globalMouseUp, true)
|
|
136
|
-
window.removeEventListener('keydown', globalKeyDown, true)
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return () => {}
|
|
140
|
-
}, [mouseDragging, currentX, startX, model, overview, cytobandOffset])
|
|
141
|
-
|
|
142
|
-
function mouseDown(event: React.MouseEvent<HTMLDivElement>) {
|
|
143
|
-
event.preventDefault()
|
|
144
|
-
event.stopPropagation()
|
|
145
|
-
setStartX(getRelativeX(event, controlsRef.current))
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function mouseMove(event: React.MouseEvent<HTMLDivElement>) {
|
|
149
|
-
setGuideX(getRelativeX(event, controlsRef.current))
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function mouseOut() {
|
|
153
|
-
setGuideX(undefined)
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
if (startX === undefined) {
|
|
157
|
-
return (
|
|
158
|
-
<div style={{ position: 'relative' }}>
|
|
159
|
-
{guideX !== undefined ? (
|
|
160
|
-
<HoverTooltip
|
|
161
|
-
model={model}
|
|
162
|
-
open={!mouseDragging}
|
|
163
|
-
overview={overview}
|
|
164
|
-
guideX={guideX}
|
|
165
|
-
/>
|
|
166
|
-
) : null}
|
|
167
|
-
<div
|
|
168
|
-
className={classes.rubberbandControl}
|
|
169
|
-
ref={controlsRef}
|
|
170
|
-
onMouseDown={mouseDown}
|
|
171
|
-
onMouseOut={mouseOut}
|
|
172
|
-
onMouseMove={mouseMove}
|
|
173
|
-
>
|
|
174
|
-
{ControlComponent}
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
)
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
let left = startX || 0
|
|
181
|
-
let width = 0
|
|
182
|
-
if (startX !== undefined && currentX !== undefined) {
|
|
183
|
-
left = currentX < startX ? currentX : startX
|
|
184
|
-
width = currentX - startX
|
|
185
|
-
}
|
|
186
|
-
// calculate the start and end bp of drag
|
|
187
|
-
let leftBpOffset
|
|
188
|
-
let rightBpOffset
|
|
189
|
-
if (startX) {
|
|
190
|
-
leftBpOffset = overview.pxToBp(startX - cytobandOffset)
|
|
191
|
-
rightBpOffset = overview.pxToBp(startX + width - cytobandOffset)
|
|
192
|
-
if (currentX !== undefined && currentX < startX) {
|
|
193
|
-
;[leftBpOffset, rightBpOffset] = [rightBpOffset, leftBpOffset]
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
return (
|
|
198
|
-
<div style={{ position: 'relative' }}>
|
|
199
|
-
{leftBpOffset && rightBpOffset ? (
|
|
200
|
-
<RubberbandSpan
|
|
201
|
-
leftBpOffset={leftBpOffset}
|
|
202
|
-
rightBpOffset={rightBpOffset}
|
|
203
|
-
width={Math.abs(width)}
|
|
204
|
-
left={left}
|
|
205
|
-
/>
|
|
206
|
-
) : null}
|
|
207
|
-
<div
|
|
208
|
-
data-testid="rubberband_controls"
|
|
209
|
-
className={classes.rubberbandControl}
|
|
210
|
-
ref={controlsRef}
|
|
211
|
-
onMouseDown={mouseDown}
|
|
212
|
-
onMouseOut={mouseOut}
|
|
213
|
-
onMouseMove={mouseMove}
|
|
214
|
-
>
|
|
215
|
-
{ControlComponent}
|
|
216
|
-
</div>
|
|
217
|
-
</div>
|
|
218
|
-
)
|
|
219
|
-
})
|
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { Typography, useTheme, alpha } from '@mui/material'
|
|
3
|
-
import { makeStyles } from 'tss-react/mui'
|
|
4
|
-
import { observer } from 'mobx-react'
|
|
5
|
-
|
|
6
|
-
// core
|
|
7
|
-
import Base1DView, { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel'
|
|
8
|
-
import { getSession, getTickDisplayStr } from '@jbrowse/core/util'
|
|
9
|
-
import { ContentBlock } from '@jbrowse/core/util/blockTypes'
|
|
10
|
-
|
|
11
|
-
// locals
|
|
12
|
-
import {
|
|
13
|
-
LinearGenomeViewModel,
|
|
14
|
-
HEADER_BAR_HEIGHT,
|
|
15
|
-
HEADER_OVERVIEW_HEIGHT,
|
|
16
|
-
} from '..'
|
|
17
|
-
import { chooseGridPitch } from '../util'
|
|
18
|
-
import OverviewRubberband from './OverviewRubberband'
|
|
19
|
-
import Cytobands from './Cytobands'
|
|
20
|
-
import { getCytobands } from './util'
|
|
21
|
-
|
|
22
|
-
const wholeSeqSpacer = 2
|
|
23
|
-
|
|
24
|
-
const useStyles = makeStyles()(theme => ({
|
|
25
|
-
scalebar: {
|
|
26
|
-
height: HEADER_OVERVIEW_HEIGHT,
|
|
27
|
-
},
|
|
28
|
-
scalebarBorder: {
|
|
29
|
-
border: '1px solid',
|
|
30
|
-
},
|
|
31
|
-
scalebarContig: {
|
|
32
|
-
backgroundColor: theme.palette.background.default,
|
|
33
|
-
position: 'absolute',
|
|
34
|
-
top: 0,
|
|
35
|
-
height: HEADER_OVERVIEW_HEIGHT,
|
|
36
|
-
overflow: 'hidden',
|
|
37
|
-
},
|
|
38
|
-
scalebarContigForward: {
|
|
39
|
-
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 9'%3E%3Cpath d='M-.1 0L6 4.5L-.1 9' fill='none' stroke='${theme.palette.divider}'/%3E%3C/svg%3E")`,
|
|
40
|
-
backgroundRepeat: 'repeat',
|
|
41
|
-
},
|
|
42
|
-
scalebarContigReverse: {
|
|
43
|
-
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 9'%3E%3Cpath d='M6 0L0 4.5L6 9' fill='none' stroke='${theme.palette.divider}'/%3E%3C/svg%3E")`,
|
|
44
|
-
backgroundRepeat: 'repeat',
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
scalebarRefName: {
|
|
48
|
-
position: 'absolute',
|
|
49
|
-
fontWeight: 'bold',
|
|
50
|
-
pointerEvents: 'none',
|
|
51
|
-
zIndex: 100,
|
|
52
|
-
},
|
|
53
|
-
scalebarLabel: {
|
|
54
|
-
height: HEADER_OVERVIEW_HEIGHT,
|
|
55
|
-
position: 'absolute',
|
|
56
|
-
display: 'flex',
|
|
57
|
-
justifyContent: 'center',
|
|
58
|
-
pointerEvents: 'none',
|
|
59
|
-
},
|
|
60
|
-
scalebarVisibleRegion: {
|
|
61
|
-
position: 'absolute',
|
|
62
|
-
height: HEADER_OVERVIEW_HEIGHT,
|
|
63
|
-
pointerEvents: 'none',
|
|
64
|
-
zIndex: 100,
|
|
65
|
-
border: '1px solid',
|
|
66
|
-
},
|
|
67
|
-
overview: {
|
|
68
|
-
height: HEADER_BAR_HEIGHT,
|
|
69
|
-
position: 'relative',
|
|
70
|
-
},
|
|
71
|
-
overviewSvg: {
|
|
72
|
-
pointerEvents: 'none',
|
|
73
|
-
width: '100%',
|
|
74
|
-
position: 'absolute',
|
|
75
|
-
},
|
|
76
|
-
}))
|
|
77
|
-
|
|
78
|
-
const Polygon = observer(function ({
|
|
79
|
-
model,
|
|
80
|
-
overview,
|
|
81
|
-
useOffset = true,
|
|
82
|
-
}: {
|
|
83
|
-
model: LGV
|
|
84
|
-
overview: Base1DViewModel
|
|
85
|
-
useOffset?: boolean
|
|
86
|
-
}) {
|
|
87
|
-
const theme = useTheme()
|
|
88
|
-
const multiplier = Number(useOffset)
|
|
89
|
-
const { interRegionPaddingWidth, offsetPx, dynamicBlocks, cytobandOffset } =
|
|
90
|
-
model
|
|
91
|
-
const { contentBlocks, totalWidthPxWithoutBorders } = dynamicBlocks
|
|
92
|
-
|
|
93
|
-
const { tertiary, primary } = theme.palette
|
|
94
|
-
const polygonColor = tertiary ? tertiary.light : primary.light
|
|
95
|
-
|
|
96
|
-
// catches possible null from at's below
|
|
97
|
-
if (!contentBlocks.length) {
|
|
98
|
-
return null
|
|
99
|
-
}
|
|
100
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
101
|
-
const first = contentBlocks.at(0)!
|
|
102
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
103
|
-
const last = contentBlocks.at(-1)!
|
|
104
|
-
const topLeft =
|
|
105
|
-
(overview.bpToPx({
|
|
106
|
-
...first,
|
|
107
|
-
coord: first.reversed ? first.end : first.start,
|
|
108
|
-
}) || 0) +
|
|
109
|
-
cytobandOffset * multiplier
|
|
110
|
-
const topRight =
|
|
111
|
-
(overview.bpToPx({
|
|
112
|
-
...last,
|
|
113
|
-
coord: last.reversed ? last.start : last.end,
|
|
114
|
-
}) || 0) +
|
|
115
|
-
cytobandOffset * multiplier
|
|
116
|
-
|
|
117
|
-
const startPx = Math.max(0, -offsetPx)
|
|
118
|
-
const endPx =
|
|
119
|
-
startPx +
|
|
120
|
-
totalWidthPxWithoutBorders +
|
|
121
|
-
(contentBlocks.length * interRegionPaddingWidth) / 2
|
|
122
|
-
|
|
123
|
-
const points = [
|
|
124
|
-
[startPx, HEADER_BAR_HEIGHT],
|
|
125
|
-
[endPx, HEADER_BAR_HEIGHT],
|
|
126
|
-
[topRight, 0],
|
|
127
|
-
[topLeft, 0],
|
|
128
|
-
]
|
|
129
|
-
|
|
130
|
-
return (
|
|
131
|
-
<polygon
|
|
132
|
-
points={points.toString()}
|
|
133
|
-
fill={alpha(polygonColor, 0.3)}
|
|
134
|
-
stroke={alpha(polygonColor, 0.8)}
|
|
135
|
-
/>
|
|
136
|
-
)
|
|
137
|
-
})
|
|
138
|
-
|
|
139
|
-
type LGV = LinearGenomeViewModel
|
|
140
|
-
|
|
141
|
-
const OverviewBox = observer(function ({
|
|
142
|
-
scale,
|
|
143
|
-
model,
|
|
144
|
-
block,
|
|
145
|
-
overview,
|
|
146
|
-
}: {
|
|
147
|
-
scale: number
|
|
148
|
-
model: LGV
|
|
149
|
-
block: ContentBlock
|
|
150
|
-
overview: Base1DViewModel
|
|
151
|
-
}) {
|
|
152
|
-
const { classes, cx } = useStyles()
|
|
153
|
-
const theme = useTheme()
|
|
154
|
-
const { cytobandOffset, showCytobands } = model
|
|
155
|
-
const { start, end, reversed, refName, assemblyName } = block
|
|
156
|
-
const { majorPitch } = chooseGridPitch(scale, 120, 15)
|
|
157
|
-
const { assemblyManager } = getSession(model)
|
|
158
|
-
const assembly = assemblyManager.get(assemblyName)
|
|
159
|
-
const refNameColor = assembly?.getRefNameColor(refName)
|
|
160
|
-
|
|
161
|
-
const tickLabels = []
|
|
162
|
-
for (let i = 0; i < Math.floor((end - start) / majorPitch); i++) {
|
|
163
|
-
const offsetLabel = (i + 1) * majorPitch
|
|
164
|
-
tickLabels.push(reversed ? end - offsetLabel : start + offsetLabel)
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const canDisplayCytobands =
|
|
168
|
-
showCytobands && getCytobands(assembly, block.refName).length
|
|
169
|
-
|
|
170
|
-
return (
|
|
171
|
-
<div>
|
|
172
|
-
{/* name of sequence */}
|
|
173
|
-
<Typography
|
|
174
|
-
style={{
|
|
175
|
-
left: block.offsetPx + 3,
|
|
176
|
-
color: canDisplayCytobands
|
|
177
|
-
? theme.palette.text.primary
|
|
178
|
-
: refNameColor,
|
|
179
|
-
}}
|
|
180
|
-
className={classes.scalebarRefName}
|
|
181
|
-
>
|
|
182
|
-
{refName}
|
|
183
|
-
</Typography>
|
|
184
|
-
<div
|
|
185
|
-
className={cx(
|
|
186
|
-
classes.scalebarContig,
|
|
187
|
-
canDisplayCytobands
|
|
188
|
-
? undefined
|
|
189
|
-
: reversed
|
|
190
|
-
? classes.scalebarContigReverse
|
|
191
|
-
: classes.scalebarContigForward,
|
|
192
|
-
!canDisplayCytobands ? classes.scalebarBorder : undefined,
|
|
193
|
-
)}
|
|
194
|
-
style={{
|
|
195
|
-
left: block.offsetPx + cytobandOffset,
|
|
196
|
-
width: block.widthPx,
|
|
197
|
-
borderColor: refNameColor,
|
|
198
|
-
}}
|
|
199
|
-
>
|
|
200
|
-
{!canDisplayCytobands
|
|
201
|
-
? tickLabels.map((tickLabel, labelIdx) => (
|
|
202
|
-
<Typography
|
|
203
|
-
key={`${JSON.stringify(block)}-${tickLabel}-${labelIdx}`}
|
|
204
|
-
className={classes.scalebarLabel}
|
|
205
|
-
variant="body2"
|
|
206
|
-
style={{
|
|
207
|
-
left: ((labelIdx + 1) * majorPitch) / scale,
|
|
208
|
-
pointerEvents: 'none',
|
|
209
|
-
color: refNameColor,
|
|
210
|
-
}}
|
|
211
|
-
>
|
|
212
|
-
{getTickDisplayStr(tickLabel, overview.bpPerPx)}
|
|
213
|
-
</Typography>
|
|
214
|
-
))
|
|
215
|
-
: null}
|
|
216
|
-
|
|
217
|
-
{canDisplayCytobands ? (
|
|
218
|
-
<svg style={{ width: '100%' }}>
|
|
219
|
-
<Cytobands overview={overview} assembly={assembly} block={block} />
|
|
220
|
-
</svg>
|
|
221
|
-
) : null}
|
|
222
|
-
</div>
|
|
223
|
-
</div>
|
|
224
|
-
)
|
|
225
|
-
})
|
|
226
|
-
|
|
227
|
-
const Scalebar = observer(function ({
|
|
228
|
-
model,
|
|
229
|
-
scale,
|
|
230
|
-
overview,
|
|
231
|
-
}: {
|
|
232
|
-
model: LGV
|
|
233
|
-
overview: Base1DViewModel
|
|
234
|
-
scale: number
|
|
235
|
-
}) {
|
|
236
|
-
const { classes } = useStyles()
|
|
237
|
-
const theme = useTheme()
|
|
238
|
-
const { dynamicBlocks, showCytobands, cytobandOffset } = model
|
|
239
|
-
const visibleRegions = dynamicBlocks.contentBlocks
|
|
240
|
-
const overviewVisibleRegions = overview.dynamicBlocks
|
|
241
|
-
|
|
242
|
-
const { tertiary, primary } = theme.palette
|
|
243
|
-
const scalebarColor = tertiary ? tertiary.light : primary.light
|
|
244
|
-
// catches possible null from at's below
|
|
245
|
-
if (!visibleRegions.length) {
|
|
246
|
-
return null
|
|
247
|
-
}
|
|
248
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
249
|
-
const first = visibleRegions.at(0)!
|
|
250
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
251
|
-
const last = visibleRegions.at(-1)!
|
|
252
|
-
|
|
253
|
-
const firstOverviewPx =
|
|
254
|
-
overview.bpToPx({
|
|
255
|
-
...first,
|
|
256
|
-
coord: first.reversed ? first.end : first.start,
|
|
257
|
-
}) || 0
|
|
258
|
-
|
|
259
|
-
const lastOverviewPx =
|
|
260
|
-
overview.bpToPx({
|
|
261
|
-
...last,
|
|
262
|
-
coord: last.reversed ? last.start : last.end,
|
|
263
|
-
}) || 0
|
|
264
|
-
|
|
265
|
-
const color = showCytobands ? '#f00' : scalebarColor
|
|
266
|
-
const transparency = showCytobands ? 0.1 : 0.3
|
|
267
|
-
|
|
268
|
-
return (
|
|
269
|
-
<div className={classes.scalebar}>
|
|
270
|
-
<div
|
|
271
|
-
className={classes.scalebarVisibleRegion}
|
|
272
|
-
style={{
|
|
273
|
-
width: lastOverviewPx - firstOverviewPx,
|
|
274
|
-
left: firstOverviewPx + cytobandOffset,
|
|
275
|
-
background: alpha(color, transparency),
|
|
276
|
-
borderColor: color,
|
|
277
|
-
}}
|
|
278
|
-
/>
|
|
279
|
-
{/* this is the entire scale bar */}
|
|
280
|
-
{overviewVisibleRegions.map((block, idx) => {
|
|
281
|
-
return !(block instanceof ContentBlock) ? (
|
|
282
|
-
<div
|
|
283
|
-
key={`${JSON.stringify(block)}-${idx}`}
|
|
284
|
-
className={classes.scalebarContig}
|
|
285
|
-
style={{
|
|
286
|
-
width: block.widthPx,
|
|
287
|
-
left: block.offsetPx,
|
|
288
|
-
backgroundColor: '#999',
|
|
289
|
-
backgroundImage:
|
|
290
|
-
'repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255,255,255,.5) 1px, rgba(255,255,255,.5) 3px)',
|
|
291
|
-
}}
|
|
292
|
-
/>
|
|
293
|
-
) : (
|
|
294
|
-
<OverviewBox
|
|
295
|
-
scale={scale}
|
|
296
|
-
block={block}
|
|
297
|
-
model={model}
|
|
298
|
-
overview={overview}
|
|
299
|
-
key={`${JSON.stringify(block)}-${idx}`}
|
|
300
|
-
/>
|
|
301
|
-
)
|
|
302
|
-
})}
|
|
303
|
-
</div>
|
|
304
|
-
)
|
|
305
|
-
})
|
|
306
|
-
|
|
307
|
-
export default observer(function OverviewScalebar({
|
|
308
|
-
model,
|
|
309
|
-
children,
|
|
310
|
-
}: {
|
|
311
|
-
model: LGV
|
|
312
|
-
children: React.ReactNode
|
|
313
|
-
}) {
|
|
314
|
-
const { classes } = useStyles()
|
|
315
|
-
const { totalBp, width, cytobandOffset, displayedRegions } = model
|
|
316
|
-
|
|
317
|
-
const overview = Base1DView.create({
|
|
318
|
-
displayedRegions: JSON.parse(JSON.stringify(displayedRegions)),
|
|
319
|
-
interRegionPaddingWidth: 0,
|
|
320
|
-
minimumBlockWidth: model.minimumBlockWidth,
|
|
321
|
-
})
|
|
322
|
-
|
|
323
|
-
const modWidth = width - cytobandOffset
|
|
324
|
-
overview.setVolatileWidth(modWidth)
|
|
325
|
-
overview.showAllRegions()
|
|
326
|
-
|
|
327
|
-
const scale =
|
|
328
|
-
totalBp / (modWidth - (displayedRegions.length - 1) * wholeSeqSpacer)
|
|
329
|
-
|
|
330
|
-
return (
|
|
331
|
-
<div>
|
|
332
|
-
<OverviewRubberband
|
|
333
|
-
model={model}
|
|
334
|
-
overview={overview}
|
|
335
|
-
ControlComponent={
|
|
336
|
-
<Scalebar model={model} overview={overview} scale={scale} />
|
|
337
|
-
}
|
|
338
|
-
/>
|
|
339
|
-
<div className={classes.overview}>
|
|
340
|
-
<svg height={HEADER_BAR_HEIGHT} className={classes.overviewSvg}>
|
|
341
|
-
<Polygon model={model} overview={overview} />
|
|
342
|
-
</svg>
|
|
343
|
-
{children}
|
|
344
|
-
</div>
|
|
345
|
-
</div>
|
|
346
|
-
)
|
|
347
|
-
})
|
|
348
|
-
|
|
349
|
-
export { Polygon }
|
|
350
|
-
|
|
351
|
-
export { default as Cytobands } from './Cytobands'
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
AutocompleteRenderInputParams,
|
|
4
|
-
TextField,
|
|
5
|
-
TextFieldProps as TFP,
|
|
6
|
-
} from '@mui/material'
|
|
7
|
-
|
|
8
|
-
// locals
|
|
9
|
-
import EndAdornment from './EndAdornment'
|
|
10
|
-
|
|
11
|
-
export default function AutocompleteTextField({
|
|
12
|
-
TextFieldProps,
|
|
13
|
-
inputBoxVal,
|
|
14
|
-
params,
|
|
15
|
-
showHelp,
|
|
16
|
-
setInputValue,
|
|
17
|
-
setCurrentSearch,
|
|
18
|
-
}: {
|
|
19
|
-
TextFieldProps: TFP
|
|
20
|
-
inputBoxVal: string
|
|
21
|
-
showHelp?: boolean
|
|
22
|
-
params: AutocompleteRenderInputParams
|
|
23
|
-
setInputValue: (arg: string) => void
|
|
24
|
-
setCurrentSearch: (arg: string) => void
|
|
25
|
-
}) {
|
|
26
|
-
const { helperText, InputProps = {} } = TextFieldProps
|
|
27
|
-
return (
|
|
28
|
-
<TextField
|
|
29
|
-
onBlur={() =>
|
|
30
|
-
// this is used to restore a refName or the non-user-typed input
|
|
31
|
-
// to the box on blurring
|
|
32
|
-
setInputValue(inputBoxVal)
|
|
33
|
-
}
|
|
34
|
-
{...params}
|
|
35
|
-
{...TextFieldProps}
|
|
36
|
-
size="small"
|
|
37
|
-
helperText={helperText}
|
|
38
|
-
InputProps={{
|
|
39
|
-
...params.InputProps,
|
|
40
|
-
...InputProps,
|
|
41
|
-
|
|
42
|
-
endAdornment: (
|
|
43
|
-
<EndAdornment
|
|
44
|
-
showHelp={showHelp}
|
|
45
|
-
endAdornment={params.InputProps.endAdornment}
|
|
46
|
-
/>
|
|
47
|
-
),
|
|
48
|
-
}}
|
|
49
|
-
placeholder="Search for location"
|
|
50
|
-
onChange={e => setCurrentSearch(e.target.value)}
|
|
51
|
-
/>
|
|
52
|
-
)
|
|
53
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React, { Suspense, lazy, useState } from 'react'
|
|
2
|
-
|
|
3
|
-
import { IconButton, InputAdornment } from '@mui/material'
|
|
4
|
-
|
|
5
|
-
// icons
|
|
6
|
-
import SearchIcon from '@mui/icons-material/Search'
|
|
7
|
-
import HelpIcon from '@mui/icons-material/Help'
|
|
8
|
-
|
|
9
|
-
// lazy
|
|
10
|
-
const HelpDialog = lazy(() => import('./HelpDialog'))
|
|
11
|
-
|
|
12
|
-
function HelpAdornment() {
|
|
13
|
-
const [isHelpDialogDisplayed, setHelpDialogDisplayed] = useState(false)
|
|
14
|
-
return (
|
|
15
|
-
<>
|
|
16
|
-
<IconButton onClick={() => setHelpDialogDisplayed(true)} size="small">
|
|
17
|
-
<HelpIcon fontSize="small" />
|
|
18
|
-
</IconButton>
|
|
19
|
-
{isHelpDialogDisplayed ? (
|
|
20
|
-
<Suspense fallback={<div />}>
|
|
21
|
-
<HelpDialog handleClose={() => setHelpDialogDisplayed(false)} />
|
|
22
|
-
</Suspense>
|
|
23
|
-
) : null}
|
|
24
|
-
</>
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default function EndAdornment({
|
|
29
|
-
showHelp,
|
|
30
|
-
endAdornment,
|
|
31
|
-
}: {
|
|
32
|
-
showHelp?: boolean
|
|
33
|
-
endAdornment: React.ReactNode
|
|
34
|
-
}) {
|
|
35
|
-
return (
|
|
36
|
-
<>
|
|
37
|
-
<InputAdornment position="end" style={{ marginRight: 7 }}>
|
|
38
|
-
<SearchIcon fontSize="small" />
|
|
39
|
-
{showHelp ? <HelpAdornment /> : null}
|
|
40
|
-
</InputAdornment>
|
|
41
|
-
{endAdornment}
|
|
42
|
-
</>
|
|
43
|
-
)
|
|
44
|
-
}
|