@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
package/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,sBAAsB,CAAA;AAEzC,OAAO,EAAwB,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAEhF,QAAQ;AACR,OAAO,aAAa,MAAM,+BAA+B,CAAA;AAEzD,SAAS;AACT,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,kBAAkB,MAAM,qBAAqB,CAAA;AACpD,OAAO,iBAAiB,EAAE,EACxB,SAAS,EACT,YAAY,EACZ,gBAAgB,GACjB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,mBAAmB,MAAM,sBAAsB,CAAA;AACtD,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAC1C,OAAO,WAAW,MAAM,cAAc,CAAA;AACtC,OAAO,uBAAuB,MAAM,0BAA0B,CAAA;AAE9D,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,MAAM;IAA1D;;QACE,SAAI,GAAG,wBAAwB,CAAA;QAE/B,YAAO,GAAG;YACR,0BAA0B;YAC1B,iBAAiB;YACjB,6BAA6B;YAC7B,SAAS;YACT,YAAY;YACZ,gBAAgB;SACjB,CAAA;IAsBH,CAAC;IApBC,OAAO,CAAC,aAA4B;QAClC,aAAa,CAAC,aAAa,CAAC,CAAA;QAC5B,WAAW,CAAC,aAAa,CAAC,CAAA;QAC1B,mBAAmB,CAAC,aAAa,CAAC,CAAA;QAClC,iBAAiB,CAAC,aAAa,CAAC,CAAA;QAChC,kBAAkB,CAAC,aAAa,CAAC,CAAA;QACjC,uBAAuB,CAAC,aAAa,CAAC,CAAA;IACxC,CAAC;IAED,SAAS,CAAC,aAA4B;QACpC,IAAI,qBAAqB,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE;YAClD,aAAa,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,EAAE;gBAC/C,KAAK,EAAE,oBAAoB;gBAC3B,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,CAAC,OAA6B,EAAE,EAAE;oBACzC,OAAO,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAA;gBACzC,CAAC;aACF,CAAC,CAAA;SACH;IACH,CAAC;CACF;AAQD,OAAO,EAAE,mBAAmB,IAAI,oCAAoC,EAAE,MAAM,qBAAqB,CAAA;AACjG,OAAO,EACL,6BAA6B,EAC7B,iBAAiB,EACjB,QAAQ,EACR,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAGL,mBAAmB,EACnB,SAAS,GACV,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EACL,YAAY,IAAI,qCAAqC,EACrD,YAAY,IAAI,8BAA8B,GAC/C,MAAM,sBAAsB,CAAA"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import React, { useState, useRef } from 'react'
|
|
2
|
-
import { observer } from 'mobx-react'
|
|
3
|
-
import { useTheme } from '@mui/material'
|
|
4
|
-
import { makeStyles } from 'tss-react/mui'
|
|
5
|
-
import { getConf } from '@jbrowse/core/configuration'
|
|
6
|
-
import { Menu } from '@jbrowse/core/ui'
|
|
7
|
-
|
|
8
|
-
// locals
|
|
9
|
-
|
|
10
|
-
import LinearBlocks from './LinearBlocks'
|
|
11
|
-
import { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel'
|
|
12
|
-
|
|
13
|
-
const useStyles = makeStyles()({
|
|
14
|
-
display: {
|
|
15
|
-
position: 'relative',
|
|
16
|
-
whiteSpace: 'nowrap',
|
|
17
|
-
textAlign: 'left',
|
|
18
|
-
width: '100%',
|
|
19
|
-
minHeight: '100%',
|
|
20
|
-
},
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
type Coord = [number, number]
|
|
24
|
-
const BaseLinearDisplay = observer(function (props: {
|
|
25
|
-
model: BaseLinearDisplayModel
|
|
26
|
-
children?: React.ReactNode
|
|
27
|
-
}) {
|
|
28
|
-
const { classes } = useStyles()
|
|
29
|
-
const theme = useTheme()
|
|
30
|
-
const ref = useRef<HTMLDivElement>(null)
|
|
31
|
-
const [clientRect, setClientRect] = useState<DOMRect>()
|
|
32
|
-
const [offsetMouseCoord, setOffsetMouseCoord] = useState<Coord>([0, 0])
|
|
33
|
-
const [clientMouseCoord, setClientMouseCoord] = useState<Coord>([0, 0])
|
|
34
|
-
const [contextCoord, setContextCoord] = useState<Coord>()
|
|
35
|
-
const { model, children } = props
|
|
36
|
-
const {
|
|
37
|
-
TooltipComponent,
|
|
38
|
-
DisplayMessageComponent,
|
|
39
|
-
contextMenuItems,
|
|
40
|
-
height,
|
|
41
|
-
setContextMenuFeature,
|
|
42
|
-
} = model
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<div
|
|
46
|
-
ref={ref}
|
|
47
|
-
data-testid={`display-${getConf(model, 'displayId')}`}
|
|
48
|
-
className={classes.display}
|
|
49
|
-
onContextMenu={event => {
|
|
50
|
-
event.preventDefault()
|
|
51
|
-
if (contextCoord) {
|
|
52
|
-
// There's already a context menu open, so close it
|
|
53
|
-
setContextCoord(undefined)
|
|
54
|
-
} else if (ref.current) {
|
|
55
|
-
setContextCoord([event.clientX, event.clientY])
|
|
56
|
-
}
|
|
57
|
-
}}
|
|
58
|
-
onMouseMove={event => {
|
|
59
|
-
if (!ref.current) {
|
|
60
|
-
return
|
|
61
|
-
}
|
|
62
|
-
const rect = ref.current.getBoundingClientRect()
|
|
63
|
-
const { left, top } = rect
|
|
64
|
-
setOffsetMouseCoord([event.clientX - left, event.clientY - top])
|
|
65
|
-
setClientMouseCoord([event.clientX, event.clientY])
|
|
66
|
-
setClientRect(rect)
|
|
67
|
-
}}
|
|
68
|
-
>
|
|
69
|
-
{DisplayMessageComponent ? (
|
|
70
|
-
<DisplayMessageComponent model={model} />
|
|
71
|
-
) : (
|
|
72
|
-
<LinearBlocks {...props} />
|
|
73
|
-
)}
|
|
74
|
-
{children}
|
|
75
|
-
|
|
76
|
-
<TooltipComponent
|
|
77
|
-
model={model}
|
|
78
|
-
height={height}
|
|
79
|
-
offsetMouseCoord={offsetMouseCoord}
|
|
80
|
-
clientMouseCoord={clientMouseCoord}
|
|
81
|
-
clientRect={clientRect}
|
|
82
|
-
mouseCoord={offsetMouseCoord}
|
|
83
|
-
/>
|
|
84
|
-
|
|
85
|
-
<Menu
|
|
86
|
-
open={Boolean(contextCoord) && Boolean(contextMenuItems().length)}
|
|
87
|
-
onMenuItemClick={(_, callback) => {
|
|
88
|
-
callback()
|
|
89
|
-
setContextCoord(undefined)
|
|
90
|
-
}}
|
|
91
|
-
onClose={() => {
|
|
92
|
-
setContextCoord(undefined)
|
|
93
|
-
setContextMenuFeature(undefined)
|
|
94
|
-
}}
|
|
95
|
-
TransitionProps={{
|
|
96
|
-
onExit: () => {
|
|
97
|
-
setContextCoord(undefined)
|
|
98
|
-
setContextMenuFeature(undefined)
|
|
99
|
-
},
|
|
100
|
-
}}
|
|
101
|
-
anchorReference="anchorPosition"
|
|
102
|
-
anchorPosition={
|
|
103
|
-
contextCoord
|
|
104
|
-
? { top: contextCoord[1], left: contextCoord[0] }
|
|
105
|
-
: undefined
|
|
106
|
-
}
|
|
107
|
-
style={{ zIndex: theme.zIndex.tooltip }}
|
|
108
|
-
menuItems={contextMenuItems()}
|
|
109
|
-
/>
|
|
110
|
-
</div>
|
|
111
|
-
)
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
export default BaseLinearDisplay
|
|
115
|
-
|
|
116
|
-
export { default as Tooltip } from './Tooltip'
|
|
117
|
-
export { default as BlockMsg } from './BlockMsg'
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { BaseBlock } from '@jbrowse/core/util/blockTypes'
|
|
3
|
-
import { makeStyles } from 'tss-react/mui'
|
|
4
|
-
import { observer } from 'mobx-react'
|
|
5
|
-
|
|
6
|
-
const useStyles = makeStyles()(theme => ({
|
|
7
|
-
contentBlock: {
|
|
8
|
-
position: 'relative',
|
|
9
|
-
minHeight: '100%',
|
|
10
|
-
boxSizing: 'border-box',
|
|
11
|
-
whiteSpace: 'nowrap',
|
|
12
|
-
overflow: 'hidden',
|
|
13
|
-
},
|
|
14
|
-
elidedBlock: {
|
|
15
|
-
minHeight: '100%',
|
|
16
|
-
boxSizing: 'border-box',
|
|
17
|
-
backgroundColor: '#999',
|
|
18
|
-
backgroundImage:
|
|
19
|
-
'repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255,255,255,.5) 1px, rgba(255,255,255,.5) 3px)',
|
|
20
|
-
},
|
|
21
|
-
interRegionPaddingBlock: {
|
|
22
|
-
minHeight: '100%',
|
|
23
|
-
backgroundColor: theme.palette.text.disabled,
|
|
24
|
-
},
|
|
25
|
-
boundaryPaddingBlock: {
|
|
26
|
-
minHeight: '100%',
|
|
27
|
-
backgroundColor: theme.palette.action.disabledBackground,
|
|
28
|
-
},
|
|
29
|
-
}))
|
|
30
|
-
|
|
31
|
-
const ContentBlock = observer(function ({
|
|
32
|
-
block,
|
|
33
|
-
children,
|
|
34
|
-
}: {
|
|
35
|
-
block: BaseBlock
|
|
36
|
-
children: React.ReactNode
|
|
37
|
-
}) {
|
|
38
|
-
const { classes } = useStyles()
|
|
39
|
-
const { widthPx } = block
|
|
40
|
-
return (
|
|
41
|
-
<div style={{ width: widthPx }} className={classes.contentBlock}>
|
|
42
|
-
{children}
|
|
43
|
-
</div>
|
|
44
|
-
)
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
function ElidedBlock({ width }: { width: number }) {
|
|
48
|
-
const { classes } = useStyles()
|
|
49
|
-
return <div className={classes.elidedBlock} style={{ width }} />
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function InterRegionPaddingBlock({
|
|
53
|
-
boundary,
|
|
54
|
-
width,
|
|
55
|
-
style = {},
|
|
56
|
-
}: {
|
|
57
|
-
boundary: boolean
|
|
58
|
-
width: number
|
|
59
|
-
style?: React.CSSProperties
|
|
60
|
-
}) {
|
|
61
|
-
const { classes } = useStyles()
|
|
62
|
-
return (
|
|
63
|
-
<div
|
|
64
|
-
style={{
|
|
65
|
-
...style,
|
|
66
|
-
width,
|
|
67
|
-
}}
|
|
68
|
-
className={
|
|
69
|
-
boundary
|
|
70
|
-
? classes.boundaryPaddingBlock
|
|
71
|
-
: classes.interRegionPaddingBlock
|
|
72
|
-
}
|
|
73
|
-
/>
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export { ContentBlock, ElidedBlock, InterRegionPaddingBlock }
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { Tooltip, Button, Alert, AlertColor } from '@mui/material'
|
|
3
|
-
import { makeStyles } from 'tss-react/mui'
|
|
4
|
-
|
|
5
|
-
const useStyles = makeStyles()({
|
|
6
|
-
ellipses: {
|
|
7
|
-
textOverflow: 'ellipsis',
|
|
8
|
-
overflow: 'hidden',
|
|
9
|
-
},
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
export default function BlockMsg({
|
|
13
|
-
message,
|
|
14
|
-
severity,
|
|
15
|
-
buttonText,
|
|
16
|
-
icon,
|
|
17
|
-
action,
|
|
18
|
-
}: {
|
|
19
|
-
message: string
|
|
20
|
-
severity?: AlertColor
|
|
21
|
-
buttonText?: string
|
|
22
|
-
icon?: React.ReactNode
|
|
23
|
-
action?: () => void
|
|
24
|
-
}) {
|
|
25
|
-
const { classes } = useStyles()
|
|
26
|
-
const button = action ? (
|
|
27
|
-
<Button data-testid="reload_button" onClick={action} startIcon={icon}>
|
|
28
|
-
{buttonText}
|
|
29
|
-
</Button>
|
|
30
|
-
) : null
|
|
31
|
-
return (
|
|
32
|
-
<Alert
|
|
33
|
-
severity={severity}
|
|
34
|
-
action={button}
|
|
35
|
-
classes={{ message: classes.ellipses }}
|
|
36
|
-
>
|
|
37
|
-
<Tooltip title={message}>
|
|
38
|
-
<div>{message}</div>
|
|
39
|
-
</Tooltip>
|
|
40
|
-
</Alert>
|
|
41
|
-
)
|
|
42
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { makeStyles } from 'tss-react/mui'
|
|
3
|
-
import { getContainingView } from '@jbrowse/core/util'
|
|
4
|
-
import { observer } from 'mobx-react'
|
|
5
|
-
import {
|
|
6
|
-
ContentBlock,
|
|
7
|
-
ElidedBlock,
|
|
8
|
-
InterRegionPaddingBlock,
|
|
9
|
-
} from '@jbrowse/core/util/blockTypes'
|
|
10
|
-
import { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel'
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
ContentBlock as ContentBlockComponent,
|
|
14
|
-
ElidedBlock as ElidedBlockComponent,
|
|
15
|
-
InterRegionPaddingBlock as InterRegionPaddingBlockComponent,
|
|
16
|
-
} from './Block'
|
|
17
|
-
import { LinearGenomeViewModel } from '../../LinearGenomeView'
|
|
18
|
-
|
|
19
|
-
type LGV = LinearGenomeViewModel
|
|
20
|
-
|
|
21
|
-
const useStyles = makeStyles()({
|
|
22
|
-
linearBlocks: {
|
|
23
|
-
whiteSpace: 'nowrap',
|
|
24
|
-
textAlign: 'left',
|
|
25
|
-
position: 'absolute',
|
|
26
|
-
minHeight: '100%',
|
|
27
|
-
display: 'flex',
|
|
28
|
-
},
|
|
29
|
-
heightOverflowed: {
|
|
30
|
-
position: 'absolute',
|
|
31
|
-
color: 'rgb(77,77,77)',
|
|
32
|
-
borderBottom: '2px solid rgb(77,77,77)',
|
|
33
|
-
textShadow: 'white 0px 0px 1px',
|
|
34
|
-
whiteSpace: 'nowrap',
|
|
35
|
-
width: '100%',
|
|
36
|
-
fontWeight: 'bold',
|
|
37
|
-
textAlign: 'center',
|
|
38
|
-
zIndex: 2000,
|
|
39
|
-
boxSizing: 'border-box',
|
|
40
|
-
},
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
const RenderedBlocks = observer(function ({
|
|
44
|
-
model,
|
|
45
|
-
}: {
|
|
46
|
-
model: BaseLinearDisplayModel
|
|
47
|
-
}) {
|
|
48
|
-
const { classes } = useStyles()
|
|
49
|
-
const { blockDefinitions, blockState } = model
|
|
50
|
-
return (
|
|
51
|
-
<>
|
|
52
|
-
{blockDefinitions.map(block => {
|
|
53
|
-
if (block instanceof ContentBlock) {
|
|
54
|
-
const state = blockState.get(block.key)
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<ContentBlockComponent
|
|
58
|
-
block={block}
|
|
59
|
-
key={`${model.id}-${block.key}`}
|
|
60
|
-
>
|
|
61
|
-
{state && state.ReactComponent ? (
|
|
62
|
-
<state.ReactComponent model={state} />
|
|
63
|
-
) : null}
|
|
64
|
-
{state && state.maxHeightReached ? (
|
|
65
|
-
<div
|
|
66
|
-
className={classes.heightOverflowed}
|
|
67
|
-
style={{
|
|
68
|
-
top: state.layout.getTotalHeight() - 16,
|
|
69
|
-
pointerEvents: 'none',
|
|
70
|
-
height: 16,
|
|
71
|
-
}}
|
|
72
|
-
>
|
|
73
|
-
Max height reached
|
|
74
|
-
</div>
|
|
75
|
-
) : null}
|
|
76
|
-
</ContentBlockComponent>
|
|
77
|
-
)
|
|
78
|
-
}
|
|
79
|
-
if (block instanceof ElidedBlock) {
|
|
80
|
-
return (
|
|
81
|
-
<ElidedBlockComponent
|
|
82
|
-
key={`${model.id}-${block.key}`}
|
|
83
|
-
width={block.widthPx}
|
|
84
|
-
/>
|
|
85
|
-
)
|
|
86
|
-
}
|
|
87
|
-
if (block instanceof InterRegionPaddingBlock) {
|
|
88
|
-
return (
|
|
89
|
-
<InterRegionPaddingBlockComponent
|
|
90
|
-
key={block.key}
|
|
91
|
-
width={block.widthPx}
|
|
92
|
-
style={{ background: 'none' }}
|
|
93
|
-
boundary={block.variant === 'boundary'}
|
|
94
|
-
/>
|
|
95
|
-
)
|
|
96
|
-
}
|
|
97
|
-
throw new Error(`invalid block type ${typeof block}`)
|
|
98
|
-
})}
|
|
99
|
-
</>
|
|
100
|
-
)
|
|
101
|
-
})
|
|
102
|
-
function LinearBlocks({ model }: { model: BaseLinearDisplayModel }) {
|
|
103
|
-
const { classes } = useStyles()
|
|
104
|
-
const { blockDefinitions } = model
|
|
105
|
-
const viewModel = getContainingView(model) as LGV
|
|
106
|
-
return (
|
|
107
|
-
<div
|
|
108
|
-
className={classes.linearBlocks}
|
|
109
|
-
style={{
|
|
110
|
-
left: blockDefinitions.offsetPx - viewModel.offsetPx,
|
|
111
|
-
}}
|
|
112
|
-
>
|
|
113
|
-
<RenderedBlocks model={model} />
|
|
114
|
-
</div>
|
|
115
|
-
)
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export { RenderedBlocks, useStyles }
|
|
119
|
-
export default observer(LinearBlocks)
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { makeStyles } from 'tss-react/mui'
|
|
3
|
-
import { observer } from 'mobx-react'
|
|
4
|
-
import { getParent } from 'mobx-state-tree'
|
|
5
|
-
import { LoadingEllipses } from '@jbrowse/core/ui'
|
|
6
|
-
|
|
7
|
-
// icons
|
|
8
|
-
import RefreshIcon from '@mui/icons-material/Refresh'
|
|
9
|
-
|
|
10
|
-
// locals
|
|
11
|
-
import BlockMsg from './BlockMsg'
|
|
12
|
-
|
|
13
|
-
const useStyles = makeStyles()(theme => {
|
|
14
|
-
const bg = theme.palette.action.disabledBackground
|
|
15
|
-
return {
|
|
16
|
-
loading: {
|
|
17
|
-
paddingLeft: '0.6em',
|
|
18
|
-
backgroundColor: theme.palette.background.default,
|
|
19
|
-
backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${bg} 5px, ${bg} 10px)`,
|
|
20
|
-
textAlign: 'center',
|
|
21
|
-
},
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
|
-
const LoadingMessage = observer(({ model }: { model: any }) => {
|
|
27
|
-
const { classes } = useStyles()
|
|
28
|
-
const { status: blockStatus } = model
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
|
-
const { message: displayStatus } = getParent<any>(model, 2)
|
|
31
|
-
const status = displayStatus || blockStatus
|
|
32
|
-
return (
|
|
33
|
-
<div className={classes.loading}>
|
|
34
|
-
<LoadingEllipses message={status} />
|
|
35
|
-
</div>
|
|
36
|
-
)
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
const ServerSideRenderedBlockContent = observer(function ({
|
|
40
|
-
model,
|
|
41
|
-
}: {
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
43
|
-
model: any
|
|
44
|
-
}) {
|
|
45
|
-
if (model.error) {
|
|
46
|
-
return (
|
|
47
|
-
<BlockMsg
|
|
48
|
-
message={`${model.error}`}
|
|
49
|
-
severity="error"
|
|
50
|
-
buttonText="reload"
|
|
51
|
-
icon={<RefreshIcon />}
|
|
52
|
-
action={model.reload}
|
|
53
|
-
/>
|
|
54
|
-
)
|
|
55
|
-
} else if (model.message) {
|
|
56
|
-
// the message can be a fully rendered react component, e.g. the region too large message
|
|
57
|
-
return React.isValidElement(model.message) ? (
|
|
58
|
-
model.message
|
|
59
|
-
) : (
|
|
60
|
-
<BlockMsg message={`${model.message}`} severity="info" />
|
|
61
|
-
)
|
|
62
|
-
} else if (!model.filled) {
|
|
63
|
-
return <LoadingMessage model={model} />
|
|
64
|
-
} else {
|
|
65
|
-
return model.reactElement
|
|
66
|
-
}
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
export default ServerSideRenderedBlockContent
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter'
|
|
3
|
-
|
|
4
|
-
// locals
|
|
5
|
-
import BlockMsg from '../components/BlockMsg'
|
|
6
|
-
|
|
7
|
-
function TooLargeMessage({
|
|
8
|
-
model,
|
|
9
|
-
}: {
|
|
10
|
-
model: {
|
|
11
|
-
regionTooLargeReason: string
|
|
12
|
-
featureDensityStats?: FeatureDensityStats
|
|
13
|
-
setFeatureDensityStatsLimit: (s?: FeatureDensityStats) => void
|
|
14
|
-
reload: () => void
|
|
15
|
-
}
|
|
16
|
-
}) {
|
|
17
|
-
const { regionTooLargeReason } = model
|
|
18
|
-
return (
|
|
19
|
-
<BlockMsg
|
|
20
|
-
severity="warning"
|
|
21
|
-
action={() => {
|
|
22
|
-
model.setFeatureDensityStatsLimit(model.featureDensityStats)
|
|
23
|
-
model.reload()
|
|
24
|
-
}}
|
|
25
|
-
buttonText="Force load"
|
|
26
|
-
message={[
|
|
27
|
-
regionTooLargeReason,
|
|
28
|
-
'Zoom in to see features or force load (may be slow)',
|
|
29
|
-
]
|
|
30
|
-
.filter(f => !!f)
|
|
31
|
-
.join('. ')}
|
|
32
|
-
/>
|
|
33
|
-
)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default TooLargeMessage
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import React, { useState, useMemo } from 'react'
|
|
2
|
-
import { getConf } from '@jbrowse/core/configuration'
|
|
3
|
-
import { SanitizedHTML } from '@jbrowse/core/ui'
|
|
4
|
-
import { observer } from 'mobx-react'
|
|
5
|
-
import { Portal, alpha } from '@mui/material'
|
|
6
|
-
import { makeStyles } from 'tss-react/mui'
|
|
7
|
-
import { usePopper } from 'react-popper'
|
|
8
|
-
|
|
9
|
-
// locals
|
|
10
|
-
import { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel'
|
|
11
|
-
|
|
12
|
-
function round(value: number) {
|
|
13
|
-
return Math.round(value * 1e5) / 1e5
|
|
14
|
-
}
|
|
15
|
-
const useStyles = makeStyles()(theme => ({
|
|
16
|
-
// these styles come from
|
|
17
|
-
// https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Tooltip/Tooltip.js
|
|
18
|
-
tooltip: {
|
|
19
|
-
pointerEvents: 'none',
|
|
20
|
-
backgroundColor: alpha(theme.palette.grey[700], 0.9),
|
|
21
|
-
borderRadius: theme.shape.borderRadius,
|
|
22
|
-
color: theme.palette.common.white,
|
|
23
|
-
fontFamily: theme.typography.fontFamily,
|
|
24
|
-
padding: '4px 8px',
|
|
25
|
-
fontSize: theme.typography.pxToRem(12),
|
|
26
|
-
lineHeight: `${round(14 / 10)}em`,
|
|
27
|
-
maxWidth: 300,
|
|
28
|
-
wordWrap: 'break-word',
|
|
29
|
-
},
|
|
30
|
-
}))
|
|
31
|
-
|
|
32
|
-
const TooltipContents = React.forwardRef<
|
|
33
|
-
HTMLDivElement,
|
|
34
|
-
{ message: React.ReactNode | string }
|
|
35
|
-
>(({ message }: { message: React.ReactNode | string }, ref) => {
|
|
36
|
-
return (
|
|
37
|
-
<div ref={ref}>
|
|
38
|
-
{React.isValidElement(message) ? (
|
|
39
|
-
message
|
|
40
|
-
) : message ? (
|
|
41
|
-
<SanitizedHTML html={String(message)} />
|
|
42
|
-
) : null}
|
|
43
|
-
</div>
|
|
44
|
-
)
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
type Coord = [number, number]
|
|
48
|
-
const Tooltip = observer(
|
|
49
|
-
({
|
|
50
|
-
model,
|
|
51
|
-
clientMouseCoord,
|
|
52
|
-
}: {
|
|
53
|
-
model: BaseLinearDisplayModel
|
|
54
|
-
clientMouseCoord: Coord
|
|
55
|
-
}) => {
|
|
56
|
-
const { classes } = useStyles()
|
|
57
|
-
const { featureUnderMouse } = model
|
|
58
|
-
const [width, setWidth] = useState(0)
|
|
59
|
-
const [popperElt, setPopperElt] = useState<HTMLDivElement | null>(null)
|
|
60
|
-
|
|
61
|
-
// must be memoized a la https://github.com/popperjs/react-popper/issues/391
|
|
62
|
-
const virtElement = useMemo(
|
|
63
|
-
() => ({
|
|
64
|
-
getBoundingClientRect: () => {
|
|
65
|
-
const x = clientMouseCoord[0] + width / 2 + 20
|
|
66
|
-
const y = clientMouseCoord[1]
|
|
67
|
-
return {
|
|
68
|
-
top: y,
|
|
69
|
-
left: x,
|
|
70
|
-
bottom: y,
|
|
71
|
-
right: x,
|
|
72
|
-
width: 0,
|
|
73
|
-
height: 0,
|
|
74
|
-
x,
|
|
75
|
-
y,
|
|
76
|
-
toJSON() {},
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
}),
|
|
80
|
-
[clientMouseCoord, width],
|
|
81
|
-
)
|
|
82
|
-
const { styles, attributes } = usePopper(virtElement, popperElt)
|
|
83
|
-
|
|
84
|
-
const contents = featureUnderMouse
|
|
85
|
-
? getConf(model, 'mouseover', { feature: featureUnderMouse })
|
|
86
|
-
: undefined
|
|
87
|
-
|
|
88
|
-
return featureUnderMouse && contents ? (
|
|
89
|
-
<Portal>
|
|
90
|
-
<div
|
|
91
|
-
ref={setPopperElt}
|
|
92
|
-
className={classes.tooltip}
|
|
93
|
-
// zIndex needed to go over widget drawer
|
|
94
|
-
style={{ ...styles.popper, zIndex: 100000 }}
|
|
95
|
-
{...attributes.popper}
|
|
96
|
-
>
|
|
97
|
-
<TooltipContents
|
|
98
|
-
ref={elt => setWidth(elt?.getBoundingClientRect().width || 0)}
|
|
99
|
-
message={contents}
|
|
100
|
-
/>
|
|
101
|
-
</div>
|
|
102
|
-
</Portal>
|
|
103
|
-
) : null
|
|
104
|
-
},
|
|
105
|
-
)
|
|
106
|
-
|
|
107
|
-
export default Tooltip
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export { default as baseLinearDisplayConfigSchema } from './models/configSchema'
|
|
2
|
-
export type { BlockModel } from './models/serverSideRenderedBlock'
|
|
3
|
-
export { BaseLinearDisplay } from './models/BaseLinearDisplayModel'
|
|
4
|
-
export type {
|
|
5
|
-
ExportSvgDisplayOptions,
|
|
6
|
-
BaseLinearDisplayModel,
|
|
7
|
-
BaseLinearDisplayStateModel,
|
|
8
|
-
} from './models/BaseLinearDisplayModel'
|
|
9
|
-
export {
|
|
10
|
-
default as BaseLinearDisplayComponent,
|
|
11
|
-
Tooltip,
|
|
12
|
-
BlockMsg,
|
|
13
|
-
} from './components/BaseLinearDisplay'
|
|
14
|
-
export { default as TrackHeightMixin } from './models/TrackHeightMixin'
|
|
15
|
-
export { default as FeatureDensityMixin } from './models/FeatureDensityMixin'
|
|
16
|
-
export { default as TooLargeMessage } from './components/TooLargeMessage'
|