@jbrowse/plugin-linear-comparative-view 2.6.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/LICENSE +201 -0
- package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +52 -0
- package/dist/LGVSyntenyDisplay/configSchemaF.js +18 -0
- package/dist/LGVSyntenyDisplay/configSchemaF.js.map +1 -0
- package/dist/LGVSyntenyDisplay/index.d.ts +3 -0
- package/dist/LGVSyntenyDisplay/index.js +24 -0
- package/dist/LGVSyntenyDisplay/index.js.map +1 -0
- package/dist/LGVSyntenyDisplay/model.d.ts +380 -0
- package/dist/LGVSyntenyDisplay/model.js +154 -0
- package/dist/LGVSyntenyDisplay/model.js.map +1 -0
- package/dist/LaunchLinearSyntenyView.d.ts +2 -0
- package/dist/LaunchLinearSyntenyView.js +58 -0
- package/dist/LaunchLinearSyntenyView.js.map +1 -0
- package/dist/LinearComparativeDisplay/configSchemaF.d.ts +5 -0
- package/dist/LinearComparativeDisplay/configSchemaF.js +18 -0
- package/dist/LinearComparativeDisplay/configSchemaF.js.map +1 -0
- package/dist/LinearComparativeDisplay/index.d.ts +3 -0
- package/dist/LinearComparativeDisplay/index.js +24 -0
- package/dist/LinearComparativeDisplay/index.js.map +1 -0
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +275 -0
- package/dist/LinearComparativeDisplay/stateModelFactory.js +172 -0
- package/dist/LinearComparativeDisplay/stateModelFactory.js.map +1 -0
- package/dist/LinearComparativeView/components/Header.d.ts +7 -0
- package/dist/LinearComparativeView/components/Header.js +89 -0
- package/dist/LinearComparativeView/components/Header.js.map +1 -0
- package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +8 -0
- package/dist/LinearComparativeView/components/LinearComparativeView.js +99 -0
- package/dist/LinearComparativeView/components/LinearComparativeView.js.map +1 -0
- package/dist/LinearComparativeView/components/Rubberband.d.ts +9 -0
- package/dist/LinearComparativeView/components/Rubberband.js +225 -0
- package/dist/LinearComparativeView/components/Rubberband.js.map +1 -0
- package/dist/LinearComparativeView/index.d.ts +3 -0
- package/dist/LinearComparativeView/index.js +42 -0
- package/dist/LinearComparativeView/index.js.map +1 -0
- package/dist/LinearComparativeView/model.d.ts +326 -0
- package/dist/LinearComparativeView/model.js +346 -0
- package/dist/LinearComparativeView/model.js.map +1 -0
- package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +7 -0
- package/dist/LinearReadVsRef/LinearReadVsRef.js +284 -0
- package/dist/LinearReadVsRef/LinearReadVsRef.js.map +1 -0
- package/dist/LinearReadVsRef/index.d.ts +2 -0
- package/dist/LinearReadVsRef/index.js +55 -0
- package/dist/LinearReadVsRef/index.js.map +1 -0
- package/dist/LinearSyntenyDisplay/afterAttach.d.ts +2 -0
- package/dist/LinearSyntenyDisplay/afterAttach.js +108 -0
- package/dist/LinearSyntenyDisplay/afterAttach.js.map +1 -0
- package/dist/LinearSyntenyDisplay/components/Component.d.ts +6 -0
- package/dist/LinearSyntenyDisplay/components/Component.js +87 -0
- package/dist/LinearSyntenyDisplay/components/Component.js.map +1 -0
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +6 -0
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +160 -0
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js.map +1 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +7 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +83 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js.map +1 -0
- package/dist/LinearSyntenyDisplay/components/util.d.ts +27 -0
- package/dist/LinearSyntenyDisplay/components/util.js +84 -0
- package/dist/LinearSyntenyDisplay/components/util.js.map +1 -0
- package/dist/LinearSyntenyDisplay/configSchemaF.d.ts +23 -0
- package/dist/LinearSyntenyDisplay/configSchemaF.js +36 -0
- package/dist/LinearSyntenyDisplay/configSchemaF.js.map +1 -0
- package/dist/LinearSyntenyDisplay/drawSynteny.d.ts +5 -0
- package/dist/LinearSyntenyDisplay/drawSynteny.js +235 -0
- package/dist/LinearSyntenyDisplay/drawSynteny.js.map +1 -0
- package/dist/LinearSyntenyDisplay/index.d.ts +3 -0
- package/dist/LinearSyntenyDisplay/index.js +47 -0
- package/dist/LinearSyntenyDisplay/index.js.map +1 -0
- package/dist/LinearSyntenyDisplay/model.d.ts +333 -0
- package/dist/LinearSyntenyDisplay/model.js +179 -0
- package/dist/LinearSyntenyDisplay/model.js.map +1 -0
- package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +8 -0
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js +86 -0
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js.map +1 -0
- package/dist/LinearSyntenyView/components/Icons.d.ts +4 -0
- package/dist/LinearSyntenyView/components/Icons.js +19 -0
- package/dist/LinearSyntenyView/components/Icons.js.map +1 -0
- package/dist/LinearSyntenyView/components/ImportCustomTrack.d.ts +11 -0
- package/dist/LinearSyntenyView/components/ImportCustomTrack.js +180 -0
- package/dist/LinearSyntenyView/components/ImportCustomTrack.js.map +1 -0
- package/dist/LinearSyntenyView/components/ImportForm.d.ts +6 -0
- package/dist/LinearSyntenyView/components/ImportForm.js +127 -0
- package/dist/LinearSyntenyView/components/ImportForm.js.map +1 -0
- package/dist/LinearSyntenyView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/dist/LinearSyntenyView/components/ImportSyntenyTrackSelector.js +63 -0
- package/dist/LinearSyntenyView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +7 -0
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js +38 -0
- package/dist/LinearSyntenyView/components/LinearSyntenyView.js.map +1 -0
- package/dist/LinearSyntenyView/index.d.ts +3 -0
- package/dist/LinearSyntenyView/index.js +42 -0
- package/dist/LinearSyntenyView/index.js.map +1 -0
- package/dist/LinearSyntenyView/model.d.ts +754 -0
- package/dist/LinearSyntenyView/model.js +170 -0
- package/dist/LinearSyntenyView/model.js.map +1 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +6 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +13 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js.map +1 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +4 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +85 -0
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js.map +1 -0
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +5 -0
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +66 -0
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js.map +1 -0
- package/dist/SyntenyFeatureDetail/index.d.ts +3 -0
- package/dist/SyntenyFeatureDetail/index.js +58 -0
- package/dist/SyntenyFeatureDetail/index.js.map +1 -0
- package/dist/SyntenyTrack/configSchema.d.ts +75 -0
- package/dist/SyntenyTrack/configSchema.js +16 -0
- package/dist/SyntenyTrack/configSchema.js.map +1 -0
- package/dist/SyntenyTrack/index.d.ts +3 -0
- package/dist/SyntenyTrack/index.js +19 -0
- package/dist/SyntenyTrack/index.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/util.d.ts +25 -0
- package/dist/util.js +77 -0
- package/dist/util.js.map +1 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +52 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.js +16 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.js.map +1 -0
- package/esm/LGVSyntenyDisplay/index.d.ts +3 -0
- package/esm/LGVSyntenyDisplay/index.js +19 -0
- package/esm/LGVSyntenyDisplay/index.js.map +1 -0
- package/esm/LGVSyntenyDisplay/model.d.ts +380 -0
- package/esm/LGVSyntenyDisplay/model.js +152 -0
- package/esm/LGVSyntenyDisplay/model.js.map +1 -0
- package/esm/LaunchLinearSyntenyView.d.ts +2 -0
- package/esm/LaunchLinearSyntenyView.js +55 -0
- package/esm/LaunchLinearSyntenyView.js.map +1 -0
- package/esm/LinearComparativeDisplay/configSchemaF.d.ts +5 -0
- package/esm/LinearComparativeDisplay/configSchemaF.js +16 -0
- package/esm/LinearComparativeDisplay/configSchemaF.js.map +1 -0
- package/esm/LinearComparativeDisplay/index.d.ts +3 -0
- package/esm/LinearComparativeDisplay/index.js +19 -0
- package/esm/LinearComparativeDisplay/index.js.map +1 -0
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +275 -0
- package/esm/LinearComparativeDisplay/stateModelFactory.js +170 -0
- package/esm/LinearComparativeDisplay/stateModelFactory.js.map +1 -0
- package/esm/LinearComparativeView/components/Header.d.ts +7 -0
- package/esm/LinearComparativeView/components/Header.js +61 -0
- package/esm/LinearComparativeView/components/Header.js.map +1 -0
- package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +8 -0
- package/esm/LinearComparativeView/components/LinearComparativeView.js +94 -0
- package/esm/LinearComparativeView/components/LinearComparativeView.js.map +1 -0
- package/esm/LinearComparativeView/components/Rubberband.d.ts +9 -0
- package/esm/LinearComparativeView/components/Rubberband.js +200 -0
- package/esm/LinearComparativeView/components/Rubberband.js.map +1 -0
- package/esm/LinearComparativeView/index.d.ts +3 -0
- package/esm/LinearComparativeView/index.js +14 -0
- package/esm/LinearComparativeView/index.js.map +1 -0
- package/esm/LinearComparativeView/model.d.ts +326 -0
- package/esm/LinearComparativeView/model.js +318 -0
- package/esm/LinearComparativeView/model.js.map +1 -0
- package/esm/LinearReadVsRef/LinearReadVsRef.d.ts +7 -0
- package/esm/LinearReadVsRef/LinearReadVsRef.js +258 -0
- package/esm/LinearReadVsRef/LinearReadVsRef.js.map +1 -0
- package/esm/LinearReadVsRef/index.d.ts +2 -0
- package/esm/LinearReadVsRef/index.js +49 -0
- package/esm/LinearReadVsRef/index.js.map +1 -0
- package/esm/LinearSyntenyDisplay/afterAttach.d.ts +2 -0
- package/esm/LinearSyntenyDisplay/afterAttach.js +104 -0
- package/esm/LinearSyntenyDisplay/afterAttach.js.map +1 -0
- package/esm/LinearSyntenyDisplay/components/Component.d.ts +6 -0
- package/esm/LinearSyntenyDisplay/components/Component.js +59 -0
- package/esm/LinearSyntenyDisplay/components/Component.js.map +1 -0
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +6 -0
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +132 -0
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js.map +1 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +7 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +58 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js.map +1 -0
- package/esm/LinearSyntenyDisplay/components/util.d.ts +27 -0
- package/esm/LinearSyntenyDisplay/components/util.js +77 -0
- package/esm/LinearSyntenyDisplay/components/util.js.map +1 -0
- package/esm/LinearSyntenyDisplay/configSchemaF.d.ts +23 -0
- package/esm/LinearSyntenyDisplay/configSchemaF.js +31 -0
- package/esm/LinearSyntenyDisplay/configSchemaF.js.map +1 -0
- package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +5 -0
- package/esm/LinearSyntenyDisplay/drawSynteny.js +229 -0
- package/esm/LinearSyntenyDisplay/drawSynteny.js.map +1 -0
- package/esm/LinearSyntenyDisplay/index.d.ts +3 -0
- package/esm/LinearSyntenyDisplay/index.js +19 -0
- package/esm/LinearSyntenyDisplay/index.js.map +1 -0
- package/esm/LinearSyntenyDisplay/model.d.ts +333 -0
- package/esm/LinearSyntenyDisplay/model.js +151 -0
- package/esm/LinearSyntenyDisplay/model.js.map +1 -0
- package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +8 -0
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js +60 -0
- package/esm/LinearSyntenyView/components/ExportSvgDialog.js.map +1 -0
- package/esm/LinearSyntenyView/components/Icons.d.ts +4 -0
- package/esm/LinearSyntenyView/components/Icons.js +11 -0
- package/esm/LinearSyntenyView/components/Icons.js.map +1 -0
- package/esm/LinearSyntenyView/components/ImportCustomTrack.d.ts +11 -0
- package/esm/LinearSyntenyView/components/ImportCustomTrack.js +152 -0
- package/esm/LinearSyntenyView/components/ImportCustomTrack.js.map +1 -0
- package/esm/LinearSyntenyView/components/ImportForm.d.ts +6 -0
- package/esm/LinearSyntenyView/components/ImportForm.js +99 -0
- package/esm/LinearSyntenyView/components/ImportForm.js.map +1 -0
- package/esm/LinearSyntenyView/components/ImportSyntenyTrackSelector.d.ts +9 -0
- package/esm/LinearSyntenyView/components/ImportSyntenyTrackSelector.js +38 -0
- package/esm/LinearSyntenyView/components/ImportSyntenyTrackSelector.js.map +1 -0
- package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +7 -0
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js +10 -0
- package/esm/LinearSyntenyView/components/LinearSyntenyView.js.map +1 -0
- package/esm/LinearSyntenyView/index.d.ts +3 -0
- package/esm/LinearSyntenyView/index.js +14 -0
- package/esm/LinearSyntenyView/index.js.map +1 -0
- package/esm/LinearSyntenyView/model.d.ts +754 -0
- package/esm/LinearSyntenyView/model.js +141 -0
- package/esm/LinearSyntenyView/model.js.map +1 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +6 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js +7 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js.map +1 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.d.ts +4 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +78 -0
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js.map +1 -0
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +5 -0
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +38 -0
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js.map +1 -0
- package/esm/SyntenyFeatureDetail/index.d.ts +3 -0
- package/esm/SyntenyFeatureDetail/index.js +30 -0
- package/esm/SyntenyFeatureDetail/index.js.map +1 -0
- package/esm/SyntenyTrack/configSchema.d.ts +75 -0
- package/esm/SyntenyTrack/configSchema.js +14 -0
- package/esm/SyntenyTrack/configSchema.js.map +1 -0
- package/esm/SyntenyTrack/index.d.ts +3 -0
- package/esm/SyntenyTrack/index.js +14 -0
- package/esm/SyntenyTrack/index.js.map +1 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +41 -0
- package/esm/index.js.map +1 -0
- package/esm/util.d.ts +25 -0
- package/esm/util.js +69 -0
- package/esm/util.js.map +1 -0
- package/package.json +67 -0
- package/src/LGVSyntenyDisplay/configSchemaF.ts +22 -0
- package/src/LGVSyntenyDisplay/index.ts +20 -0
- package/src/LGVSyntenyDisplay/model.ts +177 -0
- package/src/LaunchLinearSyntenyView.ts +86 -0
- package/src/LinearComparativeDisplay/configSchemaF.ts +22 -0
- package/src/LinearComparativeDisplay/index.ts +21 -0
- package/src/LinearComparativeDisplay/stateModelFactory.ts +212 -0
- package/src/LinearComparativeView/components/Header.tsx +103 -0
- package/src/LinearComparativeView/components/LinearComparativeView.tsx +152 -0
- package/src/LinearComparativeView/components/Rubberband.tsx +329 -0
- package/src/LinearComparativeView/index.ts +15 -0
- package/src/LinearComparativeView/model.ts +395 -0
- package/src/LinearReadVsRef/LinearReadVsRef.tsx +360 -0
- package/src/LinearReadVsRef/index.ts +58 -0
- package/src/LinearSyntenyDisplay/afterAttach.ts +149 -0
- package/src/LinearSyntenyDisplay/components/Component.tsx +75 -0
- package/src/LinearSyntenyDisplay/components/LinearSyntenyRendering.tsx +200 -0
- package/src/LinearSyntenyDisplay/components/SyntenyTooltip.tsx +82 -0
- package/src/LinearSyntenyDisplay/components/util.ts +142 -0
- package/src/LinearSyntenyDisplay/configSchemaF.ts +38 -0
- package/src/LinearSyntenyDisplay/drawSynteny.ts +266 -0
- package/src/LinearSyntenyDisplay/index.ts +21 -0
- package/src/LinearSyntenyDisplay/model.ts +187 -0
- package/src/LinearSyntenyView/components/ExportSvgDialog.tsx +148 -0
- package/src/LinearSyntenyView/components/Icons.tsx +24 -0
- package/src/LinearSyntenyView/components/ImportCustomTrack.tsx +262 -0
- package/src/LinearSyntenyView/components/ImportForm.tsx +221 -0
- package/src/LinearSyntenyView/components/ImportSyntenyTrackSelector.tsx +82 -0
- package/src/LinearSyntenyView/components/LinearSyntenyView.tsx +20 -0
- package/src/LinearSyntenyView/index.ts +15 -0
- package/src/LinearSyntenyView/model.test.ts +1605 -0
- package/src/LinearSyntenyView/model.ts +169 -0
- package/src/LinearSyntenyView/svgcomponents/SVGBackground.tsx +21 -0
- package/src/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.tsx +176 -0
- package/src/SyntenyFeatureDetail/SyntenyFeatureDetail.tsx +64 -0
- package/src/SyntenyFeatureDetail/index.ts +36 -0
- package/src/SyntenyTrack/configSchema.ts +23 -0
- package/src/SyntenyTrack/index.tsx +15 -0
- package/src/index.tsx +42 -0
- package/src/util.ts +124 -0
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
3
|
+
import { MenuItem } from '@jbrowse/core/ui';
|
|
4
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
5
|
+
import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
|
|
6
|
+
/**
|
|
7
|
+
* #stateModel LinearComparativeView
|
|
8
|
+
*/
|
|
9
|
+
declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
10
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
11
|
+
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
12
|
+
minimized: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
13
|
+
} & {
|
|
14
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
15
|
+
type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
|
|
16
|
+
trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
17
|
+
showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
18
|
+
linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
19
|
+
interactToggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
20
|
+
middleComparativeHeight: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
21
|
+
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>;
|
|
22
|
+
views: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
23
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
24
|
+
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
25
|
+
minimized: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
26
|
+
} & {
|
|
27
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
28
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
29
|
+
offsetPx: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
30
|
+
bpPerPx: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
31
|
+
displayedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
32
|
+
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
33
|
+
start: import("mobx-state-tree").ISimpleType<number>;
|
|
34
|
+
end: import("mobx-state-tree").ISimpleType<number>;
|
|
35
|
+
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>; /**
|
|
36
|
+
* #getter
|
|
37
|
+
*/
|
|
38
|
+
} & {
|
|
39
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
40
|
+
}, {
|
|
41
|
+
setRefName(newRefName: string): void;
|
|
42
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
43
|
+
tracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>;
|
|
44
|
+
hideHeader: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
45
|
+
hideHeaderOverview: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>; /**
|
|
46
|
+
* #getter
|
|
47
|
+
*/
|
|
48
|
+
hideNoTracksActive: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
49
|
+
trackSelectorType: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
50
|
+
trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
51
|
+
showCenterLine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
52
|
+
showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
53
|
+
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
54
|
+
}, {
|
|
55
|
+
width: number;
|
|
56
|
+
} & {
|
|
57
|
+
menuItems(): MenuItem[];
|
|
58
|
+
} & {
|
|
59
|
+
setDisplayName(name: string): void;
|
|
60
|
+
setWidth(newWidth: number): void;
|
|
61
|
+
setMinimized(flag: boolean): void;
|
|
62
|
+
} & {
|
|
63
|
+
volatileWidth: number | undefined;
|
|
64
|
+
minimumBlockWidth: number;
|
|
65
|
+
draggingTrackId: string | undefined;
|
|
66
|
+
volatileError: Error | undefined;
|
|
67
|
+
afterDisplayedRegionsSetCallbacks: Function[];
|
|
68
|
+
scaleFactor: number;
|
|
69
|
+
trackRefs: {
|
|
70
|
+
[key: string]: HTMLDivElement;
|
|
71
|
+
};
|
|
72
|
+
coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
|
|
73
|
+
coarseTotalBp: number;
|
|
74
|
+
leftOffset: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined;
|
|
75
|
+
rightOffset: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined; /**
|
|
76
|
+
* #action
|
|
77
|
+
*/
|
|
78
|
+
} & {
|
|
79
|
+
readonly width: number;
|
|
80
|
+
readonly interRegionPaddingWidth: number;
|
|
81
|
+
readonly assemblyNames: string[];
|
|
82
|
+
} & {
|
|
83
|
+
MiniControlsComponent(): import("react").FC<any>;
|
|
84
|
+
HeaderComponent(): import("react").FC<any>;
|
|
85
|
+
readonly assemblyErrors: string;
|
|
86
|
+
readonly assembliesInitialized: boolean;
|
|
87
|
+
readonly initialized: boolean;
|
|
88
|
+
readonly hasDisplayedRegions: boolean;
|
|
89
|
+
readonly scaleBarHeight: number;
|
|
90
|
+
readonly headerHeight: number;
|
|
91
|
+
readonly trackHeights: number;
|
|
92
|
+
/**
|
|
93
|
+
* #action
|
|
94
|
+
*/
|
|
95
|
+
readonly trackHeightsWithResizeHandles: number;
|
|
96
|
+
readonly height: number;
|
|
97
|
+
readonly totalBp: number;
|
|
98
|
+
readonly maxBpPerPx: number;
|
|
99
|
+
readonly minBpPerPx: number;
|
|
100
|
+
readonly error: string | Error;
|
|
101
|
+
readonly maxOffset: number;
|
|
102
|
+
readonly minOffset: number;
|
|
103
|
+
readonly displayedRegionsTotalPx: number;
|
|
104
|
+
renderProps(): any;
|
|
105
|
+
searchScope(assemblyName: string): {
|
|
106
|
+
assemblyName: string;
|
|
107
|
+
includeAggregateIndexes: boolean;
|
|
108
|
+
tracks: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IAnyType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>>;
|
|
109
|
+
};
|
|
110
|
+
getTrack(id: string): any;
|
|
111
|
+
rankSearchResults(results: import("@jbrowse/core/TextSearch/BaseResults").default[]): import("@jbrowse/core/TextSearch/BaseResults").default[];
|
|
112
|
+
rewriteOnClicks(trackType: string, viewMenuActions: MenuItem[]): void;
|
|
113
|
+
readonly trackTypeActions: Map<string, MenuItem[]>;
|
|
114
|
+
} & {
|
|
115
|
+
setShowCytobands(flag: boolean): void;
|
|
116
|
+
setWidth(newWidth: number): void;
|
|
117
|
+
setError(error: Error | undefined): void;
|
|
118
|
+
toggleHeader(): void;
|
|
119
|
+
toggleHeaderOverview(): void;
|
|
120
|
+
toggleNoTracksActive(): void;
|
|
121
|
+
toggleShowGridlines(): void;
|
|
122
|
+
scrollTo(offsetPx: number): number;
|
|
123
|
+
zoomTo(bpPerPx: number, offset?: number | undefined, centerAtOffset?: boolean | undefined): number;
|
|
124
|
+
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): void;
|
|
125
|
+
setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string | undefined): void;
|
|
126
|
+
setNewView(bpPerPx: number, offsetPx: number): void;
|
|
127
|
+
horizontallyFlip(): void;
|
|
128
|
+
showTrack(trackId: string, initialSnapshot?: {} | undefined, displayInitialSnapshot?: {} | undefined): any;
|
|
129
|
+
hideTrack(trackId: string): number;
|
|
130
|
+
} & {
|
|
131
|
+
moveTrack(movingId: string, targetId: string): void;
|
|
132
|
+
closeView(): void;
|
|
133
|
+
toggleTrack(trackId: string): void;
|
|
134
|
+
setTrackLabels(setting: "offset" | "hidden" | "overlapping"): void;
|
|
135
|
+
toggleCenterLine(): void;
|
|
136
|
+
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
137
|
+
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
138
|
+
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): {
|
|
139
|
+
start: number;
|
|
140
|
+
end: number;
|
|
141
|
+
regionNumber?: number | undefined;
|
|
142
|
+
reversed?: boolean | undefined;
|
|
143
|
+
refName: string;
|
|
144
|
+
assemblyName: string;
|
|
145
|
+
key: string;
|
|
146
|
+
offsetPx: number;
|
|
147
|
+
widthPx: number;
|
|
148
|
+
variant?: string | undefined;
|
|
149
|
+
isLeftEndOfDisplayedRegion?: boolean | undefined;
|
|
150
|
+
}[];
|
|
151
|
+
afterDisplayedRegionsSet(cb: Function): void;
|
|
152
|
+
horizontalScroll(distance: number): number;
|
|
153
|
+
center(): void;
|
|
154
|
+
showAllRegions(): void;
|
|
155
|
+
showAllRegionsInAssembly(assemblyName?: string | undefined): void;
|
|
156
|
+
setDraggingTrackId(idx?: string | undefined): void;
|
|
157
|
+
setScaleFactor(factor: number): void;
|
|
158
|
+
clearView(): void;
|
|
159
|
+
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions | undefined): Promise<void>;
|
|
160
|
+
} & {
|
|
161
|
+
slide: (viewWidths: number) => void;
|
|
162
|
+
} & {
|
|
163
|
+
zoom: (targetBpPerPx: number) => void;
|
|
164
|
+
} & {
|
|
165
|
+
readonly canShowCytobands: boolean;
|
|
166
|
+
readonly showCytobands: boolean;
|
|
167
|
+
readonly anyCytobandsExist: boolean;
|
|
168
|
+
readonly cytobandOffset: number;
|
|
169
|
+
} & {
|
|
170
|
+
menuItems(): MenuItem[];
|
|
171
|
+
} & {
|
|
172
|
+
readonly staticBlocks: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
173
|
+
readonly dynamicBlocks: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
174
|
+
readonly roundedDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
|
|
175
|
+
readonly visibleLocStrings: string;
|
|
176
|
+
readonly coarseVisibleLocStrings: string;
|
|
177
|
+
} & {
|
|
178
|
+
setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
|
|
179
|
+
afterAttach(): void;
|
|
180
|
+
} & {
|
|
181
|
+
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): void;
|
|
182
|
+
navToLocString(input: string, optAssemblyName?: string | undefined): Promise<void>;
|
|
183
|
+
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string | undefined): Promise<void>;
|
|
184
|
+
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
185
|
+
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
186
|
+
} & {
|
|
187
|
+
rubberBandMenuItems(): MenuItem[];
|
|
188
|
+
bpToPx({ refName, coord, regionNumber, }: {
|
|
189
|
+
refName: string;
|
|
190
|
+
coord: number;
|
|
191
|
+
regionNumber?: number | undefined;
|
|
192
|
+
}): {
|
|
193
|
+
index: number;
|
|
194
|
+
offsetPx: number;
|
|
195
|
+
} | undefined;
|
|
196
|
+
centerAt(coord: number, refName: string, regionNumber: number): void;
|
|
197
|
+
pxToBp(px: number): {
|
|
198
|
+
coord: number;
|
|
199
|
+
index: number;
|
|
200
|
+
refName: string;
|
|
201
|
+
oob: boolean;
|
|
202
|
+
assemblyName: string;
|
|
203
|
+
offset: number;
|
|
204
|
+
start: number;
|
|
205
|
+
end: number;
|
|
206
|
+
reversed: boolean;
|
|
207
|
+
};
|
|
208
|
+
readonly centerLineInfo: {
|
|
209
|
+
coord: number;
|
|
210
|
+
index: number;
|
|
211
|
+
refName: string;
|
|
212
|
+
oob: boolean;
|
|
213
|
+
assemblyName: string;
|
|
214
|
+
offset: number;
|
|
215
|
+
start: number;
|
|
216
|
+
end: number;
|
|
217
|
+
reversed: boolean;
|
|
218
|
+
} | undefined;
|
|
219
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
220
|
+
viewTrackConfigs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
|
|
221
|
+
}, {
|
|
222
|
+
width: number;
|
|
223
|
+
} & {
|
|
224
|
+
menuItems(): MenuItem[];
|
|
225
|
+
} & {
|
|
226
|
+
setDisplayName(name: string): void;
|
|
227
|
+
setWidth(newWidth: number): void;
|
|
228
|
+
setMinimized(flag: boolean): void;
|
|
229
|
+
} & {
|
|
230
|
+
width: number | undefined;
|
|
231
|
+
} & {
|
|
232
|
+
/**
|
|
233
|
+
* #getter
|
|
234
|
+
*/
|
|
235
|
+
readonly highResolutionScaling: number;
|
|
236
|
+
/**
|
|
237
|
+
* #getter
|
|
238
|
+
*/
|
|
239
|
+
readonly initialized: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* #getter
|
|
242
|
+
*/
|
|
243
|
+
readonly refNames: string[][];
|
|
244
|
+
/**
|
|
245
|
+
* #getter
|
|
246
|
+
*/
|
|
247
|
+
readonly assemblyNames: string[];
|
|
248
|
+
} & {
|
|
249
|
+
afterAttach(): void;
|
|
250
|
+
beforeDestroy(): void;
|
|
251
|
+
onSubviewAction(actionName: string, path: string, args?: unknown[]): void;
|
|
252
|
+
/**
|
|
253
|
+
* #action
|
|
254
|
+
*/
|
|
255
|
+
setWidth(newWidth: number): void;
|
|
256
|
+
/**
|
|
257
|
+
* #action
|
|
258
|
+
*/
|
|
259
|
+
setViews(views: SnapshotIn<LinearGenomeViewModel>[]): void;
|
|
260
|
+
/**
|
|
261
|
+
* #action
|
|
262
|
+
*/
|
|
263
|
+
removeView(view: LinearGenomeViewModel): void;
|
|
264
|
+
/**
|
|
265
|
+
* #action
|
|
266
|
+
* removes the view itself from the state tree entirely by calling the
|
|
267
|
+
* parent removeView
|
|
268
|
+
*/
|
|
269
|
+
closeView(): void;
|
|
270
|
+
/**
|
|
271
|
+
* #action
|
|
272
|
+
*/
|
|
273
|
+
setMiddleComparativeHeight(n: number): number;
|
|
274
|
+
/**
|
|
275
|
+
* #action
|
|
276
|
+
*/
|
|
277
|
+
toggleLinkViews(): void;
|
|
278
|
+
/**
|
|
279
|
+
* #action
|
|
280
|
+
*/
|
|
281
|
+
activateTrackSelector(): import("@jbrowse/core/util").Widget | undefined;
|
|
282
|
+
/**
|
|
283
|
+
* #action
|
|
284
|
+
*/
|
|
285
|
+
toggleTrack(trackId: string): void;
|
|
286
|
+
/**
|
|
287
|
+
* #action
|
|
288
|
+
*/
|
|
289
|
+
showTrack(trackId: string, initialSnapshot?: {}): void;
|
|
290
|
+
/**
|
|
291
|
+
* #action
|
|
292
|
+
*/
|
|
293
|
+
hideTrack(trackId: string): number;
|
|
294
|
+
/**
|
|
295
|
+
* #action
|
|
296
|
+
*/
|
|
297
|
+
squareView(): void;
|
|
298
|
+
/**
|
|
299
|
+
* #action
|
|
300
|
+
*/
|
|
301
|
+
clearView(): void;
|
|
302
|
+
} & {
|
|
303
|
+
/**
|
|
304
|
+
* #method
|
|
305
|
+
* includes a subset of view menu options because the full list is a
|
|
306
|
+
* little overwhelming. overridden by subclasses
|
|
307
|
+
*/
|
|
308
|
+
headerMenuItems(): MenuItem[];
|
|
309
|
+
} & {
|
|
310
|
+
/**
|
|
311
|
+
* #method
|
|
312
|
+
*/
|
|
313
|
+
menuItems(): MenuItem[];
|
|
314
|
+
/**
|
|
315
|
+
* #method
|
|
316
|
+
*/
|
|
317
|
+
rubberBandMenuItems(): {
|
|
318
|
+
label: string;
|
|
319
|
+
onClick: () => void;
|
|
320
|
+
}[];
|
|
321
|
+
} & {
|
|
322
|
+
afterAttach(): void;
|
|
323
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
324
|
+
export type LinearComparativeViewStateModel = ReturnType<typeof stateModelFactory>;
|
|
325
|
+
export type LinearComparativeViewModel = Instance<LinearComparativeViewStateModel>;
|
|
326
|
+
export default stateModelFactory;
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
import { addDisposer, cast, getParent, getPath, getRoot, onAction, resolveIdentifier, types, } from 'mobx-state-tree';
|
|
3
|
+
import { autorun, transaction } from 'mobx';
|
|
4
|
+
// jbrowse
|
|
5
|
+
import BaseViewModel from '@jbrowse/core/pluggableElementTypes/models/BaseViewModel';
|
|
6
|
+
import { getSession, isSessionModelWithWidgets, avg } from '@jbrowse/core/util';
|
|
7
|
+
import { ElementId } from '@jbrowse/core/util/types/mst';
|
|
8
|
+
// icons
|
|
9
|
+
import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons';
|
|
10
|
+
import FolderOpenIcon from '@mui/icons-material/FolderOpen';
|
|
11
|
+
// lazies
|
|
12
|
+
const ReturnToImportFormDialog = lazy(() => import('@jbrowse/core/ui/ReturnToImportFormDialog'));
|
|
13
|
+
/**
|
|
14
|
+
* #stateModel LinearComparativeView
|
|
15
|
+
*/
|
|
16
|
+
function stateModelFactory(pluginManager) {
|
|
17
|
+
return types
|
|
18
|
+
.compose('LinearComparativeView', BaseViewModel, types.model({
|
|
19
|
+
/**
|
|
20
|
+
* #property
|
|
21
|
+
*/
|
|
22
|
+
id: ElementId,
|
|
23
|
+
/**
|
|
24
|
+
* #property
|
|
25
|
+
*/
|
|
26
|
+
type: types.literal('LinearComparativeView'),
|
|
27
|
+
/**
|
|
28
|
+
* #property
|
|
29
|
+
*/
|
|
30
|
+
trackSelectorType: 'hierarchical',
|
|
31
|
+
/**
|
|
32
|
+
* #property
|
|
33
|
+
*/
|
|
34
|
+
showIntraviewLinks: true,
|
|
35
|
+
/**
|
|
36
|
+
* #property
|
|
37
|
+
*/
|
|
38
|
+
linkViews: false,
|
|
39
|
+
/**
|
|
40
|
+
* #property
|
|
41
|
+
*/
|
|
42
|
+
interactToggled: false,
|
|
43
|
+
/**
|
|
44
|
+
* #property
|
|
45
|
+
*/
|
|
46
|
+
middleComparativeHeight: 100,
|
|
47
|
+
/**
|
|
48
|
+
* #property
|
|
49
|
+
*/
|
|
50
|
+
tracks: types.array(pluginManager.pluggableMstType('track', 'stateModel')),
|
|
51
|
+
/**
|
|
52
|
+
* #property
|
|
53
|
+
* currently this is limited to an array of two
|
|
54
|
+
*/
|
|
55
|
+
views: types.array(pluginManager.getViewType('LinearGenomeView')
|
|
56
|
+
.stateModel),
|
|
57
|
+
/**
|
|
58
|
+
* #property
|
|
59
|
+
* this represents tracks specific to this view specifically used
|
|
60
|
+
* for read vs ref dotplots where this track would not really apply
|
|
61
|
+
* elsewhere
|
|
62
|
+
*/
|
|
63
|
+
viewTrackConfigs: types.array(pluginManager.pluggableConfigSchemaType('track')),
|
|
64
|
+
}))
|
|
65
|
+
.volatile(() => ({
|
|
66
|
+
width: undefined,
|
|
67
|
+
}))
|
|
68
|
+
.views(self => ({
|
|
69
|
+
/**
|
|
70
|
+
* #getter
|
|
71
|
+
*/
|
|
72
|
+
get highResolutionScaling() {
|
|
73
|
+
return 2;
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* #getter
|
|
77
|
+
*/
|
|
78
|
+
get initialized() {
|
|
79
|
+
return (self.width !== undefined &&
|
|
80
|
+
self.views.length > 0 &&
|
|
81
|
+
self.views.every(view => view.initialized));
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* #getter
|
|
85
|
+
*/
|
|
86
|
+
get refNames() {
|
|
87
|
+
return self.views.map(v => [
|
|
88
|
+
...new Set(v.staticBlocks.map(m => m.refName)),
|
|
89
|
+
]);
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* #getter
|
|
93
|
+
*/
|
|
94
|
+
get assemblyNames() {
|
|
95
|
+
return [...new Set(self.views.flatMap(v => v.assemblyNames))];
|
|
96
|
+
},
|
|
97
|
+
}))
|
|
98
|
+
.actions(self => ({
|
|
99
|
+
afterAttach() {
|
|
100
|
+
addDisposer(self, onAction(self, param => {
|
|
101
|
+
if (self.linkViews) {
|
|
102
|
+
const { name, path, args } = param;
|
|
103
|
+
// doesn't link showTrack/hideTrack, doesn't make sense in
|
|
104
|
+
// synteny views most time
|
|
105
|
+
const actions = ['horizontalScroll', 'zoomTo', 'setScaleFactor'];
|
|
106
|
+
if (actions.includes(name) && path) {
|
|
107
|
+
this.onSubviewAction(name, path, args);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}));
|
|
111
|
+
},
|
|
112
|
+
// automatically removes session assemblies associated with this view
|
|
113
|
+
// e.g. read vs ref
|
|
114
|
+
beforeDestroy() {
|
|
115
|
+
const session = getSession(self);
|
|
116
|
+
self.assemblyNames.forEach(asm => session.removeTemporaryAssembly(asm));
|
|
117
|
+
},
|
|
118
|
+
onSubviewAction(actionName, path, args) {
|
|
119
|
+
self.views.forEach(view => {
|
|
120
|
+
const ret = getPath(view);
|
|
121
|
+
if (ret.lastIndexOf(path) !== ret.length - path.length) {
|
|
122
|
+
// @ts-expect-error
|
|
123
|
+
view[actionName](args === null || args === void 0 ? void 0 : args[0]);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* #action
|
|
129
|
+
*/
|
|
130
|
+
setWidth(newWidth) {
|
|
131
|
+
self.width = newWidth;
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* #action
|
|
135
|
+
*/
|
|
136
|
+
setViews(views) {
|
|
137
|
+
self.views = cast(views);
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* #action
|
|
141
|
+
*/
|
|
142
|
+
removeView(view) {
|
|
143
|
+
self.views.remove(view);
|
|
144
|
+
},
|
|
145
|
+
/**
|
|
146
|
+
* #action
|
|
147
|
+
* removes the view itself from the state tree entirely by calling the
|
|
148
|
+
* parent removeView
|
|
149
|
+
*/
|
|
150
|
+
closeView() {
|
|
151
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
152
|
+
getParent(self, 2).removeView(self);
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* #action
|
|
156
|
+
*/
|
|
157
|
+
setMiddleComparativeHeight(n) {
|
|
158
|
+
self.middleComparativeHeight = n;
|
|
159
|
+
return self.middleComparativeHeight;
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
* #action
|
|
163
|
+
*/
|
|
164
|
+
toggleLinkViews() {
|
|
165
|
+
self.linkViews = !self.linkViews;
|
|
166
|
+
},
|
|
167
|
+
/**
|
|
168
|
+
* #action
|
|
169
|
+
*/
|
|
170
|
+
activateTrackSelector() {
|
|
171
|
+
if (self.trackSelectorType === 'hierarchical') {
|
|
172
|
+
const session = getSession(self);
|
|
173
|
+
if (isSessionModelWithWidgets(session)) {
|
|
174
|
+
const selector = session.addWidget('HierarchicalTrackSelectorWidget', 'hierarchicalTrackSelector', { view: self });
|
|
175
|
+
session.showWidget(selector);
|
|
176
|
+
return selector;
|
|
177
|
+
}
|
|
178
|
+
return undefined;
|
|
179
|
+
}
|
|
180
|
+
throw new Error(`invalid track selector type ${self.trackSelectorType}`);
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* #action
|
|
184
|
+
*/
|
|
185
|
+
toggleTrack(trackId) {
|
|
186
|
+
// if we have any tracks with that configuration, turn them off
|
|
187
|
+
const hiddenCount = this.hideTrack(trackId);
|
|
188
|
+
// if none had that configuration, turn one on
|
|
189
|
+
if (!hiddenCount) {
|
|
190
|
+
this.showTrack(trackId);
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* #action
|
|
195
|
+
*/
|
|
196
|
+
showTrack(trackId, initialSnapshot = {}) {
|
|
197
|
+
const schema = pluginManager.pluggableConfigSchemaType('track');
|
|
198
|
+
const configuration = resolveIdentifier(schema, getRoot(self), trackId);
|
|
199
|
+
if (!configuration) {
|
|
200
|
+
throw new Error(`track not found ${trackId}`);
|
|
201
|
+
}
|
|
202
|
+
const trackType = pluginManager.getTrackType(configuration.type);
|
|
203
|
+
if (!trackType) {
|
|
204
|
+
throw new Error(`unknown track type ${configuration.type}`);
|
|
205
|
+
}
|
|
206
|
+
const viewType = pluginManager.getViewType(self.type);
|
|
207
|
+
const supportedDisplays = new Set(viewType.displayTypes.map(d => d.name));
|
|
208
|
+
const displayConf = configuration.displays.find((d) => supportedDisplays.has(d.type));
|
|
209
|
+
if (!displayConf) {
|
|
210
|
+
throw new Error(`could not find a compatible display for view type ${self.type}`);
|
|
211
|
+
}
|
|
212
|
+
self.tracks.push(trackType.stateModel.create({
|
|
213
|
+
...initialSnapshot,
|
|
214
|
+
type: configuration.type,
|
|
215
|
+
configuration,
|
|
216
|
+
displays: [{ type: displayConf.type, configuration: displayConf }],
|
|
217
|
+
}));
|
|
218
|
+
},
|
|
219
|
+
/**
|
|
220
|
+
* #action
|
|
221
|
+
*/
|
|
222
|
+
hideTrack(trackId) {
|
|
223
|
+
const schema = pluginManager.pluggableConfigSchemaType('track');
|
|
224
|
+
const config = resolveIdentifier(schema, getRoot(self), trackId);
|
|
225
|
+
const shownTracks = self.tracks.filter(t => t.configuration === config);
|
|
226
|
+
transaction(() => shownTracks.forEach(t => self.tracks.remove(t)));
|
|
227
|
+
return shownTracks.length;
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* #action
|
|
231
|
+
*/
|
|
232
|
+
squareView() {
|
|
233
|
+
const average = avg(self.views.map(v => v.bpPerPx));
|
|
234
|
+
self.views.forEach(view => {
|
|
235
|
+
const center = view.pxToBp(view.width / 2);
|
|
236
|
+
view.setNewView(average, view.offsetPx);
|
|
237
|
+
if (!center.refName) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
view.centerAt(center.coord, center.refName, center.index);
|
|
241
|
+
});
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* #action
|
|
245
|
+
*/
|
|
246
|
+
clearView() {
|
|
247
|
+
self.views = cast([]);
|
|
248
|
+
self.tracks = cast([]);
|
|
249
|
+
},
|
|
250
|
+
}))
|
|
251
|
+
.views(() => ({
|
|
252
|
+
/**
|
|
253
|
+
* #method
|
|
254
|
+
* includes a subset of view menu options because the full list is a
|
|
255
|
+
* little overwhelming. overridden by subclasses
|
|
256
|
+
*/
|
|
257
|
+
headerMenuItems() {
|
|
258
|
+
return [];
|
|
259
|
+
},
|
|
260
|
+
}))
|
|
261
|
+
.views(self => ({
|
|
262
|
+
/**
|
|
263
|
+
* #method
|
|
264
|
+
*/
|
|
265
|
+
menuItems() {
|
|
266
|
+
return [
|
|
267
|
+
...self.views
|
|
268
|
+
.map((view, idx) => { var _a; return [idx, (_a = view.menuItems) === null || _a === void 0 ? void 0 : _a.call(view)]; })
|
|
269
|
+
.filter(f => !!f[1])
|
|
270
|
+
.map(f => ({ label: `View ${f[0] + 1} Menu`, subMenu: f[1] })),
|
|
271
|
+
{
|
|
272
|
+
label: 'Return to import form',
|
|
273
|
+
onClick: () => {
|
|
274
|
+
getSession(self).queueDialog(handleClose => [
|
|
275
|
+
ReturnToImportFormDialog,
|
|
276
|
+
{ model: self, handleClose },
|
|
277
|
+
]);
|
|
278
|
+
},
|
|
279
|
+
icon: FolderOpenIcon,
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
label: 'Open track selector',
|
|
283
|
+
onClick: self.activateTrackSelector,
|
|
284
|
+
icon: TrackSelectorIcon,
|
|
285
|
+
},
|
|
286
|
+
];
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
* #method
|
|
290
|
+
*/
|
|
291
|
+
rubberBandMenuItems() {
|
|
292
|
+
return [
|
|
293
|
+
{
|
|
294
|
+
label: 'Zoom to region(s)',
|
|
295
|
+
onClick: () => {
|
|
296
|
+
self.views.forEach(view => {
|
|
297
|
+
const { leftOffset, rightOffset } = view;
|
|
298
|
+
if (leftOffset && rightOffset) {
|
|
299
|
+
view.moveTo(leftOffset, rightOffset);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
];
|
|
305
|
+
},
|
|
306
|
+
}))
|
|
307
|
+
.actions(self => ({
|
|
308
|
+
afterAttach() {
|
|
309
|
+
addDisposer(self, autorun(() => {
|
|
310
|
+
if (self.width) {
|
|
311
|
+
self.views.forEach(v => v.setWidth(self.width));
|
|
312
|
+
}
|
|
313
|
+
}));
|
|
314
|
+
},
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
export default stateModelFactory;
|
|
318
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/LinearComparativeView/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC5B,OAAO,EACL,WAAW,EACX,IAAI,EACJ,SAAS,EACT,OAAO,EACP,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,KAAK,GAGN,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAA;AAE3C,UAAU;AACV,OAAO,aAAa,MAAM,0DAA0D,CAAA;AAEpF,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAG/E,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAMxD,QAAQ;AACR,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC3E,OAAO,cAAc,MAAM,gCAAgC,CAAA;AAE3D,SAAS;AACT,MAAM,wBAAwB,GAAG,IAAI,CACnC,GAAG,EAAE,CAAC,MAAM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