@jbrowse/plugin-linear-genome-view 2.18.0 → 3.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/dist/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +1 -2
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +17 -44
- package/dist/BaseLinearDisplay/components/Block.d.ts +3 -4
- package/dist/BaseLinearDisplay/components/Block.js +4 -7
- package/dist/BaseLinearDisplay/components/BlockError.d.ts +1 -2
- package/dist/BaseLinearDisplay/components/BlockError.js +9 -15
- package/dist/BaseLinearDisplay/components/BlockMsg.d.ts +1 -2
- package/dist/BaseLinearDisplay/components/BlockMsg.js +3 -8
- package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +2 -3
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +21 -27
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +1 -2
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +23 -14
- package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -3
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +11 -7
- package/dist/BaseLinearDisplay/components/Tooltip.d.ts +7 -4
- package/dist/BaseLinearDisplay/components/Tooltip.js +5 -5
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +7 -7
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +17 -7
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +1 -2
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +2 -2
- package/dist/BaseLinearDisplay/models/renderSvg.d.ts +2 -3
- package/dist/BaseLinearDisplay/models/renderSvg.js +26 -26
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +1 -1
- package/dist/LinearBareDisplay/model.d.ts +6 -6
- package/dist/LinearBasicDisplay/components/AddFiltersDialog.d.ts +1 -2
- package/dist/LinearBasicDisplay/components/AddFiltersDialog.js +16 -57
- package/dist/LinearBasicDisplay/components/SetMaxHeightDialog.d.ts +1 -2
- package/dist/LinearBasicDisplay/components/SetMaxHeightDialog.js +10 -39
- package/dist/LinearBasicDisplay/model.d.ts +6 -6
- package/dist/LinearBasicDisplay/model.js +17 -7
- package/dist/LinearGenomeView/components/CenterLine.d.ts +1 -2
- package/dist/LinearGenomeView/components/CenterLine.js +7 -33
- package/dist/LinearGenomeView/components/Cytobands.d.ts +1 -2
- package/dist/LinearGenomeView/components/Cytobands.js +28 -31
- package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +2 -3
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +34 -72
- package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +1 -2
- package/dist/LinearGenomeView/components/GetSequenceDialog.js +27 -62
- package/dist/LinearGenomeView/components/Gridlines.d.ts +1 -2
- package/dist/LinearGenomeView/components/Gridlines.js +23 -28
- package/dist/LinearGenomeView/components/Header.d.ts +3 -5
- package/dist/LinearGenomeView/components/Header.js +10 -61
- package/dist/LinearGenomeView/components/HeaderPanControls.d.ts +6 -0
- package/dist/LinearGenomeView/components/HeaderPanControls.js +30 -0
- package/dist/LinearGenomeView/components/HeaderRegionWidth.d.ts +5 -0
- package/dist/LinearGenomeView/components/HeaderRegionWidth.js +21 -0
- package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.d.ts +5 -0
- package/dist/LinearGenomeView/components/HeaderTrackSelectorButton.js +19 -0
- package/dist/LinearGenomeView/components/HeaderZoomControls.d.ts +5 -0
- package/dist/LinearGenomeView/components/HeaderZoomControls.js +103 -0
- package/dist/LinearGenomeView/components/Highlight.d.ts +9 -4
- package/dist/LinearGenomeView/components/Highlight.js +32 -58
- package/dist/LinearGenomeView/components/ImportForm.d.ts +1 -2
- package/dist/LinearGenomeView/components/ImportForm.js +31 -67
- package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +1 -2
- package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +2 -2
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +1 -2
- package/dist/LinearGenomeView/components/LinearGenomeView.js +24 -17
- package/dist/LinearGenomeView/components/MiniControls.d.ts +1 -2
- package/dist/LinearGenomeView/components/MiniControls.js +6 -13
- package/dist/LinearGenomeView/components/NoTracksActiveButton.d.ts +1 -2
- package/dist/LinearGenomeView/components/NoTracksActiveButton.js +2 -7
- package/dist/LinearGenomeView/components/OverviewHighlight.d.ts +1 -2
- package/dist/LinearGenomeView/components/OverviewHighlight.js +3 -6
- package/dist/LinearGenomeView/components/OverviewRubberband.d.ts +1 -2
- package/dist/LinearGenomeView/components/OverviewRubberband.js +6 -33
- package/dist/LinearGenomeView/components/OverviewScalebar.d.ts +1 -2
- package/dist/LinearGenomeView/components/OverviewScalebar.js +30 -64
- package/dist/LinearGenomeView/components/OverviewScalebarPolygon.d.ts +1 -2
- package/dist/LinearGenomeView/components/OverviewScalebarPolygon.js +2 -5
- package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.d.ts +1 -2
- package/dist/LinearGenomeView/components/OverviewScalebarTickLabels.js +3 -6
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +1 -2
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +3 -3
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +1 -2
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +25 -22
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.d.ts +1 -2
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +4 -43
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +1 -2
- package/dist/LinearGenomeView/components/RefNameAutocomplete/index.js +21 -10
- package/dist/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +6 -0
- package/dist/LinearGenomeView/components/RegionWidthEditorDialog.js +30 -0
- package/dist/LinearGenomeView/components/Rubberband.d.ts +1 -2
- package/dist/LinearGenomeView/components/Rubberband.js +7 -32
- package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +1 -2
- package/dist/LinearGenomeView/components/RubberbandSpan.js +16 -34
- package/dist/LinearGenomeView/components/Scalebar.d.ts +1 -1
- package/dist/LinearGenomeView/components/Scalebar.js +10 -13
- package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +1 -2
- package/dist/LinearGenomeView/components/ScalebarCoordinateLabels.js +17 -17
- package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +1 -2
- package/dist/LinearGenomeView/components/ScalebarCoordinateTicks.js +9 -12
- package/dist/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +1 -2
- package/dist/LinearGenomeView/components/ScalebarRefNameLabels.js +12 -19
- package/dist/LinearGenomeView/components/SearchBox.d.ts +1 -2
- package/dist/LinearGenomeView/components/SearchBox.js +2 -2
- package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +1 -2
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +4 -14
- package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +1 -2
- package/dist/LinearGenomeView/components/SearchResultsTable.js +15 -31
- package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +1 -2
- package/dist/LinearGenomeView/components/SequenceSearchDialog.js +39 -72
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +1 -2
- package/dist/LinearGenomeView/components/TrackContainer.js +10 -36
- package/dist/LinearGenomeView/components/TrackLabel.d.ts +1 -2
- package/dist/LinearGenomeView/components/TrackLabel.js +10 -78
- package/dist/LinearGenomeView/components/TrackLabelContainer.d.ts +1 -2
- package/dist/LinearGenomeView/components/TrackLabelContainer.js +2 -2
- package/dist/LinearGenomeView/components/TrackLabelDragHandle.d.ts +1 -2
- package/dist/LinearGenomeView/components/TrackLabelDragHandle.js +3 -4
- package/dist/LinearGenomeView/components/TrackLabelMenu.d.ts +5 -0
- package/dist/LinearGenomeView/components/TrackLabelMenu.js +79 -0
- package/dist/LinearGenomeView/components/TrackRenderingContainer.d.ts +1 -2
- package/dist/LinearGenomeView/components/TrackRenderingContainer.js +10 -37
- package/dist/LinearGenomeView/components/TracksContainer.d.ts +1 -2
- package/dist/LinearGenomeView/components/TracksContainer.js +33 -27
- package/dist/LinearGenomeView/components/VerticalGuide.d.ts +1 -2
- package/dist/LinearGenomeView/components/VerticalGuide.js +3 -7
- package/dist/LinearGenomeView/components/useRangeSelect.d.ts +1 -1
- package/dist/LinearGenomeView/components/useWheelScroll.d.ts +1 -1
- package/dist/LinearGenomeView/components/useWheelScroll.js +1 -1
- package/dist/LinearGenomeView/index.js +17 -7
- package/dist/LinearGenomeView/model.d.ts +1 -39
- package/dist/LinearGenomeView/model.js +28 -31
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +1 -2
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +2 -5
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +1 -2
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +2 -12
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +2 -12
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +1 -2
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +2 -5
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +1 -2
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +17 -29
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +1 -2
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +2 -9
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +1 -2
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +2 -5
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +1 -2
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +18 -15
- package/dist/LinearGenomeView/types.d.ts +38 -0
- package/dist/LinearGenomeView/types.js +2 -0
- package/dist/LinearGenomeView/util.d.ts +3 -1
- package/dist/LinearGenomeView/util.js +16 -0
- package/dist/index.d.ts +10 -10
- package/dist/index.js +19 -8
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +1 -2
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +17 -21
- package/esm/BaseLinearDisplay/components/Block.d.ts +3 -4
- package/esm/BaseLinearDisplay/components/Block.js +4 -4
- package/esm/BaseLinearDisplay/components/BlockError.d.ts +1 -2
- package/esm/BaseLinearDisplay/components/BlockError.js +9 -15
- package/esm/BaseLinearDisplay/components/BlockMsg.d.ts +1 -2
- package/esm/BaseLinearDisplay/components/BlockMsg.js +3 -5
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +2 -3
- package/esm/BaseLinearDisplay/components/LinearBlocks.js +21 -24
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +1 -2
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +6 -7
- package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -3
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +11 -7
- package/esm/BaseLinearDisplay/components/Tooltip.d.ts +7 -4
- package/esm/BaseLinearDisplay/components/Tooltip.js +5 -5
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +7 -7
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +1 -2
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.js +2 -2
- package/esm/BaseLinearDisplay/models/renderSvg.d.ts +2 -3
- package/esm/BaseLinearDisplay/models/renderSvg.js +9 -16
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +1 -1
- package/esm/LinearBareDisplay/model.d.ts +6 -6
- package/esm/LinearBasicDisplay/components/AddFiltersDialog.d.ts +1 -2
- package/esm/LinearBasicDisplay/components/AddFiltersDialog.js +16 -34
- package/esm/LinearBasicDisplay/components/SetMaxHeightDialog.d.ts +1 -2
- package/esm/LinearBasicDisplay/components/SetMaxHeightDialog.js +10 -16
- package/esm/LinearBasicDisplay/model.d.ts +6 -6
- package/esm/LinearGenomeView/components/CenterLine.d.ts +1 -2
- package/esm/LinearGenomeView/components/CenterLine.js +7 -10
- package/esm/LinearGenomeView/components/Cytobands.d.ts +1 -2
- package/esm/LinearGenomeView/components/Cytobands.js +28 -28
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +2 -3
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +34 -49
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +1 -2
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +27 -39
- package/esm/LinearGenomeView/components/Gridlines.d.ts +1 -2
- package/esm/LinearGenomeView/components/Gridlines.js +23 -25
- package/esm/LinearGenomeView/components/Header.d.ts +3 -5
- package/esm/LinearGenomeView/components/Header.js +11 -62
- package/esm/LinearGenomeView/components/HeaderPanControls.d.ts +6 -0
- package/esm/LinearGenomeView/components/HeaderPanControls.js +24 -0
- package/esm/LinearGenomeView/components/HeaderRegionWidth.d.ts +5 -0
- package/esm/LinearGenomeView/components/HeaderRegionWidth.js +19 -0
- package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.d.ts +5 -0
- package/esm/LinearGenomeView/components/HeaderTrackSelectorButton.js +17 -0
- package/esm/LinearGenomeView/components/HeaderZoomControls.d.ts +5 -0
- package/esm/LinearGenomeView/components/HeaderZoomControls.js +65 -0
- package/esm/LinearGenomeView/components/Highlight.d.ts +9 -4
- package/esm/LinearGenomeView/components/Highlight.js +32 -35
- package/esm/LinearGenomeView/components/ImportForm.d.ts +1 -2
- package/esm/LinearGenomeView/components/ImportForm.js +32 -45
- package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +1 -2
- package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +2 -2
- package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +1 -2
- package/esm/LinearGenomeView/components/LinearGenomeView.js +7 -10
- package/esm/LinearGenomeView/components/MiniControls.d.ts +1 -2
- package/esm/LinearGenomeView/components/MiniControls.js +6 -13
- package/esm/LinearGenomeView/components/NoTracksActiveButton.d.ts +1 -2
- package/esm/LinearGenomeView/components/NoTracksActiveButton.js +2 -4
- package/esm/LinearGenomeView/components/OverviewHighlight.d.ts +1 -2
- package/esm/LinearGenomeView/components/OverviewHighlight.js +3 -3
- package/esm/LinearGenomeView/components/OverviewRubberband.d.ts +1 -2
- package/esm/LinearGenomeView/components/OverviewRubberband.js +6 -10
- package/esm/LinearGenomeView/components/OverviewScalebar.d.ts +1 -2
- package/esm/LinearGenomeView/components/OverviewScalebar.js +30 -41
- package/esm/LinearGenomeView/components/OverviewScalebarPolygon.d.ts +1 -2
- package/esm/LinearGenomeView/components/OverviewScalebarPolygon.js +2 -2
- package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.d.ts +1 -2
- package/esm/LinearGenomeView/components/OverviewScalebarTickLabels.js +3 -3
- package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.d.ts +1 -2
- package/esm/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +3 -3
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.d.ts +1 -2
- package/esm/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +8 -15
- package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.d.ts +1 -2
- package/esm/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +4 -40
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.d.ts +1 -2
- package/esm/LinearGenomeView/components/RefNameAutocomplete/index.js +4 -3
- package/esm/LinearGenomeView/components/RegionWidthEditorDialog.d.ts +6 -0
- package/esm/LinearGenomeView/components/RegionWidthEditorDialog.js +28 -0
- package/esm/LinearGenomeView/components/Rubberband.d.ts +1 -2
- package/esm/LinearGenomeView/components/Rubberband.js +7 -9
- package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +1 -2
- package/esm/LinearGenomeView/components/RubberbandSpan.js +16 -11
- package/esm/LinearGenomeView/components/Scalebar.d.ts +1 -1
- package/esm/LinearGenomeView/components/Scalebar.js +10 -13
- package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.d.ts +1 -2
- package/esm/LinearGenomeView/components/ScalebarCoordinateLabels.js +17 -17
- package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.d.ts +1 -2
- package/esm/LinearGenomeView/components/ScalebarCoordinateTicks.js +9 -9
- package/esm/LinearGenomeView/components/ScalebarRefNameLabels.d.ts +1 -2
- package/esm/LinearGenomeView/components/ScalebarRefNameLabels.js +12 -16
- package/esm/LinearGenomeView/components/SearchBox.d.ts +1 -2
- package/esm/LinearGenomeView/components/SearchBox.js +2 -2
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +1 -2
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +4 -14
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +1 -2
- package/esm/LinearGenomeView/components/SearchResultsTable.js +15 -28
- package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +1 -2
- package/esm/LinearGenomeView/components/SequenceSearchDialog.js +39 -49
- package/esm/LinearGenomeView/components/TrackContainer.d.ts +1 -2
- package/esm/LinearGenomeView/components/TrackContainer.js +10 -13
- package/esm/LinearGenomeView/components/TrackLabel.d.ts +1 -2
- package/esm/LinearGenomeView/components/TrackLabel.js +10 -78
- package/esm/LinearGenomeView/components/TrackLabelContainer.d.ts +1 -2
- package/esm/LinearGenomeView/components/TrackLabelContainer.js +2 -2
- package/esm/LinearGenomeView/components/TrackLabelDragHandle.d.ts +1 -2
- package/esm/LinearGenomeView/components/TrackLabelDragHandle.js +3 -4
- package/esm/LinearGenomeView/components/TrackLabelMenu.d.ts +5 -0
- package/esm/LinearGenomeView/components/TrackLabelMenu.js +74 -0
- package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +1 -2
- package/esm/LinearGenomeView/components/TrackRenderingContainer.js +10 -14
- package/esm/LinearGenomeView/components/TracksContainer.d.ts +1 -2
- package/esm/LinearGenomeView/components/TracksContainer.js +16 -20
- package/esm/LinearGenomeView/components/VerticalGuide.d.ts +1 -2
- package/esm/LinearGenomeView/components/VerticalGuide.js +3 -4
- package/esm/LinearGenomeView/components/useRangeSelect.d.ts +1 -1
- package/esm/LinearGenomeView/components/useWheelScroll.d.ts +1 -1
- package/esm/LinearGenomeView/components/useWheelScroll.js +1 -1
- package/esm/LinearGenomeView/model.d.ts +1 -39
- package/esm/LinearGenomeView/model.js +10 -22
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.d.ts +1 -2
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.js +2 -2
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +1 -2
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +2 -12
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +2 -12
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +1 -2
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +2 -2
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.d.ts +1 -2
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +17 -29
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +1 -2
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js +2 -6
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +1 -2
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js +2 -2
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +1 -2
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +18 -15
- package/esm/LinearGenomeView/types.d.ts +38 -0
- package/esm/LinearGenomeView/types.js +1 -0
- package/esm/LinearGenomeView/util.d.ts +3 -1
- package/esm/LinearGenomeView/util.js +16 -1
- package/esm/index.d.ts +10 -10
- package/esm/index.js +2 -1
- package/package.json +2 -2
- package/dist/LinearGenomeView/components/ZoomControls.d.ts +0 -6
- package/dist/LinearGenomeView/components/ZoomControls.js +0 -66
- package/esm/LinearGenomeView/components/ZoomControls.d.ts +0 -6
- package/esm/LinearGenomeView/components/ZoomControls.js +0 -38
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from '@mui/material';
|
|
3
|
+
import { observer } from 'mobx-react';
|
|
4
|
+
import { isAlive } from 'mobx-state-tree';
|
|
3
5
|
import BlockMsg from '../components/BlockMsg';
|
|
4
|
-
|
|
6
|
+
const TooLargeMessage = observer(function ({ model, }) {
|
|
5
7
|
const { regionTooLargeReason } = model;
|
|
6
|
-
return (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
return (_jsx(BlockMsg, { severity: "warning", action: _jsx(Button, { onClick: () => {
|
|
9
|
+
if (isAlive(model)) {
|
|
10
|
+
model.setFeatureDensityStatsLimit(model.featureDensityStats);
|
|
11
|
+
model.reload();
|
|
12
|
+
}
|
|
13
|
+
}, children: "Force load" }), message: [
|
|
10
14
|
regionTooLargeReason,
|
|
11
15
|
'Zoom in to see features or force load (may be slow)',
|
|
12
16
|
]
|
|
13
17
|
.filter(f => !!f)
|
|
14
18
|
.join('. ') }));
|
|
15
|
-
}
|
|
19
|
+
});
|
|
16
20
|
export default TooLargeMessage;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
1
|
+
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
2
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
3
|
type Coord = [number, number];
|
|
4
4
|
declare const Tooltip: ({ model, clientMouseCoord, }: {
|
|
5
|
-
model:
|
|
5
|
+
model: {
|
|
6
|
+
featureUnderMouse: Feature | undefined;
|
|
7
|
+
configuration: AnyConfigurationModel;
|
|
8
|
+
};
|
|
6
9
|
clientMouseCoord: Coord;
|
|
7
|
-
}) =>
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
11
|
export default Tooltip;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, isValidElement } from 'react';
|
|
2
3
|
import { getConf } from '@jbrowse/core/configuration';
|
|
3
4
|
import { SanitizedHTML } from '@jbrowse/core/ui';
|
|
4
5
|
import BaseTooltip from '@jbrowse/core/ui/BaseTooltip';
|
|
5
6
|
import { observer } from 'mobx-react';
|
|
6
|
-
const TooltipContents =
|
|
7
|
-
return (
|
|
7
|
+
const TooltipContents = forwardRef(function TooltipContents2({ message }, ref) {
|
|
8
|
+
return (_jsx("div", { ref: ref, children: isValidElement(message) ? (message) : message ? (_jsx(SanitizedHTML, { html: String(message) })) : null }));
|
|
8
9
|
});
|
|
9
10
|
const Tooltip = observer(function ({ model, clientMouseCoord, }) {
|
|
10
11
|
const { featureUnderMouse } = model;
|
|
@@ -13,7 +14,6 @@ const Tooltip = observer(function ({ model, clientMouseCoord, }) {
|
|
|
13
14
|
const contents = featureUnderMouse
|
|
14
15
|
? getConf(model, 'mouseover', { feature: featureUnderMouse })
|
|
15
16
|
: undefined;
|
|
16
|
-
return featureUnderMouse && contents ? (
|
|
17
|
-
React.createElement(TooltipContents, { message: contents }))) : null;
|
|
17
|
+
return featureUnderMouse && contents ? (_jsx(BaseTooltip, { clientPoint: { x, y }, children: _jsx(TooltipContents, { message: contents }) })) : null;
|
|
18
18
|
});
|
|
19
19
|
export default Tooltip;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import CompositeMap from '@jbrowse/core/util/compositeMap';
|
|
3
|
-
import type { ExportSvgOptions } from '../../LinearGenomeView';
|
|
3
|
+
import type { ExportSvgOptions } from '../../LinearGenomeView/types';
|
|
4
4
|
import type { MenuItem } from '@jbrowse/core/ui';
|
|
5
5
|
import type { AnyReactComponentType, Feature } from '@jbrowse/core/util';
|
|
6
6
|
import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
|
|
@@ -53,7 +53,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
53
53
|
status?: string;
|
|
54
54
|
reactElement?: React.ReactElement;
|
|
55
55
|
};
|
|
56
|
-
}) =>
|
|
56
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
57
57
|
renderProps: any;
|
|
58
58
|
} & {
|
|
59
59
|
doReload(): void;
|
|
@@ -185,13 +185,13 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
185
185
|
} & {
|
|
186
186
|
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
187
187
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
188
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region):
|
|
188
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
189
189
|
} & {
|
|
190
190
|
featureIdUnderMouse: undefined | string;
|
|
191
191
|
contextMenuFeature: undefined | Feature;
|
|
192
192
|
} & {
|
|
193
|
-
readonly DisplayMessageComponent: React.FC<any
|
|
194
|
-
readonly blockType: "
|
|
193
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
194
|
+
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
195
195
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
196
196
|
} & {
|
|
197
197
|
readonly renderDelay: number;
|
|
@@ -218,7 +218,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
218
218
|
contextMenuItems(): MenuItem[];
|
|
219
219
|
renderProps(): any;
|
|
220
220
|
} & {
|
|
221
|
-
renderSvg(opts: ExportSvgDisplayOptions): Promise<
|
|
221
|
+
renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
222
222
|
afterAttach(): void;
|
|
223
223
|
}, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
224
224
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -255,7 +255,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
255
255
|
status?: string;
|
|
256
256
|
reactElement?: React.ReactElement;
|
|
257
257
|
};
|
|
258
|
-
}) =>
|
|
258
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
259
259
|
renderProps: any;
|
|
260
260
|
} & {
|
|
261
261
|
doReload(): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
2
|
import type { Region } from '@jbrowse/core/util/types';
|
|
4
3
|
export default function FeatureDensityMixin(): import("mobx-state-tree").IModelType<{
|
|
@@ -29,5 +28,5 @@ export default function FeatureDensityMixin(): import("mobx-state-tree").IModelT
|
|
|
29
28
|
} & {
|
|
30
29
|
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
31
30
|
regionCannotBeRenderedText(_region: Region): "" | "Force load to see features";
|
|
32
|
-
regionCannotBeRendered(_region: Region):
|
|
31
|
+
regionCannotBeRendered(_region: Region): import("react/jsx-runtime").JSX.Element | null;
|
|
33
32
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getConf } from '@jbrowse/core/configuration';
|
|
3
3
|
import { getContainingView } from '@jbrowse/core/util';
|
|
4
4
|
import { autorun } from 'mobx';
|
|
@@ -110,7 +110,7 @@ export default function FeatureDensityMixin() {
|
|
|
110
110
|
return self.regionTooLarge ? 'Force load to see features' : '';
|
|
111
111
|
},
|
|
112
112
|
regionCannotBeRendered(_region) {
|
|
113
|
-
return self.regionTooLarge ? (
|
|
113
|
+
return self.regionTooLarge ? (_jsx(TooLargeMessage, { model: self })) : null;
|
|
114
114
|
},
|
|
115
115
|
}));
|
|
116
116
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { BaseLinearDisplayModel } from './BaseLinearDisplayModel';
|
|
3
|
-
import type { ExportSvgOptions } from '../../LinearGenomeView';
|
|
2
|
+
import type { ExportSvgOptions } from '../../LinearGenomeView/types';
|
|
4
3
|
import type { ThemeOptions } from '@mui/material';
|
|
5
4
|
export declare function renderBaseLinearDisplaySvg(self: BaseLinearDisplayModel, opts: ExportSvgOptions & {
|
|
6
5
|
overrideHeight: number;
|
|
7
6
|
theme?: ThemeOptions;
|
|
8
|
-
}): Promise<
|
|
7
|
+
}): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment } from 'react';
|
|
2
3
|
import { ReactRendering, getContainingView, getViewParams, } from '@jbrowse/core/util';
|
|
3
4
|
import BlockState, { renderBlockData } from './serverSideRenderedBlock';
|
|
4
5
|
import { getId } from './util';
|
|
@@ -18,9 +19,7 @@ export async function renderBaseLinearDisplaySvg(self, opts) {
|
|
|
18
19
|
return [
|
|
19
20
|
block,
|
|
20
21
|
{
|
|
21
|
-
reactElement: (
|
|
22
|
-
React.createElement("rect", { x: 0, y: 0, width: width, height: 20, fill: "#aaa" }),
|
|
23
|
-
React.createElement("text", { x: 0, y: 15 }, cannotBeRenderedReason))),
|
|
22
|
+
reactElement: (_jsxs(_Fragment, { children: [_jsx("rect", { x: 0, y: 0, width: width, height: 20, fill: "#aaa" }), _jsx("text", { x: 0, y: 15, children: cannotBeRenderedReason })] })),
|
|
24
23
|
},
|
|
25
24
|
];
|
|
26
25
|
}
|
|
@@ -36,16 +35,10 @@ export async function renderBaseLinearDisplaySvg(self, opts) {
|
|
|
36
35
|
}),
|
|
37
36
|
];
|
|
38
37
|
}));
|
|
39
|
-
return (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
React.createElement("clipPath", { id: clipid },
|
|
46
|
-
React.createElement("rect", { x: 0, y: 0, width: widthPx, height: overrideHeight || height }))),
|
|
47
|
-
React.createElement("g", { transform: `translate(${offset} 0)` },
|
|
48
|
-
React.createElement("g", { clipPath: `url(#${clipid})` },
|
|
49
|
-
React.createElement(ReactRendering, { rendering: rendering })))));
|
|
50
|
-
})));
|
|
38
|
+
return (_jsx(_Fragment, { children: renderings.map(([block, rendering], index) => {
|
|
39
|
+
const { offsetPx, widthPx } = block;
|
|
40
|
+
const offset = offsetPx - viewOffsetPx;
|
|
41
|
+
const clipid = getId(id, index);
|
|
42
|
+
return (_jsxs(Fragment, { children: [_jsx("defs", { children: _jsx("clipPath", { id: clipid, children: _jsx("rect", { x: 0, y: 0, width: widthPx, height: overrideHeight || height }) }) }), _jsx("g", { transform: `translate(${offset} 0)`, children: _jsx("g", { clipPath: `url(#${clipid})`, children: _jsx(ReactRendering, { rendering: rendering }) }) })] }, `frag-${index}`));
|
|
43
|
+
}) }));
|
|
51
44
|
}
|
|
@@ -34,7 +34,7 @@ declare const blockState: import("mobx-state-tree").IModelType<{
|
|
|
34
34
|
status?: string;
|
|
35
35
|
reactElement?: React.ReactElement;
|
|
36
36
|
};
|
|
37
|
-
}) =>
|
|
37
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
38
38
|
renderProps: any;
|
|
39
39
|
} & {
|
|
40
40
|
doReload(): void;
|
|
@@ -34,7 +34,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
34
34
|
status?: string;
|
|
35
35
|
reactElement?: React.ReactElement;
|
|
36
36
|
};
|
|
37
|
-
}) => import("react").JSX.Element | undefined;
|
|
37
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
38
38
|
renderProps: any;
|
|
39
39
|
} & {
|
|
40
40
|
doReload(): void;
|
|
@@ -169,13 +169,13 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
169
169
|
} & {
|
|
170
170
|
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
171
171
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
172
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
172
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
173
173
|
} & {
|
|
174
174
|
featureIdUnderMouse: undefined | string;
|
|
175
175
|
contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
|
|
176
176
|
} & {
|
|
177
|
-
readonly DisplayMessageComponent:
|
|
178
|
-
readonly blockType: "
|
|
177
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
178
|
+
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
179
179
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
180
180
|
} & {
|
|
181
181
|
readonly renderDelay: number;
|
|
@@ -202,7 +202,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
202
202
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
203
203
|
renderProps(): any;
|
|
204
204
|
} & {
|
|
205
|
-
renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
205
|
+
renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
206
206
|
afterAttach(): void;
|
|
207
207
|
} & {
|
|
208
208
|
readonly rendererConfig: {
|
|
@@ -256,7 +256,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
256
256
|
status?: string;
|
|
257
257
|
reactElement?: React.ReactElement;
|
|
258
258
|
};
|
|
259
|
-
}) => import("react").JSX.Element | undefined;
|
|
259
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
260
260
|
renderProps: any;
|
|
261
261
|
} & {
|
|
262
262
|
doReload(): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const AddFiltersDialog: ({ model, handleClose, }: {
|
|
3
2
|
model: {
|
|
4
3
|
jexlFilters?: string[];
|
|
@@ -6,5 +5,5 @@ declare const AddFiltersDialog: ({ model, handleClose, }: {
|
|
|
6
5
|
setJexlFilters: (arg?: string[]) => void;
|
|
7
6
|
};
|
|
8
7
|
handleClose: () => void;
|
|
9
|
-
}) =>
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export default AddFiltersDialog;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
2
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
3
4
|
import { stringToJexlExpression } from '@jbrowse/core/util/jexlStrings';
|
|
4
5
|
import { Button, DialogActions, DialogContent, TextField } from '@mui/material';
|
|
@@ -40,38 +41,19 @@ const AddFiltersDialog = observer(function ({ model, handleClose, }) {
|
|
|
40
41
|
setError(e);
|
|
41
42
|
}
|
|
42
43
|
}, [data]);
|
|
43
|
-
return (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
" - show only features that have a score greater than 400"))),
|
|
58
|
-
error ? React.createElement("p", { className: classes.error }, `${error}`) : null,
|
|
59
|
-
React.createElement(TextField, { variant: "outlined", multiline: true, minRows: 5, maxRows: 10, className: classes.dialogContent, fullWidth: true, value: data, onChange: event => {
|
|
60
|
-
setData(event.target.value);
|
|
61
|
-
}, slotProps: {
|
|
62
|
-
input: {
|
|
63
|
-
classes: {
|
|
64
|
-
input: classes.textAreaFont,
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
} })),
|
|
68
|
-
React.createElement(DialogActions, null,
|
|
69
|
-
React.createElement(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !!error, onClick: () => {
|
|
70
|
-
model.setJexlFilters(data.split('\n'));
|
|
71
|
-
handleClose();
|
|
72
|
-
} }, "Submit"),
|
|
73
|
-
React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
74
|
-
handleClose();
|
|
75
|
-
} }, "Cancel"))));
|
|
44
|
+
return (_jsxs(Dialog, { maxWidth: "xl", open: true, onClose: handleClose, title: "Add track filters", children: [_jsxs(DialogContent, { children: [_jsxs("div", { children: ["Add filters, in jexl format, one per line, starting with the string jexl:. Examples:", ' ', _jsxs("ul", { children: [_jsxs("li", { children: [_jsx("code", { children: "jexl:get(feature,'name')=='BRCA1'" }), " - show only feature where the name attribute is BRCA1"] }), _jsxs("li", { children: [_jsx("code", { children: "jexl:get(feature,'type')=='gene'" }), " - show only gene type features in a GFF that has many other feature types"] }), _jsxs("li", { children: [_jsx("code", { children: "jexl:get(feature,'score') > 400" }), " - show only features that have a score greater than 400"] })] })] }), error ? _jsx("p", { className: classes.error, children: `${error}` }) : null, _jsx(TextField, { variant: "outlined", multiline: true, minRows: 5, maxRows: 10, className: classes.dialogContent, fullWidth: true, value: data, onChange: event => {
|
|
45
|
+
setData(event.target.value);
|
|
46
|
+
}, slotProps: {
|
|
47
|
+
input: {
|
|
48
|
+
classes: {
|
|
49
|
+
input: classes.textAreaFont,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
} })] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !!error, onClick: () => {
|
|
53
|
+
model.setJexlFilters(data.split('\n'));
|
|
54
|
+
handleClose();
|
|
55
|
+
}, children: "Submit" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
56
|
+
handleClose();
|
|
57
|
+
}, children: "Cancel" })] })] }));
|
|
76
58
|
});
|
|
77
59
|
export default AddFiltersDialog;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const SetMaxHeightDialog: ({ model, handleClose, }: {
|
|
3
2
|
model: {
|
|
4
3
|
maxHeight?: number;
|
|
5
4
|
setMaxHeight: (arg?: number) => void;
|
|
6
5
|
};
|
|
7
6
|
handleClose: () => void;
|
|
8
|
-
}) =>
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default SetMaxHeightDialog;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
2
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
3
4
|
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
4
5
|
import { observer } from 'mobx-react';
|
|
@@ -13,20 +14,13 @@ const SetMaxHeightDialog = observer(function ({ model, handleClose, }) {
|
|
|
13
14
|
const { maxHeight = '' } = model;
|
|
14
15
|
const [max, setMax] = useState(`${maxHeight}`);
|
|
15
16
|
const ok = max !== '' && !Number.isNaN(+max);
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
React.createElement(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !ok, onClick: () => {
|
|
25
|
-
model.setMaxHeight(+max);
|
|
26
|
-
handleClose();
|
|
27
|
-
} }, "Submit"),
|
|
28
|
-
React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
29
|
-
handleClose();
|
|
30
|
-
} }, "Cancel"))));
|
|
17
|
+
return (_jsxs(Dialog, { open: true, onClose: handleClose, title: "Set max height", children: [_jsxs(DialogContent, { className: classes.root, children: [_jsx(Typography, { children: "Set max height for the track. For example, you can increase this if the layout says \"Max height reached\"" }), _jsx(TextField, { value: max, onChange: event => {
|
|
18
|
+
setMax(event.target.value);
|
|
19
|
+
}, placeholder: "Enter max score" }), !ok ? _jsx("div", { style: { color: 'red' }, children: "Invalid number" }) : null] }), _jsxs(DialogActions, { children: [_jsx(Button, { variant: "contained", color: "primary", type: "submit", autoFocus: true, disabled: !ok, onClick: () => {
|
|
20
|
+
model.setMaxHeight(+max);
|
|
21
|
+
handleClose();
|
|
22
|
+
}, children: "Submit" }), _jsx(Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
23
|
+
handleClose();
|
|
24
|
+
}, children: "Cancel" })] })] }));
|
|
31
25
|
});
|
|
32
26
|
export default SetMaxHeightDialog;
|
|
@@ -37,7 +37,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
37
37
|
status?: string;
|
|
38
38
|
reactElement?: React.ReactElement;
|
|
39
39
|
};
|
|
40
|
-
}) => import("react").JSX.Element | undefined;
|
|
40
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
41
41
|
renderProps: any;
|
|
42
42
|
} & {
|
|
43
43
|
doReload(): void;
|
|
@@ -177,13 +177,13 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
177
177
|
} & {
|
|
178
178
|
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
179
179
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
180
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
180
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
181
181
|
} & {
|
|
182
182
|
featureIdUnderMouse: undefined | string;
|
|
183
183
|
contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
|
|
184
184
|
} & {
|
|
185
|
-
readonly DisplayMessageComponent:
|
|
186
|
-
readonly blockType: "
|
|
185
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
186
|
+
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
187
187
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
188
188
|
} & {
|
|
189
189
|
readonly renderDelay: number;
|
|
@@ -210,7 +210,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
210
210
|
contextMenuItems(): MenuItem[];
|
|
211
211
|
renderProps(): any;
|
|
212
212
|
} & {
|
|
213
|
-
renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
213
|
+
renderSvg(opts: import("../BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
214
214
|
afterAttach(): void;
|
|
215
215
|
} & {
|
|
216
216
|
readonly activeFilters: any;
|
|
@@ -290,7 +290,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
290
290
|
status?: string;
|
|
291
291
|
reactElement?: React.ReactElement;
|
|
292
292
|
};
|
|
293
|
-
}) => import("react").JSX.Element | undefined;
|
|
293
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
294
294
|
renderProps: any;
|
|
295
295
|
} & {
|
|
296
296
|
doReload(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { LinearGenomeViewModel } from '..';
|
|
3
2
|
type LGV = LinearGenomeViewModel;
|
|
4
3
|
declare const CenterLine: ({ model }: {
|
|
5
4
|
model: LGV;
|
|
6
|
-
}) =>
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
6
|
export default CenterLine;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef } from 'react';
|
|
2
3
|
import { observer } from 'mobx-react';
|
|
3
4
|
import { makeStyles } from 'tss-react/mui';
|
|
4
5
|
const useStyles = makeStyles()(theme => ({
|
|
@@ -24,16 +25,12 @@ const CenterLine = observer(function ({ model }) {
|
|
|
24
25
|
const ref = useRef(null);
|
|
25
26
|
const { classes } = useStyles();
|
|
26
27
|
const startingPosition = width / 2;
|
|
27
|
-
return tracks.length ? (
|
|
28
|
+
return tracks.length ? (_jsx("div", { "data-testid": "centerline_container", className: classes.centerLineContainer, role: "presentation", ref: ref, style: {
|
|
28
29
|
left: `${startingPosition}px`,
|
|
29
30
|
width: Math.max(1 / bpPerPx, 1),
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
centerLineInfo.refName,
|
|
35
|
-
":",
|
|
36
|
-
' ',
|
|
37
|
-
Math.max(Math.round(centerLineInfo.offset) + 1, 0))))) : null;
|
|
31
|
+
}, children: centerLineInfo && (_jsxs("div", { "data-testid": "centerline_text", className: classes.centerLineText, role: "presentation", style: {
|
|
32
|
+
left: Math.max(1 / bpPerPx, 1) + 5,
|
|
33
|
+
top: trackHeights,
|
|
34
|
+
}, children: [centerLineInfo.refName, ":", ' ', Math.max(Math.round(centerLineInfo.offset) + 1, 0)] })) })) : null;
|
|
38
35
|
});
|
|
39
36
|
export default CenterLine;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { Assembly } from '@jbrowse/core/assemblyManager/assembly';
|
|
3
2
|
import type { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
|
|
4
3
|
import type { ContentBlock } from '@jbrowse/core/util/blockTypes';
|
|
@@ -6,5 +5,5 @@ declare const Cytobands: ({ overview, block, assembly, }: {
|
|
|
6
5
|
overview: Base1DViewModel;
|
|
7
6
|
assembly?: Assembly;
|
|
8
7
|
block: ContentBlock;
|
|
9
|
-
}) =>
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export default Cytobands;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getFillProps } from '@jbrowse/core/util';
|
|
3
3
|
import { observer } from 'mobx-react';
|
|
4
4
|
import { getCytobands } from './util';
|
|
@@ -40,32 +40,32 @@ const Cytobands = observer(function ({ overview, block, assembly, }) {
|
|
|
40
40
|
const rcap = reversed ? 0 : cytobands.length - 1;
|
|
41
41
|
const h = HEADER_OVERVIEW_HEIGHT;
|
|
42
42
|
let centromereSeen = false;
|
|
43
|
-
return (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
43
|
+
return (_jsx("g", { transform: `translate(-${offsetPx})`, children: cytobands.map((args, index) => {
|
|
44
|
+
const k = JSON.stringify(args);
|
|
45
|
+
const { refName, type, start, end } = args;
|
|
46
|
+
const s = overview.bpToPx({ refName, coord: start }) || 0;
|
|
47
|
+
const e = overview.bpToPx({ refName, coord: end }) || 0;
|
|
48
|
+
const l = Math.min(s, e);
|
|
49
|
+
const w = Math.abs(e - s);
|
|
50
|
+
const c = colorMap[type] || 'black';
|
|
51
|
+
if (type === 'acen' && !centromereSeen) {
|
|
52
|
+
centromereSeen = true;
|
|
53
|
+
return (_jsx("polygon", { points: reversed
|
|
54
|
+
? rightTriangle(s - w, 0, w, h)
|
|
55
|
+
: leftTriangle(s, 0, w, h), ...getFillProps(c) }, k));
|
|
56
|
+
}
|
|
57
|
+
if (type === 'acen' && centromereSeen) {
|
|
58
|
+
return (_jsx("polygon", { points: reversed
|
|
59
|
+
? leftTriangle(s - w, 0, w, h)
|
|
60
|
+
: rightTriangle(s, 0, w, h), ...getFillProps(c) }, k));
|
|
61
|
+
}
|
|
62
|
+
if (lcap === index) {
|
|
63
|
+
return (_jsx("path", { d: leftRoundedRect(l, 0, w, h, 8), ...getFillProps(c) }, k));
|
|
64
|
+
}
|
|
65
|
+
if (rcap === index) {
|
|
66
|
+
return (_jsx("path", { d: rightRoundedRect(l, 0, w, h, 8), ...getFillProps(c) }, k));
|
|
67
|
+
}
|
|
68
|
+
return (_jsx("rect", { x: l, y: 0, width: w, height: h, ...getFillProps(c) }, k));
|
|
69
|
+
}) }));
|
|
70
70
|
});
|
|
71
71
|
export default Cytobands;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ExportSvgOptions } from '..';
|
|
1
|
+
import type { ExportSvgOptions } from '../types';
|
|
3
2
|
export default function ExportSvgDialog({ model, handleClose, }: {
|
|
4
3
|
model: {
|
|
5
4
|
exportSvg(opts: ExportSvgOptions): Promise<void>;
|
|
6
5
|
};
|
|
7
6
|
handleClose: () => void;
|
|
8
|
-
}):
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|