@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,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,33 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.BlockMsg = exports.Tooltip = void 0;
|
|
30
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
31
9
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
32
10
|
const ui_1 = require("@jbrowse/core/ui");
|
|
33
11
|
const material_1 = require("@mui/material");
|
|
@@ -54,7 +32,7 @@ const BaseLinearDisplay = (0, mobx_react_1.observer)(function (props) {
|
|
|
54
32
|
const { model, children } = props;
|
|
55
33
|
const { TooltipComponent, DisplayMessageComponent, height } = model;
|
|
56
34
|
const items = model.contextMenuItems();
|
|
57
|
-
return (
|
|
35
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, "data-testid": `display-${(0, configuration_1.getConf)(model, 'displayId')}`, className: classes.display, onContextMenu: event => {
|
|
58
36
|
event.preventDefault();
|
|
59
37
|
if (contextCoord) {
|
|
60
38
|
setContextCoord(undefined);
|
|
@@ -71,27 +49,22 @@ const BaseLinearDisplay = (0, mobx_react_1.observer)(function (props) {
|
|
|
71
49
|
setOffsetMouseCoord([event.clientX - left, event.clientY - top]);
|
|
72
50
|
setClientMouseCoord([event.clientX, event.clientY]);
|
|
73
51
|
setClientRect(rect);
|
|
74
|
-
} },
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
react_1.default.createElement(TooltipComponent, { model: model, height: height, offsetMouseCoord: offsetMouseCoord, clientMouseCoord: clientMouseCoord, clientRect: clientRect, mouseCoord: offsetMouseCoord })),
|
|
79
|
-
react_1.default.createElement(ui_1.Menu, { open: Boolean(contextCoord) && items.length > 0, onMenuItemClick: (_, callback) => {
|
|
80
|
-
callback();
|
|
81
|
-
setContextCoord(undefined);
|
|
82
|
-
}, onClose: () => {
|
|
83
|
-
setContextCoord(undefined);
|
|
84
|
-
model.setContextMenuFeature(undefined);
|
|
85
|
-
}, TransitionProps: {
|
|
86
|
-
onExit: () => {
|
|
52
|
+
}, children: [DisplayMessageComponent ? ((0, jsx_runtime_1.jsx)(DisplayMessageComponent, { model: model })) : ((0, jsx_runtime_1.jsx)(LinearBlocks_1.default, { ...props })), children, (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(TooltipComponent, { model: model, height: height, offsetMouseCoord: offsetMouseCoord, clientMouseCoord: clientMouseCoord, clientRect: clientRect, mouseCoord: offsetMouseCoord }) }), (0, jsx_runtime_1.jsx)(ui_1.Menu, { open: Boolean(contextCoord) && items.length > 0, onMenuItemClick: (_, callback) => {
|
|
53
|
+
callback();
|
|
54
|
+
setContextCoord(undefined);
|
|
55
|
+
}, onClose: () => {
|
|
87
56
|
setContextCoord(undefined);
|
|
88
57
|
model.setContextMenuFeature(undefined);
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
58
|
+
}, TransitionProps: {
|
|
59
|
+
onExit: () => {
|
|
60
|
+
setContextCoord(undefined);
|
|
61
|
+
model.setContextMenuFeature(undefined);
|
|
62
|
+
},
|
|
63
|
+
}, anchorReference: "anchorPosition", anchorPosition: contextCoord
|
|
64
|
+
? { top: contextCoord[1], left: contextCoord[0] }
|
|
65
|
+
: undefined, style: {
|
|
66
|
+
zIndex: theme.zIndex.tooltip,
|
|
67
|
+
}, menuItems: items })] }));
|
|
95
68
|
});
|
|
96
69
|
exports.default = BaseLinearDisplay;
|
|
97
70
|
var Tooltip_1 = require("./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,12 +1,9 @@
|
|
|
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.ContentBlock = void 0;
|
|
7
4
|
exports.ElidedBlock = ElidedBlock;
|
|
8
5
|
exports.InterRegionPaddingBlock = InterRegionPaddingBlock;
|
|
9
|
-
const
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
10
7
|
const mobx_react_1 = require("mobx-react");
|
|
11
8
|
const mui_1 = require("tss-react/mui");
|
|
12
9
|
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
@@ -35,16 +32,16 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
|
35
32
|
const ContentBlock = (0, mobx_react_1.observer)(function ({ block, children, }) {
|
|
36
33
|
const { classes } = useStyles();
|
|
37
34
|
const { widthPx } = block;
|
|
38
|
-
return (
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { width: widthPx }, className: classes.contentBlock, children: children }));
|
|
39
36
|
});
|
|
40
37
|
exports.ContentBlock = ContentBlock;
|
|
41
38
|
function ElidedBlock({ width }) {
|
|
42
39
|
const { classes } = useStyles();
|
|
43
|
-
return
|
|
40
|
+
return (0, jsx_runtime_1.jsx)("div", { className: classes.elidedBlock, style: { width } });
|
|
44
41
|
}
|
|
45
42
|
function InterRegionPaddingBlock({ boundary, width, style = {}, }) {
|
|
46
43
|
const { classes } = useStyles();
|
|
47
|
-
return (
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
48
45
|
...style,
|
|
49
46
|
width,
|
|
50
47
|
}, className: boundary
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const ErrorMessageStackTraceDialog_1 = __importDefault(require("@jbrowse/core/ui/ErrorMessageStackTraceDialog"));
|
|
8
8
|
const util_1 = require("@jbrowse/core/util");
|
|
9
9
|
const Refresh_1 = __importDefault(require("@mui/icons-material/Refresh"));
|
|
@@ -12,19 +12,13 @@ const material_1 = require("@mui/material");
|
|
|
12
12
|
const mobx_react_1 = require("mobx-react");
|
|
13
13
|
const BlockMsg_1 = __importDefault(require("./BlockMsg"));
|
|
14
14
|
const BlockError = (0, mobx_react_1.observer)(function ({ model }) {
|
|
15
|
-
return (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(0, util_1.getSession)(model).queueDialog(onClose => [
|
|
24
|
-
ErrorMessageStackTraceDialog_1.default,
|
|
25
|
-
{ onClose, error: model.error },
|
|
26
|
-
]);
|
|
27
|
-
} },
|
|
28
|
-
react_1.default.createElement(Report_1.default, null)))) }));
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(BlockMsg_1.default, { message: `${model.error}`, severity: "error", action: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: "Reload track", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { "data-testid": "reload_button", onClick: () => {
|
|
16
|
+
model.reload();
|
|
17
|
+
}, children: (0, jsx_runtime_1.jsx)(Refresh_1.default, {}) }) }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: "Show stack trace", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: () => {
|
|
18
|
+
(0, util_1.getSession)(model).queueDialog(onClose => [
|
|
19
|
+
ErrorMessageStackTraceDialog_1.default,
|
|
20
|
+
{ onClose, error: model.error },
|
|
21
|
+
]);
|
|
22
|
+
}, children: (0, jsx_runtime_1.jsx)(Report_1.default, {}) }) })] }) }));
|
|
29
23
|
});
|
|
30
24
|
exports.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,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 = BlockMsg;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const material_1 = require("@mui/material");
|
|
9
6
|
const mui_1 = require("tss-react/mui");
|
|
10
7
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
@@ -15,9 +12,7 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
15
12
|
});
|
|
16
13
|
function BlockMsg({ message, severity, action, }) {
|
|
17
14
|
const { classes } = useStyles();
|
|
18
|
-
return (
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Alert, { onClick: event => {
|
|
19
16
|
event.stopPropagation();
|
|
20
|
-
}, severity: severity, action: action, classes: { message: classes.ellipses } }
|
|
21
|
-
react_1.default.createElement(material_1.Tooltip, { title: message },
|
|
22
|
-
react_1.default.createElement("div", null, message))));
|
|
17
|
+
}, severity: severity, action: action, classes: { message: classes.ellipses }, children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: message, children: (0, jsx_runtime_1.jsx)("div", { children: message }) }) }));
|
|
23
18
|
}
|
|
@@ -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,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.RenderedBlocks = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const util_1 = require("@jbrowse/core/util");
|
|
9
6
|
const mobx_react_1 = require("mobx-react");
|
|
10
7
|
const mui_1 = require("tss-react/mui");
|
|
@@ -33,35 +30,32 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
33
30
|
const RenderedBlocks = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
34
31
|
const { classes } = useStyles();
|
|
35
32
|
const { blockDefinitions, blockState } = model;
|
|
36
|
-
return (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
throw new Error(`invalid block type ${JSON.stringify(block)}`);
|
|
55
|
-
})));
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: blockDefinitions.map(block => {
|
|
34
|
+
const key = `${model.id}-${block.key}`;
|
|
35
|
+
if (block.type === 'ContentBlock') {
|
|
36
|
+
const state = blockState.get(block.key);
|
|
37
|
+
return ((0, jsx_runtime_1.jsxs)(Block_1.ContentBlock, { block: block, children: [(state === null || state === void 0 ? void 0 : state.ReactComponent) ? ((0, jsx_runtime_1.jsx)(state.ReactComponent, { model: state })) : null, (state === null || state === void 0 ? void 0 : state.maxHeightReached) ? ((0, jsx_runtime_1.jsx)("div", { className: classes.heightOverflowed, style: {
|
|
38
|
+
top: state.layout.getTotalHeight() - 16,
|
|
39
|
+
pointerEvents: 'none',
|
|
40
|
+
height: 16,
|
|
41
|
+
}, children: "Max height reached" })) : null] }, key));
|
|
42
|
+
}
|
|
43
|
+
if (block.type === 'ElidedBlock') {
|
|
44
|
+
return (0, jsx_runtime_1.jsx)(Block_1.ElidedBlock, { width: block.widthPx }, key);
|
|
45
|
+
}
|
|
46
|
+
if (block.type === 'InterRegionPaddingBlock') {
|
|
47
|
+
return ((0, jsx_runtime_1.jsx)(Block_1.InterRegionPaddingBlock, { width: block.widthPx, style: { background: 'none' }, boundary: block.variant === 'boundary' }, key));
|
|
48
|
+
}
|
|
49
|
+
throw new Error(`invalid block type ${JSON.stringify(block)}`);
|
|
50
|
+
}) }));
|
|
56
51
|
});
|
|
57
52
|
exports.RenderedBlocks = RenderedBlocks;
|
|
58
53
|
const LinearBlocks = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
59
54
|
const { classes } = useStyles();
|
|
60
55
|
const { blockDefinitions } = model;
|
|
61
56
|
const viewModel = (0, util_1.getContainingView)(model);
|
|
62
|
-
return (
|
|
57
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: classes.linearBlocks, style: {
|
|
63
58
|
left: blockDefinitions.offsetPx - viewModel.offsetPx,
|
|
64
|
-
} }
|
|
65
|
-
react_1.default.createElement(RenderedBlocks, { model: model })));
|
|
59
|
+
}, children: (0, jsx_runtime_1.jsx)(RenderedBlocks, { model: model }) }));
|
|
66
60
|
});
|
|
67
61
|
exports.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;
|
|
@@ -15,18 +15,29 @@ 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
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const
|
|
39
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
+
const react_1 = require("react");
|
|
30
41
|
const ui_1 = require("@jbrowse/core/ui");
|
|
31
42
|
const mobx_react_1 = require("mobx-react");
|
|
32
43
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
@@ -49,19 +60,17 @@ const LoadingMessage = (0, mobx_react_1.observer)(({ model }) => {
|
|
|
49
60
|
const { status: blockStatus } = model;
|
|
50
61
|
const { message: displayStatus } = (0, mobx_state_tree_1.getParent)(model, 2);
|
|
51
62
|
const status = displayStatus || blockStatus;
|
|
52
|
-
return (
|
|
53
|
-
react_1.default.createElement(ui_1.LoadingEllipses, { message: status })));
|
|
63
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: classes.loading, children: (0, jsx_runtime_1.jsx)(ui_1.LoadingEllipses, { message: status }) }));
|
|
54
64
|
});
|
|
55
65
|
const ServerSideRenderedBlockContent = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
56
66
|
if (model.error) {
|
|
57
|
-
return (
|
|
58
|
-
react_1.default.createElement(BlockError, { model: model })));
|
|
67
|
+
return ((0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(BlockError, { model: model }) }));
|
|
59
68
|
}
|
|
60
69
|
else if (model.message) {
|
|
61
|
-
return react_1.
|
|
70
|
+
return (0, react_1.isValidElement)(model.message) ? (model.message) : ((0, jsx_runtime_1.jsx)(BlockMsg_1.default, { message: `${model.message}`, severity: "info" }));
|
|
62
71
|
}
|
|
63
72
|
else if (!model.filled) {
|
|
64
|
-
return
|
|
73
|
+
return (0, jsx_runtime_1.jsx)(LoadingMessage, { model: model });
|
|
65
74
|
}
|
|
66
75
|
else {
|
|
67
76
|
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;
|
|
@@ -3,19 +3,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const material_1 = require("@mui/material");
|
|
8
|
+
const mobx_react_1 = require("mobx-react");
|
|
9
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
8
10
|
const BlockMsg_1 = __importDefault(require("../components/BlockMsg"));
|
|
9
|
-
|
|
11
|
+
const TooLargeMessage = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
10
12
|
const { regionTooLargeReason } = model;
|
|
11
|
-
return (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(BlockMsg_1.default, { severity: "warning", action: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: () => {
|
|
14
|
+
if ((0, mobx_state_tree_1.isAlive)(model)) {
|
|
15
|
+
model.setFeatureDensityStatsLimit(model.featureDensityStats);
|
|
16
|
+
model.reload();
|
|
17
|
+
}
|
|
18
|
+
}, children: "Force load" }), message: [
|
|
15
19
|
regionTooLargeReason,
|
|
16
20
|
'Zoom in to see features or force load (may be slow)',
|
|
17
21
|
]
|
|
18
22
|
.filter(f => !!f)
|
|
19
23
|
.join('. ') }));
|
|
20
|
-
}
|
|
24
|
+
});
|
|
21
25
|
exports.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;
|
|
@@ -3,13 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
7
8
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
9
|
const ui_1 = require("@jbrowse/core/ui");
|
|
9
10
|
const BaseTooltip_1 = __importDefault(require("@jbrowse/core/ui/BaseTooltip"));
|
|
10
11
|
const mobx_react_1 = require("mobx-react");
|
|
11
|
-
const TooltipContents = react_1.
|
|
12
|
-
return (
|
|
12
|
+
const TooltipContents = (0, react_1.forwardRef)(function TooltipContents2({ message }, ref) {
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, children: (0, react_1.isValidElement)(message) ? (message) : message ? ((0, jsx_runtime_1.jsx)(ui_1.SanitizedHTML, { html: String(message) })) : null }));
|
|
13
14
|
});
|
|
14
15
|
const Tooltip = (0, mobx_react_1.observer)(function ({ model, clientMouseCoord, }) {
|
|
15
16
|
const { featureUnderMouse } = model;
|
|
@@ -18,7 +19,6 @@ const Tooltip = (0, mobx_react_1.observer)(function ({ model, clientMouseCoord,
|
|
|
18
19
|
const contents = featureUnderMouse
|
|
19
20
|
? (0, configuration_1.getConf)(model, 'mouseover', { feature: featureUnderMouse })
|
|
20
21
|
: undefined;
|
|
21
|
-
return featureUnderMouse && contents ? (
|
|
22
|
-
react_1.default.createElement(TooltipContents, { message: contents }))) : null;
|
|
22
|
+
return featureUnderMouse && contents ? ((0, jsx_runtime_1.jsx)(BaseTooltip_1.default, { clientPoint: { x, y }, children: (0, jsx_runtime_1.jsx)(TooltipContents, { message: contents }) })) : null;
|
|
23
23
|
});
|
|
24
24
|
exports.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;
|
|
@@ -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
|
};
|
|
@@ -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>;
|
|
@@ -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 = FeatureDensityMixin;
|
|
7
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
9
9
|
const util_1 = require("@jbrowse/core/util");
|
|
10
10
|
const mobx_1 = require("mobx");
|
|
@@ -116,7 +116,7 @@ function FeatureDensityMixin() {
|
|
|
116
116
|
return self.regionTooLarge ? 'Force load to see features' : '';
|
|
117
117
|
},
|
|
118
118
|
regionCannotBeRendered(_region) {
|
|
119
|
-
return self.regionTooLarge ? (
|
|
119
|
+
return self.regionTooLarge ? ((0, jsx_runtime_1.jsx)(TooLargeMessage_1.default, { model: self })) : null;
|
|
120
120
|
},
|
|
121
121
|
}));
|
|
122
122
|
}
|
|
@@ -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>;
|