@jbrowse/plugin-linear-genome-view 3.6.5 → 4.0.0
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/esm/BaseLinearDisplay/SVGLegend.d.ts +6 -0
- package/esm/BaseLinearDisplay/SVGLegend.js +17 -0
- package/esm/BaseLinearDisplay/calculateSvgLegendWidth.d.ts +2 -0
- package/esm/BaseLinearDisplay/calculateSvgLegendWidth.js +11 -0
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +3 -3
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +13 -24
- package/esm/BaseLinearDisplay/components/Block.js +2 -2
- package/esm/BaseLinearDisplay/components/BlockErrorMessage.js +2 -2
- package/esm/BaseLinearDisplay/components/BlockMsg.js +11 -2
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/CollapseIntronsDialog.d.ts +9 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/CollapseIntronsDialog.js +42 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/TranscriptTable.d.ts +11 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/TranscriptTable.js +40 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/util.d.ts +19 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/util.js +45 -0
- package/esm/BaseLinearDisplay/components/FloatingLabels.d.ts +5 -0
- package/esm/BaseLinearDisplay/components/FloatingLabels.js +89 -0
- package/esm/BaseLinearDisplay/components/FloatingLegend.d.ts +8 -0
- package/esm/BaseLinearDisplay/components/FloatingLegend.js +43 -0
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -5
- package/esm/BaseLinearDisplay/components/LinearBlocks.js +5 -42
- package/esm/BaseLinearDisplay/components/LoadingOverlay.d.ts +4 -0
- package/esm/BaseLinearDisplay/components/LoadingOverlay.js +49 -0
- package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.d.ts +4 -0
- package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.js +26 -0
- package/esm/BaseLinearDisplay/components/MenuPage.d.ts +8 -0
- package/esm/BaseLinearDisplay/components/MenuPage.js +24 -0
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.d.ts +19 -0
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.js +48 -0
- package/esm/BaseLinearDisplay/components/RenderedBlocks.d.ts +12 -0
- package/esm/BaseLinearDisplay/components/RenderedBlocks.js +22 -0
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +4 -4
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +5 -8
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +3 -3
- package/esm/BaseLinearDisplay/components/Tooltip.d.ts +2 -0
- package/esm/BaseLinearDisplay/components/Tooltip.js +10 -7
- package/esm/BaseLinearDisplay/components/types.d.ts +1 -0
- package/esm/BaseLinearDisplay/components/types.js +1 -0
- package/esm/BaseLinearDisplay/components/util.d.ts +21 -0
- package/esm/BaseLinearDisplay/components/util.js +116 -0
- package/esm/BaseLinearDisplay/index.d.ts +17 -8
- package/esm/BaseLinearDisplay/index.js +13 -6
- package/esm/BaseLinearDisplay/model.d.ts +1177 -0
- package/esm/BaseLinearDisplay/model.js +424 -0
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +5 -5
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +11 -14
- package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.d.ts +21 -0
- package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.js +46 -0
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.d.ts +3 -3
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.js +2 -3
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +1 -1
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js +2 -3
- package/esm/BaseLinearDisplay/models/calculateLabelPositions.d.ts +24 -0
- package/esm/BaseLinearDisplay/models/calculateLabelPositions.js +60 -0
- package/esm/BaseLinearDisplay/models/configSchema.d.ts +2 -2
- package/esm/BaseLinearDisplay/models/configSchema.js +3 -3
- package/esm/BaseLinearDisplay/models/renderSvg.d.ts +3 -7
- package/esm/BaseLinearDisplay/models/renderSvg.js +22 -11
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +37 -19
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +151 -135
- package/esm/BaseLinearDisplay/models/util.d.ts +4 -4
- package/esm/BaseLinearDisplay/models/util.js +16 -13
- package/esm/BaseLinearDisplay/renderSvg.d.ts +3 -0
- package/esm/BaseLinearDisplay/renderSvg.js +59 -0
- package/esm/BaseLinearDisplay/types.d.ts +47 -0
- package/esm/BaseLinearDisplay/types.js +3 -0
- package/esm/BaseLinearDisplay/util.d.ts +15 -0
- package/esm/BaseLinearDisplay/util.js +61 -0
- package/esm/BasicTrack/configSchema.d.ts +16 -11
- package/esm/BasicTrack/index.js +1 -1
- package/esm/FeatureTrack/configSchema.d.ts +16 -11
- package/esm/FeatureTrack/index.js +1 -1
- package/esm/LaunchLinearGenomeView/index.js +12 -62
- package/esm/LinearBareDisplay/configSchema.d.ts +4 -4
- package/esm/LinearBareDisplay/configSchema.js +1 -1
- package/esm/LinearBareDisplay/index.d.ts +2 -2
- package/esm/LinearBareDisplay/index.js +5 -5
- package/esm/LinearBareDisplay/model.d.ts +959 -92
- package/esm/LinearBareDisplay/model.js +3 -6
- package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.d.ts +5 -0
- package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.js +9 -0
- package/esm/LinearBasicDisplay/configSchema.d.ts +4 -4
- package/esm/LinearBasicDisplay/configSchema.js +1 -1
- package/esm/LinearBasicDisplay/index.d.ts +2 -2
- package/esm/LinearBasicDisplay/index.js +6 -6
- package/esm/LinearBasicDisplay/model.d.ts +1134 -122
- package/esm/LinearBasicDisplay/model.js +116 -116
- package/esm/{LinearBasicDisplay → LinearFeatureDisplay}/components/AddFiltersDialog.js +2 -2
- package/esm/{LinearBasicDisplay → LinearFeatureDisplay}/components/SetMaxHeightDialog.js +3 -3
- package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/configSchema.d.ts +4 -4
- package/esm/LinearFeatureDisplay/configSchema.js +11 -0
- package/esm/LinearFeatureDisplay/index.d.ts +3 -0
- package/esm/LinearFeatureDisplay/index.js +2 -0
- package/esm/LinearFeatureDisplay/model.d.ts +1415 -0
- package/esm/LinearFeatureDisplay/model.js +265 -0
- package/esm/LinearGenomeView/SVGErrorBox.d.ts +5 -0
- package/esm/LinearGenomeView/SVGErrorBox.js +4 -0
- package/esm/LinearGenomeView/afterAttach.d.ts +5 -0
- package/esm/LinearGenomeView/afterAttach.js +95 -0
- package/esm/LinearGenomeView/components/CenterLine.js +6 -4
- package/esm/LinearGenomeView/components/Cytobands.js +4 -4
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +1 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +5 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +8 -2
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +13 -16
- package/esm/LinearGenomeView/components/Gridlines.js +18 -15
- package/esm/LinearGenomeView/components/Header.js +9 -9
- package/esm/LinearGenomeView/components/HeaderPanControls.js +2 -2
- package/esm/LinearGenomeView/components/HeaderRegionWidth.js +4 -5
- package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.js +2 -2
- package/esm/LinearGenomeView/components/HeaderZoomControls.js +3 -3
- package/esm/LinearGenomeView/components/Highlight.d.ts +1 -1
- package/esm/LinearGenomeView/components/Highlight.js +6 -6
- package/esm/LinearGenomeView/components/ImportForm.d.ts +1 -1
- package/esm/LinearGenomeView/components/ImportForm.js +14 -12
- package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +3 -3
- package/esm/LinearGenomeView/components/LinearGenomeView.js +7 -7
- package/esm/LinearGenomeView/components/LinearGenomeViewContainer.js +7 -8
- package/esm/LinearGenomeView/components/MiniControls.js +6 -6
- package/esm/LinearGenomeView/components/NoTracksActiveButton.js +2 -2
- package/esm/LinearGenomeView/components/OverviewHighlight.d.ts +1 -1
- package/esm/LinearGenomeView/components/OverviewHighlight.js +5 -5
- package/esm/LinearGenomeView/components/OverviewRubberband.js +4 -4
- package/esm/LinearGenomeView/components/OverviewRubberbandHoverTooltip.js +9 -5
- package/esm/LinearGenomeView/components/OverviewScalebar.js +36 -28
- package/esm/LinearGenomeView/components/OverviewScalebarPolygon.js +5 -5
- package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.js +7 -7
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +1 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +1 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +10 -10
- package/esm/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +1 -1
- package/esm/LinearGenomeView/components/RegionWidthEditorDialog.js +6 -4
- package/esm/LinearGenomeView/components/Rubberband.js +9 -7
- package/esm/LinearGenomeView/components/RubberbandSpan.js +4 -5
- package/esm/LinearGenomeView/components/Scalebar.js +8 -10
- package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +1 -1
- package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.js +50 -17
- package/esm/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +1 -1
- package/esm/LinearGenomeView/components/ScalebarRefNameLabels.js +13 -11
- package/esm/LinearGenomeView/components/SearchBox.d.ts +1 -1
- package/esm/LinearGenomeView/components/SearchBox.js +8 -9
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +1 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +2 -2
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +1 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.js +4 -6
- package/esm/LinearGenomeView/components/SequenceSearchDialog.js +6 -6
- package/esm/LinearGenomeView/components/TrackContainer.js +32 -20
- package/esm/LinearGenomeView/components/TrackLabel.js +10 -11
- package/esm/LinearGenomeView/components/TrackLabelContainer.js +7 -8
- package/esm/LinearGenomeView/components/TrackLabelDragHandle.js +1 -1
- package/esm/LinearGenomeView/components/TrackLabelMenu.js +80 -68
- package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +1 -2
- package/esm/LinearGenomeView/components/TrackRenderingContainer.js +5 -5
- package/esm/LinearGenomeView/components/TracksContainer.js +18 -15
- package/esm/LinearGenomeView/components/VerticalGuide.js +5 -3
- package/esm/LinearGenomeView/components/fetchSequence.d.ts +7 -2
- package/esm/LinearGenomeView/components/useRangeSelect.d.ts +27 -2
- package/esm/LinearGenomeView/components/useRangeSelect.js +26 -20
- package/esm/LinearGenomeView/components/useWheelScroll.js +22 -12
- package/esm/LinearGenomeView/components/util.d.ts +2 -13
- package/esm/LinearGenomeView/components/util.js +12 -31
- package/esm/LinearGenomeView/index.d.ts +1 -1
- package/esm/LinearGenomeView/index.js +3 -3
- package/esm/LinearGenomeView/keyboardHandler.d.ts +2 -0
- package/esm/LinearGenomeView/keyboardHandler.js +29 -0
- package/esm/LinearGenomeView/menuItems.d.ts +7 -0
- package/esm/LinearGenomeView/menuItems.js +299 -0
- package/esm/LinearGenomeView/model.d.ts +92 -89
- package/esm/LinearGenomeView/model.js +166 -414
- package/esm/LinearGenomeView/svgExportUtil.d.ts +9 -0
- package/esm/LinearGenomeView/svgExportUtil.js +6 -0
- package/{dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts → esm/LinearGenomeView/svgcomponents/SVGGridlines.d.ts} +2 -2
- package/esm/LinearGenomeView/svgcomponents/SVGGridlines.js +20 -0
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +5 -5
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +4 -3
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +24 -12
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +13 -5
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +2 -2
- package/esm/LinearGenomeView/types.d.ts +5 -1
- package/esm/LinearGenomeView/util.d.ts +2 -2
- package/esm/LinearGenomeView/util.js +8 -6
- package/esm/index.d.ts +975 -94
- package/esm/index.js +37 -38
- package/esm/searchUtils.d.ts +1 -1
- package/esm/searchUtils.js +6 -4
- package/package.json +28 -33
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +0 -8
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -72
- package/dist/BaseLinearDisplay/components/Block.d.ts +0 -14
- package/dist/BaseLinearDisplay/components/Block.js +0 -50
- package/dist/BaseLinearDisplay/components/BlockErrorMessage.d.ts +0 -7
- package/dist/BaseLinearDisplay/components/BlockErrorMessage.js +0 -27
- package/dist/BaseLinearDisplay/components/BlockLoadingMessage.d.ts +0 -6
- package/dist/BaseLinearDisplay/components/BlockLoadingMessage.js +0 -26
- package/dist/BaseLinearDisplay/components/BlockMsg.d.ts +0 -6
- package/dist/BaseLinearDisplay/components/BlockMsg.js +0 -20
- package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +0 -9
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +0 -61
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +0 -11
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -59
- package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +0 -10
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +0 -25
- package/dist/BaseLinearDisplay/components/Tooltip.d.ts +0 -11
- package/dist/BaseLinearDisplay/components/Tooltip.js +0 -24
- package/dist/BaseLinearDisplay/index.d.ts +0 -8
- package/dist/BaseLinearDisplay/index.js +0 -20
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +0 -311
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -325
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +0 -32
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +0 -122
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.d.ts +0 -11
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +0 -35
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +0 -2
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +0 -33
- package/dist/BaseLinearDisplay/models/configSchema.d.ts +0 -29
- package/dist/BaseLinearDisplay/models/configSchema.js +0 -35
- package/dist/BaseLinearDisplay/models/renderSvg.d.ts +0 -7
- package/dist/BaseLinearDisplay/models/renderSvg.js +0 -80
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +0 -78
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +0 -229
- package/dist/BaseLinearDisplay/models/util.d.ts +0 -22
- package/dist/BaseLinearDisplay/models/util.js +0 -45
- package/dist/BasicTrack/configSchema.d.ts +0 -80
- package/dist/BasicTrack/configSchema.js +0 -10
- package/dist/BasicTrack/index.d.ts +0 -2
- package/dist/BasicTrack/index.js +0 -18
- package/dist/FeatureTrack/configSchema.d.ts +0 -80
- package/dist/FeatureTrack/configSchema.js +0 -10
- package/dist/FeatureTrack/index.d.ts +0 -2
- package/dist/FeatureTrack/index.js +0 -19
- package/dist/LaunchLinearGenomeView/index.d.ts +0 -2
- package/dist/LaunchLinearGenomeView/index.js +0 -70
- package/dist/LinearBareDisplay/configSchema.d.ts +0 -32
- package/dist/LinearBareDisplay/configSchema.js +0 -13
- package/dist/LinearBareDisplay/index.d.ts +0 -4
- package/dist/LinearBareDisplay/index.js +0 -26
- package/dist/LinearBareDisplay/model.d.ts +0 -309
- package/dist/LinearBareDisplay/model.js +0 -38
- package/dist/LinearBasicDisplay/components/AddFiltersDialog.js +0 -61
- package/dist/LinearBasicDisplay/components/SetMaxHeightDialog.js +0 -28
- package/dist/LinearBasicDisplay/configSchema.js +0 -13
- package/dist/LinearBasicDisplay/index.d.ts +0 -4
- package/dist/LinearBasicDisplay/index.js +0 -29
- package/dist/LinearBasicDisplay/model.d.ts +0 -346
- package/dist/LinearBasicDisplay/model.js +0 -192
- package/dist/LinearGenomeView/components/CenterLine.d.ts +0 -6
- package/dist/LinearGenomeView/components/CenterLine.js +0 -38
- package/dist/LinearGenomeView/components/Cytobands.d.ts +0 -9
- package/dist/LinearGenomeView/components/Cytobands.js +0 -89
- package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -7
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +0 -57
- package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -6
- package/dist/LinearGenomeView/components/GetSequenceDialog.js +0 -109
- package/dist/LinearGenomeView/components/Gridlines.d.ts +0 -7
- package/dist/LinearGenomeView/components/Gridlines.js +0 -70
- package/dist/LinearGenomeView/components/Header.d.ts +0 -5
- package/dist/LinearGenomeView/components/Header.js +0 -38
- package/dist/LinearGenomeView/components/HeaderPanControls.d.ts +0 -6
- package/dist/LinearGenomeView/components/HeaderPanControls.js +0 -27
- package/dist/LinearGenomeView/components/HeaderRegionWidth.d.ts +0 -5
- package/dist/LinearGenomeView/components/HeaderRegionWidth.js +0 -21
- package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.d.ts +0 -5
- package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.js +0 -19
- package/dist/LinearGenomeView/components/HeaderZoomControls.d.ts +0 -5
- package/dist/LinearGenomeView/components/HeaderZoomControls.js +0 -109
- package/dist/LinearGenomeView/components/Highlight.d.ts +0 -12
- package/dist/LinearGenomeView/components/Highlight.js +0 -95
- package/dist/LinearGenomeView/components/ImportForm.d.ts +0 -6
- package/dist/LinearGenomeView/components/ImportForm.js +0 -80
- package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +0 -11
- package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +0 -32
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +0 -5
- package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -57
- package/dist/LinearGenomeView/components/LinearGenomeViewContainer.d.ts +0 -5
- package/dist/LinearGenomeView/components/LinearGenomeViewContainer.js +0 -98
- package/dist/LinearGenomeView/components/MiniControls.d.ts +0 -5
- package/dist/LinearGenomeView/components/MiniControls.js +0 -36
- package/dist/LinearGenomeView/components/NoTracksActiveButton.d.ts +0 -5
- package/dist/LinearGenomeView/components/NoTracksActiveButton.js +0 -23
- package/dist/LinearGenomeView/components/OverviewHighlight.d.ts +0 -8
- package/dist/LinearGenomeView/components/OverviewHighlight.js +0 -50
- package/dist/LinearGenomeView/components/OverviewRubberband.d.ts +0 -9
- package/dist/LinearGenomeView/components/OverviewRubberband.js +0 -113
- package/dist/LinearGenomeView/components/OverviewRubberbandHoverTooltip.d.ts +0 -10
- package/dist/LinearGenomeView/components/OverviewRubberbandHoverTooltip.js +0 -28
- package/dist/LinearGenomeView/components/OverviewScalebar.d.ts +0 -7
- package/dist/LinearGenomeView/components/OverviewScalebar.js +0 -146
- package/dist/LinearGenomeView/components/OverviewScalebarPolygon.d.ts +0 -8
- package/dist/LinearGenomeView/components/OverviewScalebarPolygon.js +0 -41
- package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.d.ts +0 -10
- package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.js +0 -37
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +0 -8
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +0 -18
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +0 -3
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +0 -56
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.d.ts +0 -3
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +0 -11
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +0 -16
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +0 -127
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.d.ts +0 -10
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +0 -53
- package/dist/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +0 -6
- package/dist/LinearGenomeView/components/RegionWidthEditorDialog.js +0 -30
- package/dist/LinearGenomeView/components/Rubberband.d.ts +0 -7
- package/dist/LinearGenomeView/components/Rubberband.js +0 -35
- package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +0 -15
- package/dist/LinearGenomeView/components/RubberbandSpan.js +0 -39
- package/dist/LinearGenomeView/components/RubberbandTooltip.d.ts +0 -5
- package/dist/LinearGenomeView/components/RubberbandTooltip.js +0 -20
- package/dist/LinearGenomeView/components/Scalebar.d.ts +0 -10
- package/dist/LinearGenomeView/components/Scalebar.js +0 -40
- package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +0 -6
- package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.js +0 -29
- package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +0 -6
- package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.js +0 -38
- package/dist/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +0 -6
- package/dist/LinearGenomeView/components/ScalebarRefNameLabels.js +0 -46
- package/dist/LinearGenomeView/components/SearchBox.d.ts +0 -6
- package/dist/LinearGenomeView/components/SearchBox.js +0 -88
- package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +0 -9
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +0 -15
- package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +0 -8
- package/dist/LinearGenomeView/components/SearchResultsTable.js +0 -74
- package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -8
- package/dist/LinearGenomeView/components/SequenceSearchDialog.js +0 -67
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +0 -8
- package/dist/LinearGenomeView/components/TrackContainer.js +0 -51
- package/dist/LinearGenomeView/components/TrackLabel.d.ts +0 -7
- package/dist/LinearGenomeView/components/TrackLabel.js +0 -49
- package/dist/LinearGenomeView/components/TrackLabelContainer.d.ts +0 -8
- package/dist/LinearGenomeView/components/TrackLabelContainer.js +0 -31
- package/dist/LinearGenomeView/components/TrackLabelDragHandle.d.ts +0 -8
- package/dist/LinearGenomeView/components/TrackLabelDragHandle.js +0 -32
- package/dist/LinearGenomeView/components/TrackLabelMenu.d.ts +0 -5
- package/dist/LinearGenomeView/components/TrackLabelMenu.js +0 -93
- package/dist/LinearGenomeView/components/TrackRenderingContainer.d.ts +0 -9
- package/dist/LinearGenomeView/components/TrackRenderingContainer.js +0 -50
- package/dist/LinearGenomeView/components/TracksContainer.d.ts +0 -7
- package/dist/LinearGenomeView/components/TracksContainer.js +0 -84
- package/dist/LinearGenomeView/components/VerticalGuide.d.ts +0 -7
- package/dist/LinearGenomeView/components/VerticalGuide.js +0 -31
- package/dist/LinearGenomeView/components/fetchSequence.d.ts +0 -4
- package/dist/LinearGenomeView/components/fetchSequence.js +0 -29
- package/dist/LinearGenomeView/components/useRangeSelect.d.ts +0 -59
- package/dist/LinearGenomeView/components/useRangeSelect.js +0 -131
- package/dist/LinearGenomeView/components/useSideScroll.d.ts +0 -6
- package/dist/LinearGenomeView/components/useSideScroll.js +0 -60
- package/dist/LinearGenomeView/components/useWheelScroll.d.ts +0 -7
- package/dist/LinearGenomeView/components/useWheelScroll.js +0 -62
- package/dist/LinearGenomeView/components/util.d.ts +0 -25
- package/dist/LinearGenomeView/components/util.js +0 -49
- package/dist/LinearGenomeView/consts.d.ts +0 -7
- package/dist/LinearGenomeView/consts.js +0 -10
- package/dist/LinearGenomeView/index.d.ts +0 -3
- package/dist/LinearGenomeView/index.js +0 -53
- package/dist/LinearGenomeView/model.d.ts +0 -268
- package/dist/LinearGenomeView/model.js +0 -1109
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -5
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +0 -10
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -7
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +0 -47
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +0 -6
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -42
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -8
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -7
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +0 -39
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -7
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -17
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -7
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -14
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -21
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +0 -32
- package/dist/LinearGenomeView/svgcomponents/util.d.ts +0 -8
- package/dist/LinearGenomeView/svgcomponents/util.js +0 -8
- package/dist/LinearGenomeView/types.d.ts +0 -43
- package/dist/LinearGenomeView/types.js +0 -2
- package/dist/LinearGenomeView/util.d.ts +0 -26
- package/dist/LinearGenomeView/util.js +0 -138
- package/dist/index.d.ts +0 -353
- package/dist/index.js +0 -120
- package/dist/searchUtils.d.ts +0 -26
- package/dist/searchUtils.js +0 -80
- package/esm/BaseLinearDisplay/components/BlockLoadingMessage.d.ts +0 -6
- package/esm/BaseLinearDisplay/components/BlockLoadingMessage.js +0 -24
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +0 -311
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -286
- package/esm/LinearBasicDisplay/components/AddFiltersDialog.d.ts +0 -9
- package/esm/LinearBasicDisplay/components/SetMaxHeightDialog.d.ts +0 -8
- package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +0 -6
- package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.js +0 -36
- /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/AddFiltersDialog.d.ts +0 -0
- /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/SetMaxHeightDialog.d.ts +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { LinearGenomeViewModel } from '../..';
|
|
2
|
-
import type BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
3
|
-
export default function SearchResultsDialog({ model, assemblyName, searchQuery, searchResults, handleClose, }: {
|
|
4
|
-
model: LinearGenomeViewModel;
|
|
5
|
-
assemblyName?: string;
|
|
6
|
-
searchQuery: string;
|
|
7
|
-
searchResults?: BaseResult[];
|
|
8
|
-
handleClose: () => void;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
exports.default = SearchResultsDialog;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
|
-
const SearchResultsTable_1 = __importDefault(require("./SearchResultsTable"));
|
|
11
|
-
function SearchResultsDialog({ model, assemblyName, searchQuery, searchResults, handleClose, }) {
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { open: true, maxWidth: "xl", onClose: handleClose, title: "Search results", children: [(0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: !(searchResults === null || searchResults === void 0 ? void 0 : searchResults.length) ? ((0, jsx_runtime_1.jsxs)(material_1.Typography, { children: ["No results found for ", (0, jsx_runtime_1.jsx)("b", { children: searchQuery })] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { children: ["Showing results for ", (0, jsx_runtime_1.jsx)("b", { children: searchQuery })] }), (0, jsx_runtime_1.jsx)(SearchResultsTable_1.default, { model: model, handleClose: handleClose, assemblyName: assemblyName, searchResults: searchResults })] })) }), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => {
|
|
13
|
-
handleClose();
|
|
14
|
-
}, color: "primary", children: "Cancel" }) })] }));
|
|
15
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { LinearGenomeViewModel } from '../..';
|
|
2
|
-
import type BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
3
|
-
export default function SearchResultsTable({ searchResults, assemblyName: optAssemblyName, model, handleClose, }: {
|
|
4
|
-
searchResults: BaseResult[];
|
|
5
|
-
assemblyName?: string;
|
|
6
|
-
model: LinearGenomeViewModel;
|
|
7
|
-
handleClose: () => void;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = SearchResultsTable;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const util_1 = require("@jbrowse/core/util");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
8
|
-
const searchUtils_1 = require("../../searchUtils");
|
|
9
|
-
function SearchResultsTable({ searchResults, assemblyName: optAssemblyName, model, handleClose, }) {
|
|
10
|
-
const session = (0, util_1.getSession)(model);
|
|
11
|
-
const { pluginManager } = (0, util_1.getEnv)(session);
|
|
12
|
-
const { assemblyManager } = session;
|
|
13
|
-
const assemblyName = optAssemblyName || model.displayedRegions[0].assemblyName;
|
|
14
|
-
const assembly = assemblyManager.get(assemblyName);
|
|
15
|
-
if (!assembly) {
|
|
16
|
-
throw new Error(`assembly ${assemblyName} not found`);
|
|
17
|
-
}
|
|
18
|
-
if (!assembly.regions) {
|
|
19
|
-
throw new Error(`assembly ${assemblyName} regions not loaded`);
|
|
20
|
-
}
|
|
21
|
-
function getTrackName(trackId) {
|
|
22
|
-
var _a;
|
|
23
|
-
if (trackId) {
|
|
24
|
-
const schema = pluginManager.pluggableConfigSchemaType('track');
|
|
25
|
-
const configuration = (0, mobx_state_tree_1.resolveIdentifier)(schema, (0, mobx_state_tree_1.getRoot)(model), trackId);
|
|
26
|
-
return ((_a = configuration === null || configuration === void 0 ? void 0 : configuration.name) === null || _a === void 0 ? void 0 : _a.value) || '';
|
|
27
|
-
}
|
|
28
|
-
return '';
|
|
29
|
-
}
|
|
30
|
-
async function handleClick(result) {
|
|
31
|
-
var _a;
|
|
32
|
-
if (result.hasLocation()) {
|
|
33
|
-
await (0, searchUtils_1.navToOption)({
|
|
34
|
-
option: result,
|
|
35
|
-
model,
|
|
36
|
-
assemblyName,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
const location = result.getLabel();
|
|
41
|
-
const newRegion = (_a = assembly === null || assembly === void 0 ? void 0 : assembly.regions) === null || _a === void 0 ? void 0 : _a.find(region => location === region.refName);
|
|
42
|
-
if (newRegion) {
|
|
43
|
-
model.setDisplayedRegions([newRegion]);
|
|
44
|
-
model.showAllRegions();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return ((0, jsx_runtime_1.jsx)(material_1.TableContainer, { component: material_1.Paper, children: (0, jsx_runtime_1.jsxs)(material_1.Table, { children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { children: "Name" }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: "Location" }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: "Track" }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right" })] }) }), (0, jsx_runtime_1.jsx)(material_1.TableBody, { children: searchResults.map(result => {
|
|
49
|
-
const locString = result.getLocation();
|
|
50
|
-
let loc;
|
|
51
|
-
try {
|
|
52
|
-
loc = locString
|
|
53
|
-
? (0, util_1.parseLocString)(locString, refName => assembly.isValidRefName(refName))
|
|
54
|
-
: undefined;
|
|
55
|
-
}
|
|
56
|
-
catch (e) { }
|
|
57
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { component: "th", scope: "row", children: result.getLabel() }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: loc
|
|
58
|
-
? (0, util_1.assembleLocString)({
|
|
59
|
-
...loc,
|
|
60
|
-
refName: assembly.getCanonicalRefName(loc.refName) ||
|
|
61
|
-
loc.refName,
|
|
62
|
-
})
|
|
63
|
-
: locString }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: getTrackName(result.getTrackId()) || 'N/A' }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: async () => {
|
|
64
|
-
try {
|
|
65
|
-
await handleClick(result);
|
|
66
|
-
}
|
|
67
|
-
catch (e) {
|
|
68
|
-
console.error(e);
|
|
69
|
-
session.notifyError(`${e}`, e);
|
|
70
|
-
}
|
|
71
|
-
handleClose();
|
|
72
|
-
}, color: "primary", variant: "contained", children: "Go" }) })] }, result.getId()));
|
|
73
|
-
}) })] }) }));
|
|
74
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
-
const util_1 = require("@jbrowse/core/util");
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
8
|
-
const mobx_react_1 = require("mobx-react");
|
|
9
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
10
|
-
const mui_1 = require("tss-react/mui");
|
|
11
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
12
|
-
dialogContent: {
|
|
13
|
-
width: '40em',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
const SequenceSearchDialog = (0, mobx_react_1.observer)(function ({ model, handleClose, }) {
|
|
17
|
-
const { classes } = useStyles();
|
|
18
|
-
const [value, setValue] = (0, react_1.useState)('');
|
|
19
|
-
const [searchForward, setSearchForward] = (0, react_1.useState)(true);
|
|
20
|
-
const [searchReverse, setSearchReverse] = (0, react_1.useState)(true);
|
|
21
|
-
const [caseInsensitive, setCaseInsensitive] = (0, react_1.useState)(true);
|
|
22
|
-
let error;
|
|
23
|
-
try {
|
|
24
|
-
new RegExp(value);
|
|
25
|
-
}
|
|
26
|
-
catch (e) {
|
|
27
|
-
error = e;
|
|
28
|
-
}
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { maxWidth: "xl", open: true, onClose: handleClose, title: "Sequence search", children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { className: classes.dialogContent, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { children: "Supply a sequence to search for. A track will be created with the resulting matches once submitted. You can also supply regex style expressions e.g. AACT(C|T)." }), (0, jsx_runtime_1.jsx)(material_1.TextField, { value: value, onChange: e => {
|
|
30
|
-
setValue(e.target.value);
|
|
31
|
-
}, helperText: "Sequence search pattern" }), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: searchForward, onChange: event => {
|
|
32
|
-
setSearchForward(event.target.checked);
|
|
33
|
-
} }), label: "Search forward strand" }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: searchReverse, onChange: event => {
|
|
34
|
-
setSearchReverse(event.target.checked);
|
|
35
|
-
} }), label: "Search reverse strand" }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: caseInsensitive, onChange: event => {
|
|
36
|
-
setCaseInsensitive(event.target.checked);
|
|
37
|
-
} }), label: "Case insensitive" })] }), error ? (0, jsx_runtime_1.jsx)(material_1.Typography, { color: "error", children: `${error}` }) : null] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => {
|
|
38
|
-
var _a;
|
|
39
|
-
if (value) {
|
|
40
|
-
const trackId = `sequence_search_${+Date.now()}`;
|
|
41
|
-
const session = (0, util_1.getSession)(model);
|
|
42
|
-
const { assemblyManager } = session;
|
|
43
|
-
const assemblyName = model.assemblyNames[0];
|
|
44
|
-
if ((0, util_1.isSessionWithAddTracks)(session)) {
|
|
45
|
-
session.addTrackConf({
|
|
46
|
-
trackId,
|
|
47
|
-
name: `Sequence search ${value}`,
|
|
48
|
-
assemblyNames: [assemblyName],
|
|
49
|
-
type: 'FeatureTrack',
|
|
50
|
-
adapter: {
|
|
51
|
-
type: 'SequenceSearchAdapter',
|
|
52
|
-
search: value,
|
|
53
|
-
searchForward,
|
|
54
|
-
searchReverse,
|
|
55
|
-
caseInsensitive,
|
|
56
|
-
sequenceAdapter: (0, mobx_state_tree_1.getSnapshot)((_a = assemblyManager.get(assemblyName)) === null || _a === void 0 ? void 0 : _a.configuration.sequence.adapter),
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
model.showTrack(trackId);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
handleClose();
|
|
63
|
-
}, variant: "contained", color: "primary", children: "Submit" }), (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => {
|
|
64
|
-
handleClose();
|
|
65
|
-
}, variant: "contained", color: "secondary", children: "Close" })] })] }));
|
|
66
|
-
});
|
|
67
|
-
exports.default = SequenceSearchDialog;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { LinearGenomeViewModel } from '..';
|
|
2
|
-
import type { BaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
-
type LGV = LinearGenomeViewModel;
|
|
4
|
-
declare const TrackContainer: ({ model, track, }: {
|
|
5
|
-
model: LGV;
|
|
6
|
-
track: BaseTrackModel;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default TrackContainer;
|
|
@@ -1,51 +0,0 @@
|
|
|
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 jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
9
|
-
const ErrorBoundary_1 = require("@jbrowse/core/ui/ErrorBoundary");
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
|
-
const mobx_react_1 = require("mobx-react");
|
|
12
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
13
|
-
const mui_1 = require("tss-react/mui");
|
|
14
|
-
const Gridlines_1 = __importDefault(require("./Gridlines"));
|
|
15
|
-
const TrackLabelContainer_1 = __importDefault(require("./TrackLabelContainer"));
|
|
16
|
-
const TrackRenderingContainer_1 = __importDefault(require("./TrackRenderingContainer"));
|
|
17
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
18
|
-
root: {
|
|
19
|
-
marginTop: 2,
|
|
20
|
-
overflow: 'hidden',
|
|
21
|
-
position: 'relative',
|
|
22
|
-
},
|
|
23
|
-
unpinnedTrack: {
|
|
24
|
-
background: 'none',
|
|
25
|
-
},
|
|
26
|
-
resizeHandle: {
|
|
27
|
-
height: 3,
|
|
28
|
-
boxSizing: 'border-box',
|
|
29
|
-
position: 'relative',
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
const TrackContainer = (0, mobx_react_1.observer)(function ({ model, track, }) {
|
|
33
|
-
const { classes, cx } = useStyles();
|
|
34
|
-
const display = track.displays[0];
|
|
35
|
-
const { draggingTrackId, showTrackOutlines } = model;
|
|
36
|
-
const ref = (0, react_1.useRef)(null);
|
|
37
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Paper, { ref: ref, className: cx(classes.root, track.pinned ? null : classes.unpinnedTrack), variant: showTrackOutlines ? 'outlined' : undefined, elevation: showTrackOutlines ? undefined : 0, onClick: event => {
|
|
38
|
-
var _a;
|
|
39
|
-
if (event.detail === 2 && !track.displays[0].featureIdUnderMouse) {
|
|
40
|
-
const left = ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left) || 0;
|
|
41
|
-
model.zoomTo(model.bpPerPx / 2, event.clientX - left, true);
|
|
42
|
-
}
|
|
43
|
-
}, children: [track.pinned ? (0, jsx_runtime_1.jsx)(Gridlines_1.default, { model: model, offset: 1 }) : null, (0, jsx_runtime_1.jsx)(TrackLabelContainer_1.default, { track: track, view: model }), (0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { FallbackComponent: e => (0, jsx_runtime_1.jsx)(ui_1.ErrorMessage, { error: e.error }), children: (0, jsx_runtime_1.jsx)(TrackRenderingContainer_1.default, { model: model, track: track, onDragEnter: () => {
|
|
44
|
-
if ((0, mobx_state_tree_1.isAlive)(display) &&
|
|
45
|
-
draggingTrackId !== undefined &&
|
|
46
|
-
draggingTrackId !== display.id) {
|
|
47
|
-
model.moveTrack(draggingTrackId, track.id);
|
|
48
|
-
}
|
|
49
|
-
} }) }), (0, jsx_runtime_1.jsx)(ui_1.ResizeHandle, { onDrag: display.resizeHeight, className: classes.resizeHandle })] }));
|
|
50
|
-
});
|
|
51
|
-
exports.default = TrackContainer;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
2
|
-
interface Props {
|
|
3
|
-
track: BaseTrackModel;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
declare const TrackLabel: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export default TrackLabel;
|
|
@@ -1,49 +0,0 @@
|
|
|
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 jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
9
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
10
|
-
const util_1 = require("@jbrowse/core/util");
|
|
11
|
-
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
12
|
-
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
13
|
-
const material_1 = require("@mui/material");
|
|
14
|
-
const mobx_react_1 = require("mobx-react");
|
|
15
|
-
const mui_1 = require("tss-react/mui");
|
|
16
|
-
const TrackLabelDragHandle_1 = __importDefault(require("./TrackLabelDragHandle"));
|
|
17
|
-
const TrackLabelMenu_1 = __importDefault(require("./TrackLabelMenu"));
|
|
18
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
19
|
-
root: {
|
|
20
|
-
zIndex: 200,
|
|
21
|
-
background: (0, material_1.alpha)(theme.palette.background.paper, 0.8),
|
|
22
|
-
'&:hover': {
|
|
23
|
-
background: theme.palette.background.paper,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
trackName: {
|
|
27
|
-
fontSize: '0.8rem',
|
|
28
|
-
},
|
|
29
|
-
iconButton: {
|
|
30
|
-
padding: theme.spacing(1),
|
|
31
|
-
},
|
|
32
|
-
}));
|
|
33
|
-
const TrackLabel = (0, mobx_react_1.observer)((0, react_1.forwardRef)(function TrackLabel2({ track, className }, ref) {
|
|
34
|
-
const { classes, cx } = useStyles();
|
|
35
|
-
const view = (0, util_1.getContainingView)(track);
|
|
36
|
-
const session = (0, util_1.getSession)(track);
|
|
37
|
-
const trackConf = track.configuration;
|
|
38
|
-
const { minimized } = track;
|
|
39
|
-
const trackId = (0, configuration_1.getConf)(track, 'trackId');
|
|
40
|
-
const trackName = (0, tracks_1.getTrackName)(trackConf, session);
|
|
41
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Paper, { ref: ref, className: cx(className, classes.root), onClick: event => {
|
|
42
|
-
event.stopPropagation();
|
|
43
|
-
}, children: [(0, jsx_runtime_1.jsx)(TrackLabelDragHandle_1.default, { track: track, trackId: trackId, view: view }), (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => view.hideTrack(trackId), className: classes.iconButton, title: "close this track", children: (0, jsx_runtime_1.jsx)(Close_1.default, { fontSize: "small" }) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", component: "span", className: classes.trackName, onMouseDown: event => {
|
|
44
|
-
event.stopPropagation();
|
|
45
|
-
}, children: (0, jsx_runtime_1.jsx)(ui_1.SanitizedHTML, { html: [trackName, minimized ? '(minimized)' : '']
|
|
46
|
-
.filter(f => !!f)
|
|
47
|
-
.join(' ') }) }), (0, jsx_runtime_1.jsx)(TrackLabelMenu_1.default, { track: track })] }));
|
|
48
|
-
}));
|
|
49
|
-
exports.default = TrackLabel;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { LinearGenomeViewModel } from '..';
|
|
2
|
-
import type { BaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
-
type LGV = LinearGenomeViewModel;
|
|
4
|
-
declare const TrackLabelContainer: ({ track, view, }: {
|
|
5
|
-
track: BaseTrackModel;
|
|
6
|
-
view: LGV;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
export default TrackLabelContainer;
|
|
@@ -1,31 +0,0 @@
|
|
|
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 jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const mobx_react_1 = require("mobx-react");
|
|
8
|
-
const mui_1 = require("tss-react/mui");
|
|
9
|
-
const TrackLabel_1 = __importDefault(require("./TrackLabel"));
|
|
10
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
11
|
-
trackLabel: {
|
|
12
|
-
zIndex: 2,
|
|
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.trackLabelsSetting !== 'overlapping' || display.prefersOffset
|
|
27
|
-
? trackLabelOffset
|
|
28
|
-
: trackLabelOverlap;
|
|
29
|
-
return view.trackLabelsSetting !== 'hidden' ? ((0, jsx_runtime_1.jsx)(TrackLabel_1.default, { track: track, className: cx(trackLabel, labelStyle) })) : null;
|
|
30
|
-
});
|
|
31
|
-
exports.default = TrackLabelContainer;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { LinearGenomeViewModel } from '..';
|
|
2
|
-
import type { BaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
-
declare function TrackLabelDragHandle({ trackId, view, track, }: {
|
|
4
|
-
trackId: string;
|
|
5
|
-
track: BaseTrackModel;
|
|
6
|
-
view: LinearGenomeViewModel;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default TrackLabelDragHandle;
|
|
@@ -1,32 +0,0 @@
|
|
|
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 jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const DragIndicator_1 = __importDefault(require("@mui/icons-material/DragIndicator"));
|
|
8
|
-
const mui_1 = require("tss-react/mui");
|
|
9
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
10
|
-
dragHandle: {
|
|
11
|
-
cursor: 'grab',
|
|
12
|
-
},
|
|
13
|
-
dragHandleIcon: {
|
|
14
|
-
display: 'inline-block',
|
|
15
|
-
verticalAlign: 'middle',
|
|
16
|
-
pointerEvents: 'none',
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
function TrackLabelDragHandle({ trackId, view, track, }) {
|
|
20
|
-
const { classes } = useStyles();
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)("span", { draggable: true, className: classes.dragHandle, onDragStart: event => {
|
|
22
|
-
const target = event.currentTarget;
|
|
23
|
-
if (target.parentNode) {
|
|
24
|
-
const parent = target.parentNode;
|
|
25
|
-
event.dataTransfer.setDragImage(parent, 20, 20);
|
|
26
|
-
view.setDraggingTrackId(track.id);
|
|
27
|
-
}
|
|
28
|
-
}, onDragEnd: () => {
|
|
29
|
-
view.setDraggingTrackId(undefined);
|
|
30
|
-
}, "data-testid": `dragHandle-${view.id}-${trackId}`, children: (0, jsx_runtime_1.jsx)(DragIndicator_1.default, { className: classes.dragHandleIcon, fontSize: "small" }) }));
|
|
31
|
-
}
|
|
32
|
-
exports.default = TrackLabelDragHandle;
|
|
@@ -1,93 +0,0 @@
|
|
|
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 jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const CascadingMenuButton_1 = __importDefault(require("@jbrowse/core/ui/CascadingMenuButton"));
|
|
8
|
-
const util_1 = require("@jbrowse/core/util");
|
|
9
|
-
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
10
|
-
const KeyboardArrowDown_1 = __importDefault(require("@mui/icons-material/KeyboardArrowDown"));
|
|
11
|
-
const KeyboardArrowUp_1 = __importDefault(require("@mui/icons-material/KeyboardArrowUp"));
|
|
12
|
-
const KeyboardDoubleArrowDown_1 = __importDefault(require("@mui/icons-material/KeyboardDoubleArrowDown"));
|
|
13
|
-
const KeyboardDoubleArrowUp_1 = __importDefault(require("@mui/icons-material/KeyboardDoubleArrowUp"));
|
|
14
|
-
const Minimize_1 = __importDefault(require("@mui/icons-material/Minimize"));
|
|
15
|
-
const MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
|
|
16
|
-
const PushPin_1 = __importDefault(require("@mui/icons-material/PushPin"));
|
|
17
|
-
const mobx_react_1 = require("mobx-react");
|
|
18
|
-
const TrackLabelMenu = (0, mobx_react_1.observer)(function ({ track, }) {
|
|
19
|
-
var _a;
|
|
20
|
-
const view = (0, util_1.getContainingView)(track);
|
|
21
|
-
const session = (0, util_1.getSession)(track);
|
|
22
|
-
const trackConf = track.configuration;
|
|
23
|
-
const minimized = track.minimized;
|
|
24
|
-
const pinned = track.pinned;
|
|
25
|
-
const { isTopLevelView } = view;
|
|
26
|
-
const items = [
|
|
27
|
-
...(!isTopLevelView
|
|
28
|
-
? []
|
|
29
|
-
: [
|
|
30
|
-
{
|
|
31
|
-
label: pinned ? 'Unpin track' : 'Pin track',
|
|
32
|
-
icon: PushPin_1.default,
|
|
33
|
-
onClick: () => {
|
|
34
|
-
track.setPinned(!pinned);
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
]),
|
|
38
|
-
{
|
|
39
|
-
label: 'Track order',
|
|
40
|
-
type: 'subMenu',
|
|
41
|
-
priority: 2000,
|
|
42
|
-
subMenu: [
|
|
43
|
-
{
|
|
44
|
-
label: minimized ? 'Restore track' : 'Minimize track',
|
|
45
|
-
icon: minimized ? Add_1.default : Minimize_1.default,
|
|
46
|
-
onClick: () => {
|
|
47
|
-
track.setMinimized(!minimized);
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
...(view.tracks.length > 2
|
|
51
|
-
? [
|
|
52
|
-
{
|
|
53
|
-
label: 'Move track to top',
|
|
54
|
-
icon: KeyboardDoubleArrowUp_1.default,
|
|
55
|
-
onClick: () => {
|
|
56
|
-
view.moveTrackToTop(track.id);
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
]
|
|
60
|
-
: []),
|
|
61
|
-
{
|
|
62
|
-
label: 'Move track up',
|
|
63
|
-
icon: KeyboardArrowUp_1.default,
|
|
64
|
-
onClick: () => {
|
|
65
|
-
view.moveTrackUp(track.id);
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
label: 'Move track down',
|
|
70
|
-
icon: KeyboardArrowDown_1.default,
|
|
71
|
-
onClick: () => {
|
|
72
|
-
view.moveTrackDown(track.id);
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
...(view.tracks.length > 2
|
|
76
|
-
? [
|
|
77
|
-
{
|
|
78
|
-
label: 'Move track to bottom',
|
|
79
|
-
icon: KeyboardDoubleArrowDown_1.default,
|
|
80
|
-
onClick: () => {
|
|
81
|
-
view.moveTrackToBottom(track.id);
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
]
|
|
85
|
-
: []),
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
...(((_a = session.getTrackActionMenuItems) === null || _a === void 0 ? void 0 : _a.call(session, trackConf)) || []),
|
|
89
|
-
...track.trackMenuItems(),
|
|
90
|
-
].sort((a, b) => ((b === null || b === void 0 ? void 0 : b.priority) || 0) - ((a === null || a === void 0 ? void 0 : a.priority) || 0));
|
|
91
|
-
return ((0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: items, "data-testid": "track_menu_icon", children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, { fontSize: "small" }) }));
|
|
92
|
-
});
|
|
93
|
-
exports.default = TrackLabelMenu;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { LinearGenomeViewModel } from '..';
|
|
2
|
-
import type { BaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
-
type LGV = LinearGenomeViewModel;
|
|
4
|
-
declare const TrackRenderingContainer: ({ model, track, onDragEnter, }: {
|
|
5
|
-
model: LGV;
|
|
6
|
-
track: BaseTrackModel;
|
|
7
|
-
onDragEnter: () => void;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default TrackRenderingContainer;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
6
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
7
|
-
const mobx_react_1 = require("mobx-react");
|
|
8
|
-
const mui_1 = require("tss-react/mui");
|
|
9
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
10
|
-
renderingComponentContainer: {
|
|
11
|
-
position: 'absolute',
|
|
12
|
-
left: -1,
|
|
13
|
-
height: '100%',
|
|
14
|
-
width: '100%',
|
|
15
|
-
},
|
|
16
|
-
trackRenderingContainer: {
|
|
17
|
-
overflowY: 'auto',
|
|
18
|
-
overflowX: 'hidden',
|
|
19
|
-
whiteSpace: 'nowrap',
|
|
20
|
-
position: 'relative',
|
|
21
|
-
background: 'none',
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
const TrackRenderingContainer = (0, mobx_react_1.observer)(function ({ model, track, onDragEnter, }) {
|
|
25
|
-
const { classes } = useStyles();
|
|
26
|
-
const display = track.displays[0];
|
|
27
|
-
const { height, RenderingComponent, DisplayBlurb } = display;
|
|
28
|
-
const { trackRefs, id, scaleFactor } = model;
|
|
29
|
-
const trackId = (0, configuration_1.getConf)(track, 'trackId');
|
|
30
|
-
const ref = (0, react_1.useRef)(null);
|
|
31
|
-
const minimized = track.minimized;
|
|
32
|
-
(0, react_1.useEffect)(() => {
|
|
33
|
-
if (ref.current) {
|
|
34
|
-
trackRefs[trackId] = ref.current;
|
|
35
|
-
}
|
|
36
|
-
return () => {
|
|
37
|
-
delete trackRefs[trackId];
|
|
38
|
-
};
|
|
39
|
-
}, [trackRefs, trackId]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: classes.trackRenderingContainer, style: {
|
|
41
|
-
height: minimized ? 20 : height,
|
|
42
|
-
}, onScroll: evt => display.setScrollTop(evt.currentTarget.scrollTop), onDragEnter: onDragEnter, "data-testid": `trackRenderingContainer-${id}-${trackId}`, children: !minimized ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { ref: ref, className: classes.renderingComponentContainer, style: {
|
|
43
|
-
transform: scaleFactor !== 1 ? `scaleX(${scaleFactor})` : undefined,
|
|
44
|
-
}, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(ui_1.LoadingEllipses, {}), children: (0, jsx_runtime_1.jsx)(RenderingComponent, { model: display, onHorizontalScroll: model.horizontalScroll }) }) }), DisplayBlurb ? ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
45
|
-
position: 'absolute',
|
|
46
|
-
left: 0,
|
|
47
|
-
top: display.height - 20,
|
|
48
|
-
}, children: (0, jsx_runtime_1.jsx)(DisplayBlurb, { model: display }) })) : null] })) : null }));
|
|
49
|
-
});
|
|
50
|
-
exports.default = TrackRenderingContainer;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { LinearGenomeViewModel } from '..';
|
|
2
|
-
type LGV = LinearGenomeViewModel;
|
|
3
|
-
declare const TracksContainer: ({ children, model, }: {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
model: LGV;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default TracksContainer;
|