@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,291 +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
|
-
interface Pos {
|
|
5
|
-
offsetPx: number;
|
|
6
|
-
}
|
|
7
|
-
export interface FeatPos {
|
|
8
|
-
p11: Pos;
|
|
9
|
-
p12: Pos;
|
|
10
|
-
p21: Pos;
|
|
11
|
-
p22: Pos;
|
|
12
|
-
f: Feature;
|
|
13
|
-
cigar: string[];
|
|
14
|
-
}
|
|
15
|
-
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
16
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
17
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
18
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
19
|
-
} & {
|
|
20
|
-
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
21
|
-
configuration: AnyConfigurationSchemaType;
|
|
22
|
-
} & {
|
|
23
|
-
type: import("mobx-state-tree").ISimpleType<"LinearSyntenyDisplay">;
|
|
24
|
-
configuration: AnyConfigurationSchemaType;
|
|
25
|
-
colorBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
26
|
-
}, {
|
|
27
|
-
rendererTypeName: string;
|
|
28
|
-
error: unknown;
|
|
29
|
-
message: string | undefined;
|
|
30
|
-
} & {
|
|
31
|
-
readonly RenderingComponent: React.FC<{
|
|
32
|
-
model: {
|
|
33
|
-
id: string;
|
|
34
|
-
type: string;
|
|
35
|
-
rpcDriverName: string | undefined;
|
|
36
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
37
|
-
rendererTypeName: string;
|
|
38
|
-
error: unknown;
|
|
39
|
-
message: string | undefined;
|
|
40
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
41
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
42
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
43
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
44
|
-
}, {
|
|
45
|
-
rendererTypeName: string;
|
|
46
|
-
error: unknown;
|
|
47
|
-
message: string | undefined;
|
|
48
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
49
|
-
onHorizontalScroll?: () => void;
|
|
50
|
-
blockState?: Record<string, any>;
|
|
51
|
-
}>;
|
|
52
|
-
readonly DisplayBlurb: React.FC<{
|
|
53
|
-
model: {
|
|
54
|
-
id: string;
|
|
55
|
-
type: string;
|
|
56
|
-
rpcDriverName: string | undefined;
|
|
57
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
58
|
-
rendererTypeName: string;
|
|
59
|
-
error: unknown;
|
|
60
|
-
message: string | undefined;
|
|
61
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
62
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
63
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
64
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
65
|
-
}, {
|
|
66
|
-
rendererTypeName: string;
|
|
67
|
-
error: unknown;
|
|
68
|
-
message: string | undefined;
|
|
69
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
70
|
-
}> | null;
|
|
71
|
-
readonly adapterConfig: any;
|
|
72
|
-
readonly parentTrack: any;
|
|
73
|
-
renderProps(): any;
|
|
74
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
75
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
76
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
77
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
78
|
-
regionCannotBeRendered(): null;
|
|
79
|
-
} & {
|
|
80
|
-
setMessage(arg?: string): void;
|
|
81
|
-
setError(error?: unknown): void;
|
|
82
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
83
|
-
reload(): void;
|
|
84
|
-
} & {
|
|
85
|
-
renderInProgress: string | undefined;
|
|
86
|
-
features: Feature[] | undefined;
|
|
87
|
-
message: string | undefined;
|
|
88
|
-
loadingStatus: string | undefined;
|
|
89
|
-
} & {
|
|
90
|
-
readonly level: number;
|
|
91
|
-
readonly height: number;
|
|
92
|
-
renderProps(): {
|
|
93
|
-
rpcDriverName: string | undefined;
|
|
94
|
-
displayModel: {
|
|
95
|
-
id: string;
|
|
96
|
-
type: "LinearComparativeDisplay";
|
|
97
|
-
rpcDriverName: string | undefined;
|
|
98
|
-
configuration: {
|
|
99
|
-
[x: string]: any;
|
|
100
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
101
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
102
|
-
[x: string]: any;
|
|
103
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
104
|
-
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
105
|
-
[x: string]: any;
|
|
106
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
107
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
108
|
-
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
109
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
110
|
-
rendererTypeName: string;
|
|
111
|
-
error: unknown;
|
|
112
|
-
message: string | undefined;
|
|
113
|
-
} & {
|
|
114
|
-
readonly RenderingComponent: React.FC<{
|
|
115
|
-
model: {
|
|
116
|
-
id: string;
|
|
117
|
-
type: string;
|
|
118
|
-
rpcDriverName: string | undefined;
|
|
119
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
120
|
-
rendererTypeName: string;
|
|
121
|
-
error: unknown;
|
|
122
|
-
message: string | undefined;
|
|
123
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
124
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
125
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
126
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
127
|
-
}, {
|
|
128
|
-
rendererTypeName: string;
|
|
129
|
-
error: unknown;
|
|
130
|
-
message: string | undefined;
|
|
131
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
132
|
-
onHorizontalScroll?: () => void;
|
|
133
|
-
blockState?: Record<string, any>;
|
|
134
|
-
}>;
|
|
135
|
-
readonly DisplayBlurb: React.FC<{
|
|
136
|
-
model: {
|
|
137
|
-
id: string;
|
|
138
|
-
type: string;
|
|
139
|
-
rpcDriverName: string | undefined;
|
|
140
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
141
|
-
rendererTypeName: string;
|
|
142
|
-
error: unknown;
|
|
143
|
-
message: string | undefined;
|
|
144
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
145
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
146
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
147
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
148
|
-
}, {
|
|
149
|
-
rendererTypeName: string;
|
|
150
|
-
error: unknown;
|
|
151
|
-
message: string | undefined;
|
|
152
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
153
|
-
}> | null;
|
|
154
|
-
readonly adapterConfig: any;
|
|
155
|
-
readonly parentTrack: any;
|
|
156
|
-
renderProps(): any;
|
|
157
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
158
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
159
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
160
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
161
|
-
regionCannotBeRendered(): null;
|
|
162
|
-
} & {
|
|
163
|
-
setMessage(arg?: string): void;
|
|
164
|
-
setError(error?: unknown): void;
|
|
165
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
166
|
-
reload(): void;
|
|
167
|
-
} & {
|
|
168
|
-
renderInProgress: string | undefined;
|
|
169
|
-
features: Feature[] | undefined;
|
|
170
|
-
message: string | undefined;
|
|
171
|
-
loadingStatus: string | undefined;
|
|
172
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
173
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
174
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
175
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
176
|
-
} & {
|
|
177
|
-
type: import("mobx-state-tree").ISimpleType<"LinearComparativeDisplay">;
|
|
178
|
-
configuration: AnyConfigurationSchemaType;
|
|
179
|
-
}, {
|
|
180
|
-
rendererTypeName: string;
|
|
181
|
-
error: unknown;
|
|
182
|
-
message: string | undefined;
|
|
183
|
-
} & {
|
|
184
|
-
readonly RenderingComponent: React.FC<{
|
|
185
|
-
model: {
|
|
186
|
-
id: string;
|
|
187
|
-
type: string;
|
|
188
|
-
rpcDriverName: string | undefined;
|
|
189
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
190
|
-
rendererTypeName: string;
|
|
191
|
-
error: unknown;
|
|
192
|
-
message: string | undefined;
|
|
193
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
194
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
195
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
196
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
197
|
-
}, {
|
|
198
|
-
rendererTypeName: string;
|
|
199
|
-
error: unknown;
|
|
200
|
-
message: string | undefined;
|
|
201
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
202
|
-
onHorizontalScroll?: () => void;
|
|
203
|
-
blockState?: Record<string, any>;
|
|
204
|
-
}>;
|
|
205
|
-
readonly DisplayBlurb: React.FC<{
|
|
206
|
-
model: {
|
|
207
|
-
id: string;
|
|
208
|
-
type: string;
|
|
209
|
-
rpcDriverName: string | undefined;
|
|
210
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
211
|
-
rendererTypeName: string;
|
|
212
|
-
error: unknown;
|
|
213
|
-
message: string | undefined;
|
|
214
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
215
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
216
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
217
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
218
|
-
}, {
|
|
219
|
-
rendererTypeName: string;
|
|
220
|
-
error: unknown;
|
|
221
|
-
message: string | undefined;
|
|
222
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
223
|
-
}> | null;
|
|
224
|
-
readonly adapterConfig: any;
|
|
225
|
-
readonly parentTrack: any;
|
|
226
|
-
renderProps(): any;
|
|
227
|
-
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
228
|
-
readonly DisplayMessageComponent: undefined | React.FC<any>;
|
|
229
|
-
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
230
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
231
|
-
regionCannotBeRendered(): null;
|
|
232
|
-
} & {
|
|
233
|
-
setMessage(arg?: string): void;
|
|
234
|
-
setError(error?: unknown): void;
|
|
235
|
-
setRpcDriverName(rpcDriverName: string): void;
|
|
236
|
-
reload(): void;
|
|
237
|
-
} & {
|
|
238
|
-
renderInProgress: string | undefined;
|
|
239
|
-
features: Feature[] | undefined;
|
|
240
|
-
message: string | undefined;
|
|
241
|
-
loadingStatus: string | undefined;
|
|
242
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
243
|
-
highResolutionScaling: number;
|
|
244
|
-
};
|
|
245
|
-
} & {
|
|
246
|
-
setLoading(newStopToken: string): void;
|
|
247
|
-
setMessage(messageText: string): void;
|
|
248
|
-
setLoadingStatus(messageText: string): void;
|
|
249
|
-
setRendered(args?: {
|
|
250
|
-
features: Feature[];
|
|
251
|
-
}): void;
|
|
252
|
-
setError(error: unknown): void;
|
|
253
|
-
} & {
|
|
254
|
-
afterAttach(): void;
|
|
255
|
-
} & {
|
|
256
|
-
mainCanvas: HTMLCanvasElement | null;
|
|
257
|
-
clickMapCanvas: HTMLCanvasElement | null;
|
|
258
|
-
cigarClickMapCanvas: HTMLCanvasElement | null;
|
|
259
|
-
mouseoverCanvas: HTMLCanvasElement | null;
|
|
260
|
-
featPositions: FeatPos[];
|
|
261
|
-
mouseoverId: string | undefined;
|
|
262
|
-
clickId: string | undefined;
|
|
263
|
-
cigarMouseoverId: number;
|
|
264
|
-
alpha: number;
|
|
265
|
-
minAlignmentLength: number;
|
|
266
|
-
} & {
|
|
267
|
-
setFeatPositions(arg: FeatPos[]): void;
|
|
268
|
-
setMainCanvasRef(ref: HTMLCanvasElement | null): void;
|
|
269
|
-
setClickMapCanvasRef(ref: HTMLCanvasElement | null): void;
|
|
270
|
-
setCigarClickMapCanvasRef(ref: HTMLCanvasElement | null): void;
|
|
271
|
-
setMouseoverCanvasRef(ref: HTMLCanvasElement | null): void;
|
|
272
|
-
setMouseoverId(arg?: string): void;
|
|
273
|
-
setCigarMouseoverId(arg: number): void;
|
|
274
|
-
setClickId(arg?: string): void;
|
|
275
|
-
setAlpha(value: number): void;
|
|
276
|
-
setMinAlignmentLength(value: number): void;
|
|
277
|
-
setColorBy(value: string): void;
|
|
278
|
-
} & {
|
|
279
|
-
readonly adapterConfig: any;
|
|
280
|
-
readonly trackIds: string[];
|
|
281
|
-
readonly numFeats: number;
|
|
282
|
-
readonly ready: boolean;
|
|
283
|
-
readonly featMap: {
|
|
284
|
-
[k: string]: FeatPos;
|
|
285
|
-
};
|
|
286
|
-
} & {
|
|
287
|
-
afterAttach(): void;
|
|
288
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
289
|
-
export type LinearSyntenyDisplayStateModel = ReturnType<typeof stateModelFactory>;
|
|
290
|
-
export type LinearSyntenyDisplayModel = Instance<LinearSyntenyDisplayStateModel>;
|
|
291
|
-
export default stateModelFactory;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
40
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
41
|
-
const stateModelFactory_1 = __importDefault(require("../LinearComparativeDisplay/stateModelFactory"));
|
|
42
|
-
function stateModelFactory(configSchema) {
|
|
43
|
-
return mobx_state_tree_1.types
|
|
44
|
-
.compose('LinearSyntenyDisplay', (0, stateModelFactory_1.default)(configSchema), mobx_state_tree_1.types.model({
|
|
45
|
-
type: mobx_state_tree_1.types.literal('LinearSyntenyDisplay'),
|
|
46
|
-
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
47
|
-
colorBy: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.string, 'default'),
|
|
48
|
-
}))
|
|
49
|
-
.volatile(() => ({
|
|
50
|
-
mainCanvas: null,
|
|
51
|
-
clickMapCanvas: null,
|
|
52
|
-
cigarClickMapCanvas: null,
|
|
53
|
-
mouseoverCanvas: null,
|
|
54
|
-
featPositions: [],
|
|
55
|
-
mouseoverId: undefined,
|
|
56
|
-
clickId: undefined,
|
|
57
|
-
cigarMouseoverId: -1,
|
|
58
|
-
alpha: 0.2,
|
|
59
|
-
minAlignmentLength: 0,
|
|
60
|
-
}))
|
|
61
|
-
.actions(self => ({
|
|
62
|
-
setFeatPositions(arg) {
|
|
63
|
-
self.featPositions = arg;
|
|
64
|
-
},
|
|
65
|
-
setMainCanvasRef(ref) {
|
|
66
|
-
self.mainCanvas = ref;
|
|
67
|
-
},
|
|
68
|
-
setClickMapCanvasRef(ref) {
|
|
69
|
-
self.clickMapCanvas = ref;
|
|
70
|
-
},
|
|
71
|
-
setCigarClickMapCanvasRef(ref) {
|
|
72
|
-
self.cigarClickMapCanvas = ref;
|
|
73
|
-
},
|
|
74
|
-
setMouseoverCanvasRef(ref) {
|
|
75
|
-
self.mouseoverCanvas = ref;
|
|
76
|
-
},
|
|
77
|
-
setMouseoverId(arg) {
|
|
78
|
-
self.mouseoverId = arg;
|
|
79
|
-
},
|
|
80
|
-
setCigarMouseoverId(arg) {
|
|
81
|
-
self.cigarMouseoverId = arg;
|
|
82
|
-
},
|
|
83
|
-
setClickId(arg) {
|
|
84
|
-
self.clickId = arg;
|
|
85
|
-
},
|
|
86
|
-
setAlpha(value) {
|
|
87
|
-
self.alpha = value;
|
|
88
|
-
},
|
|
89
|
-
setMinAlignmentLength(value) {
|
|
90
|
-
self.minAlignmentLength = value;
|
|
91
|
-
},
|
|
92
|
-
setColorBy(value) {
|
|
93
|
-
self.colorBy = value;
|
|
94
|
-
},
|
|
95
|
-
}))
|
|
96
|
-
.views(self => ({
|
|
97
|
-
get adapterConfig() {
|
|
98
|
-
return {
|
|
99
|
-
name: self.parentTrack.configuration.adapter.type,
|
|
100
|
-
assemblyNames: (0, configuration_1.getConf)(self, 'assemblyNames'),
|
|
101
|
-
...(0, configuration_1.getConf)(self.parentTrack, 'adapter'),
|
|
102
|
-
};
|
|
103
|
-
},
|
|
104
|
-
get trackIds() {
|
|
105
|
-
return (0, configuration_1.getConf)(self, 'trackIds');
|
|
106
|
-
},
|
|
107
|
-
get numFeats() {
|
|
108
|
-
return self.featPositions.length;
|
|
109
|
-
},
|
|
110
|
-
get ready() {
|
|
111
|
-
return this.numFeats > 0;
|
|
112
|
-
},
|
|
113
|
-
get featMap() {
|
|
114
|
-
return Object.fromEntries(self.featPositions.map(f => [f.f.id(), f]));
|
|
115
|
-
},
|
|
116
|
-
}))
|
|
117
|
-
.actions(self => ({
|
|
118
|
-
afterAttach() {
|
|
119
|
-
;
|
|
120
|
-
(async () => {
|
|
121
|
-
try {
|
|
122
|
-
const { doAfterAttach } = await Promise.resolve().then(() => __importStar(require('./afterAttach')));
|
|
123
|
-
doAfterAttach(self);
|
|
124
|
-
}
|
|
125
|
-
catch (e) {
|
|
126
|
-
console.error(e);
|
|
127
|
-
self.setError(e);
|
|
128
|
-
}
|
|
129
|
-
})();
|
|
130
|
-
},
|
|
131
|
-
}));
|
|
132
|
-
}
|
|
133
|
-
exports.default = stateModelFactory;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { LinearSyntenyViewModel } from '../model';
|
|
2
|
-
declare const DiagonalizationProgressDialog: ({ handleClose, model, }: {
|
|
3
|
-
handleClose: () => void;
|
|
4
|
-
model: LinearSyntenyViewModel;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default DiagonalizationProgressDialog;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
6
|
-
const util_1 = require("@jbrowse/core/util");
|
|
7
|
-
const material_1 = require("@mui/material");
|
|
8
|
-
const mobx_1 = require("mobx");
|
|
9
|
-
const mobx_react_1 = require("mobx-react");
|
|
10
|
-
const diagonalize_1 = require("../util/diagonalize");
|
|
11
|
-
const DiagonalizationProgressDialog = (0, mobx_react_1.observer)(function ({ handleClose, model, }) {
|
|
12
|
-
const [progress, setProgress] = (0, react_1.useState)(0);
|
|
13
|
-
const [message, setMessage] = (0, react_1.useState)('Initializing...');
|
|
14
|
-
const [error, setError] = (0, react_1.useState)();
|
|
15
|
-
(0, react_1.useEffect)(() => {
|
|
16
|
-
const runDiagonalization = async () => {
|
|
17
|
-
const session = (0, util_1.getSession)(model);
|
|
18
|
-
try {
|
|
19
|
-
if (model.views.length !== 2) {
|
|
20
|
-
setError('Diagonalization requires exactly 2 views');
|
|
21
|
-
setProgress(100);
|
|
22
|
-
session.notify('Diagonalization requires exactly 2 views', 'warning');
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
const queryView = model.views[1];
|
|
26
|
-
setProgress(5);
|
|
27
|
-
setMessage('Collecting alignment data...');
|
|
28
|
-
const alignments = [];
|
|
29
|
-
for (const level of model.levels) {
|
|
30
|
-
for (const track of level.tracks) {
|
|
31
|
-
for (const display of track.displays) {
|
|
32
|
-
const { featPositions } = display;
|
|
33
|
-
for (const { f } of featPositions) {
|
|
34
|
-
const mate = f.get('mate');
|
|
35
|
-
alignments.push({
|
|
36
|
-
queryRefName: f.get('refName'),
|
|
37
|
-
refRefName: mate.refName,
|
|
38
|
-
queryStart: f.get('start'),
|
|
39
|
-
queryEnd: f.get('end'),
|
|
40
|
-
refStart: mate.start,
|
|
41
|
-
refEnd: mate.end,
|
|
42
|
-
strand: f.get('strand') || 1,
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if (alignments.length === 0) {
|
|
49
|
-
setError('No alignments found');
|
|
50
|
-
setProgress(100);
|
|
51
|
-
session.notify('No alignments found to diagonalize', 'warning');
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
const result = await (0, diagonalize_1.diagonalizeRegions)(alignments, queryView.displayedRegions, async (prog, msg) => {
|
|
55
|
-
setProgress(prog);
|
|
56
|
-
setMessage(msg);
|
|
57
|
-
});
|
|
58
|
-
if (result.newRegions.length > 0) {
|
|
59
|
-
setProgress(95);
|
|
60
|
-
setMessage('Applying new layout...');
|
|
61
|
-
(0, mobx_1.transaction)(() => {
|
|
62
|
-
queryView.setDisplayedRegions(result.newRegions);
|
|
63
|
-
});
|
|
64
|
-
setProgress(100);
|
|
65
|
-
setMessage('Diagonalization complete');
|
|
66
|
-
setTimeout(() => {
|
|
67
|
-
handleClose();
|
|
68
|
-
}, 1500);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
setError('No regions to reorder');
|
|
72
|
-
setProgress(100);
|
|
73
|
-
session.notify('No query regions found to reorder', 'warning');
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
catch (err) {
|
|
77
|
-
console.error('Diagonalization error:', err);
|
|
78
|
-
setError(`Error: ${err}`);
|
|
79
|
-
setProgress(100);
|
|
80
|
-
session.notify(`Diagonalization failed: ${err}`, 'error');
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
runDiagonalization();
|
|
84
|
-
}, [model, handleClose]);
|
|
85
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { open: true, title: "Diagonalizing", onClose: handleClose, children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { style: { minWidth: 400 }, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", gutterBottom: true, color: error ? 'error' : 'inherit', children: error || message }), (0, jsx_runtime_1.jsx)(material_1.LinearProgress, { variant: "determinate", value: progress, style: { marginTop: 16 }, color: error ? 'error' : 'primary' }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { variant: "caption", color: "textSecondary", style: { marginTop: 8, display: 'block' }, children: [Math.round(progress), "% complete"] })] }), (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleClose, color: "primary", disabled: progress < 100, children: progress < 100 ? 'Processing...' : 'Done' }) })] }));
|
|
86
|
-
});
|
|
87
|
-
exports.default = DiagonalizationProgressDialog;
|
|
@@ -1,58 +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 = ExportSvgDialog;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const ui_1 = require("@jbrowse/core/ui");
|
|
10
|
-
const util_1 = require("@jbrowse/core/util");
|
|
11
|
-
const material_1 = require("@mui/material");
|
|
12
|
-
const TextField2_1 = __importDefault(require("./TextField2"));
|
|
13
|
-
function LoadingMessage() {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20, style: { marginRight: 20 } }), (0, jsx_runtime_1.jsx)(material_1.Typography, { display: "inline", children: "Creating SVG" })] }));
|
|
15
|
-
}
|
|
16
|
-
function useSvgLocal(key, val) {
|
|
17
|
-
return (0, util_1.useLocalStorage)(`svg-${key}`, val);
|
|
18
|
-
}
|
|
19
|
-
function ExportSvgDialog({ model, handleClose, }) {
|
|
20
|
-
const session = (0, util_1.getSession)(model);
|
|
21
|
-
const offscreenCanvas = typeof OffscreenCanvas !== 'undefined';
|
|
22
|
-
const [rasterizeLayers, setRasterizeLayers] = (0, react_1.useState)(offscreenCanvas);
|
|
23
|
-
const [loading, setLoading] = (0, react_1.useState)(false);
|
|
24
|
-
const [filename, setFilename] = useSvgLocal('file', 'jbrowse.svg');
|
|
25
|
-
const [trackLabels, setTrackLabels] = useSvgLocal('tracklabels', 'offset');
|
|
26
|
-
const [themeName, setThemeName] = useSvgLocal('theme', session.themeName || 'default');
|
|
27
|
-
const [error, setError] = (0, react_1.useState)();
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { open: true, onClose: handleClose, title: "Export SVG", children: [(0, jsx_runtime_1.jsxs)(material_1.DialogContent, { children: [error ? ((0, jsx_runtime_1.jsx)(ui_1.ErrorMessage, { error: error })) : loading ? ((0, jsx_runtime_1.jsx)(LoadingMessage, {})) : null, (0, jsx_runtime_1.jsx)(TextField2_1.default, { helperText: "filename", value: filename, onChange: event => {
|
|
29
|
-
setFilename(event.target.value);
|
|
30
|
-
} }), (0, jsx_runtime_1.jsxs)(TextField2_1.default, { select: true, label: "Track label positioning", variant: "outlined", value: trackLabels, style: { width: 150 }, onChange: event => {
|
|
31
|
-
setTrackLabels(event.target.value);
|
|
32
|
-
}, children: [(0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: "offset", children: "Offset" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: "overlay", children: "Overlay" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: "left", children: "Left" }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: "none", children: "None" })] }), (0, jsx_runtime_1.jsx)("br", {}), session.allThemes ? ((0, jsx_runtime_1.jsx)(TextField2_1.default, { select: true, label: "Theme", variant: "outlined", value: themeName, onChange: event => {
|
|
33
|
-
setThemeName(event.target.value);
|
|
34
|
-
}, children: Object.entries(session.allThemes()).map(([key, val]) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { value: key, children: val.name || '(Unknown name)' }, key))) })) : null, offscreenCanvas ? ((0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: rasterizeLayers, onChange: () => {
|
|
35
|
-
setRasterizeLayers(val => !val);
|
|
36
|
-
} }), label: "Rasterize canvas based tracks? File may be much larger if this is turned off" })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, { children: "Note: rasterizing layers not yet supported in this browser, so SVG size may be large" }))] }), (0, jsx_runtime_1.jsxs)(material_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "secondary", onClick: () => {
|
|
37
|
-
handleClose();
|
|
38
|
-
}, children: "Cancel" }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", color: "primary", type: "submit", onClick: async () => {
|
|
39
|
-
setLoading(true);
|
|
40
|
-
setError(undefined);
|
|
41
|
-
try {
|
|
42
|
-
await model.exportSvg({
|
|
43
|
-
rasterizeLayers,
|
|
44
|
-
filename,
|
|
45
|
-
themeName,
|
|
46
|
-
trackLabels,
|
|
47
|
-
});
|
|
48
|
-
handleClose();
|
|
49
|
-
}
|
|
50
|
-
catch (e) {
|
|
51
|
-
console.error(e);
|
|
52
|
-
setError(e);
|
|
53
|
-
}
|
|
54
|
-
finally {
|
|
55
|
-
setLoading(false);
|
|
56
|
-
}
|
|
57
|
-
}, children: "Submit" })] })] }));
|
|
58
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Curves = Curves;
|
|
4
|
-
exports.StraightLines = StraightLines;
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
function Curves(props) {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, { ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M16.5,21C13.5,21 12.31,16.76 11.05,12.28C10.14,9.04 9,5 7.5,5C4.11,5 4,11.93 4,12H2C2,11.63 2.06,3 7.5,3C10.5,3 11.71,7.25 12.97,11.74C13.83,14.8 15,19 16.5,19C19.94,19 20.03,12.07 20.03,12H22.03C22.03,12.37 21.97,21 16.5,21Z" }) }));
|
|
9
|
-
}
|
|
10
|
-
function StraightLines(props) {
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, { ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M22 12L17 22L7.1 6.04L4.24 12H2L7 2L16.9 17.96L19.76 12H22Z" }) }));
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { LinearSyntenyViewModel } from '../../model';
|
|
2
|
-
declare const ImportSyntenyOpenCustomTrack: ({ model, assembly1, assembly2, selectedRow, }: {
|
|
3
|
-
model: LinearSyntenyViewModel;
|
|
4
|
-
assembly1: string;
|
|
5
|
-
assembly2: string;
|
|
6
|
-
selectedRow: number;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default ImportSyntenyOpenCustomTrack;
|