@jbrowse/plugin-linear-genome-view 3.6.5 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/BaseLinearDisplay/SVGLegend.d.ts +6 -0
- package/esm/BaseLinearDisplay/SVGLegend.js +17 -0
- package/esm/BaseLinearDisplay/calculateSvgLegendWidth.d.ts +2 -0
- package/esm/BaseLinearDisplay/calculateSvgLegendWidth.js +11 -0
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +3 -3
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +13 -24
- package/esm/BaseLinearDisplay/components/Block.js +2 -2
- package/esm/BaseLinearDisplay/components/BlockErrorMessage.js +2 -2
- package/esm/BaseLinearDisplay/components/BlockMsg.js +11 -2
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/CollapseIntronsDialog.d.ts +9 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/CollapseIntronsDialog.js +42 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/TranscriptTable.d.ts +11 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/TranscriptTable.js +40 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/util.d.ts +19 -0
- package/esm/BaseLinearDisplay/components/CollapseIntronsDialog/util.js +45 -0
- package/esm/BaseLinearDisplay/components/FloatingLabels.d.ts +5 -0
- package/esm/BaseLinearDisplay/components/FloatingLabels.js +89 -0
- package/esm/BaseLinearDisplay/components/FloatingLegend.d.ts +8 -0
- package/esm/BaseLinearDisplay/components/FloatingLegend.js +43 -0
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -5
- package/esm/BaseLinearDisplay/components/LinearBlocks.js +5 -42
- package/esm/BaseLinearDisplay/components/LoadingOverlay.d.ts +4 -0
- package/esm/BaseLinearDisplay/components/LoadingOverlay.js +49 -0
- package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.d.ts +4 -0
- package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.js +26 -0
- package/esm/BaseLinearDisplay/components/MenuPage.d.ts +8 -0
- package/esm/BaseLinearDisplay/components/MenuPage.js +24 -0
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.d.ts +19 -0
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.js +48 -0
- package/esm/BaseLinearDisplay/components/RenderedBlocks.d.ts +12 -0
- package/esm/BaseLinearDisplay/components/RenderedBlocks.js +22 -0
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +4 -4
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +5 -8
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +3 -3
- package/esm/BaseLinearDisplay/components/Tooltip.d.ts +2 -0
- package/esm/BaseLinearDisplay/components/Tooltip.js +10 -7
- package/esm/BaseLinearDisplay/components/types.d.ts +1 -0
- package/esm/BaseLinearDisplay/components/types.js +1 -0
- package/esm/BaseLinearDisplay/components/util.d.ts +21 -0
- package/esm/BaseLinearDisplay/components/util.js +116 -0
- package/esm/BaseLinearDisplay/index.d.ts +17 -8
- package/esm/BaseLinearDisplay/index.js +13 -6
- package/esm/BaseLinearDisplay/model.d.ts +1177 -0
- package/esm/BaseLinearDisplay/model.js +424 -0
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +5 -5
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +11 -14
- package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.d.ts +21 -0
- package/esm/BaseLinearDisplay/models/NonBlockCanvasDisplayMixin.js +46 -0
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.d.ts +3 -3
- package/esm/BaseLinearDisplay/models/TrackHeightMixin.js +2 -3
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +1 -1
- package/esm/BaseLinearDisplay/models/autorunFeatureDensityStats.js +2 -3
- package/esm/BaseLinearDisplay/models/calculateLabelPositions.d.ts +24 -0
- package/esm/BaseLinearDisplay/models/calculateLabelPositions.js +60 -0
- package/esm/BaseLinearDisplay/models/configSchema.d.ts +2 -2
- package/esm/BaseLinearDisplay/models/configSchema.js +3 -3
- package/esm/BaseLinearDisplay/models/renderSvg.d.ts +3 -7
- package/esm/BaseLinearDisplay/models/renderSvg.js +22 -11
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +37 -19
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +151 -135
- package/esm/BaseLinearDisplay/models/util.d.ts +4 -4
- package/esm/BaseLinearDisplay/models/util.js +16 -13
- package/esm/BaseLinearDisplay/renderSvg.d.ts +3 -0
- package/esm/BaseLinearDisplay/renderSvg.js +59 -0
- package/esm/BaseLinearDisplay/types.d.ts +47 -0
- package/esm/BaseLinearDisplay/types.js +3 -0
- package/esm/BaseLinearDisplay/util.d.ts +15 -0
- package/esm/BaseLinearDisplay/util.js +61 -0
- package/esm/BasicTrack/configSchema.d.ts +16 -11
- package/esm/BasicTrack/index.js +1 -1
- package/esm/FeatureTrack/configSchema.d.ts +16 -11
- package/esm/FeatureTrack/index.js +1 -1
- package/esm/LaunchLinearGenomeView/index.js +12 -62
- package/esm/LinearBareDisplay/configSchema.d.ts +4 -4
- package/esm/LinearBareDisplay/configSchema.js +1 -1
- package/esm/LinearBareDisplay/index.d.ts +2 -2
- package/esm/LinearBareDisplay/index.js +5 -5
- package/esm/LinearBareDisplay/model.d.ts +959 -92
- package/esm/LinearBareDisplay/model.js +3 -6
- package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.d.ts +5 -0
- package/esm/LinearBasicDisplay/components/LinearBasicDisplayComponent.js +9 -0
- package/esm/LinearBasicDisplay/configSchema.d.ts +4 -4
- package/esm/LinearBasicDisplay/configSchema.js +1 -1
- package/esm/LinearBasicDisplay/index.d.ts +2 -2
- package/esm/LinearBasicDisplay/index.js +6 -6
- package/esm/LinearBasicDisplay/model.d.ts +1134 -122
- package/esm/LinearBasicDisplay/model.js +116 -116
- package/esm/{LinearBasicDisplay → LinearFeatureDisplay}/components/AddFiltersDialog.js +2 -2
- package/esm/{LinearBasicDisplay → LinearFeatureDisplay}/components/SetMaxHeightDialog.js +3 -3
- package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/configSchema.d.ts +4 -4
- package/esm/LinearFeatureDisplay/configSchema.js +11 -0
- package/esm/LinearFeatureDisplay/index.d.ts +3 -0
- package/esm/LinearFeatureDisplay/index.js +2 -0
- package/esm/LinearFeatureDisplay/model.d.ts +1415 -0
- package/esm/LinearFeatureDisplay/model.js +265 -0
- package/esm/LinearGenomeView/SVGErrorBox.d.ts +5 -0
- package/esm/LinearGenomeView/SVGErrorBox.js +4 -0
- package/esm/LinearGenomeView/afterAttach.d.ts +5 -0
- package/esm/LinearGenomeView/afterAttach.js +95 -0
- package/esm/LinearGenomeView/components/CenterLine.js +6 -4
- package/esm/LinearGenomeView/components/Cytobands.js +4 -4
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +1 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +5 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +8 -2
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +13 -16
- package/esm/LinearGenomeView/components/Gridlines.js +18 -15
- package/esm/LinearGenomeView/components/Header.js +9 -9
- package/esm/LinearGenomeView/components/HeaderPanControls.js +2 -2
- package/esm/LinearGenomeView/components/HeaderRegionWidth.js +4 -5
- package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.js +2 -2
- package/esm/LinearGenomeView/components/HeaderZoomControls.js +3 -3
- package/esm/LinearGenomeView/components/Highlight.d.ts +1 -1
- package/esm/LinearGenomeView/components/Highlight.js +6 -6
- package/esm/LinearGenomeView/components/ImportForm.d.ts +1 -1
- package/esm/LinearGenomeView/components/ImportForm.js +14 -12
- package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +3 -3
- package/esm/LinearGenomeView/components/LinearGenomeView.js +7 -7
- package/esm/LinearGenomeView/components/LinearGenomeViewContainer.js +7 -8
- package/esm/LinearGenomeView/components/MiniControls.js +6 -6
- package/esm/LinearGenomeView/components/NoTracksActiveButton.js +2 -2
- package/esm/LinearGenomeView/components/OverviewHighlight.d.ts +1 -1
- package/esm/LinearGenomeView/components/OverviewHighlight.js +5 -5
- package/esm/LinearGenomeView/components/OverviewRubberband.js +4 -4
- package/esm/LinearGenomeView/components/OverviewRubberbandHoverTooltip.js +9 -5
- package/esm/LinearGenomeView/components/OverviewScalebar.js +36 -28
- package/esm/LinearGenomeView/components/OverviewScalebarPolygon.js +5 -5
- package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.js +7 -7
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +1 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +1 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +10 -10
- package/esm/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +1 -1
- package/esm/LinearGenomeView/components/RegionWidthEditorDialog.js +6 -4
- package/esm/LinearGenomeView/components/Rubberband.js +9 -7
- package/esm/LinearGenomeView/components/RubberbandSpan.js +4 -5
- package/esm/LinearGenomeView/components/Scalebar.js +8 -10
- package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +1 -1
- package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.js +50 -17
- package/esm/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +1 -1
- package/esm/LinearGenomeView/components/ScalebarRefNameLabels.js +13 -11
- package/esm/LinearGenomeView/components/SearchBox.d.ts +1 -1
- package/esm/LinearGenomeView/components/SearchBox.js +8 -9
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +1 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +2 -2
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +1 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.js +4 -6
- package/esm/LinearGenomeView/components/SequenceSearchDialog.js +6 -6
- package/esm/LinearGenomeView/components/TrackContainer.js +32 -20
- package/esm/LinearGenomeView/components/TrackLabel.js +10 -11
- package/esm/LinearGenomeView/components/TrackLabelContainer.js +7 -8
- package/esm/LinearGenomeView/components/TrackLabelDragHandle.js +1 -1
- package/esm/LinearGenomeView/components/TrackLabelMenu.js +80 -68
- package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +1 -2
- package/esm/LinearGenomeView/components/TrackRenderingContainer.js +5 -5
- package/esm/LinearGenomeView/components/TracksContainer.js +18 -15
- package/esm/LinearGenomeView/components/VerticalGuide.js +5 -3
- package/esm/LinearGenomeView/components/fetchSequence.d.ts +7 -2
- package/esm/LinearGenomeView/components/useRangeSelect.d.ts +27 -2
- package/esm/LinearGenomeView/components/useRangeSelect.js +26 -20
- package/esm/LinearGenomeView/components/useWheelScroll.js +22 -12
- package/esm/LinearGenomeView/components/util.d.ts +2 -13
- package/esm/LinearGenomeView/components/util.js +12 -31
- package/esm/LinearGenomeView/index.d.ts +1 -1
- package/esm/LinearGenomeView/index.js +3 -3
- package/esm/LinearGenomeView/keyboardHandler.d.ts +2 -0
- package/esm/LinearGenomeView/keyboardHandler.js +29 -0
- package/esm/LinearGenomeView/menuItems.d.ts +7 -0
- package/esm/LinearGenomeView/menuItems.js +299 -0
- package/esm/LinearGenomeView/model.d.ts +92 -89
- package/esm/LinearGenomeView/model.js +166 -414
- package/esm/LinearGenomeView/svgExportUtil.d.ts +9 -0
- package/esm/LinearGenomeView/svgExportUtil.js +6 -0
- package/{dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts → esm/LinearGenomeView/svgcomponents/SVGGridlines.d.ts} +2 -2
- package/esm/LinearGenomeView/svgcomponents/SVGGridlines.js +20 -0
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +5 -5
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +4 -3
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +24 -12
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +13 -5
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +2 -2
- package/esm/LinearGenomeView/types.d.ts +5 -1
- package/esm/LinearGenomeView/util.d.ts +2 -2
- package/esm/LinearGenomeView/util.js +8 -6
- package/esm/index.d.ts +975 -94
- package/esm/index.js +37 -38
- package/esm/searchUtils.d.ts +1 -1
- package/esm/searchUtils.js +6 -4
- package/package.json +28 -33
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +0 -8
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +0 -72
- package/dist/BaseLinearDisplay/components/Block.d.ts +0 -14
- package/dist/BaseLinearDisplay/components/Block.js +0 -50
- package/dist/BaseLinearDisplay/components/BlockErrorMessage.d.ts +0 -7
- package/dist/BaseLinearDisplay/components/BlockErrorMessage.js +0 -27
- package/dist/BaseLinearDisplay/components/BlockLoadingMessage.d.ts +0 -6
- package/dist/BaseLinearDisplay/components/BlockLoadingMessage.js +0 -26
- package/dist/BaseLinearDisplay/components/BlockMsg.d.ts +0 -6
- package/dist/BaseLinearDisplay/components/BlockMsg.js +0 -20
- package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +0 -9
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +0 -61
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +0 -11
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +0 -59
- package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +0 -10
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +0 -25
- package/dist/BaseLinearDisplay/components/Tooltip.d.ts +0 -11
- package/dist/BaseLinearDisplay/components/Tooltip.js +0 -24
- package/dist/BaseLinearDisplay/index.d.ts +0 -8
- package/dist/BaseLinearDisplay/index.js +0 -20
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +0 -311
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -325
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +0 -32
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +0 -122
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.d.ts +0 -11
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +0 -35
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.d.ts +0 -2
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +0 -33
- package/dist/BaseLinearDisplay/models/configSchema.d.ts +0 -29
- package/dist/BaseLinearDisplay/models/configSchema.js +0 -35
- package/dist/BaseLinearDisplay/models/renderSvg.d.ts +0 -7
- package/dist/BaseLinearDisplay/models/renderSvg.js +0 -80
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +0 -78
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +0 -229
- package/dist/BaseLinearDisplay/models/util.d.ts +0 -22
- package/dist/BaseLinearDisplay/models/util.js +0 -45
- package/dist/BasicTrack/configSchema.d.ts +0 -80
- package/dist/BasicTrack/configSchema.js +0 -10
- package/dist/BasicTrack/index.d.ts +0 -2
- package/dist/BasicTrack/index.js +0 -18
- package/dist/FeatureTrack/configSchema.d.ts +0 -80
- package/dist/FeatureTrack/configSchema.js +0 -10
- package/dist/FeatureTrack/index.d.ts +0 -2
- package/dist/FeatureTrack/index.js +0 -19
- package/dist/LaunchLinearGenomeView/index.d.ts +0 -2
- package/dist/LaunchLinearGenomeView/index.js +0 -70
- package/dist/LinearBareDisplay/configSchema.d.ts +0 -32
- package/dist/LinearBareDisplay/configSchema.js +0 -13
- package/dist/LinearBareDisplay/index.d.ts +0 -4
- package/dist/LinearBareDisplay/index.js +0 -26
- package/dist/LinearBareDisplay/model.d.ts +0 -309
- package/dist/LinearBareDisplay/model.js +0 -38
- package/dist/LinearBasicDisplay/components/AddFiltersDialog.js +0 -61
- package/dist/LinearBasicDisplay/components/SetMaxHeightDialog.js +0 -28
- package/dist/LinearBasicDisplay/configSchema.js +0 -13
- package/dist/LinearBasicDisplay/index.d.ts +0 -4
- package/dist/LinearBasicDisplay/index.js +0 -29
- package/dist/LinearBasicDisplay/model.d.ts +0 -346
- package/dist/LinearBasicDisplay/model.js +0 -192
- package/dist/LinearGenomeView/components/CenterLine.d.ts +0 -6
- package/dist/LinearGenomeView/components/CenterLine.js +0 -38
- package/dist/LinearGenomeView/components/Cytobands.d.ts +0 -9
- package/dist/LinearGenomeView/components/Cytobands.js +0 -89
- package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -7
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +0 -57
- package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -6
- package/dist/LinearGenomeView/components/GetSequenceDialog.js +0 -109
- package/dist/LinearGenomeView/components/Gridlines.d.ts +0 -7
- package/dist/LinearGenomeView/components/Gridlines.js +0 -70
- package/dist/LinearGenomeView/components/Header.d.ts +0 -5
- package/dist/LinearGenomeView/components/Header.js +0 -38
- package/dist/LinearGenomeView/components/HeaderPanControls.d.ts +0 -6
- package/dist/LinearGenomeView/components/HeaderPanControls.js +0 -27
- package/dist/LinearGenomeView/components/HeaderRegionWidth.d.ts +0 -5
- package/dist/LinearGenomeView/components/HeaderRegionWidth.js +0 -21
- package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.d.ts +0 -5
- package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.js +0 -19
- package/dist/LinearGenomeView/components/HeaderZoomControls.d.ts +0 -5
- package/dist/LinearGenomeView/components/HeaderZoomControls.js +0 -109
- package/dist/LinearGenomeView/components/Highlight.d.ts +0 -12
- package/dist/LinearGenomeView/components/Highlight.js +0 -95
- package/dist/LinearGenomeView/components/ImportForm.d.ts +0 -6
- package/dist/LinearGenomeView/components/ImportForm.js +0 -80
- package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +0 -11
- package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +0 -32
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +0 -5
- package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -57
- package/dist/LinearGenomeView/components/LinearGenomeViewContainer.d.ts +0 -5
- package/dist/LinearGenomeView/components/LinearGenomeViewContainer.js +0 -98
- package/dist/LinearGenomeView/components/MiniControls.d.ts +0 -5
- package/dist/LinearGenomeView/components/MiniControls.js +0 -36
- package/dist/LinearGenomeView/components/NoTracksActiveButton.d.ts +0 -5
- package/dist/LinearGenomeView/components/NoTracksActiveButton.js +0 -23
- package/dist/LinearGenomeView/components/OverviewHighlight.d.ts +0 -8
- package/dist/LinearGenomeView/components/OverviewHighlight.js +0 -50
- package/dist/LinearGenomeView/components/OverviewRubberband.d.ts +0 -9
- package/dist/LinearGenomeView/components/OverviewRubberband.js +0 -113
- package/dist/LinearGenomeView/components/OverviewRubberbandHoverTooltip.d.ts +0 -10
- package/dist/LinearGenomeView/components/OverviewRubberbandHoverTooltip.js +0 -28
- package/dist/LinearGenomeView/components/OverviewScalebar.d.ts +0 -7
- package/dist/LinearGenomeView/components/OverviewScalebar.js +0 -146
- package/dist/LinearGenomeView/components/OverviewScalebarPolygon.d.ts +0 -8
- package/dist/LinearGenomeView/components/OverviewScalebarPolygon.js +0 -41
- package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.d.ts +0 -10
- package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.js +0 -37
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +0 -8
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +0 -18
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +0 -3
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +0 -56
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.d.ts +0 -3
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +0 -11
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +0 -16
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +0 -127
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.d.ts +0 -10
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +0 -53
- package/dist/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +0 -6
- package/dist/LinearGenomeView/components/RegionWidthEditorDialog.js +0 -30
- package/dist/LinearGenomeView/components/Rubberband.d.ts +0 -7
- package/dist/LinearGenomeView/components/Rubberband.js +0 -35
- package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +0 -15
- package/dist/LinearGenomeView/components/RubberbandSpan.js +0 -39
- package/dist/LinearGenomeView/components/RubberbandTooltip.d.ts +0 -5
- package/dist/LinearGenomeView/components/RubberbandTooltip.js +0 -20
- package/dist/LinearGenomeView/components/Scalebar.d.ts +0 -10
- package/dist/LinearGenomeView/components/Scalebar.js +0 -40
- package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +0 -6
- package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.js +0 -29
- package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +0 -6
- package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.js +0 -38
- package/dist/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +0 -6
- package/dist/LinearGenomeView/components/ScalebarRefNameLabels.js +0 -46
- package/dist/LinearGenomeView/components/SearchBox.d.ts +0 -6
- package/dist/LinearGenomeView/components/SearchBox.js +0 -88
- package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +0 -9
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +0 -15
- package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +0 -8
- package/dist/LinearGenomeView/components/SearchResultsTable.js +0 -74
- package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -8
- package/dist/LinearGenomeView/components/SequenceSearchDialog.js +0 -67
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +0 -8
- package/dist/LinearGenomeView/components/TrackContainer.js +0 -51
- package/dist/LinearGenomeView/components/TrackLabel.d.ts +0 -7
- package/dist/LinearGenomeView/components/TrackLabel.js +0 -49
- package/dist/LinearGenomeView/components/TrackLabelContainer.d.ts +0 -8
- package/dist/LinearGenomeView/components/TrackLabelContainer.js +0 -31
- package/dist/LinearGenomeView/components/TrackLabelDragHandle.d.ts +0 -8
- package/dist/LinearGenomeView/components/TrackLabelDragHandle.js +0 -32
- package/dist/LinearGenomeView/components/TrackLabelMenu.d.ts +0 -5
- package/dist/LinearGenomeView/components/TrackLabelMenu.js +0 -93
- package/dist/LinearGenomeView/components/TrackRenderingContainer.d.ts +0 -9
- package/dist/LinearGenomeView/components/TrackRenderingContainer.js +0 -50
- package/dist/LinearGenomeView/components/TracksContainer.d.ts +0 -7
- package/dist/LinearGenomeView/components/TracksContainer.js +0 -84
- package/dist/LinearGenomeView/components/VerticalGuide.d.ts +0 -7
- package/dist/LinearGenomeView/components/VerticalGuide.js +0 -31
- package/dist/LinearGenomeView/components/fetchSequence.d.ts +0 -4
- package/dist/LinearGenomeView/components/fetchSequence.js +0 -29
- package/dist/LinearGenomeView/components/useRangeSelect.d.ts +0 -59
- package/dist/LinearGenomeView/components/useRangeSelect.js +0 -131
- package/dist/LinearGenomeView/components/useSideScroll.d.ts +0 -6
- package/dist/LinearGenomeView/components/useSideScroll.js +0 -60
- package/dist/LinearGenomeView/components/useWheelScroll.d.ts +0 -7
- package/dist/LinearGenomeView/components/useWheelScroll.js +0 -62
- package/dist/LinearGenomeView/components/util.d.ts +0 -25
- package/dist/LinearGenomeView/components/util.js +0 -49
- package/dist/LinearGenomeView/consts.d.ts +0 -7
- package/dist/LinearGenomeView/consts.js +0 -10
- package/dist/LinearGenomeView/index.d.ts +0 -3
- package/dist/LinearGenomeView/index.js +0 -53
- package/dist/LinearGenomeView/model.d.ts +0 -268
- package/dist/LinearGenomeView/model.js +0 -1109
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -5
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +0 -10
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -7
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +0 -47
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +0 -6
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +0 -42
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +0 -8
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -7
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +0 -39
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -7
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +0 -17
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -7
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +0 -14
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -21
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +0 -32
- package/dist/LinearGenomeView/svgcomponents/util.d.ts +0 -8
- package/dist/LinearGenomeView/svgcomponents/util.js +0 -8
- package/dist/LinearGenomeView/types.d.ts +0 -43
- package/dist/LinearGenomeView/types.js +0 -2
- package/dist/LinearGenomeView/util.d.ts +0 -26
- package/dist/LinearGenomeView/util.js +0 -138
- package/dist/index.d.ts +0 -353
- package/dist/index.js +0 -120
- package/dist/searchUtils.d.ts +0 -26
- package/dist/searchUtils.js +0 -80
- package/esm/BaseLinearDisplay/components/BlockLoadingMessage.d.ts +0 -6
- package/esm/BaseLinearDisplay/components/BlockLoadingMessage.js +0 -24
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +0 -311
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +0 -286
- package/esm/LinearBasicDisplay/components/AddFiltersDialog.d.ts +0 -9
- package/esm/LinearBasicDisplay/components/SetMaxHeightDialog.d.ts +0 -8
- package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +0 -6
- package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.js +0 -36
- /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/AddFiltersDialog.d.ts +0 -0
- /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/SetMaxHeightDialog.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getContainingView, getSession } from '@jbrowse/core/util';
|
|
2
2
|
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
3
|
-
import { isAlive } from 'mobx-state-tree';
|
|
3
|
+
import { isAlive } from '@jbrowse/mobx-state-tree';
|
|
4
4
|
export function getDisplayStr(totalBytes) {
|
|
5
5
|
if (Math.floor(totalBytes / 1000000) > 0) {
|
|
6
6
|
return `${Number.parseFloat((totalBytes / 1000000).toPrecision(3))} Mb`;
|
|
@@ -22,19 +22,22 @@ export async function getFeatureDensityStatsPre(self) {
|
|
|
22
22
|
const view = getContainingView(self);
|
|
23
23
|
const regions = view.staticBlocks.contentBlocks;
|
|
24
24
|
const { rpcManager } = getSession(self);
|
|
25
|
-
const { adapterConfig } = self;
|
|
25
|
+
const { adapterConfig, effectiveRpcDriverName } = self;
|
|
26
26
|
if (!adapterConfig) {
|
|
27
27
|
return {};
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
sessionId,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
+
}
|
|
40
43
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
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>;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 SVGLegend from "./SVGLegend.js";
|
|
6
|
+
import BlockState, { renderBlockData, } from "./models/serverSideRenderedBlock.js";
|
|
7
|
+
import { getId } from "./models/util.js";
|
|
8
|
+
import { ErrorBox } from "../LinearGenomeView/SVGErrorBox.js";
|
|
9
|
+
import { calculateLabelPositions } from "./models/calculateLabelPositions.js";
|
|
10
|
+
export async function renderBaseLinearDisplaySvg(self, opts) {
|
|
11
|
+
const { height, id } = self;
|
|
12
|
+
const { overrideHeight } = opts;
|
|
13
|
+
const view = getContainingView(self);
|
|
14
|
+
const { offsetPx: viewOffsetPx, roundedDynamicBlocks, width } = view;
|
|
15
|
+
if (self.error) {
|
|
16
|
+
return _jsx(ErrorBox, { error: self.error, width: width, height: height });
|
|
17
|
+
}
|
|
18
|
+
const renderings = await Promise.all(roundedDynamicBlocks.map(async (block) => {
|
|
19
|
+
const blockState = BlockState.create({
|
|
20
|
+
key: block.key,
|
|
21
|
+
region: block,
|
|
22
|
+
});
|
|
23
|
+
const cannotBeRenderedReason = self.regionCannotBeRenderedText(block) ||
|
|
24
|
+
self.regionCannotBeRendered(block);
|
|
25
|
+
if (cannotBeRenderedReason) {
|
|
26
|
+
return [
|
|
27
|
+
block,
|
|
28
|
+
{
|
|
29
|
+
reactElement: (_jsxs(_Fragment, { children: [_jsx("rect", { x: 0, y: 0, width: width, height: 20, fill: "#aaa" }), _jsx("text", { x: 0, y: 15, children: cannotBeRenderedReason })] })),
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
const { rpcManager, renderArgs, renderProps, renderingProps, rendererType, } = renderBlockData(blockState, self);
|
|
34
|
+
return [
|
|
35
|
+
block,
|
|
36
|
+
await rendererType.renderInClient(rpcManager, {
|
|
37
|
+
...renderArgs,
|
|
38
|
+
...renderProps,
|
|
39
|
+
renderingProps,
|
|
40
|
+
exportSVG: opts,
|
|
41
|
+
theme: opts.theme || renderProps.theme,
|
|
42
|
+
}),
|
|
43
|
+
];
|
|
44
|
+
}));
|
|
45
|
+
const { assemblyManager } = getSession(self);
|
|
46
|
+
const { offsetPx } = view;
|
|
47
|
+
const assemblyName = view.assemblyNames[0];
|
|
48
|
+
const assembly = assemblyName ? assemblyManager.get(assemblyName) : undefined;
|
|
49
|
+
const labelData = calculateLabelPositions(self, view, assembly, offsetPx);
|
|
50
|
+
const labelsClipId = getId(id, 'labels');
|
|
51
|
+
const theme = createJBrowseTheme(opts.theme);
|
|
52
|
+
const legendItems = self.showLegend ? self.legendItems(theme) : [];
|
|
53
|
+
return (_jsxs(_Fragment, { children: [renderings.map(([block, rendering], index) => {
|
|
54
|
+
const { offsetPx, widthPx } = block;
|
|
55
|
+
const offset = offsetPx - viewOffsetPx;
|
|
56
|
+
const clipid = getId(id, index);
|
|
57
|
+
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}`));
|
|
58
|
+
}), _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: labelData.map(({ key, label, description, leftPos, topPos }) => (_jsxs("g", { transform: `translate(${leftPos}, ${topPos})`, children: [_jsx("text", { x: 0, y: 11, fontSize: 11, fill: "currentColor", children: label }), description ? (_jsx("text", { x: 0, y: 25, fontSize: 11, fill: "blue", children: description })) : null] }, `label-${key}`))) }), legendItems.length > 0 ? (_jsx(SVGLegend, { items: legendItems, width: width, legendAreaWidth: opts.legendWidth })) : null] }));
|
|
59
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
label?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
refName: string;
|
|
24
|
+
floatingLabels?: FloatingLabelData[];
|
|
25
|
+
totalFeatureHeight?: number;
|
|
26
|
+
totalLayoutWidth?: number;
|
|
27
|
+
featureWidth?: number;
|
|
28
|
+
actualTopPx?: number;
|
|
29
|
+
featureStartBp?: number;
|
|
30
|
+
featureEndBp?: number;
|
|
31
|
+
}
|
|
32
|
+
export declare function createSubfeatureLabelMetadata(args: {
|
|
33
|
+
refName: string;
|
|
34
|
+
floatingLabels: FloatingLabelData[];
|
|
35
|
+
totalFeatureHeight: number;
|
|
36
|
+
totalLayoutWidth: number;
|
|
37
|
+
featureWidth: number;
|
|
38
|
+
actualTopPx: number;
|
|
39
|
+
featureStartBp: number;
|
|
40
|
+
featureEndBp: number;
|
|
41
|
+
}): LayoutFeatureMetadata;
|
|
42
|
+
export type LayoutRecord = [number, number, number, number] | [number, number, number, number, LayoutFeatureMetadata];
|
|
43
|
+
export interface ExportSvgDisplayOptions extends ExportSvgOptions {
|
|
44
|
+
overrideHeight?: number;
|
|
45
|
+
theme?: ThemeOptions;
|
|
46
|
+
legendWidth?: number;
|
|
47
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 getTranscripts(feature?: Feature): Feature[];
|
|
15
|
+
export declare function drawCanvasImageData(canvas: HTMLCanvasElement | null, imageData: ImageBitmap | undefined): boolean;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { SimpleFeature } from '@jbrowse/core/util';
|
|
2
|
+
export async function fetchFeatureByIdRpc({ rpcManager, sessionId, trackId, rendererType, featureId, parentFeatureId, }) {
|
|
3
|
+
const lookupId = parentFeatureId || featureId;
|
|
4
|
+
const { feature: featureData } = (await rpcManager.call(sessionId, 'CoreGetFeatureDetails', {
|
|
5
|
+
featureId: lookupId,
|
|
6
|
+
sessionId,
|
|
7
|
+
trackInstanceId: trackId,
|
|
8
|
+
rendererType,
|
|
9
|
+
}));
|
|
10
|
+
if (!featureData) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
const feature = new SimpleFeature(featureData);
|
|
14
|
+
if (parentFeatureId) {
|
|
15
|
+
return findSubfeatureById(feature, featureId);
|
|
16
|
+
}
|
|
17
|
+
return feature;
|
|
18
|
+
}
|
|
19
|
+
export function findSubfeatureById(feature, targetId) {
|
|
20
|
+
const subfeatures = feature.get('subfeatures');
|
|
21
|
+
if (subfeatures) {
|
|
22
|
+
for (const sub of subfeatures) {
|
|
23
|
+
if (sub.id() === targetId) {
|
|
24
|
+
return sub;
|
|
25
|
+
}
|
|
26
|
+
const found = findSubfeatureById(sub, targetId);
|
|
27
|
+
if (found) {
|
|
28
|
+
return found;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
export function featureHasExonsOrCDS(feature) {
|
|
35
|
+
const subs = feature.get('subfeatures') ?? [];
|
|
36
|
+
return subs.some((f) => f.get('type') === 'exon' || f.get('type') === 'CDS');
|
|
37
|
+
}
|
|
38
|
+
export function hasExonsOrCDS(transcripts) {
|
|
39
|
+
return transcripts.some(t => featureHasExonsOrCDS(t));
|
|
40
|
+
}
|
|
41
|
+
export function getTranscripts(feature) {
|
|
42
|
+
if (!feature) {
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
45
|
+
return featureHasExonsOrCDS(feature)
|
|
46
|
+
? [feature]
|
|
47
|
+
: (feature.get('subfeatures') ?? []);
|
|
48
|
+
}
|
|
49
|
+
export function drawCanvasImageData(canvas, imageData) {
|
|
50
|
+
if (!canvas || !imageData) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
const ctx = canvas.getContext('2d');
|
|
54
|
+
if (!ctx) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
ctx.resetTransform();
|
|
58
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
59
|
+
ctx.drawImage(imageData, 0, 0);
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare const configSchema: (pluginManager: PluginManager) => import("
|
|
2
|
+
declare const configSchema: (pluginManager: PluginManager) => import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
name: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
@@ -25,8 +25,13 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
25
25
|
description: string;
|
|
26
26
|
defaultValue: {};
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
rpcDriverName: {
|
|
29
|
+
type: string;
|
|
30
|
+
description: string;
|
|
31
|
+
defaultValue: string;
|
|
32
|
+
};
|
|
33
|
+
adapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
34
|
+
textSearching: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
30
35
|
indexingAttributes: {
|
|
31
36
|
type: string;
|
|
32
37
|
description: string;
|
|
@@ -37,10 +42,10 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
37
42
|
description: string;
|
|
38
43
|
defaultValue: string[];
|
|
39
44
|
};
|
|
40
|
-
textSearchAdapter: import("mobx-state-tree").IAnyModelType;
|
|
41
|
-
}, import("
|
|
42
|
-
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
43
|
-
formatDetails: import("
|
|
45
|
+
textSearchAdapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
46
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
47
|
+
displays: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
48
|
+
formatDetails: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
44
49
|
feature: {
|
|
45
50
|
type: string;
|
|
46
51
|
description: string;
|
|
@@ -63,8 +68,8 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
63
68
|
defaultValue: number;
|
|
64
69
|
description: string;
|
|
65
70
|
};
|
|
66
|
-
}, import("
|
|
67
|
-
formatAbout: import("
|
|
71
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
72
|
+
formatAbout: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
68
73
|
config: {
|
|
69
74
|
type: string;
|
|
70
75
|
description: string;
|
|
@@ -75,6 +80,6 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
75
80
|
type: string;
|
|
76
81
|
defaultValue: boolean;
|
|
77
82
|
};
|
|
78
|
-
}, import("
|
|
79
|
-
}, import("
|
|
83
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
84
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, "trackId">>;
|
|
80
85
|
export default configSchema;
|
package/esm/BasicTrack/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TrackType, createBaseTrackModel, } from '@jbrowse/core/pluggableElementTypes';
|
|
2
|
-
import configSchemaF from
|
|
2
|
+
import configSchemaF from "./configSchema.js";
|
|
3
3
|
export default function BasicTrackF(pm) {
|
|
4
4
|
pm.addTrackType(() => {
|
|
5
5
|
const configSchema = configSchemaF(pm);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare const configSchema: (pluginManager: PluginManager) => import("
|
|
2
|
+
declare const configSchema: (pluginManager: PluginManager) => import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
name: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
@@ -25,8 +25,13 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
25
25
|
description: string;
|
|
26
26
|
defaultValue: {};
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
rpcDriverName: {
|
|
29
|
+
type: string;
|
|
30
|
+
description: string;
|
|
31
|
+
defaultValue: string;
|
|
32
|
+
};
|
|
33
|
+
adapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
34
|
+
textSearching: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
30
35
|
indexingAttributes: {
|
|
31
36
|
type: string;
|
|
32
37
|
description: string;
|
|
@@ -37,10 +42,10 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
37
42
|
description: string;
|
|
38
43
|
defaultValue: string[];
|
|
39
44
|
};
|
|
40
|
-
textSearchAdapter: import("mobx-state-tree").IAnyModelType;
|
|
41
|
-
}, import("
|
|
42
|
-
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
43
|
-
formatDetails: import("
|
|
45
|
+
textSearchAdapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
46
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
47
|
+
displays: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
48
|
+
formatDetails: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
44
49
|
feature: {
|
|
45
50
|
type: string;
|
|
46
51
|
description: string;
|
|
@@ -63,8 +68,8 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
63
68
|
defaultValue: number;
|
|
64
69
|
description: string;
|
|
65
70
|
};
|
|
66
|
-
}, import("
|
|
67
|
-
formatAbout: import("
|
|
71
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
72
|
+
formatAbout: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
68
73
|
config: {
|
|
69
74
|
type: string;
|
|
70
75
|
description: string;
|
|
@@ -75,6 +80,6 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
75
80
|
type: string;
|
|
76
81
|
defaultValue: boolean;
|
|
77
82
|
};
|
|
78
|
-
}, import("
|
|
79
|
-
}, import("
|
|
83
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
84
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, "trackId">>;
|
|
80
85
|
export default configSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TrackType, createBaseTrackModel, } from '@jbrowse/core/pluggableElementTypes';
|
|
2
|
-
import configSchemaF from
|
|
2
|
+
import configSchemaF from "./configSchema.js";
|
|
3
3
|
export default function FeatureTrackF(pm) {
|
|
4
4
|
pm.addTrackType(() => {
|
|
5
5
|
const configSchema = configSchemaF(pm);
|
|
@@ -1,67 +1,17 @@
|
|
|
1
|
-
import { parseLocString, when } from '@jbrowse/core/util';
|
|
2
|
-
import { handleSelectedRegion } from '../searchUtils';
|
|
3
1
|
export default function LaunchLinearGenomeViewF(pluginManager) {
|
|
4
2
|
pluginManager.addToExtensionPoint('LaunchView-LinearGenomeView', async ({ session, assembly, loc, tracks = [], tracklist, nav, highlight, }) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const view = session.addView('LinearGenomeView', {});
|
|
8
|
-
await when(() => !!view.volatileWidth);
|
|
9
|
-
if (!assembly) {
|
|
10
|
-
throw new Error('No assembly provided when launching linear genome view');
|
|
11
|
-
}
|
|
12
|
-
const asm = await assemblyManager.waitForAssembly(assembly);
|
|
13
|
-
if (!asm) {
|
|
14
|
-
throw new Error(`Assembly "${assembly}" not found when launching linear genome view`);
|
|
15
|
-
}
|
|
16
|
-
if (tracklist) {
|
|
17
|
-
view.activateTrackSelector();
|
|
18
|
-
}
|
|
19
|
-
if (nav !== undefined) {
|
|
20
|
-
view.setHideHeader(!nav);
|
|
21
|
-
}
|
|
22
|
-
if (highlight !== undefined) {
|
|
23
|
-
for (const h of highlight) {
|
|
24
|
-
const p = parseLocString(h, refName => assemblyManager.isValidRefName(refName, assembly));
|
|
25
|
-
const { start, end } = p;
|
|
26
|
-
if (start !== undefined && end !== undefined) {
|
|
27
|
-
view.addToHighlights({
|
|
28
|
-
...p,
|
|
29
|
-
start,
|
|
30
|
-
end,
|
|
31
|
-
assemblyName: assembly,
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
await handleSelectedRegion({
|
|
37
|
-
input: loc,
|
|
38
|
-
model: view,
|
|
39
|
-
assembly: asm,
|
|
40
|
-
});
|
|
41
|
-
const idsNotFound = [];
|
|
42
|
-
for (const track of tracks) {
|
|
43
|
-
tryTrack(view, track, idsNotFound);
|
|
44
|
-
}
|
|
45
|
-
if (idsNotFound.length) {
|
|
46
|
-
throw new Error(`Could not resolve identifiers: ${idsNotFound.join(',')}`);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
catch (e) {
|
|
50
|
-
session.notifyError(`${e}`, e);
|
|
51
|
-
throw e;
|
|
3
|
+
if (!assembly) {
|
|
4
|
+
throw new Error('No assembly provided when launching linear genome view');
|
|
52
5
|
}
|
|
6
|
+
session.addView('LinearGenomeView', {
|
|
7
|
+
init: {
|
|
8
|
+
assembly,
|
|
9
|
+
loc,
|
|
10
|
+
tracks,
|
|
11
|
+
tracklist,
|
|
12
|
+
nav,
|
|
13
|
+
highlight,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
53
16
|
});
|
|
54
17
|
}
|
|
55
|
-
function tryTrack(model, trackId, idsNotFound) {
|
|
56
|
-
try {
|
|
57
|
-
model.showTrack(trackId);
|
|
58
|
-
}
|
|
59
|
-
catch (e) {
|
|
60
|
-
if (/Could not resolve identifier/.exec(`${e}`)) {
|
|
61
|
-
idsNotFound.push(trackId);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
throw e;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare function configSchemaFactory(pluginManager: PluginManager): import("
|
|
3
|
-
renderer: import("mobx-state-tree").IAnyModelType;
|
|
4
|
-
}, import("
|
|
2
|
+
declare function configSchemaFactory(pluginManager: PluginManager): import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
3
|
+
renderer: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
4
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
5
5
|
maxFeatureScreenDensity: {
|
|
6
6
|
type: string;
|
|
7
7
|
description: string;
|
|
@@ -28,5 +28,5 @@ declare function configSchemaFactory(pluginManager: PluginManager): import("@jbr
|
|
|
28
28
|
description: string;
|
|
29
29
|
defaultValue: never[];
|
|
30
30
|
};
|
|
31
|
-
}, import("
|
|
31
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
32
32
|
export { configSchemaFactory };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
import { baseLinearDisplayConfigSchema } from
|
|
2
|
+
import { baseLinearDisplayConfigSchema } from "../BaseLinearDisplay/index.js";
|
|
3
3
|
function configSchemaFactory(pluginManager) {
|
|
4
4
|
return ConfigurationSchema('LinearBareDisplay', {
|
|
5
5
|
renderer: pluginManager.pluggableConfigSchemaType('renderer'),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function LinearBareDisplayF(pluginManager: PluginManager): void;
|
|
3
|
-
export { configSchemaFactory } from './configSchema';
|
|
4
|
-
export { stateModelFactory } from './model';
|
|
3
|
+
export { configSchemaFactory } from './configSchema.ts';
|
|
4
|
+
export { stateModelFactory } from './model.ts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DisplayType } from '@jbrowse/core/pluggableElementTypes';
|
|
2
|
-
import { configSchemaFactory } from
|
|
3
|
-
import { stateModelFactory } from
|
|
4
|
-
import { BaseLinearDisplayComponent } from
|
|
2
|
+
import { configSchemaFactory } from "./configSchema.js";
|
|
3
|
+
import { stateModelFactory } from "./model.js";
|
|
4
|
+
import { BaseLinearDisplayComponent } from "../BaseLinearDisplay//index.js";
|
|
5
5
|
export default function LinearBareDisplayF(pluginManager) {
|
|
6
6
|
pluginManager.addDisplayType(() => {
|
|
7
7
|
const configSchema = configSchemaFactory(pluginManager);
|
|
@@ -16,5 +16,5 @@ export default function LinearBareDisplayF(pluginManager) {
|
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
export { configSchemaFactory } from
|
|
20
|
-
export { stateModelFactory } from
|
|
19
|
+
export { configSchemaFactory } from "./configSchema.js";
|
|
20
|
+
export { stateModelFactory } from "./model.js";
|