@jbrowse/plugin-linear-genome-view 2.6.1 → 2.6.3
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 +3 -2
- 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 +2 -2
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +6 -5
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +6 -4
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +8 -5
- 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 +4 -3
- 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 +2 -2
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +6 -5
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +6 -4
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js +8 -5
- 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 +4 -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,73 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
2
|
-
import { observer } from 'mobx-react'
|
|
3
|
-
import { Dialog } from '@jbrowse/core/ui'
|
|
4
|
-
import {
|
|
5
|
-
Button,
|
|
6
|
-
DialogActions,
|
|
7
|
-
DialogContent,
|
|
8
|
-
Typography,
|
|
9
|
-
TextField,
|
|
10
|
-
} from '@mui/material'
|
|
11
|
-
import { makeStyles } from 'tss-react/mui'
|
|
12
|
-
|
|
13
|
-
const useStyles = makeStyles()({
|
|
14
|
-
root: {
|
|
15
|
-
width: 500,
|
|
16
|
-
},
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
function SetMaxHeightDlg({
|
|
20
|
-
model,
|
|
21
|
-
handleClose,
|
|
22
|
-
}: {
|
|
23
|
-
model: {
|
|
24
|
-
maxHeight?: number
|
|
25
|
-
setMaxHeight: (arg?: number) => void
|
|
26
|
-
}
|
|
27
|
-
handleClose: () => void
|
|
28
|
-
}) {
|
|
29
|
-
const { classes } = useStyles()
|
|
30
|
-
const { maxHeight = '' } = model
|
|
31
|
-
const [max, setMax] = useState(`${maxHeight}`)
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<Dialog open onClose={handleClose} title="Set max height">
|
|
35
|
-
<DialogContent className={classes.root}>
|
|
36
|
-
<Typography>
|
|
37
|
-
Set max height for the track. For example, you can increase this if
|
|
38
|
-
the layout says "Max height reached"
|
|
39
|
-
</Typography>
|
|
40
|
-
<TextField
|
|
41
|
-
value={max}
|
|
42
|
-
onChange={event => setMax(event.target.value)}
|
|
43
|
-
placeholder="Enter max score"
|
|
44
|
-
/>
|
|
45
|
-
<DialogActions>
|
|
46
|
-
<Button
|
|
47
|
-
variant="contained"
|
|
48
|
-
color="primary"
|
|
49
|
-
type="submit"
|
|
50
|
-
autoFocus
|
|
51
|
-
onClick={() => {
|
|
52
|
-
model.setMaxHeight(
|
|
53
|
-
max !== '' && !Number.isNaN(+max) ? +max : undefined,
|
|
54
|
-
)
|
|
55
|
-
handleClose()
|
|
56
|
-
}}
|
|
57
|
-
>
|
|
58
|
-
Submit
|
|
59
|
-
</Button>
|
|
60
|
-
<Button
|
|
61
|
-
variant="contained"
|
|
62
|
-
color="secondary"
|
|
63
|
-
onClick={() => handleClose()}
|
|
64
|
-
>
|
|
65
|
-
Cancel
|
|
66
|
-
</Button>
|
|
67
|
-
</DialogActions>
|
|
68
|
-
</DialogContent>
|
|
69
|
-
</Dialog>
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export default observer(SetMaxHeightDlg)
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
|
-
import { baseLinearDisplayConfigSchema } from '../BaseLinearDisplay'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* #config LinearBasicDisplay
|
|
7
|
-
* #category display
|
|
8
|
-
*/
|
|
9
|
-
function configSchemaFactory(pluginManager: PluginManager) {
|
|
10
|
-
return ConfigurationSchema(
|
|
11
|
-
'LinearBasicDisplay',
|
|
12
|
-
{
|
|
13
|
-
/**
|
|
14
|
-
* #slot
|
|
15
|
-
*/
|
|
16
|
-
renderer: pluginManager.pluggableConfigSchemaType('renderer'),
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
/**
|
|
20
|
-
* #baseConfiguration
|
|
21
|
-
*/
|
|
22
|
-
baseConfiguration: baseLinearDisplayConfigSchema,
|
|
23
|
-
explicitlyTyped: true,
|
|
24
|
-
},
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default configSchemaFactory
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import { DisplayType } from '@jbrowse/core/pluggableElementTypes'
|
|
3
|
-
import { BaseLinearDisplayComponent } from '../BaseLinearDisplay'
|
|
4
|
-
|
|
5
|
-
// locals
|
|
6
|
-
import configSchema from './configSchema'
|
|
7
|
-
import modelFactory from './model'
|
|
8
|
-
|
|
9
|
-
export default (pluginManager: PluginManager) => {
|
|
10
|
-
pluginManager.addDisplayType(() => {
|
|
11
|
-
const config = configSchema(pluginManager)
|
|
12
|
-
return new DisplayType({
|
|
13
|
-
name: 'LinearBasicDisplay',
|
|
14
|
-
displayName: 'Basic feature display',
|
|
15
|
-
configSchema: config,
|
|
16
|
-
stateModel: modelFactory(config),
|
|
17
|
-
trackType: 'FeatureTrack',
|
|
18
|
-
viewType: 'LinearGenomeView',
|
|
19
|
-
ReactComponent: BaseLinearDisplayComponent,
|
|
20
|
-
})
|
|
21
|
-
})
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { default as modelFactory } from './model'
|
|
25
|
-
export { default as configSchema } from './configSchema'
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { lazy } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
getConf,
|
|
4
|
-
ConfigurationReference,
|
|
5
|
-
AnyConfigurationSchemaType,
|
|
6
|
-
} from '@jbrowse/core/configuration'
|
|
7
|
-
import { getSession } from '@jbrowse/core/util'
|
|
8
|
-
import { MenuItem } from '@jbrowse/core/ui'
|
|
9
|
-
import { types, getEnv, Instance } from 'mobx-state-tree'
|
|
10
|
-
|
|
11
|
-
// icons
|
|
12
|
-
import VisibilityIcon from '@mui/icons-material/Visibility'
|
|
13
|
-
|
|
14
|
-
// locals
|
|
15
|
-
import { BaseLinearDisplay } from '../BaseLinearDisplay'
|
|
16
|
-
|
|
17
|
-
const SetMaxHeightDlg = lazy(() => import('./components/SetMaxHeight'))
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* #stateModel LinearBasicDisplay
|
|
21
|
-
* #category display
|
|
22
|
-
* used by `FeatureTrack`, has simple settings like "show/hide feature labels",
|
|
23
|
-
* etc.
|
|
24
|
-
*/
|
|
25
|
-
function stateModelFactory(configSchema: AnyConfigurationSchemaType) {
|
|
26
|
-
return types
|
|
27
|
-
.compose(
|
|
28
|
-
'LinearBasicDisplay',
|
|
29
|
-
BaseLinearDisplay,
|
|
30
|
-
types.model({
|
|
31
|
-
/**
|
|
32
|
-
* #property
|
|
33
|
-
*/
|
|
34
|
-
type: types.literal('LinearBasicDisplay'),
|
|
35
|
-
/**
|
|
36
|
-
* #property
|
|
37
|
-
*/
|
|
38
|
-
trackShowLabels: types.maybe(types.boolean),
|
|
39
|
-
/**
|
|
40
|
-
* #property
|
|
41
|
-
*/
|
|
42
|
-
trackShowDescriptions: types.maybe(types.boolean),
|
|
43
|
-
/**
|
|
44
|
-
* #property
|
|
45
|
-
*/
|
|
46
|
-
trackDisplayMode: types.maybe(types.string),
|
|
47
|
-
/**
|
|
48
|
-
* #property
|
|
49
|
-
*/
|
|
50
|
-
trackMaxHeight: types.maybe(types.number),
|
|
51
|
-
/**
|
|
52
|
-
* #property
|
|
53
|
-
*/
|
|
54
|
-
configuration: ConfigurationReference(configSchema),
|
|
55
|
-
}),
|
|
56
|
-
)
|
|
57
|
-
.views(self => ({
|
|
58
|
-
/**
|
|
59
|
-
* #getter
|
|
60
|
-
*/
|
|
61
|
-
get rendererTypeName() {
|
|
62
|
-
return getConf(self, ['renderer', 'type'])
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* #getter
|
|
67
|
-
*/
|
|
68
|
-
get showLabels() {
|
|
69
|
-
return self.trackShowLabels ?? getConf(self, ['renderer', 'showLabels'])
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* #getter
|
|
74
|
-
*/
|
|
75
|
-
get showDescriptions() {
|
|
76
|
-
return (
|
|
77
|
-
self.trackShowDescriptions ??
|
|
78
|
-
getConf(self, ['renderer', 'showDescriptions'])
|
|
79
|
-
)
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* #getter
|
|
84
|
-
*/
|
|
85
|
-
get maxHeight() {
|
|
86
|
-
return self.trackMaxHeight ?? getConf(self, ['renderer', 'maxHeight'])
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* #getter
|
|
91
|
-
*/
|
|
92
|
-
get displayMode() {
|
|
93
|
-
return (
|
|
94
|
-
self.trackDisplayMode ?? getConf(self, ['renderer', 'displayMode'])
|
|
95
|
-
)
|
|
96
|
-
},
|
|
97
|
-
}))
|
|
98
|
-
.views(self => ({
|
|
99
|
-
/**
|
|
100
|
-
* #getter
|
|
101
|
-
*/
|
|
102
|
-
get rendererConfig() {
|
|
103
|
-
const configBlob = getConf(self, ['renderer']) || {}
|
|
104
|
-
const config = configBlob as Omit<typeof configBlob, symbol>
|
|
105
|
-
|
|
106
|
-
return self.rendererType.configSchema.create(
|
|
107
|
-
{
|
|
108
|
-
...config,
|
|
109
|
-
showLabels: self.showLabels,
|
|
110
|
-
showDescriptions: self.showDescriptions,
|
|
111
|
-
displayMode: self.displayMode,
|
|
112
|
-
maxHeight: self.maxHeight,
|
|
113
|
-
},
|
|
114
|
-
getEnv(self),
|
|
115
|
-
)
|
|
116
|
-
},
|
|
117
|
-
}))
|
|
118
|
-
|
|
119
|
-
.actions(self => ({
|
|
120
|
-
/**
|
|
121
|
-
* #action
|
|
122
|
-
*/
|
|
123
|
-
toggleShowLabels() {
|
|
124
|
-
self.trackShowLabels = !self.showLabels
|
|
125
|
-
},
|
|
126
|
-
/**
|
|
127
|
-
* #action
|
|
128
|
-
*/
|
|
129
|
-
toggleShowDescriptions() {
|
|
130
|
-
self.trackShowDescriptions = !self.showDescriptions
|
|
131
|
-
},
|
|
132
|
-
/**
|
|
133
|
-
* #action
|
|
134
|
-
*/
|
|
135
|
-
setDisplayMode(val: string) {
|
|
136
|
-
self.trackDisplayMode = val
|
|
137
|
-
},
|
|
138
|
-
/**
|
|
139
|
-
* #action
|
|
140
|
-
*/
|
|
141
|
-
setMaxHeight(val?: number) {
|
|
142
|
-
self.trackMaxHeight = val
|
|
143
|
-
},
|
|
144
|
-
}))
|
|
145
|
-
.views(self => {
|
|
146
|
-
const {
|
|
147
|
-
trackMenuItems: superTrackMenuItems,
|
|
148
|
-
renderProps: superRenderProps,
|
|
149
|
-
} = self
|
|
150
|
-
return {
|
|
151
|
-
/**
|
|
152
|
-
* #method
|
|
153
|
-
*/
|
|
154
|
-
renderProps() {
|
|
155
|
-
const config = self.rendererConfig
|
|
156
|
-
const superProps = superRenderProps()
|
|
157
|
-
const superPropsOmit = superProps as Omit<typeof superProps, symbol>
|
|
158
|
-
return {
|
|
159
|
-
...superPropsOmit,
|
|
160
|
-
config,
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* #method
|
|
166
|
-
*/
|
|
167
|
-
trackMenuItems(): MenuItem[] {
|
|
168
|
-
return [
|
|
169
|
-
...superTrackMenuItems(),
|
|
170
|
-
{
|
|
171
|
-
label: 'Show labels',
|
|
172
|
-
icon: VisibilityIcon,
|
|
173
|
-
type: 'checkbox',
|
|
174
|
-
checked: self.showLabels,
|
|
175
|
-
onClick: () => self.toggleShowLabels(),
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
label: 'Show descriptions',
|
|
179
|
-
icon: VisibilityIcon,
|
|
180
|
-
type: 'checkbox',
|
|
181
|
-
checked: self.showDescriptions,
|
|
182
|
-
onClick: () => self.toggleShowDescriptions(),
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
label: 'Display mode',
|
|
186
|
-
icon: VisibilityIcon,
|
|
187
|
-
subMenu: [
|
|
188
|
-
'compact',
|
|
189
|
-
'reducedRepresentation',
|
|
190
|
-
'normal',
|
|
191
|
-
'collapse',
|
|
192
|
-
].map(val => ({
|
|
193
|
-
label: val,
|
|
194
|
-
onClick: () => self.setDisplayMode(val),
|
|
195
|
-
})),
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
label: 'Set max height',
|
|
199
|
-
onClick: () => {
|
|
200
|
-
getSession(self).queueDialog(handleClose => [
|
|
201
|
-
SetMaxHeightDlg,
|
|
202
|
-
{ model: self, handleClose },
|
|
203
|
-
])
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
}
|
|
209
|
-
})
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export type FeatureTrackStateModel = ReturnType<typeof stateModelFactory>
|
|
213
|
-
export type FeatureTrackModel = Instance<FeatureTrackStateModel>
|
|
214
|
-
|
|
215
|
-
export default stateModelFactory
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Key LinearGenomeView state fields
|
|
2
|
-
|
|
3
|
-
- displayedRegions - array of { refName, start, end }, tiled in the display left
|
|
4
|
-
to right
|
|
5
|
-
- offsetPx - the offset in px of the left edge of the view
|
|
6
|
-
- bpPerPx - ratio of basepairs to screen pixels
|
|
7
|
-
- width - width in px of the view
|
|
8
|
-
|
|
9
|
-
Everything runs off of these four things.
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React, { useRef } from 'react'
|
|
2
|
-
import { makeStyles } from 'tss-react/mui'
|
|
3
|
-
import { observer } from 'mobx-react'
|
|
4
|
-
import { LinearGenomeViewModel } from '..'
|
|
5
|
-
|
|
6
|
-
type LGV = LinearGenomeViewModel
|
|
7
|
-
|
|
8
|
-
const useStyles = makeStyles()(theme => ({
|
|
9
|
-
centerLineContainer: {
|
|
10
|
-
background: 'transparent',
|
|
11
|
-
height: '100%',
|
|
12
|
-
zIndex: 5, // above the track but under menu
|
|
13
|
-
position: 'absolute',
|
|
14
|
-
border: `1px ${theme.palette.action.active} dashed`,
|
|
15
|
-
borderTop: 'none',
|
|
16
|
-
borderBottom: 'none',
|
|
17
|
-
pointerEvents: 'none',
|
|
18
|
-
},
|
|
19
|
-
centerLineText: {
|
|
20
|
-
position: 'absolute',
|
|
21
|
-
pointerEvents: 'none',
|
|
22
|
-
whiteSpace: 'nowrap',
|
|
23
|
-
fontWeight: 'bold',
|
|
24
|
-
},
|
|
25
|
-
}))
|
|
26
|
-
|
|
27
|
-
function CenterLine({ model }: { model: LGV }) {
|
|
28
|
-
const { bpPerPx, centerLineInfo, trackHeights, tracks, width } = model
|
|
29
|
-
const ref = useRef<HTMLDivElement>(null)
|
|
30
|
-
const { classes } = useStyles()
|
|
31
|
-
const startingPosition = width / 2
|
|
32
|
-
|
|
33
|
-
return tracks.length ? (
|
|
34
|
-
<div
|
|
35
|
-
data-testid="centerline_container"
|
|
36
|
-
className={classes.centerLineContainer}
|
|
37
|
-
role="presentation"
|
|
38
|
-
ref={ref}
|
|
39
|
-
style={{
|
|
40
|
-
left: `${startingPosition}px`,
|
|
41
|
-
width: Math.max(1 / bpPerPx, 1),
|
|
42
|
-
}}
|
|
43
|
-
>
|
|
44
|
-
{centerLineInfo && (
|
|
45
|
-
<div
|
|
46
|
-
// text that indicates what bp is center, positioned
|
|
47
|
-
// at the bottom right of the center line
|
|
48
|
-
data-testid="centerline_text"
|
|
49
|
-
className={classes.centerLineText}
|
|
50
|
-
role="presentation"
|
|
51
|
-
style={{
|
|
52
|
-
left: Math.max(1 / bpPerPx, 1) + 5,
|
|
53
|
-
top: trackHeights,
|
|
54
|
-
}}
|
|
55
|
-
>
|
|
56
|
-
{/* change bp to refName */}
|
|
57
|
-
{centerLineInfo.refName}:{' '}
|
|
58
|
-
{Math.max(Math.round(centerLineInfo.offset) + 1, 0)}
|
|
59
|
-
</div>
|
|
60
|
-
)}
|
|
61
|
-
</div>
|
|
62
|
-
) : null
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export default observer(CenterLine)
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { observer } from 'mobx-react'
|
|
3
|
-
|
|
4
|
-
// core
|
|
5
|
-
import { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel'
|
|
6
|
-
import { ContentBlock } from '@jbrowse/core/util/blockTypes'
|
|
7
|
-
import { Assembly } from '@jbrowse/core/assemblyManager/assembly'
|
|
8
|
-
|
|
9
|
-
// locals
|
|
10
|
-
import { HEADER_OVERVIEW_HEIGHT } from '..'
|
|
11
|
-
import { getCytobands } from './util'
|
|
12
|
-
|
|
13
|
-
// rounded rect from https://stackoverflow.com/a/45889603/2129219
|
|
14
|
-
// prettier-ignore
|
|
15
|
-
function rightRoundedRect(x: number, y: number, width: number, height: number, radius: number) {
|
|
16
|
-
return "M" + x + "," + y
|
|
17
|
-
+ "h" + (width - radius)
|
|
18
|
-
+ "a" + radius + "," + radius + " 0 0 1 " + radius + "," + radius
|
|
19
|
-
+ "v" + (height - 2 * radius)
|
|
20
|
-
+ "a" + radius + "," + radius + " 0 0 1 " + -radius + "," + radius
|
|
21
|
-
+ "h" + (radius - width)
|
|
22
|
-
+ "z";
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// prettier-ignore
|
|
26
|
-
function leftRoundedRect(x: number, y: number, width: number, height: number, radius: number ) {
|
|
27
|
-
return "M" + (x + radius) + "," + y
|
|
28
|
-
+ "h" + (width - radius)
|
|
29
|
-
+ "v" + height
|
|
30
|
-
+ "h" + (radius - width)
|
|
31
|
-
+ "a" + radius + "," + radius + " 0 0 1 " + (-radius) + "," + (-radius)
|
|
32
|
-
+ "v" + (2 * radius - height)
|
|
33
|
-
+ "a" + radius + "," + radius + " 0 0 1 " + radius + "," + (-radius)
|
|
34
|
-
+ "z";
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
const colorMap: { [key: string]: string | undefined } = {
|
|
38
|
-
gneg: 'rgb(227,227,227)',
|
|
39
|
-
gpos25: 'rgb(142,142,142)',
|
|
40
|
-
gpos50: 'rgb(85,85,85)',
|
|
41
|
-
gpos100: 'rgb(0,0,0)',
|
|
42
|
-
gpos75: 'rgb(57,57,57)',
|
|
43
|
-
gvar: 'rgb(0,0,0)',
|
|
44
|
-
stalk: 'rgb(127,127,127)',
|
|
45
|
-
acen: '#800',
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export default observer(function Cytobands({
|
|
49
|
-
overview,
|
|
50
|
-
block,
|
|
51
|
-
assembly,
|
|
52
|
-
}: {
|
|
53
|
-
overview: Base1DViewModel
|
|
54
|
-
assembly?: Assembly
|
|
55
|
-
block: ContentBlock
|
|
56
|
-
}) {
|
|
57
|
-
const { offsetPx, reversed } = block
|
|
58
|
-
const cytobands = getCytobands(assembly, block.refName)
|
|
59
|
-
const coords = cytobands.map(f => {
|
|
60
|
-
const { refName, start, end, type } = f
|
|
61
|
-
return [
|
|
62
|
-
overview.bpToPx({
|
|
63
|
-
refName,
|
|
64
|
-
coord: start,
|
|
65
|
-
}),
|
|
66
|
-
overview.bpToPx({
|
|
67
|
-
refName,
|
|
68
|
-
coord: end,
|
|
69
|
-
}),
|
|
70
|
-
type,
|
|
71
|
-
]
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
const arr = cytobands || []
|
|
75
|
-
const lcap = reversed ? arr.length - 1 : 0
|
|
76
|
-
const rcap = reversed ? 0 : arr.length - 1
|
|
77
|
-
|
|
78
|
-
let firstCent = true
|
|
79
|
-
return (
|
|
80
|
-
<g transform={`translate(-${offsetPx})`}>
|
|
81
|
-
{coords.map(([start, end, type], index) => {
|
|
82
|
-
const key = `${start}-${end}-${type}`
|
|
83
|
-
if (type === 'acen' && firstCent) {
|
|
84
|
-
firstCent = false
|
|
85
|
-
return (
|
|
86
|
-
<polygon
|
|
87
|
-
key={key}
|
|
88
|
-
points={[
|
|
89
|
-
[start, 0],
|
|
90
|
-
[end, HEADER_OVERVIEW_HEIGHT / 2],
|
|
91
|
-
[start, HEADER_OVERVIEW_HEIGHT],
|
|
92
|
-
].toString()}
|
|
93
|
-
fill={colorMap[type]}
|
|
94
|
-
/>
|
|
95
|
-
)
|
|
96
|
-
}
|
|
97
|
-
if (type === 'acen' && !firstCent) {
|
|
98
|
-
return (
|
|
99
|
-
<polygon
|
|
100
|
-
key={key}
|
|
101
|
-
points={[
|
|
102
|
-
[start, HEADER_OVERVIEW_HEIGHT / 2],
|
|
103
|
-
[end, 0],
|
|
104
|
-
[end, HEADER_OVERVIEW_HEIGHT],
|
|
105
|
-
].toString()}
|
|
106
|
-
fill={colorMap[type]}
|
|
107
|
-
/>
|
|
108
|
-
)
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
if (lcap === index) {
|
|
112
|
-
return (
|
|
113
|
-
<path
|
|
114
|
-
key={key}
|
|
115
|
-
d={leftRoundedRect(
|
|
116
|
-
Math.min(start, end),
|
|
117
|
-
0,
|
|
118
|
-
Math.abs(end - start),
|
|
119
|
-
HEADER_OVERVIEW_HEIGHT,
|
|
120
|
-
8,
|
|
121
|
-
)}
|
|
122
|
-
fill={colorMap[type]}
|
|
123
|
-
/>
|
|
124
|
-
)
|
|
125
|
-
} else if (rcap === index) {
|
|
126
|
-
return (
|
|
127
|
-
<path
|
|
128
|
-
key={key}
|
|
129
|
-
d={rightRoundedRect(
|
|
130
|
-
Math.min(start, end),
|
|
131
|
-
0,
|
|
132
|
-
Math.abs(end - start) - 2,
|
|
133
|
-
HEADER_OVERVIEW_HEIGHT,
|
|
134
|
-
8,
|
|
135
|
-
)}
|
|
136
|
-
fill={colorMap[type]}
|
|
137
|
-
/>
|
|
138
|
-
)
|
|
139
|
-
} else {
|
|
140
|
-
return (
|
|
141
|
-
<rect
|
|
142
|
-
key={key}
|
|
143
|
-
x={Math.min(start, end)}
|
|
144
|
-
y={0}
|
|
145
|
-
width={Math.abs(end - start)}
|
|
146
|
-
height={HEADER_OVERVIEW_HEIGHT}
|
|
147
|
-
fill={colorMap[type]}
|
|
148
|
-
/>
|
|
149
|
-
)
|
|
150
|
-
}
|
|
151
|
-
})}
|
|
152
|
-
</g>
|
|
153
|
-
)
|
|
154
|
-
})
|