@jbrowse/plugin-linear-genome-view 2.5.0 → 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.d.ts +1 -1
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -1
- package/dist/BaseLinearDisplay/components/Block.d.ts +3 -3
- package/dist/BaseLinearDisplay/components/Block.js +0 -1
- package/dist/BaseLinearDisplay/components/BlockMsg.d.ts +1 -1
- package/dist/BaseLinearDisplay/components/BlockMsg.js +0 -1
- package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +3 -2
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +0 -1
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +0 -1
- package/dist/BaseLinearDisplay/components/Tooltip.d.ts +2 -1
- package/dist/BaseLinearDisplay/components/Tooltip.js +0 -1
- package/dist/BaseLinearDisplay/index.d.ts +5 -2
- package/dist/BaseLinearDisplay/index.js +7 -2
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +62 -142
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +34 -356
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +99 -0
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +189 -0
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.d.ts +30 -0
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +55 -0
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +2 -0
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +41 -0
- package/dist/BaseLinearDisplay/models/configSchema.js +1 -1
- package/dist/BaseLinearDisplay/models/renderSvg.d.ts +8 -0
- package/dist/BaseLinearDisplay/models/renderSvg.js +82 -0
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +20 -17
- package/dist/BaseLinearDisplay/models/util.js +0 -1
- package/dist/BasicTrack/configSchema.js +1 -1
- package/dist/BasicTrack/index.js +0 -1
- package/dist/FeatureTrack/configSchema.d.ts +1 -3
- package/dist/FeatureTrack/configSchema.js +1 -1
- package/dist/FeatureTrack/index.js +0 -1
- package/dist/LaunchLinearGenomeView/index.js +0 -1
- package/dist/LinearBareDisplay/configSchema.d.ts +1 -0
- package/dist/LinearBareDisplay/configSchema.js +1 -1
- package/dist/LinearBareDisplay/index.js +0 -1
- package/dist/LinearBareDisplay/model.d.ts +52 -39
- package/dist/LinearBareDisplay/model.js +1 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.d.ts +2 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +0 -1
- package/dist/LinearBasicDisplay/configSchema.d.ts +1 -0
- package/dist/LinearBasicDisplay/configSchema.js +1 -1
- package/dist/LinearBasicDisplay/index.js +0 -1
- package/dist/LinearBasicDisplay/model.d.ts +67 -66
- package/dist/LinearBasicDisplay/model.js +1 -1
- package/dist/LinearGenomeView/components/CenterLine.d.ts +2 -1
- package/dist/LinearGenomeView/components/CenterLine.js +0 -1
- package/dist/LinearGenomeView/components/Cytobands.d.ts +2 -1
- package/dist/LinearGenomeView/components/Cytobands.js +0 -1
- package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +2 -1
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +2 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.js +0 -1
- package/dist/LinearGenomeView/components/Gridlines.d.ts +2 -1
- package/dist/LinearGenomeView/components/Gridlines.js +0 -1
- package/dist/LinearGenomeView/components/Header.d.ts +2 -1
- package/dist/LinearGenomeView/components/Header.js +0 -1
- package/dist/LinearGenomeView/components/ImportForm.d.ts +2 -1
- package/dist/LinearGenomeView/components/ImportForm.js +0 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +2 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.js +28 -5
- package/dist/LinearGenomeView/components/MiniControls.d.ts +3 -2
- package/dist/LinearGenomeView/components/MiniControls.js +20 -41
- package/dist/LinearGenomeView/components/OverviewRubberband.d.ts +1 -1
- package/dist/LinearGenomeView/components/OverviewRubberband.js +0 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.d.ts +2 -2
- package/dist/LinearGenomeView/components/OverviewScalebar.js +10 -5
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +10 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +21 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +5 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +51 -0
- package/dist/LinearGenomeView/components/{HelpDialog.d.ts → RefNameAutocomplete/HelpDialog.d.ts} +2 -1
- package/dist/LinearGenomeView/components/{HelpDialog.js → RefNameAutocomplete/HelpDialog.js} +0 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +18 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +110 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.d.ts +12 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +58 -0
- package/dist/LinearGenomeView/components/Rubberband.d.ts +1 -1
- package/dist/LinearGenomeView/components/Rubberband.js +0 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +2 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.js +0 -1
- package/dist/LinearGenomeView/components/Scalebar.js +0 -1
- package/dist/LinearGenomeView/components/SearchBox.d.ts +2 -1
- package/dist/LinearGenomeView/components/SearchBox.js +0 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +2 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +0 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +2 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.js +0 -1
- package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +2 -1
- package/dist/LinearGenomeView/components/SequenceSearchDialog.js +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +3 -3
- package/dist/LinearGenomeView/components/TrackContainer.js +12 -69
- package/dist/LinearGenomeView/components/TrackLabel.js +7 -12
- package/dist/LinearGenomeView/components/TrackLabelContainer.d.ts +9 -0
- package/dist/LinearGenomeView/components/TrackLabelContainer.js +31 -0
- package/dist/LinearGenomeView/components/TrackRenderingContainer.d.ts +10 -0
- package/dist/LinearGenomeView/components/TrackRenderingContainer.js +73 -0
- package/dist/LinearGenomeView/components/TracksContainer.d.ts +1 -1
- package/dist/LinearGenomeView/components/TracksContainer.js +2 -3
- package/dist/LinearGenomeView/components/VerticalGuide.d.ts +2 -1
- package/dist/LinearGenomeView/components/VerticalGuide.js +0 -1
- package/dist/LinearGenomeView/components/ZoomControls.d.ts +2 -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.d.ts +13 -12
- package/dist/LinearGenomeView/model.js +25 -26
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +3 -4
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +7 -3
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +1 -2
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +0 -1
- package/dist/LinearGenomeView/util.d.ts +2 -2
- package/dist/LinearGenomeView/util.js +0 -1
- package/dist/index.d.ts +160 -134
- package/dist/index.js +6 -4
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +1 -1
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -1
- package/esm/BaseLinearDisplay/components/Block.d.ts +3 -3
- package/esm/BaseLinearDisplay/components/Block.js +0 -1
- package/esm/BaseLinearDisplay/components/BlockMsg.d.ts +1 -1
- package/esm/BaseLinearDisplay/components/BlockMsg.js +0 -1
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +3 -2
- package/esm/BaseLinearDisplay/components/LinearBlocks.js +0 -1
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +0 -1
- package/esm/BaseLinearDisplay/components/Tooltip.d.ts +2 -1
- package/esm/BaseLinearDisplay/components/Tooltip.js +0 -1
- package/esm/BaseLinearDisplay/index.d.ts +5 -2
- package/esm/BaseLinearDisplay/index.js +3 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +62 -142
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +36 -335
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +99 -0
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +183 -0
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.d.ts +30 -0
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.js +52 -0
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +2 -0
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js +38 -0
- package/esm/BaseLinearDisplay/models/configSchema.js +1 -1
- package/esm/BaseLinearDisplay/models/renderSvg.d.ts +8 -0
- package/esm/BaseLinearDisplay/models/renderSvg.js +53 -0
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +20 -17
- package/esm/BaseLinearDisplay/models/util.js +0 -1
- package/esm/BasicTrack/configSchema.js +1 -1
- package/esm/BasicTrack/index.js +0 -1
- package/esm/FeatureTrack/configSchema.d.ts +1 -3
- package/esm/FeatureTrack/configSchema.js +1 -1
- package/esm/FeatureTrack/index.js +0 -1
- package/esm/LaunchLinearGenomeView/index.js +0 -1
- package/esm/LinearBareDisplay/configSchema.d.ts +1 -0
- package/esm/LinearBareDisplay/configSchema.js +1 -1
- package/esm/LinearBareDisplay/index.js +0 -1
- package/esm/LinearBareDisplay/model.d.ts +52 -39
- package/esm/LinearBareDisplay/model.js +1 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.d.ts +2 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js +0 -1
- package/esm/LinearBasicDisplay/configSchema.d.ts +1 -0
- package/esm/LinearBasicDisplay/configSchema.js +1 -1
- package/esm/LinearBasicDisplay/index.js +0 -1
- package/esm/LinearBasicDisplay/model.d.ts +67 -66
- package/esm/LinearBasicDisplay/model.js +1 -1
- package/esm/LinearGenomeView/components/CenterLine.d.ts +2 -1
- package/esm/LinearGenomeView/components/CenterLine.js +0 -1
- package/esm/LinearGenomeView/components/Cytobands.d.ts +2 -1
- package/esm/LinearGenomeView/components/Cytobands.js +0 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +2 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +2 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +0 -1
- package/esm/LinearGenomeView/components/Gridlines.d.ts +2 -1
- package/esm/LinearGenomeView/components/Gridlines.js +0 -1
- package/esm/LinearGenomeView/components/Header.d.ts +2 -1
- package/esm/LinearGenomeView/components/Header.js +0 -1
- package/esm/LinearGenomeView/components/ImportForm.d.ts +2 -1
- package/esm/LinearGenomeView/components/ImportForm.js +0 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +2 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js +4 -4
- package/esm/LinearGenomeView/components/MiniControls.d.ts +3 -2
- package/esm/LinearGenomeView/components/MiniControls.js +20 -18
- package/esm/LinearGenomeView/components/OverviewRubberband.d.ts +1 -1
- package/esm/LinearGenomeView/components/OverviewRubberband.js +0 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.d.ts +2 -2
- package/esm/LinearGenomeView/components/OverviewScalebar.js +10 -5
- package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +10 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +15 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +5 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +22 -0
- package/esm/LinearGenomeView/components/{HelpDialog.d.ts → RefNameAutocomplete/HelpDialog.d.ts} +2 -1
- package/esm/LinearGenomeView/components/{HelpDialog.js → RefNameAutocomplete/HelpDialog.js} +0 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +18 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +82 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/util.d.ts +12 -0
- package/esm/LinearGenomeView/components/RefNameAutocomplete/util.js +49 -0
- package/esm/LinearGenomeView/components/Rubberband.d.ts +1 -1
- package/esm/LinearGenomeView/components/Rubberband.js +0 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +2 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.js +0 -1
- package/esm/LinearGenomeView/components/Scalebar.js +0 -1
- package/esm/LinearGenomeView/components/SearchBox.d.ts +2 -1
- package/esm/LinearGenomeView/components/SearchBox.js +0 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +2 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +0 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +2 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.js +0 -1
- package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +2 -1
- package/esm/LinearGenomeView/components/SequenceSearchDialog.js +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.d.ts +3 -3
- package/esm/LinearGenomeView/components/TrackContainer.js +13 -70
- package/esm/LinearGenomeView/components/TrackLabel.js +7 -12
- package/esm/LinearGenomeView/components/TrackLabelContainer.d.ts +9 -0
- package/esm/LinearGenomeView/components/TrackLabelContainer.js +26 -0
- package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +10 -0
- package/esm/LinearGenomeView/components/TrackRenderingContainer.js +48 -0
- package/esm/LinearGenomeView/components/TracksContainer.d.ts +1 -1
- package/esm/LinearGenomeView/components/TracksContainer.js +2 -3
- package/esm/LinearGenomeView/components/VerticalGuide.d.ts +2 -1
- package/esm/LinearGenomeView/components/VerticalGuide.js +0 -1
- package/esm/LinearGenomeView/components/ZoomControls.d.ts +2 -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.d.ts +13 -12
- package/esm/LinearGenomeView/model.js +21 -22
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +3 -4
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +7 -3
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +1 -2
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +0 -1
- package/esm/LinearGenomeView/util.d.ts +2 -2
- package/esm/LinearGenomeView/util.js +0 -1
- package/esm/index.d.ts +160 -134
- package/esm/index.js +1 -2
- 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/configSchema.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/HelpDialog.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.d.ts +0 -23
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +0 -189
- package/dist/LinearGenomeView/components/RefNameAutocomplete.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/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/configSchema.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/HelpDialog.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.d.ts +0 -23
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js +0 -161
- package/esm/LinearGenomeView/components/RefNameAutocomplete.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/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 -12
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +0 -768
- package/src/BaseLinearDisplay/models/configSchema.ts +0 -59
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +0 -318
- package/src/BaseLinearDisplay/models/util.ts +0 -67
- package/src/BasicTrack/configSchema.ts +0 -23
- package/src/BasicTrack/index.ts +0 -18
- package/src/FeatureTrack/configSchema.ts +0 -27
- package/src/FeatureTrack/index.ts +0 -18
- package/src/LaunchLinearGenomeView/index.ts +0 -66
- package/src/LinearBareDisplay/configSchema.ts +0 -27
- package/src/LinearBareDisplay/index.test.js +0 -34
- package/src/LinearBareDisplay/index.ts +0 -25
- package/src/LinearBareDisplay/model.ts +0 -53
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +0 -73
- package/src/LinearBasicDisplay/configSchema.ts +0 -27
- package/src/LinearBasicDisplay/index.ts +0 -25
- package/src/LinearBasicDisplay/model.ts +0 -214
- 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/HelpDialog.tsx +0 -69
- package/src/LinearGenomeView/components/ImportForm.tsx +0 -217
- package/src/LinearGenomeView/components/LinearGenomeView.test.tsx +0 -167
- package/src/LinearGenomeView/components/LinearGenomeView.tsx +0 -72
- package/src/LinearGenomeView/components/MiniControls.tsx +0 -55
- package/src/LinearGenomeView/components/OverviewRubberband.tsx +0 -219
- package/src/LinearGenomeView/components/OverviewScalebar.tsx +0 -345
- package/src/LinearGenomeView/components/RefNameAutocomplete.tsx +0 -321
- 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 -180
- package/src/LinearGenomeView/components/TrackLabel.tsx +0 -143
- 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 -1532
- package/src/LinearGenomeView/svgcomponents/SVGBackground.tsx +0 -21
- package/src/LinearGenomeView/svgcomponents/SVGHeader.tsx +0 -93
- 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 -85
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
2
3
|
import { LinearGenomeViewModel } from '../..';
|
|
3
4
|
export default function SearchResultsTable({ searchResults, assemblyName: optAssemblyName, model, handleClose, }: {
|
|
@@ -5,4 +6,4 @@ export default function SearchResultsTable({ searchResults, assemblyName: optAss
|
|
|
5
6
|
assemblyName?: string;
|
|
6
7
|
model: LinearGenomeViewModel;
|
|
7
8
|
handleClose: () => void;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
declare function SequenceDialog({ model, handleClose, }: {
|
|
2
3
|
model: {
|
|
3
4
|
assemblyNames: string[];
|
|
4
5
|
toggleTrack(trackId: string): void;
|
|
5
6
|
};
|
|
6
7
|
handleClose: () => void;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
+
}): React.JSX.Element;
|
|
8
9
|
declare const _default: typeof SequenceDialog;
|
|
9
10
|
export default _default;
|
|
@@ -86,4 +86,3 @@ function SequenceDialog({ model, handleClose, }) {
|
|
|
86
86
|
react_1.default.createElement(material_1.Button, { onClick: () => handleClose(), variant: "contained", color: "secondary" }, "Close"))));
|
|
87
87
|
}
|
|
88
88
|
exports.default = (0, mobx_react_1.observer)(SequenceDialog);
|
|
89
|
-
//# sourceMappingURL=SequenceSearchDialog.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { BaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
2
3
|
import { LinearGenomeViewModel } from '..';
|
|
3
4
|
type LGV = LinearGenomeViewModel;
|
|
4
|
-
declare
|
|
5
|
+
declare const _default: ({ model, track, }: {
|
|
5
6
|
model: LGV;
|
|
6
7
|
track: BaseTrackModel;
|
|
7
|
-
})
|
|
8
|
-
declare const _default: typeof TrackContainer;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
9
|
export default _default;
|
|
@@ -32,10 +32,10 @@ const mui_1 = require("tss-react/mui");
|
|
|
32
32
|
const mobx_react_1 = require("mobx-react");
|
|
33
33
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
34
34
|
const react_error_boundary_1 = require("react-error-boundary");
|
|
35
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
36
35
|
const ui_1 = require("@jbrowse/core/ui");
|
|
37
36
|
const util_1 = require("@jbrowse/core/util");
|
|
38
|
-
const
|
|
37
|
+
const TrackLabelContainer_1 = __importDefault(require("./TrackLabelContainer"));
|
|
38
|
+
const TrackRenderingContainer_1 = __importDefault(require("./TrackRenderingContainer"));
|
|
39
39
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
40
40
|
root: {
|
|
41
41
|
marginTop: 2,
|
|
@@ -54,88 +54,31 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
54
54
|
width: '100%',
|
|
55
55
|
zIndex: 3,
|
|
56
56
|
},
|
|
57
|
-
trackLabel: {
|
|
58
|
-
zIndex: 3,
|
|
59
|
-
},
|
|
60
|
-
// aligns with block boundaries. check for example the breakpoint split view
|
|
61
|
-
// demo to see if features align if wanting to change things
|
|
62
|
-
renderingComponentContainer: {
|
|
63
|
-
position: 'absolute',
|
|
64
|
-
// -1 offset because of the 1px border of the Paper
|
|
65
|
-
left: -1,
|
|
66
|
-
height: '100%',
|
|
67
|
-
width: '100%',
|
|
68
|
-
},
|
|
69
|
-
trackLabelOffset: {
|
|
70
|
-
position: 'relative',
|
|
71
|
-
display: 'inline-block',
|
|
72
|
-
},
|
|
73
|
-
trackLabelOverlap: {
|
|
74
|
-
position: 'absolute',
|
|
75
|
-
},
|
|
76
|
-
trackRenderingContainer: {
|
|
77
|
-
overflowY: 'auto',
|
|
78
|
-
overflowX: 'hidden',
|
|
79
|
-
whiteSpace: 'nowrap',
|
|
80
|
-
position: 'relative',
|
|
81
|
-
background: 'none',
|
|
82
|
-
zIndex: 2,
|
|
83
|
-
},
|
|
84
57
|
});
|
|
85
|
-
|
|
86
|
-
const { classes, cx } = useStyles();
|
|
87
|
-
const display = model.displays[0];
|
|
88
|
-
const { trackLabel, trackLabelOverlap, trackLabelOffset } = classes;
|
|
89
|
-
const labelStyle = view.trackLabels !== 'overlapping' || display.prefersOffset
|
|
90
|
-
? trackLabelOffset
|
|
91
|
-
: trackLabelOverlap;
|
|
92
|
-
return view.trackLabels !== 'hidden' ? (react_1.default.createElement(TrackLabel_1.default, { track: model, className: cx(trackLabel, labelStyle) })) : null;
|
|
93
|
-
});
|
|
94
|
-
function TrackContainer({ model, track, }) {
|
|
58
|
+
exports.default = (0, mobx_react_1.observer)(function TrackContainer({ model, track, }) {
|
|
95
59
|
const { classes } = useStyles();
|
|
96
60
|
const display = track.displays[0];
|
|
97
|
-
const {
|
|
98
|
-
const
|
|
99
|
-
const trackId = (0, configuration_1.getConf)(track, 'trackId');
|
|
100
|
-
const ref = (0, react_1.useRef)(null);
|
|
61
|
+
const { draggingTrackId } = model;
|
|
62
|
+
const ref2 = (0, react_1.useRef)(null);
|
|
101
63
|
const dimmed = draggingTrackId !== undefined && draggingTrackId !== display.id;
|
|
102
|
-
const minimized = track.minimized;
|
|
103
64
|
const debouncedOnDragEnter = (0, util_1.useDebouncedCallback)(() => {
|
|
104
65
|
if ((0, mobx_state_tree_1.isAlive)(display) && dimmed) {
|
|
105
|
-
moveTrack(draggingTrackId, track.id);
|
|
66
|
+
model.moveTrack(draggingTrackId, track.id);
|
|
106
67
|
}
|
|
107
68
|
}, 100);
|
|
108
|
-
(
|
|
109
|
-
if (ref.current) {
|
|
110
|
-
model.trackRefs[trackId] = ref.current;
|
|
111
|
-
}
|
|
112
|
-
return () => {
|
|
113
|
-
delete model.trackRefs[trackId];
|
|
114
|
-
};
|
|
115
|
-
}, [model.trackRefs, trackId]);
|
|
116
|
-
return (react_1.default.createElement(material_1.Paper, { ref: ref, className: classes.root, variant: "outlined", onClick: event => {
|
|
69
|
+
return (react_1.default.createElement(material_1.Paper, { ref: ref2, className: classes.root, variant: "outlined", onClick: event => {
|
|
117
70
|
var _a;
|
|
118
71
|
if (event.detail === 2 && !track.displays[0].featureIdUnderMouse) {
|
|
119
|
-
const left = ((_a =
|
|
72
|
+
const left = ((_a = ref2.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left) || 0;
|
|
120
73
|
model.zoomTo(model.bpPerPx / 2, event.clientX - left, true);
|
|
121
74
|
}
|
|
122
75
|
} },
|
|
123
|
-
react_1.default.createElement(
|
|
124
|
-
react_1.default.createElement(react_error_boundary_1.ErrorBoundary, {
|
|
125
|
-
react_1.default.createElement(
|
|
126
|
-
react_1.default.createElement("div", { className: classes.renderingComponentContainer, style: { transform: `scaleX(${model.scaleFactor})` } },
|
|
127
|
-
react_1.default.createElement(RenderingComponent, { model: display, onHorizontalScroll: horizontalScroll })),
|
|
128
|
-
DisplayBlurb ? (react_1.default.createElement("div", { style: {
|
|
129
|
-
position: 'absolute',
|
|
130
|
-
left: 0,
|
|
131
|
-
top: display.height - 20,
|
|
132
|
-
} },
|
|
133
|
-
react_1.default.createElement(DisplayBlurb, { model: display }))) : null)) : null)),
|
|
76
|
+
react_1.default.createElement(TrackLabelContainer_1.default, { track: track, view: model }),
|
|
77
|
+
react_1.default.createElement(react_error_boundary_1.ErrorBoundary, { FallbackComponent: e => react_1.default.createElement(ui_1.ErrorMessage, { error: e.error }) },
|
|
78
|
+
react_1.default.createElement(TrackRenderingContainer_1.default, { model: model, track: track, onDragEnter: debouncedOnDragEnter })),
|
|
134
79
|
react_1.default.createElement("div", { className: classes.overlay, style: {
|
|
135
80
|
height: display.height,
|
|
136
81
|
background: dimmed ? 'rgba(0, 0, 0, 0.4)' : undefined,
|
|
137
82
|
}, onDragEnter: debouncedOnDragEnter }),
|
|
138
83
|
react_1.default.createElement(ui_1.ResizeHandle, { onDrag: display.resizeHeight, className: classes.resizeHandle })));
|
|
139
|
-
}
|
|
140
|
-
exports.default = (0, mobx_react_1.observer)(TrackContainer);
|
|
141
|
-
//# sourceMappingURL=TrackContainer.js.map
|
|
84
|
+
});
|
|
@@ -11,8 +11,7 @@ const configuration_1 = require("@jbrowse/core/configuration");
|
|
|
11
11
|
const util_1 = require("@jbrowse/core/util");
|
|
12
12
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
13
13
|
const ui_1 = require("@jbrowse/core/ui");
|
|
14
|
-
const
|
|
15
|
-
const hooks_1 = require("material-ui-popup-state/hooks");
|
|
14
|
+
const CascadingMenuButton_1 = __importDefault(require("@jbrowse/core/ui/CascadingMenuButton"));
|
|
16
15
|
// icons
|
|
17
16
|
const MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
|
|
18
17
|
const DragIndicator_1 = __importDefault(require("@mui/icons-material/DragIndicator"));
|
|
@@ -56,10 +55,6 @@ const TrackLabel = react_1.default.forwardRef(function ({ track, className }, re
|
|
|
56
55
|
const minimized = track.minimized;
|
|
57
56
|
const trackId = (0, configuration_1.getConf)(track, 'trackId');
|
|
58
57
|
const trackName = (0, tracks_1.getTrackName)(trackConf, session);
|
|
59
|
-
const popupState = (0, hooks_1.usePopupState)({
|
|
60
|
-
popupId: 'trackLabelMenu',
|
|
61
|
-
variant: 'popover',
|
|
62
|
-
});
|
|
63
58
|
const items = [
|
|
64
59
|
{
|
|
65
60
|
label: minimized ? 'Restore track' : 'Minimize track',
|
|
@@ -68,7 +63,7 @@ const TrackLabel = react_1.default.forwardRef(function ({ track, className }, re
|
|
|
68
63
|
},
|
|
69
64
|
...(((_a = session.getTrackActionMenuItems) === null || _a === void 0 ? void 0 : _a.call(session, trackConf)) || []),
|
|
70
65
|
...track.trackMenuItems(),
|
|
71
|
-
].sort((a, b) => (b.priority || 0) - (a.priority || 0));
|
|
66
|
+
].sort((a, b) => ((b === null || b === void 0 ? void 0 : b.priority) || 0) - ((a === null || a === void 0 ? void 0 : a.priority) || 0));
|
|
72
67
|
return (react_1.default.createElement(material_1.Paper, { ref: ref, className: cx(className, classes.root) },
|
|
73
68
|
react_1.default.createElement("span", { draggable: true, className: classes.dragHandle, onDragStart: event => {
|
|
74
69
|
const target = event.currentTarget;
|
|
@@ -82,10 +77,10 @@ const TrackLabel = react_1.default.forwardRef(function ({ track, className }, re
|
|
|
82
77
|
react_1.default.createElement(material_1.IconButton, { onClick: () => view.hideTrack(trackId), className: classes.iconButton, title: "close this track" },
|
|
83
78
|
react_1.default.createElement(Close_1.default, { fontSize: "small" })),
|
|
84
79
|
react_1.default.createElement(material_1.Typography, { variant: "body1", component: "span", className: classes.trackName },
|
|
85
|
-
react_1.default.createElement(ui_1.SanitizedHTML, { html:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
react_1.default.createElement(
|
|
80
|
+
react_1.default.createElement(ui_1.SanitizedHTML, { html: [trackName, minimized ? '(minimized)' : '']
|
|
81
|
+
.filter(f => !!f)
|
|
82
|
+
.join(' ') })),
|
|
83
|
+
react_1.default.createElement(CascadingMenuButton_1.default, { menuItems: items, "data-testid": "track_menu_icon" },
|
|
84
|
+
react_1.default.createElement(MoreVert_1.default, { fontSize: "small" }))));
|
|
89
85
|
});
|
|
90
86
|
exports.default = (0, mobx_react_1.observer)(TrackLabel);
|
|
91
|
-
//# sourceMappingURL=TrackLabel.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
+
import { LinearGenomeViewModel } from '..';
|
|
4
|
+
type LGV = LinearGenomeViewModel;
|
|
5
|
+
declare const TrackLabelContainer: ({ track, view, }: {
|
|
6
|
+
track: BaseTrackModel;
|
|
7
|
+
view: LGV;
|
|
8
|
+
}) => React.JSX.Element | null;
|
|
9
|
+
export default TrackLabelContainer;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const mui_1 = require("tss-react/mui");
|
|
8
|
+
const mobx_react_1 = require("mobx-react");
|
|
9
|
+
const TrackLabel_1 = __importDefault(require("./TrackLabel"));
|
|
10
|
+
const useStyles = (0, mui_1.makeStyles)()({
|
|
11
|
+
trackLabel: {
|
|
12
|
+
zIndex: 3,
|
|
13
|
+
},
|
|
14
|
+
trackLabelOffset: {
|
|
15
|
+
position: 'relative',
|
|
16
|
+
display: 'inline-block',
|
|
17
|
+
},
|
|
18
|
+
trackLabelOverlap: {
|
|
19
|
+
position: 'absolute',
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
const TrackLabelContainer = (0, mobx_react_1.observer)(function ({ track, view, }) {
|
|
23
|
+
const { classes, cx } = useStyles();
|
|
24
|
+
const display = track.displays[0];
|
|
25
|
+
const { trackLabel, trackLabelOverlap, trackLabelOffset } = classes;
|
|
26
|
+
const labelStyle = view.trackLabels !== 'overlapping' || display.prefersOffset
|
|
27
|
+
? trackLabelOffset
|
|
28
|
+
: trackLabelOverlap;
|
|
29
|
+
return view.trackLabels !== 'hidden' ? (react_1.default.createElement(TrackLabel_1.default, { track: track, className: cx(trackLabel, labelStyle) })) : null;
|
|
30
|
+
});
|
|
31
|
+
exports.default = TrackLabelContainer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
+
import { LinearGenomeViewModel } from '..';
|
|
4
|
+
type LGV = LinearGenomeViewModel;
|
|
5
|
+
declare const _default: ({ model, track, onDragEnter, }: {
|
|
6
|
+
model: LGV;
|
|
7
|
+
track: BaseTrackModel;
|
|
8
|
+
onDragEnter: () => void;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
const react_1 = __importStar(require("react"));
|
|
27
|
+
const mui_1 = require("tss-react/mui");
|
|
28
|
+
const mobx_react_1 = require("mobx-react");
|
|
29
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
30
|
+
const useStyles = (0, mui_1.makeStyles)()({
|
|
31
|
+
// aligns with block boundaries. check for example the breakpoint split view
|
|
32
|
+
// demo to see if features align if wanting to change things
|
|
33
|
+
renderingComponentContainer: {
|
|
34
|
+
position: 'absolute',
|
|
35
|
+
// -1 offset because of the 1px border of the Paper
|
|
36
|
+
left: -1,
|
|
37
|
+
height: '100%',
|
|
38
|
+
width: '100%',
|
|
39
|
+
},
|
|
40
|
+
trackRenderingContainer: {
|
|
41
|
+
overflowY: 'auto',
|
|
42
|
+
overflowX: 'hidden',
|
|
43
|
+
whiteSpace: 'nowrap',
|
|
44
|
+
position: 'relative',
|
|
45
|
+
background: 'none',
|
|
46
|
+
zIndex: 2,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
exports.default = (0, mobx_react_1.observer)(function TrackRenderingContainer({ model, track, onDragEnter, }) {
|
|
50
|
+
const { classes } = useStyles();
|
|
51
|
+
const display = track.displays[0];
|
|
52
|
+
const { height, RenderingComponent, DisplayBlurb } = display;
|
|
53
|
+
const trackId = (0, configuration_1.getConf)(track, 'trackId');
|
|
54
|
+
const ref = (0, react_1.useRef)(null);
|
|
55
|
+
const minimized = track.minimized;
|
|
56
|
+
(0, react_1.useEffect)(() => {
|
|
57
|
+
if (ref.current) {
|
|
58
|
+
model.trackRefs[trackId] = ref.current;
|
|
59
|
+
}
|
|
60
|
+
return () => {
|
|
61
|
+
delete model.trackRefs[trackId];
|
|
62
|
+
};
|
|
63
|
+
}, [model.trackRefs, trackId]);
|
|
64
|
+
return (react_1.default.createElement("div", { className: classes.trackRenderingContainer, style: { height: minimized ? 20 : height }, onScroll: evt => display.setScrollTop(evt.currentTarget.scrollTop), onDragEnter: onDragEnter, "data-testid": `trackRenderingContainer-${model.id}-${trackId}` }, !minimized ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
65
|
+
react_1.default.createElement("div", { ref: ref, className: classes.renderingComponentContainer, style: { transform: `scaleX(${model.scaleFactor})` } },
|
|
66
|
+
react_1.default.createElement(RenderingComponent, { model: display, onHorizontalScroll: model.horizontalScroll })),
|
|
67
|
+
DisplayBlurb ? (react_1.default.createElement("div", { style: {
|
|
68
|
+
position: 'absolute',
|
|
69
|
+
left: 0,
|
|
70
|
+
top: display.height - 20,
|
|
71
|
+
} },
|
|
72
|
+
react_1.default.createElement(DisplayBlurb, { model: display }))) : null)) : null));
|
|
73
|
+
});
|
|
@@ -54,7 +54,7 @@ exports.default = (0, mobx_react_1.observer)(function TracksContainer({ children
|
|
|
54
54
|
const ref = (0, react_1.useRef)(null);
|
|
55
55
|
const { guideX, rubberbandOn, leftBpOffset, rightBpOffset, numOfBpSelected, width, left, anchorPosition, handleMenuItemClick, open, handleClose, mouseMove, mouseDown: mouseDown2, } = (0, hooks_1.useRangeSelect)(ref, model, true);
|
|
56
56
|
(0, hooks_1.useWheelScroll)(ref, model);
|
|
57
|
-
const
|
|
57
|
+
const additional = pluginManager.evaluateExtensionPoint('LinearGenomeView-TracksContainerComponent', undefined, { model });
|
|
58
58
|
return (react_1.default.createElement("div", { ref: ref, "data-testid": "trackContainer", className: classes.tracksContainer, onMouseDown: event => {
|
|
59
59
|
mouseDown1(event);
|
|
60
60
|
mouseDown2(event);
|
|
@@ -67,7 +67,6 @@ exports.default = (0, mobx_react_1.observer)(function TracksContainer({ children
|
|
|
67
67
|
top: anchorPosition.clientY,
|
|
68
68
|
}, onMenuItemClick: handleMenuItemClick, open: open, onClose: handleClose, menuItems: model.rubberBandMenuItems() })) : null,
|
|
69
69
|
react_1.default.createElement(Rubberband_1.default, { model: model, ControlComponent: react_1.default.createElement(Scalebar_1.default, { model: model, style: { height: __1.SCALE_BAR_HEIGHT, boxSizing: 'border-box' } }) }),
|
|
70
|
-
|
|
70
|
+
additional,
|
|
71
71
|
children));
|
|
72
72
|
});
|
|
73
|
-
//# sourceMappingURL=TracksContainer.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { LinearGenomeViewModel } from '..';
|
|
2
3
|
type LGV = LinearGenomeViewModel;
|
|
3
4
|
declare function VerticalGuide({ model, coordX }: {
|
|
4
5
|
model: LGV;
|
|
5
6
|
coordX: number;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
|
7
8
|
declare const _default: typeof VerticalGuide;
|
|
8
9
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { LinearGenomeViewModel } from '..';
|
|
2
3
|
declare function ZoomControls({ model }: {
|
|
3
4
|
model: LinearGenomeViewModel;
|
|
4
|
-
}): JSX.Element;
|
|
5
|
+
}): React.JSX.Element;
|
|
5
6
|
declare const _default: typeof ZoomControls;
|
|
6
7
|
export default _default;
|
|
@@ -45,6 +45,7 @@ export declare const SPACING = 7;
|
|
|
45
45
|
export declare const WIDGET_HEIGHT = 32;
|
|
46
46
|
/**
|
|
47
47
|
* #stateModel LinearGenomeView
|
|
48
|
+
* #category view
|
|
48
49
|
*/
|
|
49
50
|
export declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
50
51
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -90,7 +91,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
90
91
|
afterDisplayedRegionsSetCallbacks: Function[];
|
|
91
92
|
scaleFactor: number;
|
|
92
93
|
trackRefs: {
|
|
93
|
-
[key: string]:
|
|
94
|
+
[key: string]: HTMLDivElement;
|
|
94
95
|
};
|
|
95
96
|
coarseDynamicBlocks: BaseBlock[];
|
|
96
97
|
coarseTotalBp: number;
|
|
@@ -402,18 +403,18 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
402
403
|
/**
|
|
403
404
|
* #getter
|
|
404
405
|
* static blocks are an important concept jbrowse uses to avoid
|
|
405
|
-
* re-rendering when you scroll to the side. when you horizontally
|
|
406
|
-
* right, old blocks to the left may be removed, and new
|
|
407
|
-
* instantiated on the right. tracks may use the static
|
|
408
|
-
* data for the region represented by the block
|
|
406
|
+
* re-rendering when you scroll to the side. when you horizontally
|
|
407
|
+
* scroll to the right, old blocks to the left may be removed, and new
|
|
408
|
+
* blocks may be instantiated on the right. tracks may use the static
|
|
409
|
+
* blocks to render their data for the region represented by the block
|
|
409
410
|
*/
|
|
410
411
|
readonly staticBlocks: BlockSet;
|
|
411
412
|
/**
|
|
412
413
|
* #getter
|
|
413
414
|
* dynamic blocks represent the exact coordinates of the currently
|
|
414
|
-
* visible genome regions on the screen. they are similar to static
|
|
415
|
-
* static blocks can go offscreen while dynamic blocks
|
|
416
|
-
* is on screen
|
|
415
|
+
* visible genome regions on the screen. they are similar to static
|
|
416
|
+
* blocks, but static blocks can go offscreen while dynamic blocks
|
|
417
|
+
* represent exactly what is on screen
|
|
417
418
|
*/
|
|
418
419
|
readonly dynamicBlocks: BlockSet;
|
|
419
420
|
/**
|
|
@@ -423,8 +424,8 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
423
424
|
readonly roundedDynamicBlocks: BaseBlock[];
|
|
424
425
|
/**
|
|
425
426
|
* #getter
|
|
426
|
-
* a single "combo-locstring" representing all the regions visible
|
|
427
|
-
*
|
|
427
|
+
* a single "combo-locstring" representing all the regions visible on
|
|
428
|
+
* the screen
|
|
428
429
|
*/
|
|
429
430
|
readonly visibleLocStrings: string;
|
|
430
431
|
/**
|
|
@@ -470,8 +471,8 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
470
471
|
* Navigate to a location based on its refName and optionally start, end,
|
|
471
472
|
* and assemblyName. Will not try to change displayed regions, use
|
|
472
473
|
* `navToLocations` instead. Only navigates to a location if it is
|
|
473
|
-
* entirely within a displayedRegion. Navigates to the first matching
|
|
474
|
-
* encountered.
|
|
474
|
+
* entirely within a displayedRegion. Navigates to the first matching
|
|
475
|
+
* location encountered.
|
|
475
476
|
*
|
|
476
477
|
* Throws an error if navigation was unsuccessful
|
|
477
478
|
*
|
|
@@ -31,7 +31,6 @@ const react_1 = require("react");
|
|
|
31
31
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
32
32
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
33
33
|
const mst_1 = require("@jbrowse/core/util/types/mst");
|
|
34
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
35
34
|
const util_1 = require("@jbrowse/core/util");
|
|
36
35
|
const calculateDynamicBlocks_1 = __importDefault(require("@jbrowse/core/util/calculateDynamicBlocks"));
|
|
37
36
|
const calculateStaticBlocks_1 = __importDefault(require("@jbrowse/core/util/calculateStaticBlocks"));
|
|
@@ -51,14 +50,13 @@ const FolderOpen_1 = __importDefault(require("@mui/icons-material/FolderOpen"));
|
|
|
51
50
|
const PhotoCamera_1 = __importDefault(require("@mui/icons-material/PhotoCamera"));
|
|
52
51
|
const ZoomIn_1 = __importDefault(require("@mui/icons-material/ZoomIn"));
|
|
53
52
|
const MenuOpen_1 = __importDefault(require("@mui/icons-material/MenuOpen"));
|
|
54
|
-
// locals
|
|
55
|
-
const SVGLinearGenomeView_1 = require("./svgcomponents/SVGLinearGenomeView");
|
|
56
|
-
const ExportSvgDialog_1 = __importDefault(require("./components/ExportSvgDialog"));
|
|
57
53
|
const MiniControls_1 = __importDefault(require("./components/MiniControls"));
|
|
58
54
|
const Header_1 = __importDefault(require("./components/Header"));
|
|
59
55
|
const util_2 = require("./util");
|
|
60
56
|
// lazies
|
|
57
|
+
const ReturnToImportFormDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('@jbrowse/core/ui/ReturnToImportFormDialog'))));
|
|
61
58
|
const SequenceSearchDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/SequenceSearchDialog'))));
|
|
59
|
+
const ExportSvgDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/ExportSvgDialog'))));
|
|
62
60
|
const GetSequenceDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/GetSequenceDialog'))));
|
|
63
61
|
const SearchResultsDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/SearchResultsDialog'))));
|
|
64
62
|
function calculateVisibleLocStrings(contentBlocks) {
|
|
@@ -83,6 +81,7 @@ exports.SPACING = 7;
|
|
|
83
81
|
exports.WIDGET_HEIGHT = 32;
|
|
84
82
|
/**
|
|
85
83
|
* #stateModel LinearGenomeView
|
|
84
|
+
* #category view
|
|
86
85
|
*/
|
|
87
86
|
function stateModelFactory(pluginManager) {
|
|
88
87
|
return mobx_state_tree_1.types
|
|
@@ -169,7 +168,6 @@ function stateModelFactory(pluginManager) {
|
|
|
169
168
|
// which is basically like an onLoad
|
|
170
169
|
afterDisplayedRegionsSetCallbacks: [],
|
|
171
170
|
scaleFactor: 1,
|
|
172
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
173
171
|
trackRefs: {},
|
|
174
172
|
coarseDynamicBlocks: [],
|
|
175
173
|
coarseTotalBp: 0,
|
|
@@ -496,7 +494,6 @@ function stateModelFactory(pluginManager) {
|
|
|
496
494
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
497
495
|
SearchResultsDialog,
|
|
498
496
|
{
|
|
499
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
500
497
|
model: self,
|
|
501
498
|
searchResults,
|
|
502
499
|
searchQuery,
|
|
@@ -760,8 +757,8 @@ function stateModelFactory(pluginManager) {
|
|
|
760
757
|
* creates an svg export and save using FileSaver
|
|
761
758
|
*/
|
|
762
759
|
async exportSvg(opts = {}) {
|
|
763
|
-
|
|
764
|
-
const html = await
|
|
760
|
+
const { renderToSvg } = await Promise.resolve().then(() => __importStar(require('./svgcomponents/SVGLinearGenomeView')));
|
|
761
|
+
const html = await renderToSvg(self, opts);
|
|
765
762
|
const blob = new Blob([html], { type: 'image/svg+xml' });
|
|
766
763
|
(0, file_saver_1.saveAs)(blob, opts.filename || 'image.svg');
|
|
767
764
|
},
|
|
@@ -850,7 +847,7 @@ function stateModelFactory(pluginManager) {
|
|
|
850
847
|
label: 'Return to import form',
|
|
851
848
|
onClick: () => {
|
|
852
849
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
853
|
-
|
|
850
|
+
ReturnToImportFormDialog,
|
|
854
851
|
{ model: self, handleClose },
|
|
855
852
|
]);
|
|
856
853
|
},
|
|
@@ -874,7 +871,7 @@ function stateModelFactory(pluginManager) {
|
|
|
874
871
|
icon: PhotoCamera_1.default,
|
|
875
872
|
onClick: () => {
|
|
876
873
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
877
|
-
|
|
874
|
+
ExportSvgDialog,
|
|
878
875
|
{ model: self, handleClose },
|
|
879
876
|
]);
|
|
880
877
|
},
|
|
@@ -985,10 +982,10 @@ function stateModelFactory(pluginManager) {
|
|
|
985
982
|
/**
|
|
986
983
|
* #getter
|
|
987
984
|
* static blocks are an important concept jbrowse uses to avoid
|
|
988
|
-
* re-rendering when you scroll to the side. when you horizontally
|
|
989
|
-
* right, old blocks to the left may be removed, and new
|
|
990
|
-
* instantiated on the right. tracks may use the static
|
|
991
|
-
* data for the region represented by the block
|
|
985
|
+
* re-rendering when you scroll to the side. when you horizontally
|
|
986
|
+
* scroll to the right, old blocks to the left may be removed, and new
|
|
987
|
+
* blocks may be instantiated on the right. tracks may use the static
|
|
988
|
+
* blocks to render their data for the region represented by the block
|
|
992
989
|
*/
|
|
993
990
|
get staticBlocks() {
|
|
994
991
|
const ret = (0, calculateStaticBlocks_1.default)(self);
|
|
@@ -1002,9 +999,9 @@ function stateModelFactory(pluginManager) {
|
|
|
1002
999
|
/**
|
|
1003
1000
|
* #getter
|
|
1004
1001
|
* dynamic blocks represent the exact coordinates of the currently
|
|
1005
|
-
* visible genome regions on the screen. they are similar to static
|
|
1006
|
-
* static blocks can go offscreen while dynamic blocks
|
|
1007
|
-
* is on screen
|
|
1002
|
+
* visible genome regions on the screen. they are similar to static
|
|
1003
|
+
* blocks, but static blocks can go offscreen while dynamic blocks
|
|
1004
|
+
* represent exactly what is on screen
|
|
1008
1005
|
*/
|
|
1009
1006
|
get dynamicBlocks() {
|
|
1010
1007
|
return (0, calculateDynamicBlocks_1.default)(self);
|
|
@@ -1022,8 +1019,8 @@ function stateModelFactory(pluginManager) {
|
|
|
1022
1019
|
},
|
|
1023
1020
|
/**
|
|
1024
1021
|
* #getter
|
|
1025
|
-
* a single "combo-locstring" representing all the regions visible
|
|
1026
|
-
*
|
|
1022
|
+
* a single "combo-locstring" representing all the regions visible on
|
|
1023
|
+
* the screen
|
|
1027
1024
|
*/
|
|
1028
1025
|
get visibleLocStrings() {
|
|
1029
1026
|
return calculateVisibleLocStrings(this.dynamicBlocks.contentBlocks);
|
|
@@ -1126,8 +1123,8 @@ function stateModelFactory(pluginManager) {
|
|
|
1126
1123
|
* Navigate to a location based on its refName and optionally start, end,
|
|
1127
1124
|
* and assemblyName. Will not try to change displayed regions, use
|
|
1128
1125
|
* `navToLocations` instead. Only navigates to a location if it is
|
|
1129
|
-
* entirely within a displayedRegion. Navigates to the first matching
|
|
1130
|
-
* encountered.
|
|
1126
|
+
* entirely within a displayedRegion. Navigates to the first matching
|
|
1127
|
+
* location encountered.
|
|
1131
1128
|
*
|
|
1132
1129
|
* Throws an error if navigation was unsuccessful
|
|
1133
1130
|
*
|
|
@@ -1152,8 +1149,11 @@ function stateModelFactory(pluginManager) {
|
|
|
1152
1149
|
if (locations.some(l => l.start !== undefined && l.end !== undefined && l.start > l.end)) {
|
|
1153
1150
|
throw new Error('found start greater than end');
|
|
1154
1151
|
}
|
|
1155
|
-
const f1 = locations
|
|
1156
|
-
const f2 = locations
|
|
1152
|
+
const f1 = locations.at(0);
|
|
1153
|
+
const f2 = locations.at(-1);
|
|
1154
|
+
if (!f1 || !f2) {
|
|
1155
|
+
return;
|
|
1156
|
+
}
|
|
1157
1157
|
const a = self.assemblyNames[0];
|
|
1158
1158
|
const { assemblyManager } = (0, util_1.getSession)(self);
|
|
1159
1159
|
const assembly1 = assemblyManager.get(f1.assemblyName || a);
|
|
@@ -1268,6 +1268,5 @@ var SearchBox_1 = require("./components/SearchBox");
|
|
|
1268
1268
|
Object.defineProperty(exports, "SearchBox", { enumerable: true, get: function () { return __importDefault(SearchBox_1).default; } });
|
|
1269
1269
|
var ZoomControls_1 = require("./components/ZoomControls");
|
|
1270
1270
|
Object.defineProperty(exports, "ZoomControls", { enumerable: true, get: function () { return __importDefault(ZoomControls_1).default; } });
|
|
1271
|
-
var
|
|
1272
|
-
Object.defineProperty(exports, "renderToSvg", { enumerable: true, get: function () { return
|
|
1273
|
-
//# sourceMappingURL=model.js.map
|
|
1271
|
+
var SVGLinearGenomeView_1 = require("./svgcomponents/SVGLinearGenomeView");
|
|
1272
|
+
Object.defineProperty(exports, "renderToSvg", { enumerable: true, get: function () { return SVGLinearGenomeView_1.renderToSvg; } });
|