@jbrowse/plugin-linear-genome-view 3.7.0 → 4.0.1
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
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
-
const react_1 = require("react");
|
|
41
|
-
const BaseResults_1 = __importStar(require("@jbrowse/core/TextSearch/BaseResults"));
|
|
42
|
-
const util_1 = require("@jbrowse/core/util");
|
|
43
|
-
const material_1 = require("@mui/material");
|
|
44
|
-
const mobx_react_1 = require("mobx-react");
|
|
45
|
-
const AutocompleteTextField_1 = __importDefault(require("./AutocompleteTextField"));
|
|
46
|
-
const util_2 = require("./util");
|
|
47
|
-
const RefNameAutocomplete = (0, mobx_react_1.observer)(function ({ model, onSelect, assemblyName, style, fetchResults, onChange, value, minWidth = 200, maxWidth = 550, TextFieldProps = {}, }) {
|
|
48
|
-
const session = (0, util_1.getSession)(model);
|
|
49
|
-
const { assemblyManager } = session;
|
|
50
|
-
const [open, setOpen] = (0, react_1.useState)(false);
|
|
51
|
-
const [loaded, setLoaded] = (0, react_1.useState)(true);
|
|
52
|
-
const [currentSearch, setCurrentSearch] = (0, react_1.useState)('');
|
|
53
|
-
const [inputValue, setInputValue] = (0, react_1.useState)('');
|
|
54
|
-
const [searchOptions, setSearchOptions] = (0, react_1.useState)();
|
|
55
|
-
const debouncedSearch = (0, util_1.useDebounce)(currentSearch, 50);
|
|
56
|
-
const assembly = assemblyName ? assemblyManager.get(assemblyName) : undefined;
|
|
57
|
-
const { coarseVisibleLocStrings, hasDisplayedRegions } = model;
|
|
58
|
-
(0, react_1.useEffect)(() => {
|
|
59
|
-
const isCurrent = { cancelled: false };
|
|
60
|
-
(async () => {
|
|
61
|
-
try {
|
|
62
|
-
if (debouncedSearch === '' || !assemblyName) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
setLoaded(false);
|
|
66
|
-
const results = await fetchResults(debouncedSearch);
|
|
67
|
-
if (!isCurrent.cancelled) {
|
|
68
|
-
setSearchOptions((0, util_2.getDeduplicatedResult)(results));
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
catch (e) {
|
|
72
|
-
console.error(e);
|
|
73
|
-
if (!isCurrent.cancelled) {
|
|
74
|
-
session.notifyError(`${e}`, e);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
finally {
|
|
78
|
-
if (!isCurrent.cancelled) {
|
|
79
|
-
setLoaded(true);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
})();
|
|
83
|
-
return () => {
|
|
84
|
-
isCurrent.cancelled = true;
|
|
85
|
-
};
|
|
86
|
-
}, [assemblyName, fetchResults, debouncedSearch, session]);
|
|
87
|
-
const inputBoxVal = coarseVisibleLocStrings || value || '';
|
|
88
|
-
const regions = assembly === null || assembly === void 0 ? void 0 : assembly.regions;
|
|
89
|
-
const regionOptions = (0, react_1.useMemo)(() => (regions === null || regions === void 0 ? void 0 : regions.map(region => ({
|
|
90
|
-
result: new BaseResults_1.RefSequenceResult({
|
|
91
|
-
refName: region.refName,
|
|
92
|
-
label: region.refName,
|
|
93
|
-
displayString: region.refName,
|
|
94
|
-
matchedAttribute: 'refName',
|
|
95
|
-
}),
|
|
96
|
-
}))) || [], [regions]);
|
|
97
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { "data-testid": "autocomplete", disableListWrap: true, disableClearable: true, disabled: !assemblyName, freeSolo: true, includeInputInList: true, selectOnFocus: true, style: {
|
|
98
|
-
...style,
|
|
99
|
-
width: Math.min(Math.max((0, util_1.measureText)(inputBoxVal, 14) + 100, minWidth), maxWidth),
|
|
100
|
-
}, value: inputBoxVal, loading: !loaded, inputValue: inputValue, onInputChange: (_event, newInputValue) => {
|
|
101
|
-
setInputValue(newInputValue);
|
|
102
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newInputValue);
|
|
103
|
-
}, loadingText: "loading results", open: open, onOpen: () => {
|
|
104
|
-
setOpen(true);
|
|
105
|
-
}, onClose: () => {
|
|
106
|
-
setOpen(false);
|
|
107
|
-
setLoaded(true);
|
|
108
|
-
if (hasDisplayedRegions) {
|
|
109
|
-
setCurrentSearch('');
|
|
110
|
-
setSearchOptions(undefined);
|
|
111
|
-
}
|
|
112
|
-
}, onChange: (_event, selectedOption) => {
|
|
113
|
-
if (!selectedOption || !assemblyName) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
if (typeof selectedOption === 'string') {
|
|
117
|
-
onSelect === null || onSelect === void 0 ? void 0 : onSelect(new BaseResults_1.default({
|
|
118
|
-
label: selectedOption,
|
|
119
|
-
}));
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
onSelect === null || onSelect === void 0 ? void 0 : onSelect(selectedOption.result);
|
|
123
|
-
}
|
|
124
|
-
setInputValue(inputBoxVal);
|
|
125
|
-
}, options: (searchOptions === null || searchOptions === void 0 ? void 0 : searchOptions.length) ? searchOptions : regionOptions, getOptionDisabled: option => option.group === 'limitOption', filterOptions: (opts, { inputValue }) => (0, util_2.getFiltered)(opts, inputValue), renderInput: params => ((0, jsx_runtime_1.jsx)(AutocompleteTextField_1.default, { params: params, inputBoxVal: inputBoxVal, TextFieldProps: TextFieldProps, setCurrentSearch: setCurrentSearch, setInputValue: setInputValue })), getOptionLabel: opt => typeof opt === 'string' ? opt : opt.result.getDisplayString() }));
|
|
126
|
-
});
|
|
127
|
-
exports.default = RefNameAutocomplete;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
2
|
-
export interface Option {
|
|
3
|
-
group?: string;
|
|
4
|
-
result: BaseResult;
|
|
5
|
-
}
|
|
6
|
-
export declare function getFiltered(opts: Option[], inputValue: string): Option[];
|
|
7
|
-
export declare function aggregateResults(results: BaseResult[]): Record<string, BaseResult[]>;
|
|
8
|
-
export declare function getDeduplicatedResult(results: BaseResult[]): {
|
|
9
|
-
result: BaseResult;
|
|
10
|
-
}[];
|
|
@@ -1,53 +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.getFiltered = getFiltered;
|
|
7
|
-
exports.aggregateResults = aggregateResults;
|
|
8
|
-
exports.getDeduplicatedResult = getDeduplicatedResult;
|
|
9
|
-
const BaseResults_1 = __importDefault(require("@jbrowse/core/TextSearch/BaseResults"));
|
|
10
|
-
function filterOptions(options, searchQuery) {
|
|
11
|
-
return options.filter(({ result }) => result.getLabel().toLowerCase().includes(searchQuery) ||
|
|
12
|
-
result.matchedObject);
|
|
13
|
-
}
|
|
14
|
-
function getFiltered(opts, inputValue) {
|
|
15
|
-
const filtered = filterOptions(opts, inputValue.toLocaleLowerCase());
|
|
16
|
-
return [
|
|
17
|
-
...filtered.slice(0, 100),
|
|
18
|
-
...(filtered.length > 100
|
|
19
|
-
? [
|
|
20
|
-
{
|
|
21
|
-
group: 'limitOption',
|
|
22
|
-
result: new BaseResults_1.default({
|
|
23
|
-
label: 'keep typing for more results',
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
]
|
|
27
|
-
: []),
|
|
28
|
-
];
|
|
29
|
-
}
|
|
30
|
-
function aggregateResults(results) {
|
|
31
|
-
const m = {};
|
|
32
|
-
for (const result of results) {
|
|
33
|
-
const displayString = result.getDisplayString();
|
|
34
|
-
if (!m[displayString]) {
|
|
35
|
-
m[displayString] = [];
|
|
36
|
-
}
|
|
37
|
-
m[displayString].push(result);
|
|
38
|
-
}
|
|
39
|
-
return m;
|
|
40
|
-
}
|
|
41
|
-
function getDeduplicatedResult(results) {
|
|
42
|
-
return Object.entries(aggregateResults(results)).map(([displayString, results]) => results.length === 1
|
|
43
|
-
? {
|
|
44
|
-
result: results[0],
|
|
45
|
-
}
|
|
46
|
-
: {
|
|
47
|
-
result: new BaseResults_1.default({
|
|
48
|
-
displayString,
|
|
49
|
-
results,
|
|
50
|
-
label: displayString,
|
|
51
|
-
}),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { LinearGenomeViewModel } from '../model';
|
|
2
|
-
declare const RegionWidthEditorDialog: ({ model, handleClose, }: {
|
|
3
|
-
model: LinearGenomeViewModel;
|
|
4
|
-
handleClose: () => void;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default RegionWidthEditorDialog;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
-
const util_1 = require("@jbrowse/core/util");
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
8
|
-
const mobx_react_1 = require("mobx-react");
|
|
9
|
-
const toP = (s = 0) => +s.toFixed(1);
|
|
10
|
-
const RegionWidthEditorDialog = (0, mobx_react_1.observer)(function ({ model, handleClose, }) {
|
|
11
|
-
const { bpPerPx, width } = model;
|
|
12
|
-
const [val, setVal] = (0, react_1.useState)((0, util_1.toLocale)(toP(bpPerPx * width)));
|
|
13
|
-
(0, react_1.useEffect)(() => {
|
|
14
|
-
setVal((0, util_1.toLocale)(bpPerPx * width));
|
|
15
|
-
}, [bpPerPx, width]);
|
|
16
|
-
const val2 = val.replace(/,/g, '');
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { title: "Edit zoom level", open: true, onClose: handleClose, children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { style: {
|
|
18
|
-
display: 'flex',
|
|
19
|
-
flexDirection: 'column',
|
|
20
|
-
gap: 30,
|
|
21
|
-
}, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { children: "Enter a specific number of base pairs to change the viewport to show. This is approximate and does not account for padding between regions or off-screen scrolling" }), (0, jsx_runtime_1.jsx)(material_1.TextField, { helperText: "current zoom level (in bp)", value: val, onChange: event => {
|
|
22
|
-
setVal(event.target.value);
|
|
23
|
-
} })] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
24
|
-
handleClose();
|
|
25
|
-
}, children: "Cancel" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", onClick: () => {
|
|
26
|
-
model.zoomTo(+val2 / model.width);
|
|
27
|
-
handleClose();
|
|
28
|
-
}, children: "Submit" })] })] }));
|
|
29
|
-
});
|
|
30
|
-
exports.default = RegionWidthEditorDialog;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { LinearGenomeViewModel } from '..';
|
|
2
|
-
type LGV = LinearGenomeViewModel;
|
|
3
|
-
declare const Rubberband: ({ model, ControlComponent, }: {
|
|
4
|
-
model: LGV;
|
|
5
|
-
ControlComponent?: React.ReactElement;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default Rubberband;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
const mui_1 = require("tss-react/mui");
|
|
11
|
-
const RubberbandSpan_1 = __importDefault(require("./RubberbandSpan"));
|
|
12
|
-
const VerticalGuide_1 = __importDefault(require("./VerticalGuide"));
|
|
13
|
-
const useRangeSelect_1 = require("./useRangeSelect");
|
|
14
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
15
|
-
rubberbandControl: {
|
|
16
|
-
cursor: 'crosshair',
|
|
17
|
-
width: '100%',
|
|
18
|
-
minHeight: 8,
|
|
19
|
-
zIndex: 825,
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
const Rubberband = (0, mobx_react_1.observer)(function ({ model, ControlComponent = (0, jsx_runtime_1.jsx)("div", {}), }) {
|
|
23
|
-
const ref = (0, react_1.useRef)(null);
|
|
24
|
-
const { classes } = useStyles();
|
|
25
|
-
const { stickyViewHeaders, rubberbandTop } = model;
|
|
26
|
-
const { guideX, rubberbandOn, leftBpOffset, rightBpOffset, numOfBpSelected, width, left, anchorPosition, open, handleMenuItemClick, handleClose, mouseMove, mouseDown, mouseOut, } = (0, useRangeSelect_1.useRangeSelect)(ref, model);
|
|
27
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [guideX !== undefined ? ((0, jsx_runtime_1.jsx)(VerticalGuide_1.default, { model: model, coordX: guideX })) : rubberbandOn ? ((0, jsx_runtime_1.jsx)(RubberbandSpan_1.default, { leftBpOffset: leftBpOffset, rightBpOffset: rightBpOffset, numOfBpSelected: numOfBpSelected, width: width, left: left, top: rubberbandTop, sticky: stickyViewHeaders })) : null, anchorPosition ? ((0, jsx_runtime_1.jsx)(ui_1.Menu, { anchorReference: "anchorPosition", anchorPosition: {
|
|
28
|
-
left: anchorPosition.clientX,
|
|
29
|
-
top: anchorPosition.clientY,
|
|
30
|
-
}, onMenuItemClick: handleMenuItemClick, open: open, onClose: handleClose, menuItems: model.rubberBandMenuItems() })) : null, (0, jsx_runtime_1.jsx)("div", { "data-testid": "rubberband_controls", className: classes.rubberbandControl, style: {
|
|
31
|
-
top: rubberbandTop,
|
|
32
|
-
position: stickyViewHeaders ? 'sticky' : undefined,
|
|
33
|
-
}, ref: ref, onMouseDown: mouseDown, onMouseMove: mouseMove, onMouseOut: mouseOut, children: ControlComponent })] }));
|
|
34
|
-
});
|
|
35
|
-
exports.default = Rubberband;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
interface Offset {
|
|
2
|
-
coord: number;
|
|
3
|
-
refName?: string;
|
|
4
|
-
oob?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export default function RubberbandSpan({ leftBpOffset, rightBpOffset, numOfBpSelected, left, width, top, sticky, }: {
|
|
7
|
-
leftBpOffset: Offset;
|
|
8
|
-
rightBpOffset: Offset;
|
|
9
|
-
numOfBpSelected?: number;
|
|
10
|
-
left: number;
|
|
11
|
-
width: number;
|
|
12
|
-
top?: number;
|
|
13
|
-
sticky?: boolean;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = RubberbandSpan;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const util_1 = require("@jbrowse/core/util");
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
|
-
const mui_1 = require("tss-react/mui");
|
|
12
|
-
const RubberbandTooltip_1 = __importDefault(require("./RubberbandTooltip"));
|
|
13
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => {
|
|
14
|
-
const { tertiary } = theme.palette;
|
|
15
|
-
const background = (0, material_1.alpha)(tertiary.light, 0.7);
|
|
16
|
-
return {
|
|
17
|
-
rubberband: {
|
|
18
|
-
height: '100%',
|
|
19
|
-
background,
|
|
20
|
-
position: 'absolute',
|
|
21
|
-
zIndex: 830,
|
|
22
|
-
textAlign: 'center',
|
|
23
|
-
cursor: 'crosshair',
|
|
24
|
-
},
|
|
25
|
-
rubberbandText: {
|
|
26
|
-
color: theme.palette.tertiary.contrastText,
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
});
|
|
30
|
-
function RubberbandSpan({ leftBpOffset, rightBpOffset, numOfBpSelected, left, width, top = 0, sticky = false, }) {
|
|
31
|
-
const { classes } = useStyles();
|
|
32
|
-
const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [anchorEl ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(RubberbandTooltip_1.default, { side: "left", anchorEl: anchorEl, text: (0, util_1.stringify)(leftBpOffset) }), (0, jsx_runtime_1.jsx)(RubberbandTooltip_1.default, { side: "right", anchorEl: anchorEl, text: (0, util_1.stringify)(rightBpOffset) })] })) : null, (0, jsx_runtime_1.jsx)("div", { className: classes.rubberband, style: { left, width }, children: numOfBpSelected ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { ref: el => {
|
|
34
|
-
setAnchorEl(el);
|
|
35
|
-
}, variant: "h6", className: classes.rubberbandText, style: {
|
|
36
|
-
top,
|
|
37
|
-
position: sticky ? 'sticky' : undefined,
|
|
38
|
-
}, children: (0, util_1.getBpDisplayStr)(numOfBpSelected) })) : null })] }));
|
|
39
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = RubberbandTooltip;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
function RubberbandTooltip({ anchorEl, side, text, }) {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: text, open: true, placement: side === 'left' ? 'left-start' : 'right-start', slotProps: {
|
|
8
|
-
popper: {
|
|
9
|
-
anchorEl,
|
|
10
|
-
modifiers: [
|
|
11
|
-
{
|
|
12
|
-
name: 'offset',
|
|
13
|
-
options: {
|
|
14
|
-
offset: [-30, -10],
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
}, children: (0, jsx_runtime_1.jsx)("span", {}) }));
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { LinearGenomeViewModel } from '..';
|
|
3
|
-
type LGV = LinearGenomeViewModel;
|
|
4
|
-
interface ScalebarProps {
|
|
5
|
-
model: LGV;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Scalebar: React.ForwardRefExoticComponent<ScalebarProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export default Scalebar;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
const mui_1 = require("tss-react/mui");
|
|
11
|
-
const Gridlines_1 = __importDefault(require("./Gridlines"));
|
|
12
|
-
const ScalebarCoordinateLabels_1 = __importDefault(require("./ScalebarCoordinateLabels"));
|
|
13
|
-
const ScalebarRefNameLabels_1 = __importDefault(require("./ScalebarRefNameLabels"));
|
|
14
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
15
|
-
container: {
|
|
16
|
-
overflow: 'hidden',
|
|
17
|
-
position: 'relative',
|
|
18
|
-
},
|
|
19
|
-
zoomContainer: {
|
|
20
|
-
position: 'relative',
|
|
21
|
-
},
|
|
22
|
-
scalebar: {
|
|
23
|
-
position: 'absolute',
|
|
24
|
-
display: 'flex',
|
|
25
|
-
pointerEvents: 'none',
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
const Scalebar = (0, mobx_react_1.observer)((0, react_1.forwardRef)(function Scalebar2({ model, style, className, ...other }, ref) {
|
|
29
|
-
const { classes, cx } = useStyles();
|
|
30
|
-
const { staticBlocks, offsetPx, scaleFactor } = model;
|
|
31
|
-
const offsetLeft = staticBlocks.offsetPx - offsetPx;
|
|
32
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Paper, { "data-resizer": "true", className: cx(classes.container, className), variant: "outlined", ref: ref, style: style, ...other, children: [(0, jsx_runtime_1.jsx)(Gridlines_1.default, { model: model, offset: 1 }), (0, jsx_runtime_1.jsx)("div", { className: classes.zoomContainer, style: {
|
|
33
|
-
transform: scaleFactor !== 1 ? `scaleX(${scaleFactor})` : undefined,
|
|
34
|
-
}, children: (0, jsx_runtime_1.jsx)("div", { className: classes.scalebar, style: {
|
|
35
|
-
left: offsetLeft - 1,
|
|
36
|
-
width: staticBlocks.totalWidthPx,
|
|
37
|
-
...style,
|
|
38
|
-
}, children: (0, jsx_runtime_1.jsx)(ScalebarCoordinateLabels_1.default, { model: model }) }) }), (0, jsx_runtime_1.jsx)(ScalebarRefNameLabels_1.default, { model: model })] }));
|
|
39
|
-
}));
|
|
40
|
-
exports.default = Scalebar;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const mobx_react_1 = require("mobx-react");
|
|
8
|
-
const ScalebarCoordinateTicks_1 = __importDefault(require("./ScalebarCoordinateTicks"));
|
|
9
|
-
const Block_1 = require("../../BaseLinearDisplay/components/Block");
|
|
10
|
-
const ScalebarCoordinateLabels = (0, mobx_react_1.observer)(function ({ model }) {
|
|
11
|
-
const { staticBlocks, bpPerPx } = model;
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: staticBlocks.map((b, idx) => {
|
|
13
|
-
const { key, widthPx } = b;
|
|
14
|
-
const k = `${key}-${idx}`;
|
|
15
|
-
if (b.type === 'ContentBlock') {
|
|
16
|
-
return (0, jsx_runtime_1.jsx)(ScalebarCoordinateTicks_1.default, { block: b, bpPerPx: bpPerPx }, k);
|
|
17
|
-
}
|
|
18
|
-
else if (b.type === 'ElidedBlock') {
|
|
19
|
-
return (0, jsx_runtime_1.jsx)(Block_1.ElidedBlock, { width: widthPx }, k);
|
|
20
|
-
}
|
|
21
|
-
else if (b.type === 'InterRegionPaddingBlock') {
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(Block_1.InterRegionPaddingBlock, { width: widthPx, style: { background: 'none' }, boundary: b.variant === 'boundary' }, k));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
}) }));
|
|
28
|
-
});
|
|
29
|
-
exports.default = ScalebarCoordinateLabels;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const util_1 = require("@jbrowse/core/util");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
const mui_1 = require("tss-react/mui");
|
|
7
|
-
const Block_1 = require("../../BaseLinearDisplay/components/Block");
|
|
8
|
-
const util_2 = require("../util");
|
|
9
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
10
|
-
majorTickLabel: {
|
|
11
|
-
fontSize: 11,
|
|
12
|
-
zIndex: 1,
|
|
13
|
-
background: theme.palette.background.paper,
|
|
14
|
-
lineHeight: 'normal',
|
|
15
|
-
pointerEvents: 'none',
|
|
16
|
-
},
|
|
17
|
-
tick: {
|
|
18
|
-
position: 'absolute',
|
|
19
|
-
width: 0,
|
|
20
|
-
display: 'flex',
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
pointerEvents: 'none',
|
|
23
|
-
},
|
|
24
|
-
}));
|
|
25
|
-
const ScalebarCoordinateTicks = function ({ block, bpPerPx, }) {
|
|
26
|
-
const { classes } = useStyles();
|
|
27
|
-
const { reversed, start, end } = block;
|
|
28
|
-
const ticks = (0, util_2.makeTicks)(start, end, bpPerPx, true, false);
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)(Block_1.ContentBlock, { block: block, children: ticks.map(({ type, base }) => {
|
|
30
|
-
if (type === 'major') {
|
|
31
|
-
const x = (reversed ? end - base : base - start) / bpPerPx;
|
|
32
|
-
const baseNumber = base + 1;
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: classes.tick, style: { left: x }, children: baseNumber ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { className: classes.majorTickLabel, children: (0, util_1.getTickDisplayStr)(baseNumber, bpPerPx) })) : null }, base));
|
|
34
|
-
}
|
|
35
|
-
return null;
|
|
36
|
-
}) }));
|
|
37
|
-
};
|
|
38
|
-
exports.default = ScalebarCoordinateTicks;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const material_1 = require("@mui/material");
|
|
5
|
-
const mobx_react_1 = require("mobx-react");
|
|
6
|
-
const mui_1 = require("tss-react/mui");
|
|
7
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
8
|
-
refLabel: {
|
|
9
|
-
fontSize: 11,
|
|
10
|
-
position: 'absolute',
|
|
11
|
-
left: 2,
|
|
12
|
-
top: -1,
|
|
13
|
-
fontWeight: 'bold',
|
|
14
|
-
lineHeight: 'normal',
|
|
15
|
-
zIndex: 1,
|
|
16
|
-
background: theme.palette.background.paper,
|
|
17
|
-
},
|
|
18
|
-
b0: {
|
|
19
|
-
left: 0,
|
|
20
|
-
zIndex: 100,
|
|
21
|
-
},
|
|
22
|
-
}));
|
|
23
|
-
const ScalebarRefNameLabels = (0, mobx_react_1.observer)(function ({ model }) {
|
|
24
|
-
const { classes, cx } = useStyles();
|
|
25
|
-
const { staticBlocks, offsetPx, scaleBarDisplayPrefix } = model;
|
|
26
|
-
let lastLeftBlock = 0;
|
|
27
|
-
staticBlocks.forEach((block, i) => {
|
|
28
|
-
if (block.offsetPx - offsetPx < 0) {
|
|
29
|
-
lastLeftBlock = i;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
const val = scaleBarDisplayPrefix();
|
|
33
|
-
const b0 = staticBlocks.blocks[0];
|
|
34
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(b0 === null || b0 === void 0 ? void 0 : b0.type) !== 'ContentBlock' && val ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { className: cx(classes.b0, classes.refLabel), children: val })) : null, staticBlocks.map((block, index) => {
|
|
35
|
-
const { offsetPx: blockOffsetPx, isLeftEndOfDisplayedRegion, key, type, refName, } = block;
|
|
36
|
-
const last = index === lastLeftBlock;
|
|
37
|
-
return type === 'ContentBlock' &&
|
|
38
|
-
(isLeftEndOfDisplayedRegion || last) ? ((0, jsx_runtime_1.jsxs)(material_1.Typography, { style: {
|
|
39
|
-
left: last
|
|
40
|
-
? Math.max(0, -offsetPx)
|
|
41
|
-
: blockOffsetPx - offsetPx - 1,
|
|
42
|
-
paddingLeft: last ? 0 : 1,
|
|
43
|
-
}, className: classes.refLabel, "data-testid": `refLabel-${refName}`, children: [last && val ? `${val}:` : '', refName] }, `refLabel-${key}-${index}`)) : null;
|
|
44
|
-
})] }));
|
|
45
|
-
});
|
|
46
|
-
exports.default = ScalebarRefNameLabels;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const util_1 = require("@jbrowse/core/util");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
const mui_1 = require("tss-react/mui");
|
|
11
|
-
const RefNameAutocomplete_1 = __importDefault(require("./RefNameAutocomplete"));
|
|
12
|
-
const EndAdornment_1 = __importDefault(require("./RefNameAutocomplete/EndAdornment"));
|
|
13
|
-
const util_2 = require("./util");
|
|
14
|
-
const searchUtils_1 = require("../../searchUtils");
|
|
15
|
-
const consts_1 = require("../consts");
|
|
16
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
17
|
-
headerRefName: {
|
|
18
|
-
minWidth: 100,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
async function onSelect({ option, model, assemblyName, }) {
|
|
22
|
-
var _a;
|
|
23
|
-
const { assemblyManager } = (0, util_1.getSession)(model);
|
|
24
|
-
const assembly = assemblyManager.get(assemblyName);
|
|
25
|
-
if (option.hasLocation()) {
|
|
26
|
-
await (0, searchUtils_1.navToOption)({
|
|
27
|
-
option,
|
|
28
|
-
model,
|
|
29
|
-
assemblyName,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
else if ((_a = option.results) === null || _a === void 0 ? void 0 : _a.length) {
|
|
33
|
-
model.setSearchResults(option.results, option.getLabel());
|
|
34
|
-
}
|
|
35
|
-
else if (assembly) {
|
|
36
|
-
await (0, searchUtils_1.handleSelectedRegion)({
|
|
37
|
-
input: option.getLabel(),
|
|
38
|
-
assembly,
|
|
39
|
-
model,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
const SearchBox = (0, mobx_react_1.observer)(function ({ model, showHelp = true, }) {
|
|
44
|
-
const { classes } = useStyles();
|
|
45
|
-
const theme = (0, material_1.useTheme)();
|
|
46
|
-
const session = (0, util_1.getSession)(model);
|
|
47
|
-
const { textSearchManager, assemblyManager } = session;
|
|
48
|
-
const { assemblyNames, rankSearchResults } = model;
|
|
49
|
-
const assemblyName = assemblyNames[0];
|
|
50
|
-
const assembly = assemblyManager.get(assemblyName);
|
|
51
|
-
const searchScope = model.searchScope(assemblyName);
|
|
52
|
-
return ((0, jsx_runtime_1.jsx)(RefNameAutocomplete_1.default, { onSelect: async (option) => {
|
|
53
|
-
try {
|
|
54
|
-
await onSelect({
|
|
55
|
-
model,
|
|
56
|
-
assemblyName,
|
|
57
|
-
option,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
catch (e) {
|
|
61
|
-
console.error(e);
|
|
62
|
-
(0, util_1.getSession)(model).notify(`${e}`, 'warning');
|
|
63
|
-
}
|
|
64
|
-
}, assemblyName: assemblyName, fetchResults: queryString => (0, util_2.fetchResults)({
|
|
65
|
-
queryString,
|
|
66
|
-
searchScope,
|
|
67
|
-
rankSearchResults,
|
|
68
|
-
textSearchManager,
|
|
69
|
-
assembly,
|
|
70
|
-
}), model: model, minWidth: 175, TextFieldProps: {
|
|
71
|
-
variant: 'outlined',
|
|
72
|
-
className: classes.headerRefName,
|
|
73
|
-
style: {
|
|
74
|
-
margin: consts_1.SPACING,
|
|
75
|
-
},
|
|
76
|
-
slotProps: {
|
|
77
|
-
input: {
|
|
78
|
-
style: {
|
|
79
|
-
padding: 0,
|
|
80
|
-
height: consts_1.WIDGET_HEIGHT,
|
|
81
|
-
background: (0, material_1.alpha)(theme.palette.background.paper, 0.8),
|
|
82
|
-
},
|
|
83
|
-
endAdornment: (0, jsx_runtime_1.jsx)(EndAdornment_1.default, { showHelp: showHelp }),
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
} }));
|
|
87
|
-
});
|
|
88
|
-
exports.default = SearchBox;
|