@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
package/esm/index.js
CHANGED
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
2
2
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
3
3
|
import { isAbstractMenuManager } from '@jbrowse/core/util';
|
|
4
|
+
import { types } from '@jbrowse/mobx-state-tree';
|
|
4
5
|
import LineStyleIcon from '@mui/icons-material/LineStyle';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import LinearGenomeViewF, { LinearGenomeView, SearchBox, } from
|
|
13
|
-
import ZoomControls from './LinearGenomeView/components/HeaderZoomControls';
|
|
6
|
+
import { BaseLinearDisplay, BaseLinearDisplayComponent, baseLinearDisplayConfigSchema, } from "./BaseLinearDisplay/index.js";
|
|
7
|
+
import BasicTrackF from "./BasicTrack/index.js";
|
|
8
|
+
import FeatureTrackF from "./FeatureTrack/index.js";
|
|
9
|
+
import LaunchLinearGenomeViewF from "./LaunchLinearGenomeView/index.js";
|
|
10
|
+
import LinearBareDisplayF from "./LinearBareDisplay/index.js";
|
|
11
|
+
import LinearBasicDisplayF from "./LinearBasicDisplay/index.js";
|
|
12
|
+
import ZoomControls from "./LinearGenomeView/components/HeaderZoomControls.js";
|
|
13
|
+
import LinearGenomeViewF, { LinearGenomeView, SearchBox, } from "./LinearGenomeView/index.js";
|
|
14
14
|
export default class LinearGenomeViewPlugin extends Plugin {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
}
|
|
15
|
+
name = 'LinearGenomeViewPlugin';
|
|
16
|
+
exports = {
|
|
17
|
+
BaseLinearDisplayComponent,
|
|
18
|
+
BaseLinearDisplay,
|
|
19
|
+
baseLinearDisplayConfigSchema,
|
|
20
|
+
SearchBox,
|
|
21
|
+
ZoomControls,
|
|
22
|
+
LinearGenomeView,
|
|
23
|
+
};
|
|
24
|
+
configurationSchema = ConfigurationSchema('LinearGenomeViewConfigSchema', {
|
|
25
|
+
trackLabels: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
defaultValue: 'overlapping',
|
|
28
|
+
model: types.enumeration('trackLabelOptions', [
|
|
29
|
+
'offset',
|
|
30
|
+
'overlapping',
|
|
31
|
+
'hidden',
|
|
32
|
+
]),
|
|
33
|
+
},
|
|
34
|
+
});
|
|
38
35
|
install(pluginManager) {
|
|
39
36
|
FeatureTrackF(pluginManager);
|
|
40
37
|
BasicTrackF(pluginManager);
|
|
@@ -55,9 +52,11 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
}
|
|
58
|
-
export { configSchemaFactory as linearBareDisplayConfigSchemaFactory, stateModelFactory as linearBareDisplayStateModelFactory, } from
|
|
59
|
-
export { BaseLinearDisplay, BaseLinearDisplayComponent, BlockMsg, FeatureDensityMixin, TooLargeMessage, TrackHeightMixin, baseLinearDisplayConfigSchema, } from
|
|
60
|
-
export { RefNameAutocomplete, SearchBox, } from
|
|
61
|
-
export { SVGRuler, SVGTracks, renderToSvg, } from
|
|
62
|
-
export { totalHeight } from
|
|
63
|
-
export { configSchema as linearBasicDisplayConfigSchemaFactory, modelFactory as linearBasicDisplayModelFactory, } from
|
|
55
|
+
export { configSchemaFactory as linearBareDisplayConfigSchemaFactory, stateModelFactory as linearBareDisplayStateModelFactory, } from "./LinearBareDisplay/index.js";
|
|
56
|
+
export { BaseLinearDisplay, BaseLinearDisplayComponent, BlockMsg, FeatureDensityMixin, FloatingLegend, NonBlockCanvasDisplayComponent, NonBlockCanvasDisplayMixin, SVGLegend, TooLargeMessage, TrackHeightMixin, baseLinearDisplayConfigSchema, calculateSvgLegendWidth, createSubfeatureLabelMetadata, drawCanvasImageData, } from "./BaseLinearDisplay/index.js";
|
|
57
|
+
export { RefNameAutocomplete, SearchBox, } from "./LinearGenomeView/index.js";
|
|
58
|
+
export { SVGGridlines, SVGRuler, SVGTracks, renderToSvg, } from "./LinearGenomeView/svgcomponents/SVGLinearGenomeView.js";
|
|
59
|
+
export { totalHeight } from "./LinearGenomeView/svgcomponents/util.js";
|
|
60
|
+
export { configSchema as linearBasicDisplayConfigSchemaFactory, modelFactory as linearBasicDisplayModelFactory, } from "./LinearBasicDisplay/index.js";
|
|
61
|
+
export { configSchema as linearFeatureDisplayConfigSchemaFactory, modelFactory as linearFeatureDisplayModelFactory, } from "./LinearFeatureDisplay/index.js";
|
|
62
|
+
export { default as LinearBasicDisplayComponent } from "./LinearBasicDisplay/components/LinearBasicDisplayComponent.js";
|
package/esm/searchUtils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
2
|
-
import type { LinearGenomeViewModel } from './LinearGenomeView';
|
|
2
|
+
import type { LinearGenomeViewModel } from './LinearGenomeView/index.ts';
|
|
3
3
|
import type { SearchScope } from '@jbrowse/core/TextSearch/TextSearchManager';
|
|
4
4
|
import type { Assembly } from '@jbrowse/core/assemblyManager/assembly';
|
|
5
5
|
import type { SearchType } from '@jbrowse/core/data_adapters/BaseAdapter';
|
package/esm/searchUtils.js
CHANGED
|
@@ -48,15 +48,17 @@ export function checkRef(str, allRefs) {
|
|
|
48
48
|
(allRefs.includes(ref) && !Number.isNaN(Number.parseInt(rest, 10))));
|
|
49
49
|
}
|
|
50
50
|
export async function fetchResults({ queryString, searchType, searchScope, rankSearchResults, textSearchManager, assembly, }) {
|
|
51
|
-
var _a;
|
|
52
51
|
if (!textSearchManager) {
|
|
53
52
|
console.warn('No text search manager');
|
|
54
53
|
}
|
|
55
|
-
const textSearchResults = await
|
|
54
|
+
const textSearchResults = await textSearchManager?.search({
|
|
56
55
|
queryString,
|
|
57
56
|
searchType,
|
|
58
|
-
}, searchScope, rankSearchResults)
|
|
59
|
-
const refNameResults =
|
|
57
|
+
}, searchScope, rankSearchResults);
|
|
58
|
+
const refNameResults = assembly?.allRefNames
|
|
59
|
+
?.filter(ref => ref.toLowerCase().startsWith(queryString.toLowerCase()))
|
|
60
|
+
.slice(0, 10)
|
|
61
|
+
.map(r => new BaseResult({ label: r }));
|
|
60
62
|
return dedupe([...(refNameResults || []), ...(textSearchResults || [])], elt => elt.getId());
|
|
61
63
|
}
|
|
62
64
|
export function splitLast(str, split) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-linear-genome-view",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "JBrowse 2 linear genome view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -15,39 +15,21 @@
|
|
|
15
15
|
"directory": "plugins/linear-genome-view"
|
|
16
16
|
},
|
|
17
17
|
"author": "JBrowse Team",
|
|
18
|
-
"
|
|
19
|
-
"distModule": "esm/index.js",
|
|
20
|
-
"srcMain": "src/index.ts",
|
|
21
|
-
"srcModule": "src/index.ts",
|
|
22
|
-
"main": "dist/index.js",
|
|
18
|
+
"main": "esm/index.js",
|
|
23
19
|
"files": [
|
|
24
|
-
"dist",
|
|
25
20
|
"esm"
|
|
26
21
|
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"prebuild": "npm run clean",
|
|
29
|
-
"build": "npm-run-all build:*",
|
|
30
|
-
"build:esm": "tsc --build tsconfig.build.esm.json",
|
|
31
|
-
"build:commonjs": "tsc --build tsconfig.build.commonjs.json",
|
|
32
|
-
"clean": "rimraf dist esm *.tsbuildinfo",
|
|
33
|
-
"test": "cd ../..; jest --passWithNoTests plugins/linear-genome-view",
|
|
34
|
-
"prepublishOnly": "yarn test",
|
|
35
|
-
"prepack": "yarn build && yarn useDist",
|
|
36
|
-
"postpack": "yarn useSrc",
|
|
37
|
-
"useDist": "node ../../scripts/useDist.js",
|
|
38
|
-
"useSrc": "node ../../scripts/useSrc.js"
|
|
39
|
-
},
|
|
40
22
|
"dependencies": {
|
|
41
|
-
"@jbrowse/
|
|
42
|
-
"@mui/icons-material": "^7.
|
|
43
|
-
"@mui/material": "^7.
|
|
44
|
-
"@types/file-saver": "^2.0.
|
|
45
|
-
"copy-to-clipboard": "^3.3.
|
|
46
|
-
"file-saver": "^2.0.
|
|
47
|
-
"mobx": "^6.
|
|
48
|
-
"mobx-react": "^9.
|
|
49
|
-
"
|
|
50
|
-
"
|
|
23
|
+
"@jbrowse/mobx-state-tree": "^5.5.0",
|
|
24
|
+
"@mui/icons-material": "^7.3.6",
|
|
25
|
+
"@mui/material": "^7.3.6",
|
|
26
|
+
"@types/file-saver-es": "^2.0.3",
|
|
27
|
+
"copy-to-clipboard": "^3.3.3",
|
|
28
|
+
"file-saver-es": "^2.0.5",
|
|
29
|
+
"mobx": "^6.15.0",
|
|
30
|
+
"mobx-react": "^9.2.1",
|
|
31
|
+
"@jbrowse/product-core": "^4.0.0",
|
|
32
|
+
"@jbrowse/core": "^4.0.0"
|
|
51
33
|
},
|
|
52
34
|
"peerDependencies": {
|
|
53
35
|
"react": ">=18.0.0",
|
|
@@ -56,6 +38,19 @@
|
|
|
56
38
|
"publishConfig": {
|
|
57
39
|
"access": "public"
|
|
58
40
|
},
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
41
|
+
"sideEffects": false,
|
|
42
|
+
"scripts": {
|
|
43
|
+
"prebuild": "pnpm clean",
|
|
44
|
+
"build": "pnpm run /^build:/",
|
|
45
|
+
"build:esm": "tsc -p tsconfig.build.esm.json",
|
|
46
|
+
"clean": "rimraf esm *.tsbuildinfo",
|
|
47
|
+
"test": "cd ../..; jest --passWithNoTests plugins/linear-genome-view"
|
|
48
|
+
},
|
|
49
|
+
"types": "esm/index.d.ts",
|
|
50
|
+
"exports": {
|
|
51
|
+
".": {
|
|
52
|
+
"types": "./esm/index.d.ts",
|
|
53
|
+
"import": "./esm/index.js"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
|
|
2
|
-
declare const BaseLinearDisplay: (props: {
|
|
3
|
-
model: BaseLinearDisplayModel;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default BaseLinearDisplay;
|
|
7
|
-
export { default as Tooltip } from './Tooltip';
|
|
8
|
-
export { default as BlockMsg } from './BlockMsg';
|
|
@@ -1,72 +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.BlockMsg = exports.Tooltip = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
10
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
11
|
-
const mobx_react_1 = require("mobx-react");
|
|
12
|
-
const mui_1 = require("tss-react/mui");
|
|
13
|
-
const LinearBlocks_1 = __importDefault(require("./LinearBlocks"));
|
|
14
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
15
|
-
display: {
|
|
16
|
-
position: 'relative',
|
|
17
|
-
whiteSpace: 'nowrap',
|
|
18
|
-
textAlign: 'left',
|
|
19
|
-
width: '100%',
|
|
20
|
-
minHeight: '100%',
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
const BaseLinearDisplay = (0, mobx_react_1.observer)(function (props) {
|
|
24
|
-
const { classes } = useStyles();
|
|
25
|
-
const ref = (0, react_1.useRef)(null);
|
|
26
|
-
const [clientRect, setClientRect] = (0, react_1.useState)();
|
|
27
|
-
const [offsetMouseCoord, setOffsetMouseCoord] = (0, react_1.useState)([0, 0]);
|
|
28
|
-
const [clientMouseCoord, setClientMouseCoord] = (0, react_1.useState)([0, 0]);
|
|
29
|
-
const [contextCoord, setContextCoord] = (0, react_1.useState)();
|
|
30
|
-
const { model, children } = props;
|
|
31
|
-
const { TooltipComponent, DisplayMessageComponent, height } = model;
|
|
32
|
-
const items = model.contextMenuItems();
|
|
33
|
-
const open = Boolean(contextCoord) && items.length > 0;
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, "data-testid": `display-${(0, configuration_1.getConf)(model, 'displayId')}`, className: classes.display, onContextMenu: event => {
|
|
35
|
-
event.preventDefault();
|
|
36
|
-
if (contextCoord) {
|
|
37
|
-
setContextCoord(undefined);
|
|
38
|
-
}
|
|
39
|
-
else if (ref.current) {
|
|
40
|
-
setContextCoord([event.clientX, event.clientY]);
|
|
41
|
-
}
|
|
42
|
-
}, onMouseMove: event => {
|
|
43
|
-
if (!ref.current) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const rect = ref.current.getBoundingClientRect();
|
|
47
|
-
const { left, top } = rect;
|
|
48
|
-
setOffsetMouseCoord([event.clientX - left, event.clientY - top]);
|
|
49
|
-
setClientMouseCoord([event.clientX, event.clientY]);
|
|
50
|
-
setClientRect(rect);
|
|
51
|
-
}, children: [DisplayMessageComponent ? ((0, jsx_runtime_1.jsx)(DisplayMessageComponent, { model: model })) : ((0, jsx_runtime_1.jsx)(LinearBlocks_1.default, { ...props })), children, (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(TooltipComponent, { model: model, height: height, offsetMouseCoord: offsetMouseCoord, clientMouseCoord: clientMouseCoord, clientRect: clientRect, mouseCoord: offsetMouseCoord }) }), open ? ((0, jsx_runtime_1.jsx)(ui_1.Menu, { open: true, onMenuItemClick: (_, callback) => {
|
|
52
|
-
callback();
|
|
53
|
-
setContextCoord(undefined);
|
|
54
|
-
}, onClose: () => {
|
|
55
|
-
setContextCoord(undefined);
|
|
56
|
-
model.setContextMenuFeature(undefined);
|
|
57
|
-
}, slotProps: {
|
|
58
|
-
transition: {
|
|
59
|
-
onExit: () => {
|
|
60
|
-
setContextCoord(undefined);
|
|
61
|
-
model.setContextMenuFeature(undefined);
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
}, anchorReference: "anchorPosition", anchorPosition: contextCoord
|
|
65
|
-
? { top: contextCoord[1], left: contextCoord[0] }
|
|
66
|
-
: undefined, menuItems: items })) : null] }));
|
|
67
|
-
});
|
|
68
|
-
exports.default = BaseLinearDisplay;
|
|
69
|
-
var Tooltip_1 = require("./Tooltip");
|
|
70
|
-
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return __importDefault(Tooltip_1).default; } });
|
|
71
|
-
var BlockMsg_1 = require("./BlockMsg");
|
|
72
|
-
Object.defineProperty(exports, "BlockMsg", { enumerable: true, get: function () { return __importDefault(BlockMsg_1).default; } });
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
|
|
2
|
-
declare const ContentBlock: ({ block, children, }: {
|
|
3
|
-
block: BaseBlock;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function ElidedBlock({ width }: {
|
|
7
|
-
width: number;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function InterRegionPaddingBlock({ boundary, width, style, }: {
|
|
10
|
-
boundary: boolean;
|
|
11
|
-
width: number;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export { ContentBlock, ElidedBlock, InterRegionPaddingBlock };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContentBlock = void 0;
|
|
4
|
-
exports.ElidedBlock = ElidedBlock;
|
|
5
|
-
exports.InterRegionPaddingBlock = InterRegionPaddingBlock;
|
|
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 useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
10
|
-
contentBlock: {
|
|
11
|
-
position: 'relative',
|
|
12
|
-
minHeight: '100%',
|
|
13
|
-
boxSizing: 'border-box',
|
|
14
|
-
whiteSpace: 'nowrap',
|
|
15
|
-
overflow: 'hidden',
|
|
16
|
-
},
|
|
17
|
-
elidedBlock: {
|
|
18
|
-
minHeight: '100%',
|
|
19
|
-
boxSizing: 'border-box',
|
|
20
|
-
backgroundColor: '#999',
|
|
21
|
-
backgroundImage: 'repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255,255,255,.5) 1px, rgba(255,255,255,.5) 3px)',
|
|
22
|
-
},
|
|
23
|
-
interRegionPaddingBlock: {
|
|
24
|
-
minHeight: '100%',
|
|
25
|
-
backgroundColor: theme.palette.text.disabled,
|
|
26
|
-
},
|
|
27
|
-
boundaryPaddingBlock: {
|
|
28
|
-
minHeight: '100%',
|
|
29
|
-
backgroundColor: theme.palette.action.disabledBackground,
|
|
30
|
-
},
|
|
31
|
-
}));
|
|
32
|
-
const ContentBlock = (0, mobx_react_1.observer)(function ({ block, children, }) {
|
|
33
|
-
const { classes } = useStyles();
|
|
34
|
-
const { widthPx } = block;
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: { width: widthPx }, className: classes.contentBlock, children: children }));
|
|
36
|
-
});
|
|
37
|
-
exports.ContentBlock = ContentBlock;
|
|
38
|
-
function ElidedBlock({ width }) {
|
|
39
|
-
const { classes } = useStyles();
|
|
40
|
-
return (0, jsx_runtime_1.jsx)("div", { className: classes.elidedBlock, style: { width } });
|
|
41
|
-
}
|
|
42
|
-
function InterRegionPaddingBlock({ boundary, width, style = {}, }) {
|
|
43
|
-
const { classes } = useStyles();
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
45
|
-
...style,
|
|
46
|
-
width,
|
|
47
|
-
}, className: boundary
|
|
48
|
-
? classes.boundaryPaddingBlock
|
|
49
|
-
: classes.interRegionPaddingBlock }));
|
|
50
|
-
}
|
|
@@ -1,27 +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 ErrorMessageStackTraceDialog_1 = __importDefault(require("@jbrowse/core/ui/ErrorMessageStackTraceDialog"));
|
|
8
|
-
const util_1 = require("@jbrowse/core/util");
|
|
9
|
-
const Refresh_1 = __importDefault(require("@mui/icons-material/Refresh"));
|
|
10
|
-
const Report_1 = __importDefault(require("@mui/icons-material/Report"));
|
|
11
|
-
const material_1 = require("@mui/material");
|
|
12
|
-
const mobx_react_1 = require("mobx-react");
|
|
13
|
-
const BlockMsg_1 = __importDefault(require("./BlockMsg"));
|
|
14
|
-
const BlockErrorMessage = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)(BlockMsg_1.default, { message: `${model.error}`, severity: "error", action: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: "Reload track", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { "data-testid": "reload_button", onClick: () => {
|
|
16
|
-
model.reload();
|
|
17
|
-
}, children: (0, jsx_runtime_1.jsx)(Refresh_1.default, {}) }) }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: "Show stack trace", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => {
|
|
18
|
-
(0, util_1.getSession)(model).queueDialog(onClose => [
|
|
19
|
-
ErrorMessageStackTraceDialog_1.default,
|
|
20
|
-
{
|
|
21
|
-
onClose,
|
|
22
|
-
error: model.error,
|
|
23
|
-
},
|
|
24
|
-
]);
|
|
25
|
-
}, children: (0, jsx_runtime_1.jsx)(Report_1.default, {}) }) })] }) }));
|
|
26
|
-
});
|
|
27
|
-
exports.default = BlockErrorMessage;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
5
|
-
const mobx_react_1 = require("mobx-react");
|
|
6
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
7
|
-
const mui_1 = require("tss-react/mui");
|
|
8
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => {
|
|
9
|
-
const bg = theme.palette.action.disabledBackground;
|
|
10
|
-
return {
|
|
11
|
-
loading: {
|
|
12
|
-
paddingLeft: '0.6em',
|
|
13
|
-
backgroundColor: theme.palette.background.default,
|
|
14
|
-
backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${bg} 5px, ${bg} 10px)`,
|
|
15
|
-
textAlign: 'center',
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
});
|
|
19
|
-
const BlockLoadingMessage = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
20
|
-
const { classes } = useStyles();
|
|
21
|
-
const { status: blockStatus } = model;
|
|
22
|
-
const { message: displayStatus } = (0, mobx_state_tree_1.getParent)(model, 2);
|
|
23
|
-
const status = displayStatus || blockStatus;
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: classes.loading, children: (0, jsx_runtime_1.jsx)(ui_1.LoadingEllipses, { message: status }) }));
|
|
25
|
-
});
|
|
26
|
-
exports.default = BlockLoadingMessage;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = BlockMsg;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const mui_1 = require("tss-react/mui");
|
|
7
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
8
|
-
ellipses: {
|
|
9
|
-
textOverflow: 'ellipsis',
|
|
10
|
-
overflow: 'hidden',
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
function BlockMsg({ message, severity, action, }) {
|
|
14
|
-
const { classes } = useStyles();
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Alert, { severity: severity, action: action, classes: {
|
|
16
|
-
message: classes.ellipses,
|
|
17
|
-
}, onMouseDown: event => {
|
|
18
|
-
event.stopPropagation();
|
|
19
|
-
}, children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: message, children: (0, jsx_runtime_1.jsx)("div", { children: message }) }) }));
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
|
|
2
|
-
declare const RenderedBlocks: ({ model, }: {
|
|
3
|
-
model: BaseLinearDisplayModel;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export { RenderedBlocks };
|
|
6
|
-
declare const LinearBlocks: ({ model, }: {
|
|
7
|
-
model: BaseLinearDisplayModel;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default LinearBlocks;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RenderedBlocks = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const util_1 = require("@jbrowse/core/util");
|
|
6
|
-
const mobx_react_1 = require("mobx-react");
|
|
7
|
-
const mui_1 = require("tss-react/mui");
|
|
8
|
-
const Block_1 = require("./Block");
|
|
9
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
10
|
-
linearBlocks: {
|
|
11
|
-
whiteSpace: 'nowrap',
|
|
12
|
-
textAlign: 'left',
|
|
13
|
-
position: 'absolute',
|
|
14
|
-
minHeight: '100%',
|
|
15
|
-
display: 'flex',
|
|
16
|
-
},
|
|
17
|
-
heightOverflowed: {
|
|
18
|
-
position: 'absolute',
|
|
19
|
-
color: 'rgb(77,77,77)',
|
|
20
|
-
borderBottom: '2px solid rgb(77,77,77)',
|
|
21
|
-
textShadow: 'white 0px 0px 1px',
|
|
22
|
-
whiteSpace: 'nowrap',
|
|
23
|
-
width: '100%',
|
|
24
|
-
fontWeight: 'bold',
|
|
25
|
-
textAlign: 'center',
|
|
26
|
-
zIndex: 999,
|
|
27
|
-
boxSizing: 'border-box',
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
const RenderedBlocks = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
31
|
-
const { classes } = useStyles();
|
|
32
|
-
const { blockDefinitions, blockState } = model;
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: blockDefinitions.map(block => {
|
|
34
|
-
const key = `${model.id}-${block.key}`;
|
|
35
|
-
if (block.type === 'ContentBlock') {
|
|
36
|
-
const state = blockState.get(block.key);
|
|
37
|
-
return ((0, jsx_runtime_1.jsxs)(Block_1.ContentBlock, { block: block, children: [(state === null || state === void 0 ? void 0 : state.ReactComponent) ? ((0, jsx_runtime_1.jsx)(state.ReactComponent, { model: state })) : null, (state === null || state === void 0 ? void 0 : state.maxHeightReached) ? ((0, jsx_runtime_1.jsx)("div", { className: classes.heightOverflowed, style: {
|
|
38
|
-
top: state.layout.getTotalHeight() - 16,
|
|
39
|
-
pointerEvents: 'none',
|
|
40
|
-
height: 16,
|
|
41
|
-
}, children: "Max height reached" })) : null] }, key));
|
|
42
|
-
}
|
|
43
|
-
if (block.type === 'ElidedBlock') {
|
|
44
|
-
return (0, jsx_runtime_1.jsx)(Block_1.ElidedBlock, { width: block.widthPx }, key);
|
|
45
|
-
}
|
|
46
|
-
if (block.type === 'InterRegionPaddingBlock') {
|
|
47
|
-
return ((0, jsx_runtime_1.jsx)(Block_1.InterRegionPaddingBlock, { width: block.widthPx, style: { background: 'none' }, boundary: block.variant === 'boundary' }, key));
|
|
48
|
-
}
|
|
49
|
-
throw new Error(`invalid block type ${JSON.stringify(block)}`);
|
|
50
|
-
}) }));
|
|
51
|
-
});
|
|
52
|
-
exports.RenderedBlocks = RenderedBlocks;
|
|
53
|
-
const LinearBlocks = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
54
|
-
const { classes } = useStyles();
|
|
55
|
-
const { blockDefinitions } = model;
|
|
56
|
-
const viewModel = (0, util_1.getContainingView)(model);
|
|
57
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: classes.linearBlocks, style: {
|
|
58
|
-
left: blockDefinitions.offsetPx - viewModel.offsetPx,
|
|
59
|
-
}, children: (0, jsx_runtime_1.jsx)(RenderedBlocks, { model: model }) }));
|
|
60
|
-
});
|
|
61
|
-
exports.default = LinearBlocks;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const ServerSideRenderedBlockContent: ({ model, }: {
|
|
2
|
-
model: {
|
|
3
|
-
error?: unknown;
|
|
4
|
-
reload: () => void;
|
|
5
|
-
message: React.ReactNode;
|
|
6
|
-
filled?: boolean;
|
|
7
|
-
status?: string;
|
|
8
|
-
reactElement?: React.ReactElement;
|
|
9
|
-
};
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
11
|
-
export default ServerSideRenderedBlockContent;
|
|
@@ -1,59 +0,0 @@
|
|
|
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 () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
-
const react_1 = require("react");
|
|
41
|
-
const mobx_react_1 = require("mobx-react");
|
|
42
|
-
const BlockLoadingMessage_1 = __importDefault(require("./BlockLoadingMessage"));
|
|
43
|
-
const BlockMsg_1 = __importDefault(require("./BlockMsg"));
|
|
44
|
-
const BlockErrorMessage = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./BlockErrorMessage'))));
|
|
45
|
-
const ServerSideRenderedBlockContent = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
46
|
-
if (model.error) {
|
|
47
|
-
return ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(BlockErrorMessage, { model: model }) }));
|
|
48
|
-
}
|
|
49
|
-
else if (model.message) {
|
|
50
|
-
return (0, react_1.isValidElement)(model.message) ? (model.message) : ((0, jsx_runtime_1.jsx)(BlockMsg_1.default, { message: `${model.message}`, severity: "info" }));
|
|
51
|
-
}
|
|
52
|
-
else if (!model.filled) {
|
|
53
|
-
return (0, jsx_runtime_1.jsx)(BlockLoadingMessage_1.default, { model: model });
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return model.reactElement;
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
exports.default = ServerSideRenderedBlockContent;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
-
declare const TooLargeMessage: ({ model, }: {
|
|
3
|
-
model: {
|
|
4
|
-
regionTooLargeReason: string;
|
|
5
|
-
featureDensityStats?: FeatureDensityStats;
|
|
6
|
-
setFeatureDensityStatsLimit: (s?: FeatureDensityStats) => void;
|
|
7
|
-
reload: () => void;
|
|
8
|
-
};
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default TooLargeMessage;
|
|
@@ -1,25 +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 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 BlockMsg_1 = __importDefault(require("../components/BlockMsg"));
|
|
11
|
-
const TooLargeMessage = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
12
|
-
const { regionTooLargeReason } = model;
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(BlockMsg_1.default, { severity: "warning", action: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => {
|
|
14
|
-
if ((0, mobx_state_tree_1.isAlive)(model)) {
|
|
15
|
-
model.setFeatureDensityStatsLimit(model.featureDensityStats);
|
|
16
|
-
model.reload();
|
|
17
|
-
}
|
|
18
|
-
}, children: "Force load" }), message: [
|
|
19
|
-
regionTooLargeReason,
|
|
20
|
-
'Zoom in to see features or force load (may be slow)',
|
|
21
|
-
]
|
|
22
|
-
.filter(f => !!f)
|
|
23
|
-
.join('. ') }));
|
|
24
|
-
});
|
|
25
|
-
exports.default = TooLargeMessage;
|