@jbrowse/plugin-linear-genome-view 3.7.0 → 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 +12 -8
- package/esm/BaseLinearDisplay/components/Block.js +2 -2
- package/esm/BaseLinearDisplay/components/BlockErrorMessage.js +2 -2
- package/esm/BaseLinearDisplay/components/BlockMsg.js +9 -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 -1
- package/esm/BaseLinearDisplay/components/LinearBlocks.js +4 -6
- package/esm/BaseLinearDisplay/components/LoadingOverlay.d.ts +4 -0
- package/esm/BaseLinearDisplay/components/LoadingOverlay.js +49 -0
- package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.d.ts +3 -2
- package/esm/BaseLinearDisplay/components/MaxHeightReachedIndicator.js +5 -3
- package/esm/BaseLinearDisplay/components/MenuPage.d.ts +2 -2
- package/esm/BaseLinearDisplay/components/MenuPage.js +1 -1
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.d.ts +19 -0
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.js +48 -0
- package/esm/BaseLinearDisplay/components/RenderedBlocks.d.ts +4 -1
- package/esm/BaseLinearDisplay/components/RenderedBlocks.js +4 -4
- 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 +1 -0
- package/esm/BaseLinearDisplay/components/Tooltip.js +6 -6
- 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 +954 -101
- package/esm/BaseLinearDisplay/model.js +211 -88
- 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 +2 -2
- 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 +957 -105
- 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 +1132 -135
- 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 +5 -5
- package/esm/LinearGenomeView/components/TrackContainer.js +25 -17
- 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 +19 -9
- 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 +7 -5
- package/esm/index.d.ts +973 -107
- 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 -57
- 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 -22
- package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +0 -5
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +0 -28
- package/dist/BaseLinearDisplay/components/MaxHeightReachedIndicator.d.ts +0 -3
- package/dist/BaseLinearDisplay/components/MaxHeightReachedIndicator.js +0 -27
- package/dist/BaseLinearDisplay/components/MenuPage.d.ts +0 -8
- package/dist/BaseLinearDisplay/components/MenuPage.js +0 -26
- package/dist/BaseLinearDisplay/components/RenderedBlocks.d.ts +0 -9
- package/dist/BaseLinearDisplay/components/RenderedBlocks.js +0 -27
- 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 -12
- package/dist/BaseLinearDisplay/components/Tooltip.js +0 -27
- package/dist/BaseLinearDisplay/components/types.d.ts +0 -1
- package/dist/BaseLinearDisplay/components/types.js +0 -2
- package/dist/BaseLinearDisplay/index.d.ts +0 -8
- package/dist/BaseLinearDisplay/index.js +0 -20
- package/dist/BaseLinearDisplay/model.d.ts +0 -324
- package/dist/BaseLinearDisplay/model.js +0 -340
- 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 -324
- 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 -361
- 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 -55
- 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 -127
- 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 -368
- 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/LinearBasicDisplay/components/AddFiltersDialog.d.ts +0 -9
- package/esm/LinearBasicDisplay/components/SetMaxHeightDialog.d.ts +0 -8
- package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +0 -6
- package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.js +0 -36
- /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/AddFiltersDialog.d.ts +0 -0
- /package/{dist/LinearBasicDisplay → esm/LinearFeatureDisplay}/components/SetMaxHeightDialog.d.ts +0 -0
package/dist/index.d.ts
DELETED
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
export default class LinearGenomeViewPlugin extends Plugin {
|
|
4
|
-
name: string;
|
|
5
|
-
exports: {
|
|
6
|
-
BaseLinearDisplayComponent: (props: {
|
|
7
|
-
model: import("./BaseLinearDisplay").BaseLinearDisplayModel;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
11
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
12
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
13
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
14
|
-
} & {
|
|
15
|
-
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
16
|
-
} & {
|
|
17
|
-
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
18
|
-
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
19
|
-
} & {
|
|
20
|
-
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
21
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
22
|
-
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
23
|
-
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
24
|
-
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
25
|
-
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
26
|
-
}, {
|
|
27
|
-
stopToken: string | undefined;
|
|
28
|
-
filled: boolean;
|
|
29
|
-
reactElement: React.ReactElement | undefined;
|
|
30
|
-
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
31
|
-
layout: any;
|
|
32
|
-
status: string;
|
|
33
|
-
error: unknown;
|
|
34
|
-
message: string | undefined;
|
|
35
|
-
maxHeightReached: boolean;
|
|
36
|
-
ReactComponent: ({ model, }: {
|
|
37
|
-
model: {
|
|
38
|
-
error?: unknown;
|
|
39
|
-
reload: () => void;
|
|
40
|
-
message: React.ReactNode;
|
|
41
|
-
filled?: boolean;
|
|
42
|
-
status?: string;
|
|
43
|
-
reactElement?: React.ReactElement;
|
|
44
|
-
};
|
|
45
|
-
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
46
|
-
renderProps: any;
|
|
47
|
-
} & {
|
|
48
|
-
doReload(): void;
|
|
49
|
-
afterAttach(): void;
|
|
50
|
-
setStatus(message: string): void;
|
|
51
|
-
setLoading(newStopToken: string): void;
|
|
52
|
-
setMessage(messageText: string): void;
|
|
53
|
-
setRendered(props: import("./BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
54
|
-
setError(error: unknown): void;
|
|
55
|
-
reload(): void;
|
|
56
|
-
beforeDestroy(): void;
|
|
57
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
58
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
59
|
-
maxFeatureScreenDensity: {
|
|
60
|
-
type: string;
|
|
61
|
-
description: string;
|
|
62
|
-
defaultValue: number;
|
|
63
|
-
};
|
|
64
|
-
fetchSizeLimit: {
|
|
65
|
-
type: string;
|
|
66
|
-
defaultValue: number;
|
|
67
|
-
description: string;
|
|
68
|
-
};
|
|
69
|
-
height: {
|
|
70
|
-
type: string;
|
|
71
|
-
defaultValue: number;
|
|
72
|
-
description: string;
|
|
73
|
-
};
|
|
74
|
-
mouseover: {
|
|
75
|
-
type: string;
|
|
76
|
-
description: string;
|
|
77
|
-
defaultValue: string;
|
|
78
|
-
contextVariable: string[];
|
|
79
|
-
};
|
|
80
|
-
jexlFilters: {
|
|
81
|
-
type: string;
|
|
82
|
-
description: string;
|
|
83
|
-
defaultValue: never[];
|
|
84
|
-
};
|
|
85
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
86
|
-
}, {
|
|
87
|
-
rendererTypeName: string;
|
|
88
|
-
error: unknown;
|
|
89
|
-
message: string | undefined;
|
|
90
|
-
} & {
|
|
91
|
-
readonly RenderingComponent: React.FC<{
|
|
92
|
-
model: {
|
|
93
|
-
id: string;
|
|
94
|
-
type: string;
|
|
95
|
-
rpcDriverName: string | undefined;
|
|
96
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
97
|
-
rendererTypeName: string;
|
|
98
|
-
error: unknown;
|
|
99
|
-
message: string | undefined;
|
|
100
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
101
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
102
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
103
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
104
|
-
}, {
|
|
105
|
-
rendererTypeName: string;
|
|
106
|
-
error: unknown;
|
|
107
|
-
message: string | undefined;
|
|
108
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
109
|
-
onHorizontalScroll?: () => void;
|
|
110
|
-
blockState?: Record<string, any>;
|
|
111
|
-
}>;
|
|
112
|
-
readonly DisplayBlurb: React.FC<{
|
|
113
|
-
model: {
|
|
114
|
-
id: string;
|
|
115
|
-
type: string;
|
|
116
|
-
rpcDriverName: string | undefined;
|
|
117
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
118
|
-
rendererTypeName: string;
|
|
119
|
-
error: unknown;
|
|
120
|
-
message: string | undefined;
|
|
121
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
122
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
123
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
124
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
125
|
-
}, {
|
|
126
|
-
rendererTypeName: string;
|
|
127
|
-
error: unknown;
|
|
128
|
-
message: string | undefined;
|
|
129
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
130
|
-
}> | null;
|
|
131
|
-
readonly adapterConfig: any;
|
|
132
|
-
readonly parentTrack: any;
|
|
133
|
-
renderProps(): any;
|
|
134
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
135
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
136
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
137
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
138
|
-
regionCannotBeRendered(): null;
|
|
139
|
-
} & {
|
|
140
|
-
setMessage(arg?: string): void;
|
|
141
|
-
setError(error?: unknown): void;
|
|
142
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
143
|
-
reload(): void;
|
|
144
|
-
} & {
|
|
145
|
-
scrollTop: number;
|
|
146
|
-
} & {
|
|
147
|
-
readonly height: number;
|
|
148
|
-
} & {
|
|
149
|
-
setScrollTop(scrollTop: number): void;
|
|
150
|
-
setHeight(displayHeight: number): number;
|
|
151
|
-
resizeHeight(distance: number): number;
|
|
152
|
-
} & {
|
|
153
|
-
featureDensityStatsP: undefined | Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
154
|
-
featureDensityStats: undefined | import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats;
|
|
155
|
-
currStatsBpPerPx: number;
|
|
156
|
-
} & {
|
|
157
|
-
readonly currentBytesRequested: number;
|
|
158
|
-
readonly currentFeatureScreenDensity: number;
|
|
159
|
-
readonly maxFeatureScreenDensity: any;
|
|
160
|
-
readonly featureDensityStatsReady: boolean;
|
|
161
|
-
readonly maxAllowableBytes: number;
|
|
162
|
-
} & {
|
|
163
|
-
afterAttach(): void;
|
|
164
|
-
} & {
|
|
165
|
-
setCurrStatsBpPerPx(n: number): void;
|
|
166
|
-
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
167
|
-
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
168
|
-
setFeatureDensityStatsP(arg: any): void;
|
|
169
|
-
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
170
|
-
clearFeatureDensityStats(): void;
|
|
171
|
-
} & {
|
|
172
|
-
readonly regionTooLarge: boolean;
|
|
173
|
-
readonly regionTooLargeReason: string;
|
|
174
|
-
} & {
|
|
175
|
-
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
176
|
-
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
177
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
178
|
-
} & {
|
|
179
|
-
mouseoverExtraInformation: string | undefined;
|
|
180
|
-
featureIdUnderMouse: undefined | string;
|
|
181
|
-
contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
|
|
182
|
-
} & {
|
|
183
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
184
|
-
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
185
|
-
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
186
|
-
} & {
|
|
187
|
-
readonly renderDelay: number;
|
|
188
|
-
readonly TooltipComponent: import("@jbrowse/core/util").AnyReactComponentType;
|
|
189
|
-
readonly selectedFeatureId: string | undefined;
|
|
190
|
-
copyInfoToClipboard(feature: import("@jbrowse/core/util").Feature): void;
|
|
191
|
-
} & {
|
|
192
|
-
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
193
|
-
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
194
|
-
readonly layoutFeatures: import("@jbrowse/core/util/compositeMap").default<string, [number, number, number, number] | [number, number, number, number, {
|
|
195
|
-
label?: string;
|
|
196
|
-
description?: string;
|
|
197
|
-
refName: string;
|
|
198
|
-
}]>;
|
|
199
|
-
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
200
|
-
getFeatureByID(blockKey: string, id: string): ([number, number, number, number] | [number, number, number, number, {
|
|
201
|
-
label?: string;
|
|
202
|
-
description?: string;
|
|
203
|
-
refName: string;
|
|
204
|
-
}]) | undefined;
|
|
205
|
-
searchFeatureByID(id: string): ([number, number, number, number] | [number, number, number, number, {
|
|
206
|
-
label?: string;
|
|
207
|
-
description?: string;
|
|
208
|
-
refName: string;
|
|
209
|
-
}]) | undefined;
|
|
210
|
-
} & {
|
|
211
|
-
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
212
|
-
deleteBlock(key: string): void;
|
|
213
|
-
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
214
|
-
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
215
|
-
clearFeatureSelection(): void;
|
|
216
|
-
setFeatureIdUnderMouse(feature?: string): void;
|
|
217
|
-
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature): void;
|
|
218
|
-
setMouseoverExtraInformation(extra?: string): void;
|
|
219
|
-
} & {
|
|
220
|
-
reload(): Promise<void>;
|
|
221
|
-
} & {
|
|
222
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
223
|
-
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
224
|
-
renderProps(): any;
|
|
225
|
-
} & {
|
|
226
|
-
renderSvg(opts: import("./BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
227
|
-
afterAttach(): void;
|
|
228
|
-
}, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
229
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
230
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
231
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
232
|
-
} & {
|
|
233
|
-
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
234
|
-
} & {
|
|
235
|
-
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
236
|
-
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
237
|
-
} & {
|
|
238
|
-
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
239
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
240
|
-
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
241
|
-
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
242
|
-
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
243
|
-
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
244
|
-
}, {
|
|
245
|
-
stopToken: string | undefined;
|
|
246
|
-
filled: boolean;
|
|
247
|
-
reactElement: React.ReactElement | undefined;
|
|
248
|
-
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
249
|
-
layout: any;
|
|
250
|
-
status: string;
|
|
251
|
-
error: unknown;
|
|
252
|
-
message: string | undefined;
|
|
253
|
-
maxHeightReached: boolean;
|
|
254
|
-
ReactComponent: ({ model, }: {
|
|
255
|
-
model: {
|
|
256
|
-
error?: unknown;
|
|
257
|
-
reload: () => void;
|
|
258
|
-
message: React.ReactNode;
|
|
259
|
-
filled?: boolean;
|
|
260
|
-
status?: string;
|
|
261
|
-
reactElement?: React.ReactElement;
|
|
262
|
-
};
|
|
263
|
-
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
264
|
-
renderProps: any;
|
|
265
|
-
} & {
|
|
266
|
-
doReload(): void;
|
|
267
|
-
afterAttach(): void;
|
|
268
|
-
setStatus(message: string): void;
|
|
269
|
-
setLoading(newStopToken: string): void;
|
|
270
|
-
setMessage(messageText: string): void;
|
|
271
|
-
setRendered(props: import("./BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
272
|
-
setError(error: unknown): void;
|
|
273
|
-
reload(): void;
|
|
274
|
-
beforeDestroy(): void;
|
|
275
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
276
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
277
|
-
maxFeatureScreenDensity: {
|
|
278
|
-
type: string;
|
|
279
|
-
description: string;
|
|
280
|
-
defaultValue: number;
|
|
281
|
-
};
|
|
282
|
-
fetchSizeLimit: {
|
|
283
|
-
type: string;
|
|
284
|
-
defaultValue: number;
|
|
285
|
-
description: string;
|
|
286
|
-
};
|
|
287
|
-
height: {
|
|
288
|
-
type: string;
|
|
289
|
-
defaultValue: number;
|
|
290
|
-
description: string;
|
|
291
|
-
};
|
|
292
|
-
mouseover: {
|
|
293
|
-
type: string;
|
|
294
|
-
description: string;
|
|
295
|
-
defaultValue: string;
|
|
296
|
-
contextVariable: string[];
|
|
297
|
-
};
|
|
298
|
-
jexlFilters: {
|
|
299
|
-
type: string;
|
|
300
|
-
description: string;
|
|
301
|
-
defaultValue: never[];
|
|
302
|
-
};
|
|
303
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
304
|
-
}>>, {
|
|
305
|
-
type: string;
|
|
306
|
-
id: string;
|
|
307
|
-
configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
|
|
308
|
-
rpcDriverName: string | undefined;
|
|
309
|
-
heightPreConfig: number | undefined;
|
|
310
|
-
userBpPerPxLimit: number | undefined;
|
|
311
|
-
userByteSizeLimit: number | undefined;
|
|
312
|
-
}>;
|
|
313
|
-
baseLinearDisplayConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
314
|
-
maxFeatureScreenDensity: {
|
|
315
|
-
type: string;
|
|
316
|
-
description: string;
|
|
317
|
-
defaultValue: number;
|
|
318
|
-
};
|
|
319
|
-
fetchSizeLimit: {
|
|
320
|
-
type: string;
|
|
321
|
-
defaultValue: number;
|
|
322
|
-
description: string;
|
|
323
|
-
};
|
|
324
|
-
height: {
|
|
325
|
-
type: string;
|
|
326
|
-
defaultValue: number;
|
|
327
|
-
description: string;
|
|
328
|
-
};
|
|
329
|
-
mouseover: {
|
|
330
|
-
type: string;
|
|
331
|
-
description: string;
|
|
332
|
-
defaultValue: string;
|
|
333
|
-
contextVariable: string[];
|
|
334
|
-
};
|
|
335
|
-
jexlFilters: {
|
|
336
|
-
type: string;
|
|
337
|
-
description: string;
|
|
338
|
-
defaultValue: never[];
|
|
339
|
-
};
|
|
340
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
341
|
-
SearchBox: ({ model, showHelp, }: {
|
|
342
|
-
showHelp?: boolean;
|
|
343
|
-
model: import("./LinearGenomeView").LinearGenomeViewModel;
|
|
344
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
345
|
-
ZoomControls: ({ model, }: {
|
|
346
|
-
model: import("./LinearGenomeView").LinearGenomeViewModel;
|
|
347
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
348
|
-
LinearGenomeView: ({ model, }: {
|
|
349
|
-
model: import("./LinearGenomeView").LinearGenomeViewModel;
|
|
350
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
351
|
-
};
|
|
352
|
-
configurationSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
353
|
-
trackLabels: {
|
|
354
|
-
type: string;
|
|
355
|
-
defaultValue: string;
|
|
356
|
-
model: import("mobx-state-tree").ISimpleType<string>;
|
|
357
|
-
};
|
|
358
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
359
|
-
install(pluginManager: PluginManager): void;
|
|
360
|
-
configure(pluginManager: PluginManager): void;
|
|
361
|
-
}
|
|
362
|
-
export type { BaseLinearDisplayModel, BlockModel, ExportSvgDisplayOptions, } from './BaseLinearDisplay';
|
|
363
|
-
export { configSchemaFactory as linearBareDisplayConfigSchemaFactory, stateModelFactory as linearBareDisplayStateModelFactory, } from './LinearBareDisplay';
|
|
364
|
-
export { BaseLinearDisplay, BaseLinearDisplayComponent, BlockMsg, FeatureDensityMixin, TooLargeMessage, TrackHeightMixin, baseLinearDisplayConfigSchema, } from './BaseLinearDisplay';
|
|
365
|
-
export { type LinearGenomeViewModel, type LinearGenomeViewStateModel, RefNameAutocomplete, SearchBox, } from './LinearGenomeView';
|
|
366
|
-
export { SVGRuler, SVGTracks, renderToSvg, } from './LinearGenomeView/svgcomponents/SVGLinearGenomeView';
|
|
367
|
-
export { totalHeight } from './LinearGenomeView/svgcomponents/util';
|
|
368
|
-
export { configSchema as linearBasicDisplayConfigSchemaFactory, modelFactory as linearBasicDisplayModelFactory, } from './LinearBasicDisplay';
|
package/dist/index.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.linearBasicDisplayModelFactory = exports.linearBasicDisplayConfigSchemaFactory = exports.totalHeight = exports.renderToSvg = exports.SVGTracks = exports.SVGRuler = exports.SearchBox = exports.RefNameAutocomplete = exports.baseLinearDisplayConfigSchema = exports.TrackHeightMixin = exports.TooLargeMessage = exports.FeatureDensityMixin = exports.BlockMsg = exports.BaseLinearDisplayComponent = exports.BaseLinearDisplay = exports.linearBareDisplayStateModelFactory = exports.linearBareDisplayConfigSchemaFactory = void 0;
|
|
40
|
-
const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
|
|
41
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
42
|
-
const util_1 = require("@jbrowse/core/util");
|
|
43
|
-
const LineStyle_1 = __importDefault(require("@mui/icons-material/LineStyle"));
|
|
44
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
45
|
-
const BaseLinearDisplay_1 = require("./BaseLinearDisplay");
|
|
46
|
-
const BasicTrack_1 = __importDefault(require("./BasicTrack"));
|
|
47
|
-
const FeatureTrack_1 = __importDefault(require("./FeatureTrack"));
|
|
48
|
-
const LaunchLinearGenomeView_1 = __importDefault(require("./LaunchLinearGenomeView"));
|
|
49
|
-
const LinearBareDisplay_1 = __importDefault(require("./LinearBareDisplay"));
|
|
50
|
-
const LinearBasicDisplay_1 = __importDefault(require("./LinearBasicDisplay"));
|
|
51
|
-
const LinearGenomeView_1 = __importStar(require("./LinearGenomeView"));
|
|
52
|
-
const HeaderZoomControls_1 = __importDefault(require("./LinearGenomeView/components/HeaderZoomControls"));
|
|
53
|
-
class LinearGenomeViewPlugin extends Plugin_1.default {
|
|
54
|
-
constructor() {
|
|
55
|
-
super(...arguments);
|
|
56
|
-
this.name = 'LinearGenomeViewPlugin';
|
|
57
|
-
this.exports = {
|
|
58
|
-
BaseLinearDisplayComponent: BaseLinearDisplay_1.BaseLinearDisplayComponent,
|
|
59
|
-
BaseLinearDisplay: BaseLinearDisplay_1.BaseLinearDisplay,
|
|
60
|
-
baseLinearDisplayConfigSchema: BaseLinearDisplay_1.baseLinearDisplayConfigSchema,
|
|
61
|
-
SearchBox: LinearGenomeView_1.SearchBox,
|
|
62
|
-
ZoomControls: HeaderZoomControls_1.default,
|
|
63
|
-
LinearGenomeView: LinearGenomeView_1.LinearGenomeView,
|
|
64
|
-
};
|
|
65
|
-
this.configurationSchema = (0, configuration_1.ConfigurationSchema)('LinearGenomeViewConfigSchema', {
|
|
66
|
-
trackLabels: {
|
|
67
|
-
type: 'string',
|
|
68
|
-
defaultValue: 'overlapping',
|
|
69
|
-
model: mobx_state_tree_1.types.enumeration('trackLabelOptions', [
|
|
70
|
-
'offset',
|
|
71
|
-
'overlapping',
|
|
72
|
-
'hidden',
|
|
73
|
-
]),
|
|
74
|
-
},
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
install(pluginManager) {
|
|
78
|
-
(0, FeatureTrack_1.default)(pluginManager);
|
|
79
|
-
(0, BasicTrack_1.default)(pluginManager);
|
|
80
|
-
(0, LinearBasicDisplay_1.default)(pluginManager);
|
|
81
|
-
(0, LinearGenomeView_1.default)(pluginManager);
|
|
82
|
-
(0, LinearBareDisplay_1.default)(pluginManager);
|
|
83
|
-
(0, LaunchLinearGenomeView_1.default)(pluginManager);
|
|
84
|
-
}
|
|
85
|
-
configure(pluginManager) {
|
|
86
|
-
if ((0, util_1.isAbstractMenuManager)(pluginManager.rootModel)) {
|
|
87
|
-
pluginManager.rootModel.appendToSubMenu(['Add'], {
|
|
88
|
-
label: 'Linear genome view',
|
|
89
|
-
icon: LineStyle_1.default,
|
|
90
|
-
onClick: (session) => {
|
|
91
|
-
session.addView('LinearGenomeView', {});
|
|
92
|
-
},
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
exports.default = LinearGenomeViewPlugin;
|
|
98
|
-
var LinearBareDisplay_2 = require("./LinearBareDisplay");
|
|
99
|
-
Object.defineProperty(exports, "linearBareDisplayConfigSchemaFactory", { enumerable: true, get: function () { return LinearBareDisplay_2.configSchemaFactory; } });
|
|
100
|
-
Object.defineProperty(exports, "linearBareDisplayStateModelFactory", { enumerable: true, get: function () { return LinearBareDisplay_2.stateModelFactory; } });
|
|
101
|
-
var BaseLinearDisplay_2 = require("./BaseLinearDisplay");
|
|
102
|
-
Object.defineProperty(exports, "BaseLinearDisplay", { enumerable: true, get: function () { return BaseLinearDisplay_2.BaseLinearDisplay; } });
|
|
103
|
-
Object.defineProperty(exports, "BaseLinearDisplayComponent", { enumerable: true, get: function () { return BaseLinearDisplay_2.BaseLinearDisplayComponent; } });
|
|
104
|
-
Object.defineProperty(exports, "BlockMsg", { enumerable: true, get: function () { return BaseLinearDisplay_2.BlockMsg; } });
|
|
105
|
-
Object.defineProperty(exports, "FeatureDensityMixin", { enumerable: true, get: function () { return BaseLinearDisplay_2.FeatureDensityMixin; } });
|
|
106
|
-
Object.defineProperty(exports, "TooLargeMessage", { enumerable: true, get: function () { return BaseLinearDisplay_2.TooLargeMessage; } });
|
|
107
|
-
Object.defineProperty(exports, "TrackHeightMixin", { enumerable: true, get: function () { return BaseLinearDisplay_2.TrackHeightMixin; } });
|
|
108
|
-
Object.defineProperty(exports, "baseLinearDisplayConfigSchema", { enumerable: true, get: function () { return BaseLinearDisplay_2.baseLinearDisplayConfigSchema; } });
|
|
109
|
-
var LinearGenomeView_2 = require("./LinearGenomeView");
|
|
110
|
-
Object.defineProperty(exports, "RefNameAutocomplete", { enumerable: true, get: function () { return LinearGenomeView_2.RefNameAutocomplete; } });
|
|
111
|
-
Object.defineProperty(exports, "SearchBox", { enumerable: true, get: function () { return LinearGenomeView_2.SearchBox; } });
|
|
112
|
-
var SVGLinearGenomeView_1 = require("./LinearGenomeView/svgcomponents/SVGLinearGenomeView");
|
|
113
|
-
Object.defineProperty(exports, "SVGRuler", { enumerable: true, get: function () { return SVGLinearGenomeView_1.SVGRuler; } });
|
|
114
|
-
Object.defineProperty(exports, "SVGTracks", { enumerable: true, get: function () { return SVGLinearGenomeView_1.SVGTracks; } });
|
|
115
|
-
Object.defineProperty(exports, "renderToSvg", { enumerable: true, get: function () { return SVGLinearGenomeView_1.renderToSvg; } });
|
|
116
|
-
var util_2 = require("./LinearGenomeView/svgcomponents/util");
|
|
117
|
-
Object.defineProperty(exports, "totalHeight", { enumerable: true, get: function () { return util_2.totalHeight; } });
|
|
118
|
-
var LinearBasicDisplay_2 = require("./LinearBasicDisplay");
|
|
119
|
-
Object.defineProperty(exports, "linearBasicDisplayConfigSchemaFactory", { enumerable: true, get: function () { return LinearBasicDisplay_2.configSchema; } });
|
|
120
|
-
Object.defineProperty(exports, "linearBasicDisplayModelFactory", { enumerable: true, get: function () { return LinearBasicDisplay_2.modelFactory; } });
|
package/dist/searchUtils.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
2
|
-
import type { LinearGenomeViewModel } from './LinearGenomeView';
|
|
3
|
-
import type { SearchScope } from '@jbrowse/core/TextSearch/TextSearchManager';
|
|
4
|
-
import type { Assembly } from '@jbrowse/core/assemblyManager/assembly';
|
|
5
|
-
import type { SearchType } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
6
|
-
import type { TextSearchManager } from '@jbrowse/core/util';
|
|
7
|
-
export declare function navToOption({ option, model, assemblyName, }: {
|
|
8
|
-
model: LinearGenomeViewModel;
|
|
9
|
-
option: BaseResult;
|
|
10
|
-
assemblyName: string;
|
|
11
|
-
}): Promise<void>;
|
|
12
|
-
export declare function handleSelectedRegion({ input, model, assembly, }: {
|
|
13
|
-
input: string;
|
|
14
|
-
model: LinearGenomeViewModel;
|
|
15
|
-
assembly: Assembly;
|
|
16
|
-
}): Promise<void>;
|
|
17
|
-
export declare function checkRef(str: string, allRefs: string[]): boolean;
|
|
18
|
-
export declare function fetchResults({ queryString, searchType, searchScope, rankSearchResults, textSearchManager, assembly, }: {
|
|
19
|
-
queryString: string;
|
|
20
|
-
searchScope: SearchScope;
|
|
21
|
-
rankSearchResults: (results: BaseResult[]) => BaseResult[];
|
|
22
|
-
searchType?: SearchType;
|
|
23
|
-
textSearchManager?: TextSearchManager;
|
|
24
|
-
assembly?: Assembly;
|
|
25
|
-
}): Promise<BaseResult[]>;
|
|
26
|
-
export declare function splitLast(str: string, split: string): [string, string];
|
package/dist/searchUtils.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.navToOption = navToOption;
|
|
7
|
-
exports.handleSelectedRegion = handleSelectedRegion;
|
|
8
|
-
exports.checkRef = checkRef;
|
|
9
|
-
exports.fetchResults = fetchResults;
|
|
10
|
-
exports.splitLast = splitLast;
|
|
11
|
-
const BaseResults_1 = __importDefault(require("@jbrowse/core/TextSearch/BaseResults"));
|
|
12
|
-
const util_1 = require("@jbrowse/core/util");
|
|
13
|
-
async function navToOption({ option, model, assemblyName, }) {
|
|
14
|
-
const location = option.getLocation();
|
|
15
|
-
const trackId = option.getTrackId();
|
|
16
|
-
if (location) {
|
|
17
|
-
await model.navToLocString(location, assemblyName, 0.2);
|
|
18
|
-
if (trackId) {
|
|
19
|
-
model.showTrack(trackId);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
async function handleSelectedRegion({ input, model, assembly, }) {
|
|
24
|
-
const allRefs = assembly.allRefNamesWithLowerCase || [];
|
|
25
|
-
const assemblyName = assembly.name;
|
|
26
|
-
if (input.split(' ').every(entry => checkRef(entry, allRefs))) {
|
|
27
|
-
await model.navToLocString(input, assembly.name);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
const searchScope = model.searchScope(assemblyName);
|
|
31
|
-
const { textSearchManager } = (0, util_1.getSession)(model);
|
|
32
|
-
const results = await fetchResults({
|
|
33
|
-
queryString: input,
|
|
34
|
-
searchType: 'exact',
|
|
35
|
-
searchScope,
|
|
36
|
-
rankSearchResults: model.rankSearchResults,
|
|
37
|
-
textSearchManager,
|
|
38
|
-
assembly,
|
|
39
|
-
});
|
|
40
|
-
if (results.length > 1) {
|
|
41
|
-
model.setSearchResults(results, input.toLowerCase(), assemblyName);
|
|
42
|
-
}
|
|
43
|
-
else if (results.length === 1) {
|
|
44
|
-
await navToOption({
|
|
45
|
-
option: results[0],
|
|
46
|
-
model,
|
|
47
|
-
assemblyName,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
await model.navToLocString(input, assemblyName);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function checkRef(str, allRefs) {
|
|
56
|
-
const [ref, rest] = splitLast(str, ':');
|
|
57
|
-
return (allRefs.includes(str) ||
|
|
58
|
-
(allRefs.includes(ref) && !Number.isNaN(Number.parseInt(rest, 10))));
|
|
59
|
-
}
|
|
60
|
-
async function fetchResults({ queryString, searchType, searchScope, rankSearchResults, textSearchManager, assembly, }) {
|
|
61
|
-
var _a;
|
|
62
|
-
if (!textSearchManager) {
|
|
63
|
-
console.warn('No text search manager');
|
|
64
|
-
}
|
|
65
|
-
const textSearchResults = await (textSearchManager === null || textSearchManager === void 0 ? void 0 : textSearchManager.search({
|
|
66
|
-
queryString,
|
|
67
|
-
searchType,
|
|
68
|
-
}, searchScope, rankSearchResults));
|
|
69
|
-
const refNameResults = (_a = assembly === null || assembly === void 0 ? void 0 : assembly.allRefNames) === null || _a === void 0 ? void 0 : _a.filter(ref => ref.toLowerCase().startsWith(queryString.toLowerCase())).slice(0, 10).map(r => new BaseResults_1.default({ label: r }));
|
|
70
|
-
return (0, util_1.dedupe)([...(refNameResults || []), ...(textSearchResults || [])], elt => elt.getId());
|
|
71
|
-
}
|
|
72
|
-
function splitLast(str, split) {
|
|
73
|
-
const lastIndex = str.lastIndexOf(split);
|
|
74
|
-
if (lastIndex === -1) {
|
|
75
|
-
return [str, ''];
|
|
76
|
-
}
|
|
77
|
-
const before = str.slice(0, lastIndex);
|
|
78
|
-
const after = str.slice(lastIndex + 1);
|
|
79
|
-
return [before, after];
|
|
80
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { LoadingEllipses } from '@jbrowse/core/ui';
|
|
3
|
-
import { observer } from 'mobx-react';
|
|
4
|
-
import { getParent } from 'mobx-state-tree';
|
|
5
|
-
import { makeStyles } from 'tss-react/mui';
|
|
6
|
-
const useStyles = makeStyles()(theme => {
|
|
7
|
-
const bg = theme.palette.action.disabledBackground;
|
|
8
|
-
return {
|
|
9
|
-
loading: {
|
|
10
|
-
paddingLeft: '0.6em',
|
|
11
|
-
backgroundColor: theme.palette.background.default,
|
|
12
|
-
backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${bg} 5px, ${bg} 10px)`,
|
|
13
|
-
textAlign: 'center',
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
});
|
|
17
|
-
const BlockLoadingMessage = observer(function ({ model, }) {
|
|
18
|
-
const { classes } = useStyles();
|
|
19
|
-
const { status: blockStatus } = model;
|
|
20
|
-
const { message: displayStatus } = getParent(model, 2);
|
|
21
|
-
const status = displayStatus || blockStatus;
|
|
22
|
-
return (_jsx("div", { className: classes.loading, children: _jsx(LoadingEllipses, { message: status }) }));
|
|
23
|
-
});
|
|
24
|
-
export default BlockLoadingMessage;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const AddFiltersDialog: ({ model, handleClose, }: {
|
|
2
|
-
model: {
|
|
3
|
-
jexlFilters?: string[];
|
|
4
|
-
activeFilters: string[];
|
|
5
|
-
setJexlFilters: (arg?: string[]) => void;
|
|
6
|
-
};
|
|
7
|
-
handleClose: () => void;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default AddFiltersDialog;
|