@jbrowse/plugin-linear-genome-view 4.3.0 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/FeatureTrack/configSchema.d.ts +104 -65
- package/esm/FeatureTrack/configSchema.js +47 -1
- package/esm/FeatureTrack/index.js +1 -1
- package/esm/LaunchLinearGenomeView/index.d.ts +14 -0
- package/esm/LaunchLinearGenomeView/index.js +6 -12
- package/esm/LinearGenomeView/afterAttach.d.ts +20 -2
- package/esm/LinearGenomeView/afterAttach.js +250 -121
- package/esm/LinearGenomeView/components/CenterLine.d.ts +1 -1
- package/esm/LinearGenomeView/components/CenterLine.js +16 -7
- package/esm/LinearGenomeView/components/ConnectedHoverHighlight.d.ts +7 -0
- package/esm/LinearGenomeView/components/ConnectedHoverHighlight.js +22 -0
- package/esm/LinearGenomeView/components/CrisprGuidePanel.d.ts +3 -0
- package/esm/LinearGenomeView/components/CrisprGuidePanel.js +144 -0
- package/esm/LinearGenomeView/components/Cytobands.d.ts +6 -6
- package/esm/LinearGenomeView/components/Cytobands.js +76 -53
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +7 -3
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +11 -67
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +5 -9
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +84 -88
- package/esm/LinearGenomeView/components/Gridlines.d.ts +1 -1
- package/esm/LinearGenomeView/components/Gridlines.js +29 -58
- package/esm/LinearGenomeView/components/Header.d.ts +1 -1
- package/esm/LinearGenomeView/components/Header.js +32 -16
- package/esm/LinearGenomeView/components/HeaderClearHighlightButton.d.ts +21 -0
- package/esm/LinearGenomeView/components/HeaderClearHighlightButton.js +35 -0
- package/esm/LinearGenomeView/components/HeaderPanControls.d.ts +3 -2
- package/esm/LinearGenomeView/components/HeaderPanControls.js +16 -7
- package/esm/LinearGenomeView/components/HeaderRegionWidth.d.ts +1 -1
- package/esm/LinearGenomeView/components/HeaderRegionWidth.js +9 -6
- package/esm/LinearGenomeView/components/HeaderSearchBoxRow.d.ts +6 -0
- package/esm/LinearGenomeView/components/HeaderSearchBoxRow.js +27 -0
- package/esm/LinearGenomeView/components/HeaderSearchBoxes.d.ts +5 -0
- package/esm/LinearGenomeView/components/HeaderSearchBoxes.js +28 -0
- package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.d.ts +3 -2
- package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.js +11 -4
- package/esm/LinearGenomeView/components/HeaderZoomControls.d.ts +3 -2
- package/esm/LinearGenomeView/components/HeaderZoomControls.js +67 -51
- package/esm/LinearGenomeView/components/Highlight.d.ts +1 -1
- package/esm/LinearGenomeView/components/Highlight.js +19 -23
- package/esm/LinearGenomeView/components/HighlightBand.d.ts +3 -2
- package/esm/LinearGenomeView/components/HighlightBand.js +25 -8
- package/esm/LinearGenomeView/components/HighlightChip.d.ts +9 -0
- package/esm/LinearGenomeView/components/HighlightChip.js +15 -0
- package/esm/LinearGenomeView/components/HoverPositionHighlight.d.ts +12 -0
- package/esm/LinearGenomeView/components/HoverPositionHighlight.js +25 -0
- package/esm/LinearGenomeView/components/ImportForm.d.ts +3 -4
- package/esm/LinearGenomeView/components/ImportForm.js +95 -61
- package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js +6 -5
- package/esm/LinearGenomeView/components/LinearGenomeViewContainer.d.ts +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeViewContainer.js +89 -30
- package/esm/LinearGenomeView/components/MiniControls.d.ts +1 -1
- package/esm/LinearGenomeView/components/MiniControls.js +13 -10
- package/esm/LinearGenomeView/components/MotifListPanel.d.ts +3 -0
- package/esm/LinearGenomeView/components/MotifListPanel.js +59 -0
- package/esm/LinearGenomeView/components/NavigationAnnouncer.d.ts +32 -0
- package/esm/LinearGenomeView/components/NavigationAnnouncer.js +51 -0
- package/esm/LinearGenomeView/components/NoTracksActiveButton.d.ts +1 -1
- package/esm/LinearGenomeView/components/NoTracksActiveButton.js +1 -1
- package/esm/LinearGenomeView/components/OverviewHighlight.d.ts +2 -4
- package/esm/LinearGenomeView/components/OverviewHighlight.js +23 -44
- package/esm/LinearGenomeView/components/OverviewHighlightBand.d.ts +9 -0
- package/esm/LinearGenomeView/components/OverviewHighlightBand.js +26 -0
- package/esm/LinearGenomeView/components/OverviewRubberband.d.ts +3 -3
- package/esm/LinearGenomeView/components/OverviewRubberband.js +44 -57
- package/esm/LinearGenomeView/components/OverviewRubberbandHoverTooltip.d.ts +4 -5
- package/esm/LinearGenomeView/components/OverviewRubberbandHoverTooltip.js +13 -20
- package/esm/LinearGenomeView/components/OverviewScalebar.d.ts +3 -2
- package/esm/LinearGenomeView/components/OverviewScalebar.js +84 -79
- package/esm/LinearGenomeView/components/OverviewScalebarPolygon.d.ts +19 -5
- package/esm/LinearGenomeView/components/OverviewScalebarPolygon.js +55 -32
- package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.d.ts +4 -5
- package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.js +16 -18
- package/esm/LinearGenomeView/components/PaddingBlocks.d.ts +7 -0
- package/esm/LinearGenomeView/components/PaddingBlocks.js +61 -0
- package/esm/LinearGenomeView/components/RangeSelectOverlay.d.ts +9 -0
- package/esm/LinearGenomeView/components/RangeSelectOverlay.js +20 -0
- package/esm/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +2 -3
- package/esm/LinearGenomeView/components/RegionWidthEditorDialog.js +19 -26
- package/esm/LinearGenomeView/components/Rubberband.d.ts +1 -1
- package/esm/LinearGenomeView/components/Rubberband.js +13 -16
- package/esm/LinearGenomeView/components/SVGHighlightBand.d.ts +10 -0
- package/esm/LinearGenomeView/components/SVGHighlightBand.js +9 -0
- package/esm/LinearGenomeView/components/Scalebar.d.ts +2 -2
- package/esm/LinearGenomeView/components/Scalebar.js +16 -21
- package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +1 -1
- package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.js +54 -35
- package/esm/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +1 -1
- package/esm/LinearGenomeView/components/ScalebarRefNameLabels.js +142 -126
- package/esm/LinearGenomeView/components/SearchBox.d.ts +22 -2
- package/esm/LinearGenomeView/components/SearchBox.js +58 -66
- package/esm/LinearGenomeView/components/SearchPanelForm.d.ts +9 -0
- package/esm/LinearGenomeView/components/SearchPanelForm.js +18 -0
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +3 -3
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +5 -7
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +4 -3
- package/esm/LinearGenomeView/components/SearchResultsTable.js +45 -53
- package/esm/LinearGenomeView/components/SequenceFeatureHoverHighlight.d.ts +5 -0
- package/esm/LinearGenomeView/components/SequenceFeatureHoverHighlight.js +37 -0
- package/esm/LinearGenomeView/components/SequenceFeatureHoverHighlightExtension.d.ts +2 -0
- package/esm/LinearGenomeView/components/SequenceFeatureHoverHighlightExtension.js +5 -0
- package/esm/LinearGenomeView/components/SequencePatternPanel.d.ts +3 -0
- package/esm/LinearGenomeView/components/SequencePatternPanel.js +42 -0
- package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +2 -2
- package/esm/LinearGenomeView/components/SequenceSearchDialog.js +31 -53
- package/esm/LinearGenomeView/components/StrandCheckboxes.d.ts +8 -0
- package/esm/LinearGenomeView/components/StrandCheckboxes.js +13 -0
- package/esm/LinearGenomeView/components/TrackContainer.d.ts +1 -1
- package/esm/LinearGenomeView/components/TrackContainer.js +83 -39
- package/esm/LinearGenomeView/components/TrackLabel.d.ts +2 -3
- package/esm/LinearGenomeView/components/TrackLabel.js +11 -24
- package/esm/LinearGenomeView/components/TrackLabelButtons.d.ts +7 -0
- package/esm/LinearGenomeView/components/TrackLabelButtons.js +33 -0
- package/esm/LinearGenomeView/components/TrackLabelDragHandle.d.ts +2 -5
- package/esm/LinearGenomeView/components/TrackLabelDragHandle.js +6 -2
- package/esm/LinearGenomeView/components/TrackLabelMenu.d.ts +1 -1
- package/esm/LinearGenomeView/components/TrackLabelMenu.js +32 -85
- package/esm/LinearGenomeView/components/TrackLabelRefNameWarning.d.ts +22 -0
- package/esm/LinearGenomeView/components/TrackLabelRefNameWarning.js +46 -0
- package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +1 -1
- package/esm/LinearGenomeView/components/TrackRenderingContainer.js +72 -18
- package/esm/LinearGenomeView/components/TracksContainer.d.ts +1 -1
- package/esm/LinearGenomeView/components/TracksContainer.js +65 -32
- package/esm/LinearGenomeView/components/VerticalGuide.d.ts +1 -1
- package/esm/LinearGenomeView/components/VerticalGuide.js +6 -13
- package/esm/LinearGenomeView/components/ZoomButton.d.ts +7 -0
- package/esm/LinearGenomeView/components/ZoomButton.js +27 -0
- package/esm/LinearGenomeView/components/ZoomTransform.d.ts +9 -0
- package/esm/LinearGenomeView/components/ZoomTransform.js +37 -0
- package/esm/LinearGenomeView/components/defaultMotifs.d.ts +1 -0
- package/esm/LinearGenomeView/components/defaultMotifs.js +22 -0
- package/esm/LinearGenomeView/components/fetchSequence.d.ts +7 -8
- package/esm/LinearGenomeView/components/fetchSequence.js +17 -9
- package/esm/LinearGenomeView/components/recentLocationsMenu.d.ts +15 -0
- package/esm/LinearGenomeView/components/recentLocationsMenu.js +36 -0
- package/esm/LinearGenomeView/components/searchModes.d.ts +13 -0
- package/esm/LinearGenomeView/components/searchModes.js +22 -0
- package/esm/LinearGenomeView/components/trackLabelMenuItems.d.ts +7 -0
- package/esm/LinearGenomeView/components/trackLabelMenuItems.js +67 -0
- package/esm/LinearGenomeView/components/useRangeSelect.d.ts +11 -66
- package/esm/LinearGenomeView/components/useRangeSelect.js +82 -91
- package/esm/LinearGenomeView/components/useSearchBoxPrefs.d.ts +26 -0
- package/esm/LinearGenomeView/components/useSearchBoxPrefs.js +58 -0
- package/esm/LinearGenomeView/components/useSideScroll.d.ts +1 -1
- package/esm/LinearGenomeView/components/useSideScroll.js +87 -19
- package/esm/LinearGenomeView/components/util.d.ts +20 -6
- package/esm/LinearGenomeView/components/util.js +27 -6
- package/esm/LinearGenomeView/consts.d.ts +7 -2
- package/esm/LinearGenomeView/consts.js +18 -2
- package/esm/LinearGenomeView/flyTo.d.ts +38 -0
- package/esm/LinearGenomeView/flyTo.js +135 -0
- package/esm/LinearGenomeView/headerFit.d.ts +27 -0
- package/esm/LinearGenomeView/headerFit.js +59 -0
- package/esm/LinearGenomeView/index.d.ts +32 -2
- package/esm/LinearGenomeView/index.js +16 -6
- package/esm/LinearGenomeView/initKeys.d.ts +12 -0
- package/esm/LinearGenomeView/initKeys.js +68 -0
- package/esm/LinearGenomeView/keyboardHandler.d.ts +7 -0
- package/esm/LinearGenomeView/keyboardHandler.js +10 -0
- package/esm/LinearGenomeView/launchKeys.d.ts +2 -0
- package/esm/LinearGenomeView/launchKeys.js +23 -0
- package/esm/LinearGenomeView/lazyDialogs.d.ts +7 -11
- package/esm/LinearGenomeView/lazyDialogs.js +3 -3
- package/esm/LinearGenomeView/linkedViewSync.d.ts +20 -0
- package/esm/LinearGenomeView/linkedViewSync.js +58 -0
- package/esm/LinearGenomeView/menuItems.d.ts +27 -2
- package/esm/LinearGenomeView/menuItems.js +137 -101
- package/esm/LinearGenomeView/model.d.ts +3238 -136
- package/esm/LinearGenomeView/model.js +2425 -528
- package/esm/LinearGenomeView/sharedScaleContainer.d.ts +18 -0
- package/esm/LinearGenomeView/sharedScaleContainer.js +17 -0
- package/esm/LinearGenomeView/showRegionsWithUndo.d.ts +35 -0
- package/esm/LinearGenomeView/showRegionsWithUndo.js +44 -0
- package/esm/LinearGenomeView/stickyChrome.d.ts +19 -0
- package/esm/LinearGenomeView/stickyChrome.js +30 -0
- package/esm/LinearGenomeView/svgcomponents/SVGGridlines.d.ts +1 -1
- package/esm/LinearGenomeView/svgcomponents/SVGGridlines.js +15 -16
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +2 -3
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +45 -33
- package/esm/LinearGenomeView/svgcomponents/SVGHighlights.d.ts +5 -0
- package/esm/LinearGenomeView/svgcomponents/SVGHighlights.js +26 -0
- package/esm/LinearGenomeView/svgcomponents/SVGHighlightsOverlay.d.ts +5 -0
- package/esm/LinearGenomeView/svgcomponents/SVGHighlightsOverlay.js +13 -0
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +1 -3
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +77 -41
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +1 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +23 -3
- package/esm/LinearGenomeView/svgcomponents/SVGRowHeader.d.ts +8 -0
- package/esm/LinearGenomeView/svgcomponents/SVGRowHeader.js +37 -0
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.d.ts +3 -3
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +64 -36
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +1 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js +7 -5
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +5 -3
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js +43 -7
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +8 -14
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +16 -21
- package/esm/LinearGenomeView/svgcomponents/SVGView.d.ts +18 -0
- package/esm/LinearGenomeView/svgcomponents/SVGView.js +13 -0
- package/esm/LinearGenomeView/svgcomponents/figureContract.d.ts +45 -0
- package/esm/LinearGenomeView/svgcomponents/figureContract.js +130 -0
- package/esm/LinearGenomeView/svgcomponents/renderViewTracks.d.ts +76 -0
- package/esm/LinearGenomeView/svgcomponents/renderViewTracks.js +66 -0
- package/esm/LinearGenomeView/svgcomponents/useViewSvgFigure.d.ts +70 -0
- package/esm/LinearGenomeView/svgcomponents/useViewSvgFigure.js +263 -0
- package/esm/LinearGenomeView/svgcomponents/util.d.ts +92 -5
- package/esm/LinearGenomeView/svgcomponents/util.js +236 -3
- package/esm/LinearGenomeView/types.d.ts +17 -31
- package/esm/LinearGenomeView/types.js +1 -0
- package/esm/LinearGenomeView/util.d.ts +332 -12
- package/esm/LinearGenomeView/util.js +606 -62
- package/esm/MultiLevelRubberband/MultiLevelRubberband.d.ts +6 -0
- package/esm/MultiLevelRubberband/MultiLevelRubberband.js +37 -0
- package/esm/MultiLevelRubberband/VerticalGuide.d.ts +6 -0
- package/esm/MultiLevelRubberband/VerticalGuide.js +21 -0
- package/esm/MultiLevelRubberband/index.d.ts +2 -0
- package/esm/MultiLevelRubberband/index.js +1 -0
- package/esm/MultiLevelRubberband/types.d.ts +6 -0
- package/esm/MultiLevelRubberband/useRangeSelect.d.ts +24 -0
- package/esm/MultiLevelRubberband/useRangeSelect.js +136 -0
- package/esm/displayKitTests/perRegionTestEnv.d.ts +1286 -0
- package/esm/displayKitTests/perRegionTestEnv.js +138 -0
- package/esm/index.d.ts +122 -1235
- package/esm/index.js +101 -24
- package/esm/lazyPluginExports.d.ts +23 -0
- package/esm/lazyPluginExports.js +36 -0
- package/esm/searchUtils.d.ts +55 -11
- package/esm/searchUtils.js +342 -45
- package/esm/shared/RubberbandSpan.d.ts +15 -0
- package/esm/shared/RubberbandSpan.js +33 -0
- package/esm/shared/coordLabels.d.ts +40 -0
- package/esm/shared/coordLabels.js +119 -0
- package/package.json +18 -19
- package/esm/BaseLinearDisplay/SVGLegend.d.ts +0 -6
- package/esm/BaseLinearDisplay/SVGLegend.js +0 -17
- package/esm/BaseLinearDisplay/calculateSvgLegendWidth.d.ts +0 -2
- package/esm/BaseLinearDisplay/calculateSvgLegendWidth.js +0 -11
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +0 -8
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -53
- package/esm/BaseLinearDisplay/components/Block.d.ts +0 -14
- package/esm/BaseLinearDisplay/components/Block.js +0 -45
- package/esm/BaseLinearDisplay/components/BlockErrorMessage.d.ts +0 -7
- package/esm/BaseLinearDisplay/components/BlockErrorMessage.js +0 -22
- package/esm/BaseLinearDisplay/components/BlockMsg.d.ts +0 -6
- package/esm/BaseLinearDisplay/components/BlockMsg.js +0 -26
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/CollapseIntronsDialog.d.ts +0 -9
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/CollapseIntronsDialog.js +0 -42
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/TranscriptTable.d.ts +0 -11
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/TranscriptTable.js +0 -40
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/util.d.ts +0 -19
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/util.js +0 -45
- package/esm/BaseLinearDisplay/components/FloatingLabels.d.ts +0 -5
- package/esm/BaseLinearDisplay/components/FloatingLabels.js +0 -75
- package/esm/BaseLinearDisplay/components/FloatingLegend.d.ts +0 -8
- package/esm/BaseLinearDisplay/components/FloatingLegend.js +0 -43
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +0 -5
- package/esm/BaseLinearDisplay/components/LinearBlocks.js +0 -23
- package/esm/BaseLinearDisplay/components/LoadingOverlay.d.ts +0 -5
- package/esm/BaseLinearDisplay/components/LoadingOverlay.js +0 -49
- package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.d.ts +0 -4
- package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.js +0 -26
- package/esm/BaseLinearDisplay/components/MenuPage.d.ts +0 -8
- package/esm/BaseLinearDisplay/components/MenuPage.js +0 -24
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.d.ts +0 -21
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.js +0 -52
- package/esm/BaseLinearDisplay/components/RenderedBlocks.d.ts +0 -12
- package/esm/BaseLinearDisplay/components/RenderedBlocks.js +0 -22
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +0 -12
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -18
- package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +0 -10
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +0 -20
- package/esm/BaseLinearDisplay/components/Tooltip.d.ts +0 -13
- package/esm/BaseLinearDisplay/components/Tooltip.js +0 -22
- package/esm/BaseLinearDisplay/components/types.d.ts +0 -1
- package/esm/BaseLinearDisplay/components/util.d.ts +0 -21
- package/esm/BaseLinearDisplay/components/util.js +0 -107
- package/esm/BaseLinearDisplay/index.d.ts +0 -17
- package/esm/BaseLinearDisplay/index.js +0 -13
- package/esm/BaseLinearDisplay/model.d.ts +0 -1197
- package/esm/BaseLinearDisplay/model.js +0 -432
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +0 -32
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +0 -113
- package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.d.ts +0 -26
- package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.js +0 -57
- package/esm/BaseLinearDisplay/models/SvgFloatingLabels.d.ts +0 -8
- package/esm/BaseLinearDisplay/models/SvgFloatingLabels.js +0 -19
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.d.ts +0 -11
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.js +0 -31
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +0 -2
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js +0 -29
- package/esm/BaseLinearDisplay/models/configSchema.d.ts +0 -29
- package/esm/BaseLinearDisplay/models/configSchema.js +0 -33
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +0 -98
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +0 -242
- package/esm/BaseLinearDisplay/models/util.d.ts +0 -9
- package/esm/BaseLinearDisplay/models/util.js +0 -43
- package/esm/BaseLinearDisplay/renderSvg.d.ts +0 -3
- package/esm/BaseLinearDisplay/renderSvg.js +0 -63
- package/esm/BaseLinearDisplay/types.d.ts +0 -43
- package/esm/BaseLinearDisplay/types.js +0 -3
- package/esm/BaseLinearDisplay/util.d.ts +0 -16
- package/esm/BaseLinearDisplay/util.js +0 -71
- package/esm/BasicTrack/configSchema.d.ts +0 -85
- package/esm/BasicTrack/configSchema.js +0 -8
- package/esm/BasicTrack/index.d.ts +0 -2
- package/esm/BasicTrack/index.js +0 -12
- package/esm/LinearBareDisplay/configSchema.d.ts +0 -32
- package/esm/LinearBareDisplay/configSchema.js +0 -11
- package/esm/LinearBareDisplay/index.d.ts +0 -4
- package/esm/LinearBareDisplay/index.js +0 -20
- package/esm/LinearBareDisplay/model.d.ts +0 -1196
- package/esm/LinearBareDisplay/model.js +0 -32
- package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.d.ts +0 -5
- package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.js +0 -9
- package/esm/LinearBasicDisplay/configSchema.d.ts +0 -32
- package/esm/LinearBasicDisplay/configSchema.js +0 -11
- package/esm/LinearBasicDisplay/index.d.ts +0 -4
- package/esm/LinearBasicDisplay/index.js +0 -20
- package/esm/LinearBasicDisplay/model.d.ts +0 -1391
- package/esm/LinearBasicDisplay/model.js +0 -158
- package/esm/LinearFeatureDisplay/components/AddFiltersDialog.d.ts +0 -9
- package/esm/LinearFeatureDisplay/components/AddFiltersDialog.js +0 -58
- package/esm/LinearFeatureDisplay/components/SetMaxHeightDialog.d.ts +0 -8
- package/esm/LinearFeatureDisplay/components/SetMaxHeightDialog.js +0 -26
- package/esm/LinearFeatureDisplay/configSchema.d.ts +0 -32
- package/esm/LinearFeatureDisplay/configSchema.js +0 -11
- package/esm/LinearFeatureDisplay/index.d.ts +0 -3
- package/esm/LinearFeatureDisplay/index.js +0 -2
- package/esm/LinearFeatureDisplay/model.d.ts +0 -1443
- package/esm/LinearFeatureDisplay/model.js +0 -305
- package/esm/LinearGenomeView/SVGErrorBox.d.ts +0 -5
- package/esm/LinearGenomeView/SVGErrorBox.js +0 -4
- package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +0 -11
- package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +0 -27
- package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +0 -5
- package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +0 -13
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +0 -3
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +0 -17
- package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.d.ts +0 -3
- package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +0 -8
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +0 -16
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +0 -101
- package/esm/LinearGenomeView/components/RefNameAutocomplete/util.d.ts +0 -10
- package/esm/LinearGenomeView/components/RefNameAutocomplete/util.js +0 -45
- package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +0 -15
- package/esm/LinearGenomeView/components/RubberbandSpan.js +0 -32
- package/esm/LinearGenomeView/components/RubberbandTooltip.d.ts +0 -5
- package/esm/LinearGenomeView/components/RubberbandTooltip.js +0 -17
- package/esm/LinearGenomeView/components/TrackLabelContainer.d.ts +0 -8
- package/esm/LinearGenomeView/components/TrackLabelContainer.js +0 -25
- package/esm/LinearGenomeView/components/useWheelScroll.d.ts +0 -7
- package/esm/LinearGenomeView/components/useWheelScroll.js +0 -69
- package/esm/LinearGenomeView/svgExportUtil.d.ts +0 -9
- package/esm/LinearGenomeView/svgExportUtil.js +0 -6
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -5
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.js +0 -7
- /package/esm/{BaseLinearDisplay/components → MultiLevelRubberband}/types.js +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export default function TrackHeightMixin(): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
2
|
-
heightPreConfig: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<number>>;
|
|
3
|
-
}, {
|
|
4
|
-
scrollTop: number;
|
|
5
|
-
} & {
|
|
6
|
-
readonly height: number;
|
|
7
|
-
} & {
|
|
8
|
-
setScrollTop(scrollTop: number): void;
|
|
9
|
-
setHeight(displayHeight: number): number;
|
|
10
|
-
resizeHeight(distance: number): number;
|
|
11
|
-
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { getConf } from '@jbrowse/core/configuration';
|
|
2
|
-
import { types } from '@jbrowse/mobx-state-tree';
|
|
3
|
-
const minDisplayHeight = 20;
|
|
4
|
-
export default function TrackHeightMixin() {
|
|
5
|
-
return types
|
|
6
|
-
.model({
|
|
7
|
-
heightPreConfig: types.maybe(types.refinement('displayHeight', types.number, n => n >= minDisplayHeight)),
|
|
8
|
-
})
|
|
9
|
-
.volatile(() => ({
|
|
10
|
-
scrollTop: 0,
|
|
11
|
-
}))
|
|
12
|
-
.views(self => ({
|
|
13
|
-
get height() {
|
|
14
|
-
return self.heightPreConfig ?? getConf(self, 'height');
|
|
15
|
-
},
|
|
16
|
-
}))
|
|
17
|
-
.actions(self => ({
|
|
18
|
-
setScrollTop(scrollTop) {
|
|
19
|
-
self.scrollTop = scrollTop;
|
|
20
|
-
},
|
|
21
|
-
setHeight(displayHeight) {
|
|
22
|
-
self.heightPreConfig = Math.max(displayHeight, minDisplayHeight);
|
|
23
|
-
return self.height;
|
|
24
|
-
},
|
|
25
|
-
resizeHeight(distance) {
|
|
26
|
-
const oldHeight = self.height;
|
|
27
|
-
const newHeight = this.setHeight(self.height + distance);
|
|
28
|
-
return newHeight - oldHeight;
|
|
29
|
-
},
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { getContainingView, isAbortException } from '@jbrowse/core/util';
|
|
2
|
-
import { isAlive } from '@jbrowse/mobx-state-tree';
|
|
3
|
-
export default async function autorunFeatureDensityStats(self) {
|
|
4
|
-
try {
|
|
5
|
-
const view = getContainingView(self);
|
|
6
|
-
if (!view.initialized ||
|
|
7
|
-
!view.staticBlocks.contentBlocks.length ||
|
|
8
|
-
view.bpPerPx === self.currStatsBpPerPx ||
|
|
9
|
-
self.error) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
if (self.featureDensityStats?.featureDensity !== undefined) {
|
|
13
|
-
self.setCurrStatsBpPerPx(view.bpPerPx);
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
self.clearFeatureDensityStats();
|
|
17
|
-
self.setCurrStatsBpPerPx(view.bpPerPx);
|
|
18
|
-
const stats = await self.getFeatureDensityStats();
|
|
19
|
-
if (isAlive(self)) {
|
|
20
|
-
self.setFeatureDensityStats(stats);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
catch (e) {
|
|
24
|
-
console.error(e);
|
|
25
|
-
if (isAlive(self) && !isAbortException(e)) {
|
|
26
|
-
self.setError(e);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
declare const baseLinearDisplayConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
maxFeatureScreenDensity: {
|
|
3
|
-
type: string;
|
|
4
|
-
description: string;
|
|
5
|
-
defaultValue: number;
|
|
6
|
-
};
|
|
7
|
-
fetchSizeLimit: {
|
|
8
|
-
type: string;
|
|
9
|
-
defaultValue: number;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
height: {
|
|
13
|
-
type: string;
|
|
14
|
-
defaultValue: number;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
mouseover: {
|
|
18
|
-
type: string;
|
|
19
|
-
description: string;
|
|
20
|
-
defaultValue: string;
|
|
21
|
-
contextVariable: string[];
|
|
22
|
-
};
|
|
23
|
-
jexlFilters: {
|
|
24
|
-
type: string;
|
|
25
|
-
description: string;
|
|
26
|
-
defaultValue: never[];
|
|
27
|
-
};
|
|
28
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
29
|
-
export default baseLinearDisplayConfigSchema;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
function x() { }
|
|
3
|
-
const baseLinearDisplayConfigSchema = ConfigurationSchema('BaseLinearDisplay', {
|
|
4
|
-
maxFeatureScreenDensity: {
|
|
5
|
-
type: 'number',
|
|
6
|
-
description: 'maximum features per pixel that is displayed in the view, used if byte size estimates not available',
|
|
7
|
-
defaultValue: 0.3,
|
|
8
|
-
},
|
|
9
|
-
fetchSizeLimit: {
|
|
10
|
-
type: 'number',
|
|
11
|
-
defaultValue: 1_000_000,
|
|
12
|
-
description: "maximum data to attempt to download for a given track, used if adapter doesn't specify one",
|
|
13
|
-
},
|
|
14
|
-
height: {
|
|
15
|
-
type: 'number',
|
|
16
|
-
defaultValue: 100,
|
|
17
|
-
description: 'default height for the track',
|
|
18
|
-
},
|
|
19
|
-
mouseover: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
description: 'text to display when the cursor hovers over a feature',
|
|
22
|
-
defaultValue: `jexl:mouseoverExtraInformation||get(feature,'_mouseOver')||get(feature,'name')||get(feature,'id')`,
|
|
23
|
-
contextVariable: ['feature', 'mouseoverExtraInformation'],
|
|
24
|
-
},
|
|
25
|
-
jexlFilters: {
|
|
26
|
-
type: 'stringArray',
|
|
27
|
-
description: 'default set of jexl filters to apply to a track. note: these do not use the jexl prefix because they have a deferred evaluation system',
|
|
28
|
-
defaultValue: [],
|
|
29
|
-
},
|
|
30
|
-
}, {
|
|
31
|
-
explicitIdentifier: 'displayId',
|
|
32
|
-
});
|
|
33
|
-
export default baseLinearDisplayConfigSchema;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
-
import type { StopToken } from '@jbrowse/core/util/stopToken';
|
|
4
|
-
import type { AbstractDisplayModel, Region } from '@jbrowse/core/util/types';
|
|
5
|
-
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
6
|
-
export interface RenderedProps {
|
|
7
|
-
reactElement: React.ReactElement;
|
|
8
|
-
features: Map<string, Feature>;
|
|
9
|
-
layout: any;
|
|
10
|
-
maxHeightReached: boolean;
|
|
11
|
-
renderProps: any;
|
|
12
|
-
renderArgs: Record<string, unknown>;
|
|
13
|
-
}
|
|
14
|
-
declare const blockState: import("@jbrowse/mobx-state-tree").IModelType<{
|
|
15
|
-
key: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
16
|
-
region: import("@jbrowse/mobx-state-tree").IType<Region, Region, Region>;
|
|
17
|
-
reloadFlag: import("@jbrowse/mobx-state-tree").IType<number | undefined, number, number>;
|
|
18
|
-
isLeftEndOfDisplayedRegion: import("@jbrowse/mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
19
|
-
isRightEndOfDisplayedRegion: import("@jbrowse/mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
20
|
-
}, {
|
|
21
|
-
stopToken: StopToken | undefined;
|
|
22
|
-
filled: boolean;
|
|
23
|
-
reactElement: React.ReactElement | undefined;
|
|
24
|
-
features: Map<string, Feature> | undefined;
|
|
25
|
-
layout: any;
|
|
26
|
-
blockStatusMessage: string;
|
|
27
|
-
error: unknown;
|
|
28
|
-
message: string | undefined;
|
|
29
|
-
maxHeightReached: boolean;
|
|
30
|
-
ReactComponent: ({ model, }: {
|
|
31
|
-
model: {
|
|
32
|
-
error?: unknown;
|
|
33
|
-
reload: () => void;
|
|
34
|
-
message?: React.ReactNode;
|
|
35
|
-
statusMessage?: string;
|
|
36
|
-
reactElement?: React.ReactElement;
|
|
37
|
-
isRenderingPending?: boolean;
|
|
38
|
-
displayHeight?: number;
|
|
39
|
-
};
|
|
40
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
renderProps: any;
|
|
42
|
-
renderArgs: Record<string, unknown> | undefined;
|
|
43
|
-
isRenderingPending: boolean;
|
|
44
|
-
cachedDisplay: AbstractDisplayModel | undefined;
|
|
45
|
-
} & {
|
|
46
|
-
doReload(): void;
|
|
47
|
-
setStatusMessage(message: string): void;
|
|
48
|
-
setLoading(newStopToken: StopToken): void;
|
|
49
|
-
setMessage(messageText: string): void;
|
|
50
|
-
setRendered(props: RenderedProps | undefined): void;
|
|
51
|
-
setError(error: unknown): void;
|
|
52
|
-
reload(): void;
|
|
53
|
-
setCachedDisplay(display: AbstractDisplayModel): void;
|
|
54
|
-
beforeDestroy(): void;
|
|
55
|
-
} & {
|
|
56
|
-
readonly statusMessage: any;
|
|
57
|
-
readonly displayHeight: number | undefined;
|
|
58
|
-
} & {
|
|
59
|
-
afterAttach(): void;
|
|
60
|
-
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
61
|
-
export default blockState;
|
|
62
|
-
export type BlockStateModel = typeof blockState;
|
|
63
|
-
export type BlockModel = Instance<BlockStateModel>;
|
|
64
|
-
export declare function renderBlockData(self: BlockModel, optDisplay?: AbstractDisplayModel): {
|
|
65
|
-
rendererType: any;
|
|
66
|
-
rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
67
|
-
renderProps: any;
|
|
68
|
-
renderingProps: Record<string, unknown> | undefined;
|
|
69
|
-
cannotBeRenderedReason: any;
|
|
70
|
-
displayError: any;
|
|
71
|
-
renderArgs: {
|
|
72
|
-
statusCallback: (message: string) => void;
|
|
73
|
-
assemblyName: string;
|
|
74
|
-
regions: {
|
|
75
|
-
seqAdapterRefName: string | undefined;
|
|
76
|
-
assemblyName: string;
|
|
77
|
-
refName: string;
|
|
78
|
-
start: number;
|
|
79
|
-
end: number;
|
|
80
|
-
reversed?: boolean | undefined;
|
|
81
|
-
}[];
|
|
82
|
-
adapterConfig: any;
|
|
83
|
-
rendererType: any;
|
|
84
|
-
sessionId: string;
|
|
85
|
-
trackInstanceId: any;
|
|
86
|
-
blockKey: string;
|
|
87
|
-
reloadFlag: number;
|
|
88
|
-
timeout: number;
|
|
89
|
-
};
|
|
90
|
-
} | {
|
|
91
|
-
displayError: unknown;
|
|
92
|
-
rendererType?: undefined;
|
|
93
|
-
rpcManager?: undefined;
|
|
94
|
-
renderProps?: undefined;
|
|
95
|
-
renderingProps?: undefined;
|
|
96
|
-
cannotBeRenderedReason?: undefined;
|
|
97
|
-
renderArgs?: undefined;
|
|
98
|
-
};
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { readConfObject } from '@jbrowse/core/configuration';
|
|
2
|
-
import { assembleLocString, getContainingDisplay, getSession, makeAbortableReaction, } from '@jbrowse/core/util';
|
|
3
|
-
import { stopStopToken } from '@jbrowse/core/util/stopToken';
|
|
4
|
-
import { getRpcSessionId, getTrackAssemblyNames, } from '@jbrowse/core/util/tracks';
|
|
5
|
-
import { isRetryException } from '@jbrowse/core/util/types';
|
|
6
|
-
import { getParent, isAlive, types } from '@jbrowse/mobx-state-tree';
|
|
7
|
-
import ServerSideRenderedBlockContent from "../components/ServerSideRenderedBlockContent.js";
|
|
8
|
-
const blockState = types
|
|
9
|
-
.model('BlockState', {
|
|
10
|
-
key: types.string,
|
|
11
|
-
region: types.frozen(),
|
|
12
|
-
reloadFlag: 0,
|
|
13
|
-
isLeftEndOfDisplayedRegion: false,
|
|
14
|
-
isRightEndOfDisplayedRegion: false,
|
|
15
|
-
})
|
|
16
|
-
.volatile(() => ({
|
|
17
|
-
stopToken: undefined,
|
|
18
|
-
filled: false,
|
|
19
|
-
reactElement: undefined,
|
|
20
|
-
features: undefined,
|
|
21
|
-
layout: undefined,
|
|
22
|
-
blockStatusMessage: '',
|
|
23
|
-
error: undefined,
|
|
24
|
-
message: undefined,
|
|
25
|
-
maxHeightReached: false,
|
|
26
|
-
ReactComponent: ServerSideRenderedBlockContent,
|
|
27
|
-
renderProps: undefined,
|
|
28
|
-
renderArgs: undefined,
|
|
29
|
-
isRenderingPending: true,
|
|
30
|
-
cachedDisplay: undefined,
|
|
31
|
-
}))
|
|
32
|
-
.actions(self => {
|
|
33
|
-
function stopCurrentToken() {
|
|
34
|
-
if (self.stopToken !== undefined) {
|
|
35
|
-
stopStopToken(self.stopToken);
|
|
36
|
-
self.stopToken = undefined;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function clearRenderState() {
|
|
40
|
-
self.filled = false;
|
|
41
|
-
self.reactElement = undefined;
|
|
42
|
-
self.features = undefined;
|
|
43
|
-
self.layout = undefined;
|
|
44
|
-
self.maxHeightReached = false;
|
|
45
|
-
self.renderProps = undefined;
|
|
46
|
-
self.renderArgs = undefined;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
doReload() {
|
|
50
|
-
self.reloadFlag = self.reloadFlag + 1;
|
|
51
|
-
},
|
|
52
|
-
setStatusMessage(message) {
|
|
53
|
-
self.blockStatusMessage = message;
|
|
54
|
-
},
|
|
55
|
-
setLoading(newStopToken) {
|
|
56
|
-
stopCurrentToken();
|
|
57
|
-
self.isRenderingPending = true;
|
|
58
|
-
self.error = undefined;
|
|
59
|
-
self.message = undefined;
|
|
60
|
-
self.stopToken = newStopToken;
|
|
61
|
-
},
|
|
62
|
-
setMessage(messageText) {
|
|
63
|
-
stopCurrentToken();
|
|
64
|
-
self.isRenderingPending = false;
|
|
65
|
-
self.message = messageText;
|
|
66
|
-
self.error = undefined;
|
|
67
|
-
clearRenderState();
|
|
68
|
-
},
|
|
69
|
-
setRendered(props) {
|
|
70
|
-
if (!props) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
const { reactElement, features, layout, maxHeightReached, renderProps, renderArgs, } = props;
|
|
74
|
-
self.filled = true;
|
|
75
|
-
self.isRenderingPending = false;
|
|
76
|
-
self.message = undefined;
|
|
77
|
-
self.reactElement = reactElement;
|
|
78
|
-
self.features = features;
|
|
79
|
-
self.layout = layout;
|
|
80
|
-
self.error = undefined;
|
|
81
|
-
self.maxHeightReached = maxHeightReached;
|
|
82
|
-
self.renderProps = renderProps;
|
|
83
|
-
self.renderArgs = renderArgs;
|
|
84
|
-
self.stopToken = undefined;
|
|
85
|
-
},
|
|
86
|
-
setError(error) {
|
|
87
|
-
console.error(error);
|
|
88
|
-
stopCurrentToken();
|
|
89
|
-
self.isRenderingPending = false;
|
|
90
|
-
self.message = undefined;
|
|
91
|
-
self.error = error;
|
|
92
|
-
clearRenderState();
|
|
93
|
-
if (isRetryException(error)) {
|
|
94
|
-
this.reload();
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
reload() {
|
|
98
|
-
self.stopToken = undefined;
|
|
99
|
-
self.isRenderingPending = false;
|
|
100
|
-
self.error = undefined;
|
|
101
|
-
self.message = undefined;
|
|
102
|
-
self.ReactComponent = ServerSideRenderedBlockContent;
|
|
103
|
-
clearRenderState();
|
|
104
|
-
getParent(self, 2).reload();
|
|
105
|
-
},
|
|
106
|
-
setCachedDisplay(display) {
|
|
107
|
-
self.cachedDisplay = display;
|
|
108
|
-
},
|
|
109
|
-
beforeDestroy() {
|
|
110
|
-
;
|
|
111
|
-
(async () => {
|
|
112
|
-
try {
|
|
113
|
-
stopCurrentToken();
|
|
114
|
-
if (self.renderArgs && self.cachedDisplay) {
|
|
115
|
-
const { rpcManager } = getSession(self);
|
|
116
|
-
const { rendererType } = self.cachedDisplay;
|
|
117
|
-
await rendererType.freeResourcesInClient(rpcManager, JSON.parse(JSON.stringify(self.renderArgs)));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
catch (e) {
|
|
121
|
-
console.error('Error while destroying block', e);
|
|
122
|
-
}
|
|
123
|
-
})();
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
})
|
|
127
|
-
.views(self => ({
|
|
128
|
-
get statusMessage() {
|
|
129
|
-
return self.isRenderingPending
|
|
130
|
-
? self.blockStatusMessage ||
|
|
131
|
-
self.cachedDisplay?.statusMessage ||
|
|
132
|
-
'Loading'
|
|
133
|
-
: undefined;
|
|
134
|
-
},
|
|
135
|
-
get displayHeight() {
|
|
136
|
-
return self.cachedDisplay?.height;
|
|
137
|
-
},
|
|
138
|
-
}))
|
|
139
|
-
.actions(self => ({
|
|
140
|
-
afterAttach() {
|
|
141
|
-
const display = self.cachedDisplay || getContainingDisplay(self);
|
|
142
|
-
setTimeout(() => {
|
|
143
|
-
if (isAlive(self)) {
|
|
144
|
-
makeAbortableReaction(self, renderBlockData, renderBlockEffect, {
|
|
145
|
-
name: `${display.id}/${assembleLocString(self.region)} rendering`,
|
|
146
|
-
delay: display.renderDelay,
|
|
147
|
-
fireImmediately: true,
|
|
148
|
-
}, self.setLoading, self.setRendered, self.setError);
|
|
149
|
-
}
|
|
150
|
-
}, display.renderDelay);
|
|
151
|
-
},
|
|
152
|
-
}));
|
|
153
|
-
export default blockState;
|
|
154
|
-
export function renderBlockData(self, optDisplay) {
|
|
155
|
-
try {
|
|
156
|
-
const display = (optDisplay ||
|
|
157
|
-
self.cachedDisplay ||
|
|
158
|
-
getContainingDisplay(self));
|
|
159
|
-
const { assemblyManager, rpcManager } = getSession(display);
|
|
160
|
-
const { adapterConfig, rendererType, error, parentTrack } = display;
|
|
161
|
-
const assemblyNames = getTrackAssemblyNames(parentTrack);
|
|
162
|
-
const regionAsm = self.region.assemblyName;
|
|
163
|
-
if (!assemblyNames.includes(regionAsm) &&
|
|
164
|
-
!assemblyNames.some(name => assemblyManager.get(name)?.hasName(regionAsm))) {
|
|
165
|
-
throw new Error(`region assembly (${regionAsm}) does not match track assemblies (${assemblyNames})`);
|
|
166
|
-
}
|
|
167
|
-
const renderProps = display.renderProps();
|
|
168
|
-
const renderingProps = display.renderingProps?.();
|
|
169
|
-
const { config } = renderProps;
|
|
170
|
-
readConfObject(config);
|
|
171
|
-
const sessionId = getRpcSessionId(display);
|
|
172
|
-
const trackInstanceId = parentTrack.id;
|
|
173
|
-
const cannotBeRenderedReason = display.regionCannotBeRendered(self.region);
|
|
174
|
-
const assembly = assemblyManager.get(self.region.assemblyName);
|
|
175
|
-
const seqAdapterRefName = assembly?.getSeqAdapterRefName(self.region.refName);
|
|
176
|
-
return {
|
|
177
|
-
rendererType,
|
|
178
|
-
rpcManager,
|
|
179
|
-
renderProps,
|
|
180
|
-
renderingProps,
|
|
181
|
-
cannotBeRenderedReason,
|
|
182
|
-
displayError: error,
|
|
183
|
-
renderArgs: {
|
|
184
|
-
statusCallback: (message) => {
|
|
185
|
-
if (isAlive(self)) {
|
|
186
|
-
self.setStatusMessage(message);
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
assemblyName: self.region.assemblyName,
|
|
190
|
-
regions: [
|
|
191
|
-
{
|
|
192
|
-
...self.region,
|
|
193
|
-
seqAdapterRefName,
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
adapterConfig,
|
|
197
|
-
rendererType: rendererType.name,
|
|
198
|
-
sessionId,
|
|
199
|
-
trackInstanceId,
|
|
200
|
-
blockKey: self.key,
|
|
201
|
-
reloadFlag: self.reloadFlag,
|
|
202
|
-
timeout: 1_000_000,
|
|
203
|
-
},
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
catch (e) {
|
|
207
|
-
return {
|
|
208
|
-
displayError: e,
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
async function renderBlockEffect(props, stopToken, self) {
|
|
213
|
-
if (!props || !isAlive(self)) {
|
|
214
|
-
return undefined;
|
|
215
|
-
}
|
|
216
|
-
const { rendererType, renderProps, renderingProps, rpcManager, renderArgs, cannotBeRenderedReason, displayError, } = props;
|
|
217
|
-
if (displayError) {
|
|
218
|
-
self.setError(displayError);
|
|
219
|
-
return undefined;
|
|
220
|
-
}
|
|
221
|
-
if (cannotBeRenderedReason) {
|
|
222
|
-
self.setMessage(cannotBeRenderedReason);
|
|
223
|
-
return undefined;
|
|
224
|
-
}
|
|
225
|
-
if (renderProps.notReady || !renderArgs) {
|
|
226
|
-
return undefined;
|
|
227
|
-
}
|
|
228
|
-
const { reactElement, features, layout, maxHeightReached } = await rendererType.renderInClient(rpcManager, {
|
|
229
|
-
...renderArgs,
|
|
230
|
-
...renderProps,
|
|
231
|
-
renderingProps,
|
|
232
|
-
stopToken,
|
|
233
|
-
});
|
|
234
|
-
return {
|
|
235
|
-
reactElement,
|
|
236
|
-
features,
|
|
237
|
-
layout,
|
|
238
|
-
maxHeightReached,
|
|
239
|
-
renderProps,
|
|
240
|
-
renderArgs,
|
|
241
|
-
};
|
|
242
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
-
import type { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
|
-
export declare function getDisplayStr(totalBytes: number): string;
|
|
4
|
-
export declare function getId(id: string, index: string | number): string;
|
|
5
|
-
export declare function getFeatureDensityStatsPre(self: {
|
|
6
|
-
adapterConfig?: AnyConfigurationModel;
|
|
7
|
-
setStatusMessage: (arg: string) => void;
|
|
8
|
-
effectiveRpcDriverName?: string;
|
|
9
|
-
}): Promise<FeatureDensityStats>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { getContainingView, getSession } from '@jbrowse/core/util';
|
|
2
|
-
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
3
|
-
import { isAlive } from '@jbrowse/mobx-state-tree';
|
|
4
|
-
export function getDisplayStr(totalBytes) {
|
|
5
|
-
if (Math.floor(totalBytes / 1000000) > 0) {
|
|
6
|
-
return `${Number.parseFloat((totalBytes / 1000000).toPrecision(3))} Mb`;
|
|
7
|
-
}
|
|
8
|
-
else if (Math.floor(totalBytes / 1000) > 0) {
|
|
9
|
-
return `${Number.parseFloat((totalBytes / 1000).toPrecision(3))} Kb`;
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
return `${Math.floor(totalBytes)} bytes`;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export function getId(id, index) {
|
|
16
|
-
const notJest = typeof jest === 'undefined';
|
|
17
|
-
return ['clip', notJest ? id : 'jest', index, notJest ? Math.random() : '']
|
|
18
|
-
.filter(f => !!f)
|
|
19
|
-
.join('-');
|
|
20
|
-
}
|
|
21
|
-
export async function getFeatureDensityStatsPre(self) {
|
|
22
|
-
const view = getContainingView(self);
|
|
23
|
-
const regions = view.staticBlocks.contentBlocks;
|
|
24
|
-
const { rpcManager } = getSession(self);
|
|
25
|
-
const { adapterConfig, effectiveRpcDriverName } = self;
|
|
26
|
-
if (!adapterConfig) {
|
|
27
|
-
return {};
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
const sessionId = getRpcSessionId(self);
|
|
31
|
-
return rpcManager.call(sessionId, 'CoreGetFeatureDensityStats', {
|
|
32
|
-
sessionId,
|
|
33
|
-
regions,
|
|
34
|
-
adapterConfig,
|
|
35
|
-
rpcDriverName: effectiveRpcDriverName,
|
|
36
|
-
statusCallback: (message) => {
|
|
37
|
-
if (isAlive(self)) {
|
|
38
|
-
self.setStatusMessage(message);
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { BaseLinearDisplayModel } from './model.ts';
|
|
2
|
-
import type { ExportSvgDisplayOptions } from './types.ts';
|
|
3
|
-
export declare function renderBaseLinearDisplaySvg(self: BaseLinearDisplayModel, opts: ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Fragment } from 'react';
|
|
3
|
-
import { createJBrowseTheme } from '@jbrowse/core/ui';
|
|
4
|
-
import { ReactRendering, getContainingView, getSession, } from '@jbrowse/core/util';
|
|
5
|
-
import CompositeMap from '@jbrowse/core/util/compositeMap';
|
|
6
|
-
import SVGLegend from "./SVGLegend.js";
|
|
7
|
-
import { collectLayoutsFromRenderings, deduplicateFeatureLabels, } from "./components/util.js";
|
|
8
|
-
import { SvgFloatingLabels } from "./models/SvgFloatingLabels.js";
|
|
9
|
-
import BlockState, { renderBlockData, } from "./models/serverSideRenderedBlock.js";
|
|
10
|
-
import { getId } from "./models/util.js";
|
|
11
|
-
import { ErrorBox } from "../LinearGenomeView/SVGErrorBox.js";
|
|
12
|
-
export async function renderBaseLinearDisplaySvg(self, opts) {
|
|
13
|
-
const { height, id } = self;
|
|
14
|
-
const { overrideHeight } = opts;
|
|
15
|
-
const view = getContainingView(self);
|
|
16
|
-
const { offsetPx: viewOffsetPx, roundedDynamicBlocks, width } = view;
|
|
17
|
-
if (self.error) {
|
|
18
|
-
return _jsx(ErrorBox, { error: self.error, width: width, height: height });
|
|
19
|
-
}
|
|
20
|
-
const renderings = await Promise.all(roundedDynamicBlocks.map(async (block) => {
|
|
21
|
-
const blockState = BlockState.create({
|
|
22
|
-
key: block.key,
|
|
23
|
-
region: block,
|
|
24
|
-
});
|
|
25
|
-
const cannotBeRenderedReason = self.regionCannotBeRenderedText(block) ||
|
|
26
|
-
self.regionCannotBeRendered(block);
|
|
27
|
-
if (cannotBeRenderedReason) {
|
|
28
|
-
return [
|
|
29
|
-
block,
|
|
30
|
-
{
|
|
31
|
-
reactElement: (_jsxs(_Fragment, { children: [_jsx("rect", { x: 0, y: 0, width: width, height: 20, fill: "#aaa" }), _jsx("text", { x: 0, y: 15, children: cannotBeRenderedReason })] })),
|
|
32
|
-
},
|
|
33
|
-
];
|
|
34
|
-
}
|
|
35
|
-
const { rpcManager, renderArgs, renderProps, renderingProps, rendererType, } = renderBlockData(blockState, self);
|
|
36
|
-
return [
|
|
37
|
-
block,
|
|
38
|
-
await rendererType.renderInClient(rpcManager, {
|
|
39
|
-
...renderArgs,
|
|
40
|
-
...renderProps,
|
|
41
|
-
renderingProps,
|
|
42
|
-
exportSVG: opts,
|
|
43
|
-
theme: opts.theme || renderProps.theme,
|
|
44
|
-
}),
|
|
45
|
-
];
|
|
46
|
-
}));
|
|
47
|
-
const layoutMaps = collectLayoutsFromRenderings(renderings);
|
|
48
|
-
const layoutFeatures = new CompositeMap(layoutMaps);
|
|
49
|
-
const { assemblyManager } = getSession(self);
|
|
50
|
-
const { offsetPx, bpPerPx } = view;
|
|
51
|
-
const assemblyName = view.assemblyNames[0];
|
|
52
|
-
const assembly = assemblyName ? assemblyManager.get(assemblyName) : undefined;
|
|
53
|
-
const featureLabels = deduplicateFeatureLabels(layoutFeatures, view, assembly, bpPerPx);
|
|
54
|
-
const labelsClipId = getId(id, 'labels');
|
|
55
|
-
const theme = createJBrowseTheme(opts.theme);
|
|
56
|
-
const legendItems = self.showLegend ? self.legendItems(theme) : [];
|
|
57
|
-
return (_jsxs(_Fragment, { children: [renderings.map(([block, rendering], index) => {
|
|
58
|
-
const { offsetPx, widthPx } = block;
|
|
59
|
-
const offset = offsetPx - viewOffsetPx;
|
|
60
|
-
const clipid = getId(id, index);
|
|
61
|
-
return (_jsxs(Fragment, { children: [_jsx("defs", { children: _jsx("clipPath", { id: clipid, children: _jsx("rect", { x: 0, y: 0, width: widthPx, height: overrideHeight || height }) }) }), _jsx("g", { transform: `translate(${offset} 0)`, children: _jsx("g", { clipPath: `url(#${clipid})`, children: _jsx(ReactRendering, { rendering: rendering }) }) })] }, `frag-${index}`));
|
|
62
|
-
}), _jsx("defs", { children: _jsx("clipPath", { id: labelsClipId, children: _jsx("rect", { x: 0, y: 0, width: width, height: overrideHeight || height }) }) }), _jsx("g", { clipPath: `url(#${labelsClipId})`, children: _jsx(SvgFloatingLabels, { featureLabels: featureLabels, offsetPx: offsetPx, viewWidth: width }) }), legendItems.length > 0 ? (_jsx(SVGLegend, { items: legendItems, width: width, legendAreaWidth: opts.legendWidth })) : null] }));
|
|
63
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { ExportSvgOptions } from '../LinearGenomeView/types.ts';
|
|
2
|
-
import type { ThemeOptions } from '@mui/material';
|
|
3
|
-
export interface Layout {
|
|
4
|
-
minX: number;
|
|
5
|
-
minY: number;
|
|
6
|
-
maxX: number;
|
|
7
|
-
maxY: number;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
export interface FloatingLabelData {
|
|
11
|
-
text: string;
|
|
12
|
-
relativeY: number;
|
|
13
|
-
color: string;
|
|
14
|
-
textWidth: number;
|
|
15
|
-
isOverlay?: boolean;
|
|
16
|
-
parentFeatureId?: string;
|
|
17
|
-
subfeatureId?: string;
|
|
18
|
-
tooltip?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface LayoutFeatureMetadata {
|
|
21
|
-
refName: string;
|
|
22
|
-
floatingLabels?: FloatingLabelData[];
|
|
23
|
-
totalFeatureHeight?: number;
|
|
24
|
-
featureWidth?: number;
|
|
25
|
-
actualTopPx?: number;
|
|
26
|
-
featureStartBp?: number;
|
|
27
|
-
featureEndBp?: number;
|
|
28
|
-
}
|
|
29
|
-
export declare function createSubfeatureLabelMetadata(args: {
|
|
30
|
-
refName: string;
|
|
31
|
-
floatingLabels: FloatingLabelData[];
|
|
32
|
-
totalFeatureHeight: number;
|
|
33
|
-
featureWidth: number;
|
|
34
|
-
actualTopPx: number;
|
|
35
|
-
featureStartBp: number;
|
|
36
|
-
featureEndBp: number;
|
|
37
|
-
}): LayoutFeatureMetadata;
|
|
38
|
-
export type LayoutRecord = [number, number, number, number] | [number, number, number, number, LayoutFeatureMetadata];
|
|
39
|
-
export interface ExportSvgDisplayOptions extends ExportSvgOptions {
|
|
40
|
-
overrideHeight?: number;
|
|
41
|
-
theme?: ThemeOptions;
|
|
42
|
-
legendWidth?: number;
|
|
43
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type RpcManager from '@jbrowse/core/rpc/RpcManager';
|
|
2
|
-
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
-
export declare function fetchFeatureByIdRpc({ rpcManager, sessionId, trackId, rendererType, featureId, parentFeatureId, }: {
|
|
4
|
-
rpcManager: RpcManager;
|
|
5
|
-
sessionId: string;
|
|
6
|
-
trackId: string;
|
|
7
|
-
rendererType: string;
|
|
8
|
-
featureId: string;
|
|
9
|
-
parentFeatureId?: string;
|
|
10
|
-
}): Promise<Feature | undefined>;
|
|
11
|
-
export declare function findSubfeatureById(feature: Feature, targetId: string): Feature | undefined;
|
|
12
|
-
export declare function featureHasExonsOrCDS(feature: Feature): boolean;
|
|
13
|
-
export declare function hasExonsOrCDS(transcripts: Feature[]): boolean;
|
|
14
|
-
export declare function hasIntrons(transcripts: Feature[]): boolean;
|
|
15
|
-
export declare function getTranscripts(feature?: Feature): Feature[];
|
|
16
|
-
export declare function drawCanvasImageData(canvas: HTMLCanvasElement | null, imageData: ImageBitmap | undefined): boolean;
|