@jbrowse/plugin-linear-comparative-view 3.7.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +3 -3
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +9 -9
- package/esm/LGVSyntenyDisplay/configSchemaF.js +1 -1
- package/esm/LGVSyntenyDisplay/index.js +2 -2
- package/esm/LGVSyntenyDisplay/model.d.ts +1179 -133
- package/esm/LGVSyntenyDisplay/model.js +2 -2
- package/esm/LaunchLinearSyntenyView.js +13 -86
- package/esm/LinearComparativeDisplay/configSchemaF.d.ts +1 -1
- package/esm/LinearComparativeDisplay/index.js +2 -2
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +95 -135
- package/esm/LinearComparativeDisplay/stateModelFactory.js +18 -17
- package/esm/LinearComparativeView/components/ColorBySelector.d.ts +1 -1
- package/esm/LinearComparativeView/components/ColorBySelector.js +3 -4
- package/esm/LinearComparativeView/components/Header.d.ts +1 -1
- package/esm/LinearComparativeView/components/Header.js +8 -9
- package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +2 -2
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -1
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +9 -8
- package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +1 -1
- package/esm/LinearComparativeView/components/LinearComparativeView.js +5 -5
- package/esm/LinearComparativeView/components/MinLengthSlider.d.ts +1 -1
- package/esm/LinearComparativeView/components/MinLengthSlider.js +7 -7
- package/esm/LinearComparativeView/components/OpacitySlider.d.ts +1 -1
- package/esm/LinearComparativeView/components/OpacitySlider.js +5 -6
- package/esm/LinearComparativeView/components/Rubberband.d.ts +1 -1
- package/esm/LinearComparativeView/components/Rubberband.js +5 -5
- package/esm/LinearComparativeView/components/RubberbandSpan.js +3 -5
- package/esm/LinearComparativeView/components/VerticalGuide.d.ts +1 -1
- package/esm/LinearComparativeView/components/VerticalGuide.js +2 -2
- package/esm/LinearComparativeView/components/useRangeSelect.d.ts +1 -1
- package/esm/LinearComparativeView/components/useRangeSelect.js +1 -1
- package/esm/LinearComparativeView/components/util.js +1 -1
- package/esm/LinearComparativeView/index.js +2 -2
- package/esm/LinearComparativeView/model.d.ts +474 -222
- package/esm/LinearComparativeView/model.js +50 -29
- package/esm/LinearReadVsRef/LinearReadVsRef.js +8 -9
- package/esm/LinearReadVsRef/index.js +1 -1
- package/esm/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/afterAttach.js +10 -11
- package/esm/LinearSyntenyDisplay/components/BlockError.js +1 -1
- package/esm/LinearSyntenyDisplay/components/BlockMessage.js +6 -15
- package/esm/LinearSyntenyDisplay/components/Component.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/Component.js +5 -5
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +10 -14
- package/esm/LinearSyntenyDisplay/components/LoadingMessage.js +1 -1
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +8 -33
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +1 -1
- package/esm/LinearSyntenyDisplay/components/util.d.ts +2 -2
- package/esm/LinearSyntenyDisplay/components/util.js +3 -3
- package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +2 -2
- package/esm/LinearSyntenyDisplay/configSchemaF.js +1 -1
- package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.d.ts +2 -0
- package/esm/LinearSyntenyDisplay/drawMouseoverClickMap.js +53 -0
- package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/drawSynteny.js +3 -5
- package/esm/LinearSyntenyDisplay/index.js +3 -3
- package/esm/LinearSyntenyDisplay/model.d.ts +97 -137
- package/esm/LinearSyntenyDisplay/model.js +3 -3
- package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +1 -1
- package/esm/LinearSyntenyView/components/DiagonalizationProgressDialog.js +2 -2
- package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js +6 -2
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +4 -4
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +4 -5
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +11 -1
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +8 -4
- package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/LeftPanel.js +26 -9
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +5 -5
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +1 -2
- package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +2 -2
- package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +2 -2
- package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +3 -3
- package/esm/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +3 -3
- package/esm/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +4 -4
- package/esm/LinearSyntenyView/components/ImportForm/selectors/index.js +4 -4
- package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -1
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js +14 -4
- package/esm/LinearSyntenyView/index.js +2 -2
- package/esm/LinearSyntenyView/model.d.ts +522 -254
- package/esm/LinearSyntenyView/model.js +99 -15
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +3 -1
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +3 -3
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +2 -2
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +34 -31
- package/esm/LinearSyntenyView/types.d.ts +10 -1
- package/esm/LinearSyntenyViewHelper/index.js +1 -1
- package/esm/LinearSyntenyViewHelper/stateModelFactory.d.ts +11 -11
- package/esm/LinearSyntenyViewHelper/stateModelFactory.js +5 -43
- package/esm/SyntenyFeatureDetail/Formatter.js +2 -2
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +1 -1
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +6 -7
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +1 -1
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +3 -3
- package/esm/SyntenyFeatureDetail/index.js +2 -2
- package/esm/SyntenyTrack/configSchema.d.ts +16 -11
- package/esm/SyntenyTrack/index.js +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +11 -14
- package/esm/util.d.ts +1 -1
- package/esm/util.js +4 -8
- package/package.json +29 -35
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +0 -9
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +0 -53
- package/dist/LGVSyntenyDisplay/components/util.d.ts +0 -14
- package/dist/LGVSyntenyDisplay/components/util.js +0 -100
- package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +0 -66
- package/dist/LGVSyntenyDisplay/configSchemaF.js +0 -38
- package/dist/LGVSyntenyDisplay/index.d.ts +0 -2
- package/dist/LGVSyntenyDisplay/index.js +0 -24
- package/dist/LGVSyntenyDisplay/model.d.ts +0 -418
- package/dist/LGVSyntenyDisplay/model.js +0 -118
- package/dist/LaunchLinearSyntenyView.d.ts +0 -2
- package/dist/LaunchLinearSyntenyView.js +0 -93
- package/dist/LinearComparativeDisplay/configSchemaF.d.ts +0 -2
- package/dist/LinearComparativeDisplay/configSchemaF.js +0 -10
- package/dist/LinearComparativeDisplay/index.d.ts +0 -2
- package/dist/LinearComparativeDisplay/index.js +0 -24
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +0 -243
- package/dist/LinearComparativeDisplay/stateModelFactory.js +0 -146
- package/dist/LinearComparativeView/components/ColorBySelector.d.ts +0 -5
- package/dist/LinearComparativeView/components/ColorBySelector.js +0 -54
- package/dist/LinearComparativeView/components/Header.d.ts +0 -5
- package/dist/LinearComparativeView/components/Header.js +0 -87
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +0 -5
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +0 -24
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +0 -5
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +0 -46
- package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +0 -5
- package/dist/LinearComparativeView/components/LinearComparativeView.js +0 -30
- package/dist/LinearComparativeView/components/MinLengthSlider.d.ts +0 -5
- package/dist/LinearComparativeView/components/MinLengthSlider.js +0 -47
- package/dist/LinearComparativeView/components/OpacitySlider.d.ts +0 -5
- package/dist/LinearComparativeView/components/OpacitySlider.js +0 -46
- package/dist/LinearComparativeView/components/Rubberband.d.ts +0 -7
- package/dist/LinearComparativeView/components/Rubberband.js +0 -32
- package/dist/LinearComparativeView/components/RubberbandSpan.d.ts +0 -15
- package/dist/LinearComparativeView/components/RubberbandSpan.js +0 -38
- package/dist/LinearComparativeView/components/RubberbandTooltip.d.ts +0 -5
- package/dist/LinearComparativeView/components/RubberbandTooltip.js +0 -20
- package/dist/LinearComparativeView/components/SliderTooltip.d.ts +0 -2
- package/dist/LinearComparativeView/components/SliderTooltip.js +0 -9
- package/dist/LinearComparativeView/components/VerticalGuide.d.ts +0 -7
- package/dist/LinearComparativeView/components/VerticalGuide.js +0 -26
- package/dist/LinearComparativeView/components/useRangeSelect.d.ts +0 -59
- package/dist/LinearComparativeView/components/useRangeSelect.js +0 -124
- package/dist/LinearComparativeView/components/util.d.ts +0 -4
- package/dist/LinearComparativeView/components/util.js +0 -6
- package/dist/LinearComparativeView/index.d.ts +0 -2
- package/dist/LinearComparativeView/index.js +0 -55
- package/dist/LinearComparativeView/model.d.ts +0 -606
- package/dist/LinearComparativeView/model.js +0 -238
- package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +0 -6
- package/dist/LinearReadVsRef/LinearReadVsRef.js +0 -241
- package/dist/LinearReadVsRef/index.d.ts +0 -2
- package/dist/LinearReadVsRef/index.js +0 -86
- package/dist/LinearSyntenyDisplay/afterAttach.d.ts +0 -2
- package/dist/LinearSyntenyDisplay/afterAttach.js +0 -104
- package/dist/LinearSyntenyDisplay/components/BlockError.d.ts +0 -3
- package/dist/LinearSyntenyDisplay/components/BlockError.js +0 -16
- package/dist/LinearSyntenyDisplay/components/BlockMessage.d.ts +0 -3
- package/dist/LinearSyntenyDisplay/components/BlockMessage.js +0 -24
- package/dist/LinearSyntenyDisplay/components/Component.d.ts +0 -5
- package/dist/LinearSyntenyDisplay/components/Component.js +0 -26
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +0 -5
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +0 -223
- package/dist/LinearSyntenyDisplay/components/LoadingMessage.d.ts +0 -3
- package/dist/LinearSyntenyDisplay/components/LoadingMessage.js +0 -21
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +0 -15
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +0 -56
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +0 -4
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +0 -13
- package/dist/LinearSyntenyDisplay/components/util.d.ts +0 -45
- package/dist/LinearSyntenyDisplay/components/util.js +0 -199
- package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +0 -12
- package/dist/LinearSyntenyDisplay/configSchemaF.js +0 -23
- package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +0 -6
- package/dist/LinearSyntenyDisplay/drawSynteny.js +0 -470
- package/dist/LinearSyntenyDisplay/index.d.ts +0 -2
- package/dist/LinearSyntenyDisplay/index.js +0 -56
- package/dist/LinearSyntenyDisplay/model.d.ts +0 -291
- package/dist/LinearSyntenyDisplay/model.js +0 -133
- package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.d.ts +0 -6
- package/dist/LinearSyntenyView/components/DiagonalizationProgressDialog.js +0 -87
- package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +0 -7
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js +0 -58
- package/dist/LinearSyntenyView/components/Icons.d.ts +0 -3
- package/dist/LinearSyntenyView/components/Icons.js +0 -12
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +0 -8
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +0 -81
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +0 -8
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +0 -39
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +0 -7
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +0 -22
- package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.d.ts +0 -11
- package/dist/LinearSyntenyView/components/ImportForm/LeftPanel.js +0 -58
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +0 -5
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +0 -60
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +0 -5
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +0 -43
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +0 -117
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +0 -68
- package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.d.ts +0 -3
- package/dist/LinearSyntenyView/components/ImportForm/selectors/AnchorsSelector.js +0 -13
- package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.d.ts +0 -3
- package/dist/LinearSyntenyView/components/ImportForm/selectors/PifGzSelector.js +0 -13
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.d.ts +0 -19
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SelectorTypes.js +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.d.ts +0 -3
- package/dist/LinearSyntenyView/components/ImportForm/selectors/StandardFormatSelector.js +0 -20
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.d.ts +0 -13
- package/dist/LinearSyntenyView/components/ImportForm/selectors/SwapAssemblies.js +0 -32
- package/dist/LinearSyntenyView/components/ImportForm/selectors/index.d.ts +0 -4
- package/dist/LinearSyntenyView/components/ImportForm/selectors/index.js +0 -27
- package/dist/LinearSyntenyView/components/ImportForm/util.d.ts +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/util.js +0 -24
- package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +0 -5
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js +0 -47
- package/dist/LinearSyntenyView/components/TextField2.d.ts +0 -2
- package/dist/LinearSyntenyView/components/TextField2.js +0 -8
- package/dist/LinearSyntenyView/index.d.ts +0 -2
- package/dist/LinearSyntenyView/index.js +0 -52
- package/dist/LinearSyntenyView/model.d.ts +0 -702
- package/dist/LinearSyntenyView/model.js +0 -240
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +0 -5
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +0 -10
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +0 -11
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +0 -11
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +0 -3
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +0 -80
- package/dist/LinearSyntenyView/types.d.ts +0 -29
- package/dist/LinearSyntenyView/types.js +0 -2
- package/dist/LinearSyntenyView/util/diagonalize.d.ts +0 -27
- package/dist/LinearSyntenyView/util/diagonalize.js +0 -91
- package/dist/LinearSyntenyViewHelper/index.d.ts +0 -2
- package/dist/LinearSyntenyViewHelper/index.js +0 -25
- package/dist/LinearSyntenyViewHelper/stateModelFactory.d.ts +0 -18
- package/dist/LinearSyntenyViewHelper/stateModelFactory.js +0 -78
- package/dist/SyntenyFeatureDetail/Formatter.d.ts +0 -3
- package/dist/SyntenyFeatureDetail/Formatter.js +0 -23
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +0 -7
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +0 -87
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +0 -5
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +0 -19
- package/dist/SyntenyFeatureDetail/index.d.ts +0 -2
- package/dist/SyntenyFeatureDetail/index.js +0 -60
- package/dist/SyntenyFeatureDetail/types.d.ts +0 -9
- package/dist/SyntenyFeatureDetail/types.js +0 -2
- package/dist/SyntenyTrack/configSchema.d.ts +0 -80
- package/dist/SyntenyTrack/configSchema.js +0 -9
- package/dist/SyntenyTrack/index.d.ts +0 -2
- package/dist/SyntenyTrack/index.js +0 -19
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -48
- package/dist/util.d.ts +0 -25
- package/dist/util.js +0 -67
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = LinearComparativeDisplayF;
|
|
7
|
-
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
8
|
-
const configSchemaF_1 = __importDefault(require("./configSchemaF"));
|
|
9
|
-
const stateModelFactory_1 = __importDefault(require("./stateModelFactory"));
|
|
10
|
-
function LinearComparativeDisplayF(pluginManager) {
|
|
11
|
-
pluginManager.addDisplayType(() => {
|
|
12
|
-
const configSchema = (0, configSchemaF_1.default)(pluginManager);
|
|
13
|
-
return new DisplayType_1.default({
|
|
14
|
-
name: 'LinearComparativeDisplay',
|
|
15
|
-
configSchema,
|
|
16
|
-
stateModel: (0, stateModelFactory_1.default)(configSchema),
|
|
17
|
-
trackType: 'SyntenyTrack',
|
|
18
|
-
viewType: 'LinearComparativeView',
|
|
19
|
-
ReactComponent: () => {
|
|
20
|
-
return null;
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
}
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
-
import type { Feature } from '@jbrowse/core/util';
|
|
3
|
-
import type { Instance } from 'mobx-state-tree';
|
|
4
|
-
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
5
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
8
|
-
} & {
|
|
9
|
-
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
10
|
-
configuration: AnyConfigurationSchemaType;
|
|
11
|
-
}, {
|
|
12
|
-
rendererTypeName: string;
|
|
13
|
-
error: unknown;
|
|
14
|
-
message: string | undefined;
|
|
15
|
-
} & {
|
|
16
|
-
readonly RenderingComponent: React.FC<{
|
|
17
|
-
model: {
|
|
18
|
-
id: string;
|
|
19
|
-
type: string;
|
|
20
|
-
rpcDriverName: string | undefined;
|
|
21
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
22
|
-
rendererTypeName: string;
|
|
23
|
-
error: unknown;
|
|
24
|
-
message: string | undefined;
|
|
25
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
26
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
27
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
28
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
29
|
-
}, {
|
|
30
|
-
rendererTypeName: string;
|
|
31
|
-
error: unknown;
|
|
32
|
-
message: string | undefined;
|
|
33
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
34
|
-
onHorizontalScroll?: () => void;
|
|
35
|
-
blockState?: Record<string, any>;
|
|
36
|
-
}>;
|
|
37
|
-
readonly DisplayBlurb: React.FC<{
|
|
38
|
-
model: {
|
|
39
|
-
id: string;
|
|
40
|
-
type: string;
|
|
41
|
-
rpcDriverName: string | undefined;
|
|
42
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
43
|
-
rendererTypeName: string;
|
|
44
|
-
error: unknown;
|
|
45
|
-
message: string | undefined;
|
|
46
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
47
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
48
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
49
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
50
|
-
}, {
|
|
51
|
-
rendererTypeName: string;
|
|
52
|
-
error: unknown;
|
|
53
|
-
message: string | undefined;
|
|
54
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
55
|
-
}> | null;
|
|
56
|
-
readonly adapterConfig: any;
|
|
57
|
-
readonly parentTrack: any;
|
|
58
|
-
renderProps(): any;
|
|
59
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
60
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
61
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
62
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
63
|
-
regionCannotBeRendered(): null;
|
|
64
|
-
} & {
|
|
65
|
-
setMessage(arg?: string): void;
|
|
66
|
-
setError(error?: unknown): void;
|
|
67
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
68
|
-
reload(): void;
|
|
69
|
-
} & {
|
|
70
|
-
renderInProgress: string | undefined;
|
|
71
|
-
features: Feature[] | undefined;
|
|
72
|
-
message: string | undefined;
|
|
73
|
-
loadingStatus: string | undefined;
|
|
74
|
-
} & {
|
|
75
|
-
readonly level: number;
|
|
76
|
-
readonly height: number;
|
|
77
|
-
renderProps(): {
|
|
78
|
-
rpcDriverName: string | undefined;
|
|
79
|
-
displayModel: {
|
|
80
|
-
id: string;
|
|
81
|
-
type: "LinearComparativeDisplay";
|
|
82
|
-
rpcDriverName: string | undefined;
|
|
83
|
-
configuration: {
|
|
84
|
-
[x: string]: any;
|
|
85
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
86
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
87
|
-
[x: string]: any;
|
|
88
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
89
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
90
|
-
[x: string]: any;
|
|
91
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
92
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
93
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
94
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
95
|
-
rendererTypeName: string;
|
|
96
|
-
error: unknown;
|
|
97
|
-
message: string | undefined;
|
|
98
|
-
} & {
|
|
99
|
-
readonly RenderingComponent: React.FC<{
|
|
100
|
-
model: {
|
|
101
|
-
id: string;
|
|
102
|
-
type: string;
|
|
103
|
-
rpcDriverName: string | undefined;
|
|
104
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
105
|
-
rendererTypeName: string;
|
|
106
|
-
error: unknown;
|
|
107
|
-
message: string | undefined;
|
|
108
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
109
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
110
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
111
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
112
|
-
}, {
|
|
113
|
-
rendererTypeName: string;
|
|
114
|
-
error: unknown;
|
|
115
|
-
message: string | undefined;
|
|
116
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
117
|
-
onHorizontalScroll?: () => void;
|
|
118
|
-
blockState?: Record<string, any>;
|
|
119
|
-
}>;
|
|
120
|
-
readonly DisplayBlurb: React.FC<{
|
|
121
|
-
model: {
|
|
122
|
-
id: string;
|
|
123
|
-
type: string;
|
|
124
|
-
rpcDriverName: string | undefined;
|
|
125
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
126
|
-
rendererTypeName: string;
|
|
127
|
-
error: unknown;
|
|
128
|
-
message: string | undefined;
|
|
129
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
130
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
131
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
132
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
133
|
-
}, {
|
|
134
|
-
rendererTypeName: string;
|
|
135
|
-
error: unknown;
|
|
136
|
-
message: string | undefined;
|
|
137
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
138
|
-
}> | null;
|
|
139
|
-
readonly adapterConfig: any;
|
|
140
|
-
readonly parentTrack: any;
|
|
141
|
-
renderProps(): any;
|
|
142
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
143
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
144
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
145
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
146
|
-
regionCannotBeRendered(): null;
|
|
147
|
-
} & {
|
|
148
|
-
setMessage(arg?: string): void;
|
|
149
|
-
setError(error?: unknown): void;
|
|
150
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
151
|
-
reload(): void;
|
|
152
|
-
} & {
|
|
153
|
-
renderInProgress: string | undefined;
|
|
154
|
-
features: Feature[] | undefined;
|
|
155
|
-
message: string | undefined;
|
|
156
|
-
loadingStatus: string | undefined;
|
|
157
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
158
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
159
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
160
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
161
|
-
} & {
|
|
162
|
-
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
163
|
-
configuration: AnyConfigurationSchemaType;
|
|
164
|
-
}, {
|
|
165
|
-
rendererTypeName: string;
|
|
166
|
-
error: unknown;
|
|
167
|
-
message: string | undefined;
|
|
168
|
-
} & {
|
|
169
|
-
readonly RenderingComponent: React.FC<{
|
|
170
|
-
model: {
|
|
171
|
-
id: string;
|
|
172
|
-
type: string;
|
|
173
|
-
rpcDriverName: string | undefined;
|
|
174
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
175
|
-
rendererTypeName: string;
|
|
176
|
-
error: unknown;
|
|
177
|
-
message: string | undefined;
|
|
178
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
179
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
180
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
181
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
182
|
-
}, {
|
|
183
|
-
rendererTypeName: string;
|
|
184
|
-
error: unknown;
|
|
185
|
-
message: string | undefined;
|
|
186
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
187
|
-
onHorizontalScroll?: () => void;
|
|
188
|
-
blockState?: Record<string, any>;
|
|
189
|
-
}>;
|
|
190
|
-
readonly DisplayBlurb: React.FC<{
|
|
191
|
-
model: {
|
|
192
|
-
id: string;
|
|
193
|
-
type: string;
|
|
194
|
-
rpcDriverName: string | undefined;
|
|
195
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
196
|
-
rendererTypeName: string;
|
|
197
|
-
error: unknown;
|
|
198
|
-
message: string | undefined;
|
|
199
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
200
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
201
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
202
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
203
|
-
}, {
|
|
204
|
-
rendererTypeName: string;
|
|
205
|
-
error: unknown;
|
|
206
|
-
message: string | undefined;
|
|
207
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
208
|
-
}> | null;
|
|
209
|
-
readonly adapterConfig: any;
|
|
210
|
-
readonly parentTrack: any;
|
|
211
|
-
renderProps(): any;
|
|
212
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
213
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
214
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
215
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
216
|
-
regionCannotBeRendered(): null;
|
|
217
|
-
} & {
|
|
218
|
-
setMessage(arg?: string): void;
|
|
219
|
-
setError(error?: unknown): void;
|
|
220
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
221
|
-
reload(): void;
|
|
222
|
-
} & {
|
|
223
|
-
renderInProgress: string | undefined;
|
|
224
|
-
features: Feature[] | undefined;
|
|
225
|
-
message: string | undefined;
|
|
226
|
-
loadingStatus: string | undefined;
|
|
227
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
228
|
-
highResolutionScaling: number;
|
|
229
|
-
};
|
|
230
|
-
} & {
|
|
231
|
-
setLoading(newStopToken: string): void;
|
|
232
|
-
setMessage(messageText: string): void;
|
|
233
|
-
setLoadingStatus(messageText: string): void;
|
|
234
|
-
setRendered(args?: {
|
|
235
|
-
features: Feature[];
|
|
236
|
-
}): void;
|
|
237
|
-
setError(error: unknown): void;
|
|
238
|
-
} & {
|
|
239
|
-
afterAttach(): void;
|
|
240
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
241
|
-
export default stateModelFactory;
|
|
242
|
-
export type LinearComparativeDisplayModel = ReturnType<typeof stateModelFactory>;
|
|
243
|
-
export type LinearComparativeDisplay = Instance<LinearComparativeDisplayModel>;
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
5
|
-
const util_1 = require("@jbrowse/core/util");
|
|
6
|
-
const stopToken_1 = require("@jbrowse/core/util/stopToken");
|
|
7
|
-
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
8
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
9
|
-
function stateModelFactory(configSchema) {
|
|
10
|
-
return mobx_state_tree_1.types
|
|
11
|
-
.compose('LinearComparativeDisplay', models_1.BaseDisplay, mobx_state_tree_1.types.model({
|
|
12
|
-
type: mobx_state_tree_1.types.literal('LinearComparativeDisplay'),
|
|
13
|
-
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
14
|
-
}))
|
|
15
|
-
.volatile(() => ({
|
|
16
|
-
renderInProgress: undefined,
|
|
17
|
-
features: undefined,
|
|
18
|
-
message: undefined,
|
|
19
|
-
loadingStatus: undefined,
|
|
20
|
-
}))
|
|
21
|
-
.views(self => ({
|
|
22
|
-
get level() {
|
|
23
|
-
return (0, mobx_state_tree_1.getParent)(self, 4).level;
|
|
24
|
-
},
|
|
25
|
-
get height() {
|
|
26
|
-
return (0, mobx_state_tree_1.getParent)(self, 4).height;
|
|
27
|
-
},
|
|
28
|
-
renderProps() {
|
|
29
|
-
return {
|
|
30
|
-
rpcDriverName: self.rpcDriverName,
|
|
31
|
-
displayModel: self,
|
|
32
|
-
highResolutionScaling: 2,
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
}))
|
|
36
|
-
.actions(self => {
|
|
37
|
-
let stopToken;
|
|
38
|
-
return {
|
|
39
|
-
setLoading(newStopToken) {
|
|
40
|
-
self.message = undefined;
|
|
41
|
-
self.error = undefined;
|
|
42
|
-
stopToken = newStopToken;
|
|
43
|
-
},
|
|
44
|
-
setMessage(messageText) {
|
|
45
|
-
self.message = messageText;
|
|
46
|
-
self.error = undefined;
|
|
47
|
-
stopToken = undefined;
|
|
48
|
-
},
|
|
49
|
-
setLoadingStatus(messageText) {
|
|
50
|
-
self.loadingStatus = messageText;
|
|
51
|
-
},
|
|
52
|
-
setRendered(args) {
|
|
53
|
-
if (!args) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const { features } = args;
|
|
57
|
-
const existingFeatures = self.features || [];
|
|
58
|
-
const featIds = new Set(existingFeatures.map(f => f.id()));
|
|
59
|
-
const newFeatIds = new Set(features.map(f => f.id()));
|
|
60
|
-
let foundNewFeatureNotInExistingMap = false;
|
|
61
|
-
let foundExistingFeatureNotInNewMap = false;
|
|
62
|
-
for (const feat of features) {
|
|
63
|
-
if (!featIds.has(feat.id())) {
|
|
64
|
-
foundNewFeatureNotInExistingMap = true;
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
for (const existingFeat of existingFeatures) {
|
|
69
|
-
if (!newFeatIds.has(existingFeat.id())) {
|
|
70
|
-
foundExistingFeatureNotInNewMap = true;
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
self.message = undefined;
|
|
75
|
-
self.error = undefined;
|
|
76
|
-
stopToken = undefined;
|
|
77
|
-
if (foundNewFeatureNotInExistingMap ||
|
|
78
|
-
foundExistingFeatureNotInNewMap ||
|
|
79
|
-
!self.features) {
|
|
80
|
-
self.features = features;
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
setError(error) {
|
|
84
|
-
console.error(error);
|
|
85
|
-
if (stopToken !== undefined) {
|
|
86
|
-
(0, stopToken_1.stopStopToken)(stopToken);
|
|
87
|
-
}
|
|
88
|
-
self.message = undefined;
|
|
89
|
-
self.error = error;
|
|
90
|
-
stopToken = undefined;
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
})
|
|
94
|
-
.actions(self => ({
|
|
95
|
-
afterAttach() {
|
|
96
|
-
(0, util_1.makeAbortableReaction)(self, renderBlockData, renderBlockEffect, {
|
|
97
|
-
name: `${self.type} ${self.id} rendering`,
|
|
98
|
-
delay: 1000,
|
|
99
|
-
fireImmediately: true,
|
|
100
|
-
}, self.setLoading, self.setRendered, self.setError);
|
|
101
|
-
},
|
|
102
|
-
}));
|
|
103
|
-
}
|
|
104
|
-
function renderBlockData(self) {
|
|
105
|
-
const { rpcManager } = (0, util_1.getSession)(self);
|
|
106
|
-
const display = self;
|
|
107
|
-
(0, configuration_1.readConfObject)(self.configuration);
|
|
108
|
-
const { level, adapterConfig } = self;
|
|
109
|
-
const parent = (0, util_1.getContainingView)(self);
|
|
110
|
-
const sessionId = (0, tracks_1.getRpcSessionId)(self);
|
|
111
|
-
(0, mobx_state_tree_1.getSnapshot)(parent);
|
|
112
|
-
return parent.initialized
|
|
113
|
-
? {
|
|
114
|
-
rpcManager,
|
|
115
|
-
renderProps: {
|
|
116
|
-
...display.renderProps(),
|
|
117
|
-
model: display,
|
|
118
|
-
level,
|
|
119
|
-
view: parent,
|
|
120
|
-
adapterConfig,
|
|
121
|
-
sessionId,
|
|
122
|
-
timeout: 1000000,
|
|
123
|
-
self,
|
|
124
|
-
},
|
|
125
|
-
}
|
|
126
|
-
: undefined;
|
|
127
|
-
}
|
|
128
|
-
async function renderBlockEffect(props) {
|
|
129
|
-
if (!props) {
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
const { rpcManager, renderProps } = props;
|
|
133
|
-
const { model, sessionId, adapterConfig, level } = renderProps;
|
|
134
|
-
const view = renderProps.view.views[level];
|
|
135
|
-
return {
|
|
136
|
-
features: (0, util_1.dedupe)((await rpcManager.call('getFeats', 'CoreGetFeatures', {
|
|
137
|
-
regions: view.staticBlocks.contentBlocks,
|
|
138
|
-
sessionId,
|
|
139
|
-
adapterConfig,
|
|
140
|
-
statusCallback: (arg) => {
|
|
141
|
-
model.setLoadingStatus(arg);
|
|
142
|
-
},
|
|
143
|
-
})), f => f.id()),
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
exports.default = stateModelFactory;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const CascadingMenuButton_1 = __importDefault(require("@jbrowse/core/ui/CascadingMenuButton"));
|
|
8
|
-
const Palette_1 = __importDefault(require("@mui/icons-material/Palette"));
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
const ColorBySelector = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
11
|
-
var _a, _b, _c;
|
|
12
|
-
const firstDisplay = (_b = (_a = model.levels[0]) === null || _a === void 0 ? void 0 : _a.tracks[0]) === null || _b === void 0 ? void 0 : _b.displays[0];
|
|
13
|
-
const colorBy = (_c = firstDisplay === null || firstDisplay === void 0 ? void 0 : firstDisplay.colorBy) !== null && _c !== void 0 ? _c : 'default';
|
|
14
|
-
const setColorBy = (value) => {
|
|
15
|
-
for (const level of model.levels) {
|
|
16
|
-
for (const track of level.tracks) {
|
|
17
|
-
for (const display of track.displays) {
|
|
18
|
-
;
|
|
19
|
-
display.setColorBy(value);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
|
|
25
|
-
{
|
|
26
|
-
label: 'Default',
|
|
27
|
-
type: 'radio',
|
|
28
|
-
checked: colorBy === 'default',
|
|
29
|
-
onClick: () => {
|
|
30
|
-
setColorBy('default');
|
|
31
|
-
},
|
|
32
|
-
helpText: 'Use the default color scheme with CIGAR operation coloring. Insertions, deletions, matches, and mismatches are shown in different colors with transparency.',
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
label: 'Strand',
|
|
36
|
-
type: 'radio',
|
|
37
|
-
checked: colorBy === 'strand',
|
|
38
|
-
onClick: () => {
|
|
39
|
-
setColorBy('strand');
|
|
40
|
-
},
|
|
41
|
-
helpText: 'Color alignments by strand orientation. Forward strand alignments and reverse strand alignments are shown in different colors, making it easy to identify inversions and strand-specific patterns.',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: 'Query',
|
|
45
|
-
type: 'radio',
|
|
46
|
-
checked: colorBy === 'query',
|
|
47
|
-
onClick: () => {
|
|
48
|
-
setColorBy('query');
|
|
49
|
-
},
|
|
50
|
-
helpText: 'Color alignments by query sequence name. Each unique query sequence is assigned a consistent color based on its name, making it easy to visually distinguish between different sequences.',
|
|
51
|
-
},
|
|
52
|
-
], children: (0, jsx_runtime_1.jsx)(Palette_1.default, {}) }));
|
|
53
|
-
});
|
|
54
|
-
exports.default = ColorBySelector;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const react_1 = require("react");
|
|
8
|
-
const CascadingMenuButton_1 = __importDefault(require("@jbrowse/core/ui/CascadingMenuButton"));
|
|
9
|
-
const Icons_1 = require("@jbrowse/core/ui/Icons");
|
|
10
|
-
const MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
|
|
11
|
-
const Search_1 = __importDefault(require("@mui/icons-material/Search"));
|
|
12
|
-
const material_1 = require("@mui/material");
|
|
13
|
-
const mobx_react_1 = require("mobx-react");
|
|
14
|
-
const mui_1 = require("tss-react/mui");
|
|
15
|
-
const ColorBySelector_1 = __importDefault(require("./ColorBySelector"));
|
|
16
|
-
const HeaderSearchBoxes_1 = __importDefault(require("./HeaderSearchBoxes"));
|
|
17
|
-
const MinLengthSlider_1 = __importDefault(require("./MinLengthSlider"));
|
|
18
|
-
const OpacitySlider_1 = __importDefault(require("./OpacitySlider"));
|
|
19
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
20
|
-
inline: {
|
|
21
|
-
display: 'inline-flex',
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
const Header = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
25
|
-
var _a, _b;
|
|
26
|
-
const { classes } = useStyles();
|
|
27
|
-
const { views, levels, showDynamicControls } = model;
|
|
28
|
-
const [showSearchBoxes, setShowSearchBoxes] = (0, react_1.useState)(views.length <= 3);
|
|
29
|
-
const [sideBySide, setSideBySide] = (0, react_1.useState)(views.length <= 3);
|
|
30
|
-
const hasDisplays = (_b = (_a = levels[0]) === null || _a === void 0 ? void 0 : _a.tracks[0]) === null || _b === void 0 ? void 0 : _b.displays[0];
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.FormGroup, { row: true, children: [(0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
|
|
32
|
-
{
|
|
33
|
-
label: 'Synteny track selectors',
|
|
34
|
-
type: 'subMenu',
|
|
35
|
-
subMenu: views.slice(0, -1).map((_, idx) => ({
|
|
36
|
-
label: `Row ${idx + 1}->${idx + 2} (${views[idx].assemblyNames.join(',')}->${views[idx + 1].assemblyNames.join(',')})`,
|
|
37
|
-
onClick: () => {
|
|
38
|
-
model.activateTrackSelector(idx);
|
|
39
|
-
},
|
|
40
|
-
})),
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: 'Row track selectors',
|
|
44
|
-
type: 'subMenu',
|
|
45
|
-
subMenu: views.map((view, idx) => ({
|
|
46
|
-
label: `Row ${idx + 1} track selector (${view.assemblyNames.join(',')})`,
|
|
47
|
-
onClick: () => view.activateTrackSelector(),
|
|
48
|
-
})),
|
|
49
|
-
},
|
|
50
|
-
], children: (0, jsx_runtime_1.jsx)(Icons_1.TrackSelector, {}) }), (0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
|
|
51
|
-
{
|
|
52
|
-
label: 'Row view menus',
|
|
53
|
-
type: 'subMenu',
|
|
54
|
-
subMenu: views.map((view, idx) => ({
|
|
55
|
-
label: `View ${idx + 1} Menu`,
|
|
56
|
-
subMenu: view.menuItems(),
|
|
57
|
-
})),
|
|
58
|
-
},
|
|
59
|
-
...model.headerMenuItems(),
|
|
60
|
-
], children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, {}) }), (0, jsx_runtime_1.jsx)(CascadingMenuButton_1.default, { menuItems: [
|
|
61
|
-
{
|
|
62
|
-
label: 'Show search boxes',
|
|
63
|
-
type: 'checkbox',
|
|
64
|
-
checked: showSearchBoxes,
|
|
65
|
-
onClick: () => {
|
|
66
|
-
setShowSearchBoxes(!showSearchBoxes);
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
label: 'Orientation - Side-by-side',
|
|
71
|
-
type: 'radio',
|
|
72
|
-
checked: sideBySide,
|
|
73
|
-
onClick: () => {
|
|
74
|
-
setSideBySide(!sideBySide);
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
label: 'Orientation - Vertical',
|
|
79
|
-
type: 'radio',
|
|
80
|
-
checked: !sideBySide,
|
|
81
|
-
onClick: () => {
|
|
82
|
-
setSideBySide(!sideBySide);
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
], children: (0, jsx_runtime_1.jsx)(Search_1.default, {}) }), hasDisplays && showDynamicControls ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ColorBySelector_1.default, { model: model }), (0, jsx_runtime_1.jsx)(OpacitySlider_1.default, { model: model }), (0, jsx_runtime_1.jsx)(MinLengthSlider_1.default, { model: model })] })) : null, showSearchBoxes ? ((0, jsx_runtime_1.jsx)("span", { className: sideBySide ? classes.inline : undefined, children: views.map(view => ((0, jsx_runtime_1.jsx)(HeaderSearchBoxes_1.default, { view: view }, view.id))) })) : null] }));
|
|
86
|
-
});
|
|
87
|
-
exports.default = Header;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const util_1 = require("@jbrowse/core/util");
|
|
5
|
-
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const mobx_react_1 = require("mobx-react");
|
|
8
|
-
const mui_1 = require("tss-react/mui");
|
|
9
|
-
const useStyles = (0, mui_1.makeStyles)()(() => ({
|
|
10
|
-
bp: {
|
|
11
|
-
display: 'flex',
|
|
12
|
-
alignItems: 'center',
|
|
13
|
-
marginLeft: 10,
|
|
14
|
-
},
|
|
15
|
-
searchBox: {
|
|
16
|
-
display: 'flex',
|
|
17
|
-
},
|
|
18
|
-
}));
|
|
19
|
-
const HeaderSearchBoxes = (0, mobx_react_1.observer)(function ({ view, }) {
|
|
20
|
-
const { classes } = useStyles();
|
|
21
|
-
const { assemblyDisplayNames, coarseTotalBp } = view;
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("span", { className: classes.searchBox, children: [(0, jsx_runtime_1.jsx)(plugin_linear_genome_view_1.SearchBox, { model: view, showHelp: false }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "body2", color: "textSecondary", className: classes.bp, children: [assemblyDisplayNames.join(','), " ", (0, util_1.getBpDisplayStr)(coarseTotalBp)] })] }));
|
|
23
|
-
});
|
|
24
|
-
exports.default = HeaderSearchBoxes;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
-
const util_1 = require("@jbrowse/core/util");
|
|
7
|
-
const mobx_react_1 = require("mobx-react");
|
|
8
|
-
const jsx_runtime_2 = require("react/jsx-runtime");
|
|
9
|
-
const mui_1 = require("tss-react/mui");
|
|
10
|
-
const useStyles = (0, mui_1.makeStyles)()({
|
|
11
|
-
container: {
|
|
12
|
-
display: 'grid',
|
|
13
|
-
},
|
|
14
|
-
overlay: {
|
|
15
|
-
zIndex: 100,
|
|
16
|
-
gridArea: '1/1',
|
|
17
|
-
},
|
|
18
|
-
resizeHandle: {
|
|
19
|
-
height: 4,
|
|
20
|
-
background: '#ccc',
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
function View({ view }) {
|
|
24
|
-
const { pluginManager } = (0, util_1.getEnv)(view);
|
|
25
|
-
const { ReactComponent } = pluginManager.getViewType(view.type);
|
|
26
|
-
return (0, jsx_runtime_1.jsx)(ReactComponent, { model: view });
|
|
27
|
-
}
|
|
28
|
-
const LinearComparativeRenderArea = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
29
|
-
const { classes } = useStyles();
|
|
30
|
-
const { views, levels } = model;
|
|
31
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: classes.container, children: views.map((view, i) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_2.Fragment, { children: [i > 0 ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: classes.container, children: (0, jsx_runtime_1.jsx)(Overlays, { model: model, level: i - 1 }) }), (0, jsx_runtime_1.jsx)(ui_1.ResizeHandle, { onDrag: n => { var _a, _b; return (_a = levels[i - 1]) === null || _a === void 0 ? void 0 : _a.setHeight((((_b = levels[i - 1]) === null || _b === void 0 ? void 0 : _b.height) || 0) + n); }, className: classes.resizeHandle })] })) : null, (0, jsx_runtime_1.jsx)(View, { view: view })] }, view.id))) }));
|
|
32
|
-
});
|
|
33
|
-
const Overlays = (0, mobx_react_1.observer)(function ({ model, level, }) {
|
|
34
|
-
var _a;
|
|
35
|
-
const { classes } = useStyles();
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (_a = model.levels[level]) === null || _a === void 0 ? void 0 : _a.tracks.map(track => {
|
|
37
|
-
const [display] = track.displays;
|
|
38
|
-
const { RenderingComponent } = display;
|
|
39
|
-
const trackId = (0, configuration_1.getConf)(track, 'trackId');
|
|
40
|
-
return RenderingComponent ? ((0, jsx_runtime_1.jsx)("div", { className: classes.overlay, style: {
|
|
41
|
-
height: display.height,
|
|
42
|
-
overflow: 'hidden',
|
|
43
|
-
}, children: (0, jsx_runtime_1.jsx)(RenderingComponent, { model: display }) }, trackId)) : null;
|
|
44
|
-
}) }));
|
|
45
|
-
});
|
|
46
|
-
exports.default = LinearComparativeRenderArea;
|