@jbrowse/plugin-linear-comparative-view 2.17.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +36 -60
- package/dist/LGVSyntenyDisplay/components/util.d.ts +9 -6
- package/dist/LGVSyntenyDisplay/components/util.js +6 -13
- package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +19 -10
- package/dist/LGVSyntenyDisplay/configSchemaF.js +12 -9
- package/dist/LGVSyntenyDisplay/index.d.ts +1 -1
- package/dist/LGVSyntenyDisplay/index.js +1 -1
- package/dist/LGVSyntenyDisplay/model.d.ts +122 -69
- package/dist/LGVSyntenyDisplay/model.js +20 -37
- package/dist/LaunchLinearSyntenyView.d.ts +1 -1
- package/dist/LaunchLinearSyntenyView.js +1 -3
- package/dist/LinearComparativeDisplay/configSchemaF.d.ts +0 -3
- package/dist/LinearComparativeDisplay/configSchemaF.js +0 -6
- package/dist/LinearComparativeDisplay/index.d.ts +1 -1
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +12 -69
- package/dist/LinearComparativeDisplay/stateModelFactory.js +13 -57
- package/dist/LinearComparativeView/components/Header.d.ts +2 -3
- package/dist/LinearComparativeView/components/Header.js +56 -86
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +2 -3
- package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +5 -15
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +2 -3
- package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +17 -32
- package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +2 -3
- package/dist/LinearComparativeView/components/LinearComparativeView.js +4 -9
- package/dist/LinearComparativeView/components/Rubberband.d.ts +2 -3
- package/dist/LinearComparativeView/components/Rubberband.js +36 -69
- package/dist/LinearComparativeView/components/VerticalGuide.d.ts +2 -3
- package/dist/LinearComparativeView/components/VerticalGuide.js +5 -9
- package/dist/LinearComparativeView/index.d.ts +1 -1
- package/dist/LinearComparativeView/index.js +17 -7
- package/dist/LinearComparativeView/model.d.ts +38 -90
- package/dist/LinearComparativeView/model.js +40 -107
- package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +2 -3
- package/dist/LinearReadVsRef/LinearReadVsRef.js +10 -55
- package/dist/LinearReadVsRef/index.d.ts +1 -1
- package/dist/LinearReadVsRef/index.js +17 -9
- package/dist/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
- package/dist/LinearSyntenyDisplay/afterAttach.js +8 -12
- package/dist/LinearSyntenyDisplay/components/Component.d.ts +2 -3
- package/dist/LinearSyntenyDisplay/components/Component.js +11 -36
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +2 -3
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +95 -106
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +3 -4
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +3 -6
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +3 -4
- package/dist/LinearSyntenyDisplay/components/util.d.ts +3 -3
- package/dist/LinearSyntenyDisplay/components/util.js +0 -9
- package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +1 -12
- package/dist/LinearSyntenyDisplay/configSchemaF.js +0 -15
- package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
- package/dist/LinearSyntenyDisplay/drawSynteny.js +1 -23
- package/dist/LinearSyntenyDisplay/index.d.ts +1 -1
- package/dist/LinearSyntenyDisplay/index.js +18 -9
- package/dist/LinearSyntenyDisplay/model.d.ts +8 -102
- package/dist/LinearSyntenyDisplay/model.js +18 -99
- package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +2 -3
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js +35 -76
- package/dist/LinearSyntenyView/components/Icons.d.ts +3 -4
- package/dist/LinearSyntenyView/components/Icons.js +3 -8
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +130 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +39 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
- package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +22 -0
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +2 -3
- package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +49 -150
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
- package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +43 -0
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
- package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +68 -0
- package/dist/LinearSyntenyView/components/ImportForm/util.js +1 -3
- package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js +20 -10
- package/dist/LinearSyntenyView/index.d.ts +1 -1
- package/dist/LinearSyntenyView/index.js +17 -7
- package/dist/LinearSyntenyView/model.d.ts +54 -58
- package/dist/LinearSyntenyView/model.js +61 -56
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +3 -6
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +3 -11
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +1 -1
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +7 -24
- package/dist/LinearSyntenyView/types.d.ts +12 -0
- package/dist/LinearSyntenyView/types.js +2 -0
- package/dist/LinearSyntenyViewHelper/index.d.ts +1 -1
- package/dist/LinearSyntenyViewHelper/index.js +2 -2
- package/dist/LinearSyntenyViewHelper/stateModelFactory.d.ts +2 -14
- package/dist/LinearSyntenyViewHelper/stateModelFactory.js +2 -29
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
- package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +87 -0
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +5 -90
- package/dist/SyntenyFeatureDetail/index.d.ts +1 -1
- package/dist/SyntenyFeatureDetail/index.js +18 -14
- package/dist/SyntenyFeatureDetail/types.d.ts +9 -0
- package/dist/SyntenyFeatureDetail/types.js +2 -0
- package/dist/SyntenyTrack/configSchema.d.ts +1 -1
- package/dist/SyntenyTrack/configSchema.js +1 -9
- package/dist/SyntenyTrack/index.d.ts +1 -1
- package/dist/SyntenyTrack/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/util.d.ts +2 -2
- package/dist/util.js +1 -11
- package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
- package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +35 -36
- package/esm/LGVSyntenyDisplay/components/util.d.ts +9 -6
- package/esm/LGVSyntenyDisplay/components/util.js +6 -13
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +19 -10
- package/esm/LGVSyntenyDisplay/configSchemaF.js +12 -9
- package/esm/LGVSyntenyDisplay/index.d.ts +1 -1
- package/esm/LGVSyntenyDisplay/index.js +1 -1
- package/esm/LGVSyntenyDisplay/model.d.ts +122 -69
- package/esm/LGVSyntenyDisplay/model.js +4 -31
- package/esm/LaunchLinearSyntenyView.d.ts +1 -1
- package/esm/LaunchLinearSyntenyView.js +1 -3
- package/esm/LinearComparativeDisplay/configSchemaF.d.ts +0 -3
- package/esm/LinearComparativeDisplay/configSchemaF.js +0 -6
- package/esm/LinearComparativeDisplay/index.d.ts +1 -1
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +12 -69
- package/esm/LinearComparativeDisplay/stateModelFactory.js +14 -58
- package/esm/LinearComparativeView/components/Header.d.ts +2 -3
- package/esm/LinearComparativeView/components/Header.js +56 -63
- package/esm/LinearComparativeView/components/HeaderSearchBoxes.d.ts +2 -3
- package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +5 -12
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +2 -3
- package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +17 -29
- package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +2 -3
- package/esm/LinearComparativeView/components/LinearComparativeView.js +4 -9
- package/esm/LinearComparativeView/components/Rubberband.d.ts +2 -3
- package/esm/LinearComparativeView/components/Rubberband.js +36 -46
- package/esm/LinearComparativeView/components/VerticalGuide.d.ts +2 -3
- package/esm/LinearComparativeView/components/VerticalGuide.js +5 -6
- package/esm/LinearComparativeView/index.d.ts +1 -1
- package/esm/LinearComparativeView/model.d.ts +38 -90
- package/esm/LinearComparativeView/model.js +24 -101
- package/esm/LinearReadVsRef/LinearReadVsRef.d.ts +2 -3
- package/esm/LinearReadVsRef/LinearReadVsRef.js +10 -32
- package/esm/LinearReadVsRef/index.d.ts +1 -1
- package/esm/LinearReadVsRef/index.js +1 -3
- package/esm/LinearSyntenyDisplay/afterAttach.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/afterAttach.js +8 -12
- package/esm/LinearSyntenyDisplay/components/Component.d.ts +2 -3
- package/esm/LinearSyntenyDisplay/components/Component.js +11 -13
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +2 -3
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +79 -100
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +3 -4
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +3 -3
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +3 -4
- package/esm/LinearSyntenyDisplay/components/util.d.ts +3 -3
- package/esm/LinearSyntenyDisplay/components/util.js +2 -11
- package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +1 -12
- package/esm/LinearSyntenyDisplay/configSchemaF.js +0 -15
- package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/drawSynteny.js +1 -23
- package/esm/LinearSyntenyDisplay/index.d.ts +1 -1
- package/esm/LinearSyntenyDisplay/index.js +1 -2
- package/esm/LinearSyntenyDisplay/model.d.ts +8 -102
- package/esm/LinearSyntenyDisplay/model.js +1 -92
- package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +2 -3
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js +35 -53
- package/esm/LinearSyntenyView/components/Icons.d.ts +3 -4
- package/esm/LinearSyntenyView/components/Icons.js +3 -5
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +125 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +37 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
- package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +16 -0
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +2 -3
- package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +49 -127
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
- package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +40 -0
- package/esm/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
- package/esm/LinearSyntenyView/components/ImportForm/getAdapter.js +65 -0
- package/esm/LinearSyntenyView/components/ImportForm/util.js +1 -3
- package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +2 -3
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js +3 -3
- package/esm/LinearSyntenyView/index.d.ts +1 -1
- package/esm/LinearSyntenyView/model.d.ts +54 -58
- package/esm/LinearSyntenyView/model.js +44 -49
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js +3 -3
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +4 -9
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +1 -1
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +8 -25
- package/esm/LinearSyntenyView/types.d.ts +12 -0
- package/esm/LinearSyntenyView/types.js +1 -0
- package/esm/LinearSyntenyViewHelper/index.d.ts +1 -1
- package/esm/LinearSyntenyViewHelper/index.js +2 -2
- package/esm/LinearSyntenyViewHelper/stateModelFactory.d.ts +2 -14
- package/esm/LinearSyntenyViewHelper/stateModelFactory.js +2 -29
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
- package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +52 -0
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +6 -68
- package/esm/SyntenyFeatureDetail/index.d.ts +1 -1
- package/esm/SyntenyFeatureDetail/index.js +1 -7
- package/esm/SyntenyFeatureDetail/types.d.ts +9 -0
- package/esm/SyntenyFeatureDetail/types.js +1 -0
- package/esm/SyntenyTrack/configSchema.d.ts +1 -1
- package/esm/SyntenyTrack/configSchema.js +1 -9
- package/esm/SyntenyTrack/index.d.ts +1 -1
- package/esm/SyntenyTrack/index.js +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +4 -4
- package/esm/util.d.ts +2 -2
- package/esm/util.js +1 -11
- package/package.json +2 -4
- package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -194
- package/dist/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
- package/dist/LinearSyntenyView/components/ImportForm/Spacer.js +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -59
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
- package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -52
- package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
- package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -169
- package/esm/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
- package/esm/LinearSyntenyView/components/ImportForm/Spacer.js +0 -4
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -34
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
- package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -23
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Instance } from 'mobx-state-tree';
|
|
3
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type React from 'react';
|
|
4
2
|
import { Curves } from './components/Icons';
|
|
3
|
+
import type { ImportFormSyntenyTrack } from './types';
|
|
4
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
5
|
+
import type { Instance } from 'mobx-state-tree';
|
|
5
6
|
export interface ExportSvgOptions {
|
|
6
7
|
rasterizeLayers?: boolean;
|
|
7
8
|
scale?: number;
|
|
@@ -18,11 +19,6 @@ export interface ExportSvgOptions {
|
|
|
18
19
|
themeName?: string;
|
|
19
20
|
trackLabels?: string;
|
|
20
21
|
}
|
|
21
|
-
/**
|
|
22
|
-
* #stateModel LinearSyntenyView
|
|
23
|
-
* extends
|
|
24
|
-
* - [LinearComparativeView](../linearcomparativeview)
|
|
25
|
-
*/
|
|
26
22
|
export default function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
27
23
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
28
24
|
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -32,7 +28,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
32
28
|
type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
|
|
33
29
|
trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
34
30
|
showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
35
|
-
|
|
31
|
+
linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
32
|
+
interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
36
33
|
levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
37
34
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
38
35
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -66,7 +63,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
66
63
|
showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
67
64
|
trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
68
65
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
69
|
-
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
|
|
66
|
+
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
70
67
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
71
68
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
72
69
|
}, {
|
|
@@ -87,8 +84,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
87
84
|
trackRefs: Record<string, HTMLDivElement>;
|
|
88
85
|
coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
|
|
89
86
|
coarseTotalBp: number;
|
|
90
|
-
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
91
|
-
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
87
|
+
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
88
|
+
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
92
89
|
} & {
|
|
93
90
|
readonly trackLabelsSetting: any;
|
|
94
91
|
readonly width: number;
|
|
@@ -98,6 +95,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
98
95
|
scaleBarDisplayPrefix(): string | undefined;
|
|
99
96
|
MiniControlsComponent(): React.FC<any>;
|
|
100
97
|
HeaderComponent(): React.FC<any>;
|
|
98
|
+
readonly assembliesNotFound: string | undefined;
|
|
101
99
|
readonly assemblyErrors: string;
|
|
102
100
|
readonly assembliesInitialized: boolean;
|
|
103
101
|
readonly initialized: boolean;
|
|
@@ -134,12 +132,12 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
134
132
|
setHideHeaderOverview(b: boolean): void;
|
|
135
133
|
setHideNoTracksActive(b: boolean): void;
|
|
136
134
|
setShowGridlines(b: boolean): void;
|
|
137
|
-
addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
|
|
138
|
-
setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
|
|
139
|
-
removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
|
|
135
|
+
addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
|
|
136
|
+
setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
|
|
137
|
+
removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
|
|
140
138
|
scrollTo(offsetPx: number): number;
|
|
141
139
|
zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
|
|
142
|
-
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
140
|
+
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
143
141
|
setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
|
|
144
142
|
setNewView(bpPerPx: number, offsetPx: number): void;
|
|
145
143
|
horizontallyFlip(): void;
|
|
@@ -156,7 +154,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
156
154
|
setShowCenterLine(b: boolean): void;
|
|
157
155
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
158
156
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
159
|
-
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
|
|
157
|
+
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
|
|
160
158
|
start: number;
|
|
161
159
|
end: number;
|
|
162
160
|
type: string;
|
|
@@ -178,7 +176,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
178
176
|
setDraggingTrackId(idx?: string): void;
|
|
179
177
|
setScaleFactor(factor: number): void;
|
|
180
178
|
clearView(): void;
|
|
181
|
-
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
|
|
179
|
+
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
|
|
182
180
|
} & {
|
|
183
181
|
slide: (viewWidths: number) => void;
|
|
184
182
|
} & {
|
|
@@ -200,15 +198,15 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
200
198
|
setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
|
|
201
199
|
afterAttach(): void;
|
|
202
200
|
} & {
|
|
203
|
-
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
201
|
+
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
204
202
|
navToLocString(input: string, optAssemblyName?: string): Promise<void>;
|
|
205
203
|
navToSearchString({ input, assembly, }: {
|
|
206
204
|
input: string;
|
|
207
205
|
assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
|
|
208
206
|
}): Promise<void>;
|
|
209
207
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
|
|
210
|
-
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
211
|
-
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
208
|
+
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
|
|
209
|
+
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
|
|
212
210
|
} & {
|
|
213
211
|
rubberBandMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
214
212
|
bpToPx({ refName, coord, regionNumber, }: {
|
|
@@ -263,7 +261,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
263
261
|
showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
264
262
|
trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
265
263
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
266
|
-
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
|
|
264
|
+
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
267
265
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
268
266
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
269
267
|
}>>, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -287,12 +285,14 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
287
285
|
readonly refNames: string[][];
|
|
288
286
|
readonly assemblyNames: string[];
|
|
289
287
|
} & {
|
|
288
|
+
afterAttach(): void;
|
|
290
289
|
beforeDestroy(): void;
|
|
291
290
|
onSubviewAction(actionName: string, path: string, args?: unknown[]): void;
|
|
292
291
|
setWidth(newWidth: number): void;
|
|
293
292
|
setViews(views: import("mobx-state-tree").SnapshotIn<import("@jbrowse/plugin-linear-genome-view").LinearGenomeViewModel>[]): void;
|
|
294
293
|
removeView(view: import("@jbrowse/plugin-linear-genome-view").LinearGenomeViewModel): void;
|
|
295
294
|
setLevelHeight(newHeight: number, level?: number): number;
|
|
295
|
+
setLinkViews(arg: boolean): void;
|
|
296
296
|
activateTrackSelector(level: number): import("@jbrowse/core/util").Widget;
|
|
297
297
|
toggleTrack(trackId: string, level?: number): void;
|
|
298
298
|
showTrack(trackId: string, level?: number, initialSnapshot?: {}): void;
|
|
@@ -310,29 +310,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
310
310
|
} & {
|
|
311
311
|
afterAttach(): void;
|
|
312
312
|
} & {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
toggleCIGAR(): void;
|
|
321
|
-
/**
|
|
322
|
-
* #action
|
|
323
|
-
*/
|
|
313
|
+
importFormSyntenyTrackSelections: import("mobx").IObservableArray<ImportFormSyntenyTrack>;
|
|
314
|
+
} & {
|
|
315
|
+
importFormRemoveRow(idx: number): void;
|
|
316
|
+
clearImportFormSyntenyTracks(): void;
|
|
317
|
+
setImportFormSyntenyTrack(arg: number, val: ImportFormSyntenyTrack): void;
|
|
318
|
+
setDrawCurves(arg: boolean): void;
|
|
319
|
+
setDrawCIGAR(arg: boolean): void;
|
|
324
320
|
showAllRegions(): void;
|
|
325
321
|
} & {
|
|
326
|
-
/**
|
|
327
|
-
* #action
|
|
328
|
-
*/
|
|
329
322
|
exportSvg(opts: ExportSvgOptions): Promise<void>;
|
|
330
323
|
} & {
|
|
331
|
-
/**
|
|
332
|
-
* #method
|
|
333
|
-
* includes a subset of view menu options because the full list is a
|
|
334
|
-
* little overwhelming
|
|
335
|
-
*/
|
|
336
324
|
headerMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
337
325
|
label: string;
|
|
338
326
|
onClick: () => void;
|
|
@@ -353,8 +341,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
353
341
|
label: string;
|
|
354
342
|
type: string;
|
|
355
343
|
checked: boolean;
|
|
344
|
+
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
345
|
+
muiName: string;
|
|
346
|
+
};
|
|
356
347
|
onClick: () => void;
|
|
348
|
+
description?: undefined;
|
|
349
|
+
} | {
|
|
350
|
+
label: string;
|
|
351
|
+
type: string;
|
|
352
|
+
checked: boolean;
|
|
357
353
|
icon: typeof Curves;
|
|
354
|
+
onClick: () => void;
|
|
358
355
|
description?: undefined;
|
|
359
356
|
} | {
|
|
360
357
|
label: string;
|
|
@@ -366,9 +363,6 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
366
363
|
checked?: undefined;
|
|
367
364
|
type?: undefined;
|
|
368
365
|
})[];
|
|
369
|
-
/**
|
|
370
|
-
* #method
|
|
371
|
-
*/
|
|
372
366
|
menuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
373
367
|
label: string;
|
|
374
368
|
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
@@ -387,7 +381,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
387
381
|
type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
|
|
388
382
|
trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
389
383
|
showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
390
|
-
|
|
384
|
+
linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
385
|
+
interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
391
386
|
levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
392
387
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
393
388
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -421,7 +416,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
421
416
|
showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
422
417
|
trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
423
418
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
424
|
-
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
|
|
419
|
+
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
425
420
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
426
421
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
427
422
|
}, {
|
|
@@ -442,8 +437,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
442
437
|
trackRefs: Record<string, HTMLDivElement>;
|
|
443
438
|
coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
|
|
444
439
|
coarseTotalBp: number;
|
|
445
|
-
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
446
|
-
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
440
|
+
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
441
|
+
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
|
|
447
442
|
} & {
|
|
448
443
|
readonly trackLabelsSetting: any;
|
|
449
444
|
readonly width: number;
|
|
@@ -453,6 +448,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
453
448
|
scaleBarDisplayPrefix(): string | undefined;
|
|
454
449
|
MiniControlsComponent(): React.FC<any>;
|
|
455
450
|
HeaderComponent(): React.FC<any>;
|
|
451
|
+
readonly assembliesNotFound: string | undefined;
|
|
456
452
|
readonly assemblyErrors: string;
|
|
457
453
|
readonly assembliesInitialized: boolean;
|
|
458
454
|
readonly initialized: boolean;
|
|
@@ -489,12 +485,12 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
489
485
|
setHideHeaderOverview(b: boolean): void;
|
|
490
486
|
setHideNoTracksActive(b: boolean): void;
|
|
491
487
|
setShowGridlines(b: boolean): void;
|
|
492
|
-
addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
|
|
493
|
-
setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
|
|
494
|
-
removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
|
|
488
|
+
addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
|
|
489
|
+
setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
|
|
490
|
+
removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
|
|
495
491
|
scrollTo(offsetPx: number): number;
|
|
496
492
|
zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
|
|
497
|
-
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
493
|
+
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
498
494
|
setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
|
|
499
495
|
setNewView(bpPerPx: number, offsetPx: number): void;
|
|
500
496
|
horizontallyFlip(): void;
|
|
@@ -511,7 +507,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
511
507
|
setShowCenterLine(b: boolean): void;
|
|
512
508
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
513
509
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
514
|
-
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
|
|
510
|
+
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
|
|
515
511
|
start: number;
|
|
516
512
|
end: number;
|
|
517
513
|
type: string;
|
|
@@ -533,7 +529,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
533
529
|
setDraggingTrackId(idx?: string): void;
|
|
534
530
|
setScaleFactor(factor: number): void;
|
|
535
531
|
clearView(): void;
|
|
536
|
-
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
|
|
532
|
+
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
|
|
537
533
|
} & {
|
|
538
534
|
slide: (viewWidths: number) => void;
|
|
539
535
|
} & {
|
|
@@ -555,15 +551,15 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
555
551
|
setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
|
|
556
552
|
afterAttach(): void;
|
|
557
553
|
} & {
|
|
558
|
-
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
554
|
+
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
|
|
559
555
|
navToLocString(input: string, optAssemblyName?: string): Promise<void>;
|
|
560
556
|
navToSearchString({ input, assembly, }: {
|
|
561
557
|
input: string;
|
|
562
558
|
assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
|
|
563
559
|
}): Promise<void>;
|
|
564
560
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
|
|
565
|
-
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
566
|
-
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
561
|
+
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
|
|
562
|
+
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
|
|
567
563
|
} & {
|
|
568
564
|
rubberBandMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
569
565
|
bpToPx({ refName, coord, regionNumber, }: {
|
|
@@ -618,7 +614,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
618
614
|
showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
619
615
|
trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
620
616
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
621
|
-
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
|
|
617
|
+
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
|
|
622
618
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
623
619
|
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
624
620
|
}>>, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -15,69 +15,66 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.default = stateModelFactory;
|
|
30
40
|
const react_1 = require("react");
|
|
31
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
32
|
-
const mobx_1 = require("mobx");
|
|
33
41
|
const util_1 = require("@jbrowse/core/util");
|
|
34
|
-
const file_saver_1 = require("file-saver");
|
|
35
|
-
// icons
|
|
36
42
|
const CropFree_1 = __importDefault(require("@mui/icons-material/CropFree"));
|
|
37
|
-
const
|
|
43
|
+
const Link_1 = __importDefault(require("@mui/icons-material/Link"));
|
|
38
44
|
const PhotoCamera_1 = __importDefault(require("@mui/icons-material/PhotoCamera"));
|
|
45
|
+
const Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
|
|
46
|
+
const file_saver_1 = require("file-saver");
|
|
47
|
+
const mobx_1 = require("mobx");
|
|
48
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
39
49
|
const Icons_1 = require("./components/Icons");
|
|
40
|
-
// locals
|
|
41
50
|
const model_1 = __importDefault(require("../LinearComparativeView/model"));
|
|
42
|
-
// lazies
|
|
43
51
|
const ExportSvgDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/ExportSvgDialog'))));
|
|
44
|
-
/**
|
|
45
|
-
* #stateModel LinearSyntenyView
|
|
46
|
-
* extends
|
|
47
|
-
* - [LinearComparativeView](../linearcomparativeview)
|
|
48
|
-
*/
|
|
49
52
|
function stateModelFactory(pluginManager) {
|
|
50
53
|
return mobx_state_tree_1.types
|
|
51
54
|
.compose('LinearSyntenyView', (0, model_1.default)(pluginManager), mobx_state_tree_1.types.model({
|
|
52
|
-
/**
|
|
53
|
-
* #property
|
|
54
|
-
*/
|
|
55
55
|
type: mobx_state_tree_1.types.literal('LinearSyntenyView'),
|
|
56
|
-
/**
|
|
57
|
-
* #property/
|
|
58
|
-
*/
|
|
59
56
|
drawCIGAR: true,
|
|
60
|
-
/**
|
|
61
|
-
* #property
|
|
62
|
-
*/
|
|
63
57
|
drawCurves: false,
|
|
58
|
+
}))
|
|
59
|
+
.volatile(() => ({
|
|
60
|
+
importFormSyntenyTrackSelections: mobx_1.observable.array(),
|
|
64
61
|
}))
|
|
65
62
|
.actions(self => ({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
self.
|
|
63
|
+
importFormRemoveRow(idx) {
|
|
64
|
+
self.importFormSyntenyTrackSelections.splice(idx, 1);
|
|
65
|
+
},
|
|
66
|
+
clearImportFormSyntenyTracks() {
|
|
67
|
+
self.importFormSyntenyTrackSelections.clear();
|
|
71
68
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
self.
|
|
69
|
+
setImportFormSyntenyTrack(arg, val) {
|
|
70
|
+
self.importFormSyntenyTrackSelections[arg] = val;
|
|
71
|
+
},
|
|
72
|
+
setDrawCurves(arg) {
|
|
73
|
+
self.drawCurves = arg;
|
|
74
|
+
},
|
|
75
|
+
setDrawCIGAR(arg) {
|
|
76
|
+
self.drawCIGAR = arg;
|
|
77
77
|
},
|
|
78
|
-
/**
|
|
79
|
-
* #action
|
|
80
|
-
*/
|
|
81
78
|
showAllRegions() {
|
|
82
79
|
(0, mobx_1.transaction)(() => {
|
|
83
80
|
for (const view of self.views) {
|
|
@@ -87,9 +84,6 @@ function stateModelFactory(pluginManager) {
|
|
|
87
84
|
},
|
|
88
85
|
}))
|
|
89
86
|
.actions(self => ({
|
|
90
|
-
/**
|
|
91
|
-
* #action
|
|
92
|
-
*/
|
|
93
87
|
async exportSvg(opts) {
|
|
94
88
|
const { renderToSvg } = await Promise.resolve().then(() => __importStar(require('./svgcomponents/SVGLinearSyntenyView')));
|
|
95
89
|
const html = await renderToSvg(self, opts);
|
|
@@ -101,11 +95,6 @@ function stateModelFactory(pluginManager) {
|
|
|
101
95
|
const superHeaderMenuItems = self.headerMenuItems;
|
|
102
96
|
const superMenuItems = self.menuItems;
|
|
103
97
|
return {
|
|
104
|
-
/**
|
|
105
|
-
* #method
|
|
106
|
-
* includes a subset of view menu options because the full list is a
|
|
107
|
-
* little overwhelming
|
|
108
|
-
*/
|
|
109
98
|
headerMenuItems() {
|
|
110
99
|
return [
|
|
111
100
|
...superHeaderMenuItems(),
|
|
@@ -123,17 +112,30 @@ function stateModelFactory(pluginManager) {
|
|
|
123
112
|
},
|
|
124
113
|
{
|
|
125
114
|
label: 'Draw CIGAR',
|
|
126
|
-
onClick:
|
|
115
|
+
onClick: () => {
|
|
116
|
+
self.setDrawCIGAR(!self.drawCIGAR);
|
|
117
|
+
},
|
|
127
118
|
checked: self.drawCIGAR,
|
|
128
119
|
type: 'checkbox',
|
|
129
120
|
description: 'Draws per-base CIGAR level alignments',
|
|
130
121
|
},
|
|
122
|
+
{
|
|
123
|
+
label: 'Link views',
|
|
124
|
+
type: 'checkbox',
|
|
125
|
+
checked: self.linkViews,
|
|
126
|
+
icon: Link_1.default,
|
|
127
|
+
onClick: () => {
|
|
128
|
+
self.setLinkViews(!self.linkViews);
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
131
|
{
|
|
132
132
|
label: 'Use curved lines',
|
|
133
133
|
type: 'checkbox',
|
|
134
134
|
checked: self.drawCurves,
|
|
135
|
-
onClick: self.toggleCurves,
|
|
136
135
|
icon: Icons_1.Curves,
|
|
136
|
+
onClick: () => {
|
|
137
|
+
self.setDrawCurves(!self.drawCurves);
|
|
138
|
+
},
|
|
137
139
|
},
|
|
138
140
|
{
|
|
139
141
|
label: 'Export SVG',
|
|
@@ -141,15 +143,15 @@ function stateModelFactory(pluginManager) {
|
|
|
141
143
|
onClick: () => {
|
|
142
144
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
143
145
|
ExportSvgDialog,
|
|
144
|
-
{
|
|
146
|
+
{
|
|
147
|
+
model: self,
|
|
148
|
+
handleClose,
|
|
149
|
+
},
|
|
145
150
|
]);
|
|
146
151
|
},
|
|
147
152
|
},
|
|
148
153
|
];
|
|
149
154
|
},
|
|
150
|
-
/**
|
|
151
|
-
* #method
|
|
152
|
-
*/
|
|
153
155
|
menuItems() {
|
|
154
156
|
return [
|
|
155
157
|
...superMenuItems(),
|
|
@@ -159,7 +161,10 @@ function stateModelFactory(pluginManager) {
|
|
|
159
161
|
onClick: () => {
|
|
160
162
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
161
163
|
ExportSvgDialog,
|
|
162
|
-
{
|
|
164
|
+
{
|
|
165
|
+
model: self,
|
|
166
|
+
handleClose,
|
|
167
|
+
},
|
|
163
168
|
]);
|
|
164
169
|
},
|
|
165
170
|
},
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = SVGBackground;
|
|
7
|
-
const
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
10
7
|
function SVGBackground({ width, height, shift, }) {
|
|
11
8
|
const theme = (0, material_1.useTheme)();
|
|
12
|
-
return (
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)("rect", { width: width + shift * 2, height: height, fill: (0, util_1.stripAlpha)(theme.palette.background.default) }));
|
|
13
10
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
|
|
1
|
+
import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
|
|
3
2
|
export default function SVGLinearGenomeView({ trackLabelOffset, fontSize, textHeight, trackLabels, view, displayResults, rulerHeight, shift, }: {
|
|
4
3
|
textHeight: number;
|
|
5
4
|
trackLabels: string;
|
|
@@ -9,4 +8,4 @@ export default function SVGLinearGenomeView({ trackLabelOffset, fontSize, textHe
|
|
|
9
8
|
displayResults: any;
|
|
10
9
|
rulerHeight: number;
|
|
11
10
|
shift: number;
|
|
12
|
-
}):
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.default = SVGLinearGenomeView;
|
|
7
|
-
const
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
5
|
const util_1 = require("@jbrowse/core/util");
|
|
10
6
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
7
|
+
const material_1 = require("@mui/material");
|
|
11
8
|
function SVGLinearGenomeView({ trackLabelOffset, fontSize, textHeight, trackLabels, view, displayResults, rulerHeight, shift, }) {
|
|
12
9
|
const theme = (0, material_1.useTheme)();
|
|
13
|
-
return (
|
|
14
|
-
react_1.default.createElement("g", { transform: `translate(${trackLabelOffset})` },
|
|
15
|
-
react_1.default.createElement("text", { x: 0, fontSize: fontSize, ...(0, util_1.getFillProps)(theme.palette.text.primary) }, view.assemblyNames.join(', ')),
|
|
16
|
-
react_1.default.createElement(plugin_linear_genome_view_1.SVGRuler, { model: displayResults.view, fontSize: fontSize })),
|
|
17
|
-
react_1.default.createElement("g", { transform: `translate(0 ${rulerHeight + fontSize})` },
|
|
18
|
-
react_1.default.createElement(plugin_linear_genome_view_1.SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults.view, displayResults: displayResults.data, trackLabelOffset: trackLabelOffset }))));
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("g", { transform: `translate(${shift} ${fontSize})`, children: [(0, jsx_runtime_1.jsxs)("g", { transform: `translate(${trackLabelOffset})`, children: [(0, jsx_runtime_1.jsx)("text", { x: 0, fontSize: fontSize, ...(0, util_1.getFillProps)(theme.palette.text.primary), children: view.assemblyNames.join(', ') }), (0, jsx_runtime_1.jsx)(plugin_linear_genome_view_1.SVGRuler, { model: displayResults.view, fontSize: fontSize })] }), (0, jsx_runtime_1.jsx)("g", { transform: `translate(0 ${rulerHeight + fontSize})`, children: (0, jsx_runtime_1.jsx)(plugin_linear_genome_view_1.SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults.view, displayResults: displayResults.data, trackLabelOffset: trackLabelOffset }) })] }));
|
|
19
11
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ExportSvgOptions, LinearSyntenyViewModel } from '../model';
|
|
1
|
+
import type { ExportSvgOptions, LinearSyntenyViewModel } from '../model';
|
|
2
2
|
export declare function renderToSvg(model: LinearSyntenyViewModel, opts: ExportSvgOptions): Promise<string>;
|