@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,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export default function SVGTrackLabel({ trackLabels, trackName, fontSize, trackLabelOffset, x, }: {
|
|
3
2
|
trackName: string;
|
|
4
3
|
trackLabels: string;
|
|
5
4
|
fontSize: number;
|
|
6
5
|
trackLabelOffset: number;
|
|
7
6
|
x: number;
|
|
8
|
-
}):
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = SVGTrackLabel;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const util_1 = require("@jbrowse/core/util");
|
|
9
6
|
const material_1 = require("@mui/material");
|
|
10
7
|
function SVGTrackLabel({ trackLabels, trackName, fontSize, trackLabelOffset, x, }) {
|
|
@@ -13,5 +10,5 @@ function SVGTrackLabel({ trackLabels, trackName, fontSize, trackLabelOffset, x,
|
|
|
13
10
|
const xoff = trackLabels === 'overlay' ? 5 : 0;
|
|
14
11
|
const yoff = trackLabels === 'offset' ? 5 : 0;
|
|
15
12
|
const name = (0, util_1.coarseStripHTML)(trackName);
|
|
16
|
-
return trackLabels !== 'none' ? (
|
|
13
|
+
return trackLabels !== 'none' ? ((0, jsx_runtime_1.jsx)("g", { children: trackLabels === 'left' ? ((0, jsx_runtime_1.jsx)("text", { x: trackLabelOffset - 40, y: 20, fill: fill, fontSize: fontSize, dominantBaseline: "hanging", textAnchor: "end", children: name })) : ((0, jsx_runtime_1.jsx)("text", { x: x + xoff, y: yoff, fill: fill, fontSize: fontSize, dominantBaseline: "hanging", children: name })) })) : null;
|
|
17
14
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { LinearGenomeViewModel } from '..';
|
|
3
2
|
import type { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
3
|
type LGV = LinearGenomeViewModel;
|
|
@@ -18,5 +17,5 @@ export default function SVGTracks({ displayResults, model, textHeight, fontSize,
|
|
|
18
17
|
fontSize: number;
|
|
19
18
|
trackLabels?: string;
|
|
20
19
|
trackLabelOffset?: number;
|
|
21
|
-
}):
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
export {};
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = SVGTracks;
|
|
7
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const util_1 = require("@jbrowse/core/util");
|
|
9
9
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
10
10
|
const SVGRegionSeparators_1 = __importDefault(require("./SVGRegionSeparators"));
|
|
@@ -12,18 +12,21 @@ const SVGTrackLabel_1 = __importDefault(require("./SVGTrackLabel"));
|
|
|
12
12
|
function SVGTracks({ displayResults, model, textHeight, fontSize, trackLabels = 'offset', trackLabelOffset = 0, }) {
|
|
13
13
|
const session = (0, util_1.getSession)(model);
|
|
14
14
|
const textOffset = trackLabels === 'offset' ? textHeight : 0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: displayResults.reduce(({ prevOffset, reactElements }, { track, result }) => {
|
|
16
|
+
const conf = track.configuration;
|
|
17
|
+
const trackName = (0, tracks_1.getTrackName)(conf, session);
|
|
18
|
+
const display = track.displays[0];
|
|
19
|
+
const x = Math.max(-model.offsetPx, 0);
|
|
20
|
+
const currOffset = prevOffset + display.height + textOffset;
|
|
21
|
+
return {
|
|
22
|
+
prevOffset: currOffset,
|
|
23
|
+
reactElements: [
|
|
24
|
+
...reactElements,
|
|
25
|
+
(0, jsx_runtime_1.jsxs)("g", { transform: `translate(0 ${prevOffset})`, children: [(0, jsx_runtime_1.jsxs)("g", { transform: `translate(${trackLabelOffset} ${textOffset})`, children: [(0, jsx_runtime_1.jsx)(SVGRegionSeparators_1.default, { model: model, height: display.height }), result] }), (0, jsx_runtime_1.jsx)(SVGTrackLabel_1.default, { trackName: trackName, fontSize: fontSize, trackLabels: trackLabels, trackLabelOffset: trackLabelOffset, x: x })] }, conf.trackId),
|
|
26
|
+
],
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
prevOffset: 0,
|
|
30
|
+
reactElements: [],
|
|
31
|
+
}).reactElements }));
|
|
29
32
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface BpOffset {
|
|
2
|
+
refName?: string;
|
|
3
|
+
index: number;
|
|
4
|
+
offset: number;
|
|
5
|
+
start?: number;
|
|
6
|
+
end?: number;
|
|
7
|
+
coord?: number;
|
|
8
|
+
reversed?: boolean;
|
|
9
|
+
assemblyName?: string;
|
|
10
|
+
oob?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ExportSvgOptions {
|
|
13
|
+
rasterizeLayers?: boolean;
|
|
14
|
+
filename?: string;
|
|
15
|
+
Wrapper?: React.FC<{
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
}>;
|
|
18
|
+
fontSize?: number;
|
|
19
|
+
rulerHeight?: number;
|
|
20
|
+
textHeight?: number;
|
|
21
|
+
paddingHeight?: number;
|
|
22
|
+
headerHeight?: number;
|
|
23
|
+
cytobandHeight?: number;
|
|
24
|
+
trackLabels?: string;
|
|
25
|
+
themeName?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface HighlightType {
|
|
28
|
+
start: number;
|
|
29
|
+
end: number;
|
|
30
|
+
assemblyName: string;
|
|
31
|
+
refName: string;
|
|
32
|
+
}
|
|
33
|
+
export interface NavLocation {
|
|
34
|
+
refName: string;
|
|
35
|
+
start?: number;
|
|
36
|
+
end?: number;
|
|
37
|
+
assemblyName?: string;
|
|
38
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AssemblyManager, ParsedLocString } from '@jbrowse/core/util';
|
|
2
|
+
import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
|
|
2
3
|
export declare function chooseGridPitch(scale: number, minMajorPitchPx: number, minMinorPitchPx: number): {
|
|
3
4
|
majorPitch: number;
|
|
4
5
|
minorPitch: number;
|
|
@@ -12,8 +13,9 @@ export declare function generateLocations(regions: ParsedLocString[], assemblyMa
|
|
|
12
13
|
assemblyName: string;
|
|
13
14
|
parentRegion: import("@jbrowse/core/assemblyManager/assembly").BasicRegion;
|
|
14
15
|
end?: number | undefined;
|
|
15
|
-
reversed?: boolean | undefined;
|
|
16
16
|
start?: number | undefined;
|
|
17
17
|
refName: string;
|
|
18
|
+
reversed?: boolean | undefined;
|
|
18
19
|
}[]>;
|
|
19
20
|
export declare function parseLocStrings(input: string, assemblyName: string, isValidRefName: (str: string, assemblyName: string) => boolean): ParsedLocString[];
|
|
21
|
+
export declare function calculateVisibleLocStrings(contentBlocks: BaseBlock[]): string;
|
|
@@ -4,6 +4,7 @@ exports.chooseGridPitch = chooseGridPitch;
|
|
|
4
4
|
exports.makeTicks = makeTicks;
|
|
5
5
|
exports.generateLocations = generateLocations;
|
|
6
6
|
exports.parseLocStrings = parseLocStrings;
|
|
7
|
+
exports.calculateVisibleLocStrings = calculateVisibleLocStrings;
|
|
7
8
|
const util_1 = require("@jbrowse/core/util");
|
|
8
9
|
function chooseGridPitch(scale, minMajorPitchPx, minMinorPitchPx) {
|
|
9
10
|
scale = Math.abs(scale);
|
|
@@ -106,3 +107,18 @@ function parseLocStrings(input, assemblyName, isValidRefName) {
|
|
|
106
107
|
throw e;
|
|
107
108
|
}
|
|
108
109
|
}
|
|
110
|
+
function calculateVisibleLocStrings(contentBlocks) {
|
|
111
|
+
if (!contentBlocks.length) {
|
|
112
|
+
return '';
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
const isSingleAssemblyName = contentBlocks.every(b => b.assemblyName === contentBlocks[0].assemblyName);
|
|
116
|
+
const locs = contentBlocks.map(block => (0, util_1.assembleLocString)({
|
|
117
|
+
...block,
|
|
118
|
+
start: Math.round(block.start),
|
|
119
|
+
end: Math.round(block.end),
|
|
120
|
+
assemblyName: isSingleAssemblyName ? undefined : block.assemblyName,
|
|
121
|
+
}));
|
|
122
|
+
return locs.join(' ');
|
|
123
|
+
}
|
|
124
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
6
6
|
BaseLinearDisplayComponent: (props: {
|
|
7
7
|
model: import("./BaseLinearDisplay").BaseLinearDisplayModel;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
|
-
}) => import("react").JSX.Element;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
11
11
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
12
12
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -42,7 +42,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
42
42
|
status?: string;
|
|
43
43
|
reactElement?: React.ReactElement;
|
|
44
44
|
};
|
|
45
|
-
}) => import("react").JSX.Element | undefined;
|
|
45
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
46
46
|
renderProps: any;
|
|
47
47
|
} & {
|
|
48
48
|
doReload(): void;
|
|
@@ -174,13 +174,13 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
174
174
|
} & {
|
|
175
175
|
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
176
176
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
177
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
177
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react/jsx-runtime").JSX.Element | null;
|
|
178
178
|
} & {
|
|
179
179
|
featureIdUnderMouse: undefined | string;
|
|
180
180
|
contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
|
|
181
181
|
} & {
|
|
182
|
-
readonly DisplayMessageComponent:
|
|
183
|
-
readonly blockType: "
|
|
182
|
+
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
183
|
+
readonly blockType: "staticBlocks" | "dynamicBlocks";
|
|
184
184
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
185
185
|
} & {
|
|
186
186
|
readonly renderDelay: number;
|
|
@@ -207,7 +207,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
207
207
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
208
208
|
renderProps(): any;
|
|
209
209
|
} & {
|
|
210
|
-
renderSvg(opts: import("./BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
210
|
+
renderSvg(opts: import("./BaseLinearDisplay").ExportSvgDisplayOptions): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
211
211
|
afterAttach(): void;
|
|
212
212
|
}, import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
213
213
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -244,7 +244,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
244
244
|
status?: string;
|
|
245
245
|
reactElement?: React.ReactElement;
|
|
246
246
|
};
|
|
247
|
-
}) => import("react").JSX.Element | undefined;
|
|
247
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
248
248
|
renderProps: any;
|
|
249
249
|
} & {
|
|
250
250
|
doReload(): void;
|
|
@@ -325,13 +325,13 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
325
325
|
SearchBox: ({ model, showHelp, }: {
|
|
326
326
|
showHelp?: boolean;
|
|
327
327
|
model: import("./LinearGenomeView").LinearGenomeViewModel;
|
|
328
|
-
}) => import("react").JSX.Element;
|
|
328
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
329
329
|
ZoomControls: ({ model, }: {
|
|
330
330
|
model: import("./LinearGenomeView").LinearGenomeViewModel;
|
|
331
|
-
}) => import("react").JSX.Element;
|
|
331
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
332
332
|
LinearGenomeView: ({ model, }: {
|
|
333
333
|
model: import("./LinearGenomeView").LinearGenomeViewModel;
|
|
334
|
-
}) => import("react").JSX.Element;
|
|
334
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
335
335
|
};
|
|
336
336
|
configurationSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
337
337
|
trackLabels: {
|
package/dist/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
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
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
@@ -39,6 +49,7 @@ const LaunchLinearGenomeView_1 = __importDefault(require("./LaunchLinearGenomeVi
|
|
|
39
49
|
const LinearBareDisplay_1 = __importDefault(require("./LinearBareDisplay"));
|
|
40
50
|
const LinearBasicDisplay_1 = __importDefault(require("./LinearBasicDisplay"));
|
|
41
51
|
const LinearGenomeView_1 = __importStar(require("./LinearGenomeView"));
|
|
52
|
+
const HeaderZoomControls_1 = __importDefault(require("./LinearGenomeView/components/HeaderZoomControls"));
|
|
42
53
|
class LinearGenomeViewPlugin extends Plugin_1.default {
|
|
43
54
|
constructor() {
|
|
44
55
|
super(...arguments);
|
|
@@ -48,7 +59,7 @@ class LinearGenomeViewPlugin extends Plugin_1.default {
|
|
|
48
59
|
BaseLinearDisplay: BaseLinearDisplay_1.BaseLinearDisplay,
|
|
49
60
|
baseLinearDisplayConfigSchema: BaseLinearDisplay_1.baseLinearDisplayConfigSchema,
|
|
50
61
|
SearchBox: LinearGenomeView_1.SearchBox,
|
|
51
|
-
ZoomControls:
|
|
62
|
+
ZoomControls: HeaderZoomControls_1.default,
|
|
52
63
|
LinearGenomeView: LinearGenomeView_1.LinearGenomeView,
|
|
53
64
|
};
|
|
54
65
|
this.configurationSchema = (0, configuration_1.ConfigurationSchema)('LinearGenomeViewConfigSchema', {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
|
|
3
2
|
declare const BaseLinearDisplay: (props: {
|
|
4
3
|
model: BaseLinearDisplayModel;
|
|
5
4
|
children?: React.ReactNode;
|
|
6
|
-
}) =>
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default BaseLinearDisplay;
|
|
8
7
|
export { default as Tooltip } from './Tooltip';
|
|
9
8
|
export { default as BlockMsg } from './BlockMsg';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense, useRef, useState } from 'react';
|
|
2
3
|
import { getConf } from '@jbrowse/core/configuration';
|
|
3
4
|
import { Menu } from '@jbrowse/core/ui';
|
|
4
5
|
import { useTheme } from '@mui/material';
|
|
@@ -25,7 +26,7 @@ const BaseLinearDisplay = observer(function (props) {
|
|
|
25
26
|
const { model, children } = props;
|
|
26
27
|
const { TooltipComponent, DisplayMessageComponent, height } = model;
|
|
27
28
|
const items = model.contextMenuItems();
|
|
28
|
-
return (
|
|
29
|
+
return (_jsxs("div", { ref: ref, "data-testid": `display-${getConf(model, 'displayId')}`, className: classes.display, onContextMenu: event => {
|
|
29
30
|
event.preventDefault();
|
|
30
31
|
if (contextCoord) {
|
|
31
32
|
setContextCoord(undefined);
|
|
@@ -42,27 +43,22 @@ const BaseLinearDisplay = observer(function (props) {
|
|
|
42
43
|
setOffsetMouseCoord([event.clientX - left, event.clientY - top]);
|
|
43
44
|
setClientMouseCoord([event.clientX, event.clientY]);
|
|
44
45
|
setClientRect(rect);
|
|
45
|
-
} },
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
React.createElement(TooltipComponent, { model: model, height: height, offsetMouseCoord: offsetMouseCoord, clientMouseCoord: clientMouseCoord, clientRect: clientRect, mouseCoord: offsetMouseCoord })),
|
|
50
|
-
React.createElement(Menu, { open: Boolean(contextCoord) && items.length > 0, onMenuItemClick: (_, callback) => {
|
|
51
|
-
callback();
|
|
52
|
-
setContextCoord(undefined);
|
|
53
|
-
}, onClose: () => {
|
|
54
|
-
setContextCoord(undefined);
|
|
55
|
-
model.setContextMenuFeature(undefined);
|
|
56
|
-
}, TransitionProps: {
|
|
57
|
-
onExit: () => {
|
|
46
|
+
}, children: [DisplayMessageComponent ? (_jsx(DisplayMessageComponent, { model: model })) : (_jsx(LinearBlocks, { ...props })), children, _jsx(Suspense, { fallback: null, children: _jsx(TooltipComponent, { model: model, height: height, offsetMouseCoord: offsetMouseCoord, clientMouseCoord: clientMouseCoord, clientRect: clientRect, mouseCoord: offsetMouseCoord }) }), _jsx(Menu, { open: Boolean(contextCoord) && items.length > 0, onMenuItemClick: (_, callback) => {
|
|
47
|
+
callback();
|
|
48
|
+
setContextCoord(undefined);
|
|
49
|
+
}, onClose: () => {
|
|
58
50
|
setContextCoord(undefined);
|
|
59
51
|
model.setContextMenuFeature(undefined);
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
52
|
+
}, TransitionProps: {
|
|
53
|
+
onExit: () => {
|
|
54
|
+
setContextCoord(undefined);
|
|
55
|
+
model.setContextMenuFeature(undefined);
|
|
56
|
+
},
|
|
57
|
+
}, anchorReference: "anchorPosition", anchorPosition: contextCoord
|
|
58
|
+
? { top: contextCoord[1], left: contextCoord[0] }
|
|
59
|
+
: undefined, style: {
|
|
60
|
+
zIndex: theme.zIndex.tooltip,
|
|
61
|
+
}, menuItems: items })] }));
|
|
66
62
|
});
|
|
67
63
|
export default BaseLinearDisplay;
|
|
68
64
|
export { default as Tooltip } from './Tooltip';
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { BaseBlock } from '@jbrowse/core/util/blockTypes';
|
|
3
2
|
declare const ContentBlock: ({ block, children, }: {
|
|
4
3
|
block: BaseBlock;
|
|
5
4
|
children: React.ReactNode;
|
|
6
|
-
}) =>
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
declare function ElidedBlock({ width }: {
|
|
8
7
|
width: number;
|
|
9
|
-
}):
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
declare function InterRegionPaddingBlock({ boundary, width, style, }: {
|
|
11
10
|
boundary: boolean;
|
|
12
11
|
width: number;
|
|
13
12
|
style?: React.CSSProperties;
|
|
14
|
-
}):
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export { ContentBlock, ElidedBlock, InterRegionPaddingBlock };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { observer } from 'mobx-react';
|
|
3
3
|
import { makeStyles } from 'tss-react/mui';
|
|
4
4
|
const useStyles = makeStyles()(theme => ({
|
|
@@ -27,15 +27,15 @@ const useStyles = makeStyles()(theme => ({
|
|
|
27
27
|
const ContentBlock = observer(function ({ block, children, }) {
|
|
28
28
|
const { classes } = useStyles();
|
|
29
29
|
const { widthPx } = block;
|
|
30
|
-
return (
|
|
30
|
+
return (_jsx("div", { style: { width: widthPx }, className: classes.contentBlock, children: children }));
|
|
31
31
|
});
|
|
32
32
|
function ElidedBlock({ width }) {
|
|
33
33
|
const { classes } = useStyles();
|
|
34
|
-
return
|
|
34
|
+
return _jsx("div", { className: classes.elidedBlock, style: { width } });
|
|
35
35
|
}
|
|
36
36
|
function InterRegionPaddingBlock({ boundary, width, style = {}, }) {
|
|
37
37
|
const { classes } = useStyles();
|
|
38
|
-
return (
|
|
38
|
+
return (_jsx("div", { style: {
|
|
39
39
|
...style,
|
|
40
40
|
width,
|
|
41
41
|
}, className: boundary
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import ErrorMessageStackTraceDialog from '@jbrowse/core/ui/ErrorMessageStackTraceDialog';
|
|
3
3
|
import { getSession } from '@jbrowse/core/util';
|
|
4
4
|
import RefreshIcon from '@mui/icons-material/Refresh';
|
|
@@ -7,19 +7,13 @@ import { IconButton, Tooltip } from '@mui/material';
|
|
|
7
7
|
import { observer } from 'mobx-react';
|
|
8
8
|
import BlockMsg from './BlockMsg';
|
|
9
9
|
const BlockError = observer(function ({ model }) {
|
|
10
|
-
return (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
getSession(model).queueDialog(onClose => [
|
|
19
|
-
ErrorMessageStackTraceDialog,
|
|
20
|
-
{ onClose, error: model.error },
|
|
21
|
-
]);
|
|
22
|
-
} },
|
|
23
|
-
React.createElement(ReportIcon, null)))) }));
|
|
10
|
+
return (_jsx(BlockMsg, { message: `${model.error}`, severity: "error", action: _jsxs(_Fragment, { children: [_jsx(Tooltip, { title: "Reload track", children: _jsx(IconButton, { "data-testid": "reload_button", onClick: () => {
|
|
11
|
+
model.reload();
|
|
12
|
+
}, children: _jsx(RefreshIcon, {}) }) }), _jsx(Tooltip, { title: "Show stack trace", children: _jsx(IconButton, { onClick: () => {
|
|
13
|
+
getSession(model).queueDialog(onClose => [
|
|
14
|
+
ErrorMessageStackTraceDialog,
|
|
15
|
+
{ onClose, error: model.error },
|
|
16
|
+
]);
|
|
17
|
+
}, children: _jsx(ReportIcon, {}) }) })] }) }));
|
|
24
18
|
});
|
|
25
19
|
export default BlockError;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { AlertColor } from '@mui/material';
|
|
3
2
|
export default function BlockMsg({ message, severity, action, }: {
|
|
4
3
|
message: string;
|
|
5
4
|
severity?: AlertColor;
|
|
6
5
|
action?: React.ReactNode;
|
|
7
|
-
}):
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Alert, Tooltip } from '@mui/material';
|
|
3
3
|
import { makeStyles } from 'tss-react/mui';
|
|
4
4
|
const useStyles = makeStyles()({
|
|
@@ -9,9 +9,7 @@ const useStyles = makeStyles()({
|
|
|
9
9
|
});
|
|
10
10
|
export default function BlockMsg({ message, severity, action, }) {
|
|
11
11
|
const { classes } = useStyles();
|
|
12
|
-
return (
|
|
12
|
+
return (_jsx(Alert, { onClick: event => {
|
|
13
13
|
event.stopPropagation();
|
|
14
|
-
}, severity: severity, action: action, classes: { message: classes.ellipses } }
|
|
15
|
-
React.createElement(Tooltip, { title: message },
|
|
16
|
-
React.createElement("div", null, message))));
|
|
14
|
+
}, severity: severity, action: action, classes: { message: classes.ellipses }, children: _jsx(Tooltip, { title: message, children: _jsx("div", { children: message }) }) }));
|
|
17
15
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
|
|
3
2
|
declare const RenderedBlocks: ({ model, }: {
|
|
4
3
|
model: BaseLinearDisplayModel;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export { RenderedBlocks };
|
|
7
6
|
declare const LinearBlocks: ({ model, }: {
|
|
8
7
|
model: BaseLinearDisplayModel;
|
|
9
|
-
}) =>
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export default LinearBlocks;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { getContainingView } from '@jbrowse/core/util';
|
|
3
3
|
import { observer } from 'mobx-react';
|
|
4
4
|
import { makeStyles } from 'tss-react/mui';
|
|
@@ -27,35 +27,32 @@ const useStyles = makeStyles()({
|
|
|
27
27
|
const RenderedBlocks = observer(function ({ model, }) {
|
|
28
28
|
const { classes } = useStyles();
|
|
29
29
|
const { blockDefinitions, blockState } = model;
|
|
30
|
-
return (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
throw new Error(`invalid block type ${JSON.stringify(block)}`);
|
|
49
|
-
})));
|
|
30
|
+
return (_jsx(_Fragment, { children: blockDefinitions.map(block => {
|
|
31
|
+
const key = `${model.id}-${block.key}`;
|
|
32
|
+
if (block.type === 'ContentBlock') {
|
|
33
|
+
const state = blockState.get(block.key);
|
|
34
|
+
return (_jsxs(ContentBlockComponent, { block: block, children: [(state === null || state === void 0 ? void 0 : state.ReactComponent) ? (_jsx(state.ReactComponent, { model: state })) : null, (state === null || state === void 0 ? void 0 : state.maxHeightReached) ? (_jsx("div", { className: classes.heightOverflowed, style: {
|
|
35
|
+
top: state.layout.getTotalHeight() - 16,
|
|
36
|
+
pointerEvents: 'none',
|
|
37
|
+
height: 16,
|
|
38
|
+
}, children: "Max height reached" })) : null] }, key));
|
|
39
|
+
}
|
|
40
|
+
if (block.type === 'ElidedBlock') {
|
|
41
|
+
return _jsx(ElidedBlockComponent, { width: block.widthPx }, key);
|
|
42
|
+
}
|
|
43
|
+
if (block.type === 'InterRegionPaddingBlock') {
|
|
44
|
+
return (_jsx(InterRegionPaddingBlockComponent, { width: block.widthPx, style: { background: 'none' }, boundary: block.variant === 'boundary' }, key));
|
|
45
|
+
}
|
|
46
|
+
throw new Error(`invalid block type ${JSON.stringify(block)}`);
|
|
47
|
+
}) }));
|
|
50
48
|
});
|
|
51
49
|
export { RenderedBlocks };
|
|
52
50
|
const LinearBlocks = observer(function ({ model, }) {
|
|
53
51
|
const { classes } = useStyles();
|
|
54
52
|
const { blockDefinitions } = model;
|
|
55
53
|
const viewModel = getContainingView(model);
|
|
56
|
-
return (
|
|
54
|
+
return (_jsx("div", { className: classes.linearBlocks, style: {
|
|
57
55
|
left: blockDefinitions.offsetPx - viewModel.offsetPx,
|
|
58
|
-
} }
|
|
59
|
-
React.createElement(RenderedBlocks, { model: model })));
|
|
56
|
+
}, children: _jsx(RenderedBlocks, { model: model }) }));
|
|
60
57
|
});
|
|
61
58
|
export default LinearBlocks;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const ServerSideRenderedBlockContent: ({ model, }: {
|
|
3
2
|
model: {
|
|
4
3
|
error?: unknown;
|
|
@@ -8,5 +7,5 @@ declare const ServerSideRenderedBlockContent: ({ model, }: {
|
|
|
8
7
|
status?: string;
|
|
9
8
|
reactElement?: React.ReactElement;
|
|
10
9
|
};
|
|
11
|
-
}) =>
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
12
11
|
export default ServerSideRenderedBlockContent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense, isValidElement, lazy } from 'react';
|
|
2
3
|
import { LoadingEllipses } from '@jbrowse/core/ui';
|
|
3
4
|
import { observer } from 'mobx-react';
|
|
4
5
|
import { getParent } from 'mobx-state-tree';
|
|
@@ -21,19 +22,17 @@ const LoadingMessage = observer(({ model }) => {
|
|
|
21
22
|
const { status: blockStatus } = model;
|
|
22
23
|
const { message: displayStatus } = getParent(model, 2);
|
|
23
24
|
const status = displayStatus || blockStatus;
|
|
24
|
-
return (
|
|
25
|
-
React.createElement(LoadingEllipses, { message: status })));
|
|
25
|
+
return (_jsx("div", { className: classes.loading, children: _jsx(LoadingEllipses, { message: status }) }));
|
|
26
26
|
});
|
|
27
27
|
const ServerSideRenderedBlockContent = observer(function ({ model, }) {
|
|
28
28
|
if (model.error) {
|
|
29
|
-
return (
|
|
30
|
-
React.createElement(BlockError, { model: model })));
|
|
29
|
+
return (_jsx(Suspense, { fallback: null, children: _jsx(BlockError, { model: model }) }));
|
|
31
30
|
}
|
|
32
31
|
else if (model.message) {
|
|
33
|
-
return
|
|
32
|
+
return isValidElement(model.message) ? (model.message) : (_jsx(BlockMsg, { message: `${model.message}`, severity: "info" }));
|
|
34
33
|
}
|
|
35
34
|
else if (!model.filled) {
|
|
36
|
-
return
|
|
35
|
+
return _jsx(LoadingMessage, { model: model });
|
|
37
36
|
}
|
|
38
37
|
else {
|
|
39
38
|
return model.reactElement;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
|
-
declare
|
|
2
|
+
declare const TooLargeMessage: ({ model, }: {
|
|
4
3
|
model: {
|
|
5
4
|
regionTooLargeReason: string;
|
|
6
5
|
featureDensityStats?: FeatureDensityStats;
|
|
7
6
|
setFeatureDensityStatsLimit: (s?: FeatureDensityStats) => void;
|
|
8
7
|
reload: () => void;
|
|
9
8
|
};
|
|
10
|
-
})
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export default TooLargeMessage;
|