react-msaview 2.1.5 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/index.js +37 -255
- package/dist/DialogQueue.d.ts +25 -0
- package/dist/DialogQueue.js +46 -0
- package/dist/DialogQueue.js.map +1 -0
- package/dist/UniprotTrack.js.map +1 -1
- package/dist/colorSchemes.js.map +1 -1
- package/dist/components/BoxTrackBlock.js +3 -2
- package/dist/components/BoxTrackBlock.js.map +1 -1
- package/dist/components/Header.js +12 -20
- package/dist/components/Header.js.map +1 -1
- package/dist/components/HeaderInfoArea.d.ts +6 -0
- package/dist/components/HeaderInfoArea.js +12 -0
- package/dist/components/HeaderInfoArea.js.map +1 -0
- package/dist/components/ImportForm/ImportFormExamples.d.ts +6 -0
- package/dist/components/ImportForm/ImportFormExamples.js +50 -0
- package/dist/components/ImportForm/ImportFormExamples.js.map +1 -0
- package/dist/components/ImportForm/data/seq2.js.map +1 -0
- package/dist/components/{ImportForm.d.ts → ImportForm/index.d.ts} +1 -1
- package/dist/components/ImportForm/index.js +31 -0
- package/dist/components/ImportForm/index.js.map +1 -0
- package/dist/components/ImportForm/util.d.ts +3 -0
- package/dist/components/ImportForm/util.js +15 -0
- package/dist/components/ImportForm/util.js.map +1 -0
- package/dist/components/MSAPanel/Loading.d.ts +2 -0
- package/dist/components/MSAPanel/Loading.js +12 -0
- package/dist/components/MSAPanel/Loading.js.map +1 -0
- package/dist/components/{MSABlock.d.ts → MSAPanel/MSABlock.d.ts} +1 -1
- package/dist/components/MSAPanel/MSABlock.js +46 -0
- package/dist/components/MSAPanel/MSABlock.js.map +1 -0
- package/dist/components/{MSACanvas.d.ts → MSAPanel/MSACanvas.d.ts} +1 -1
- package/dist/components/{MSACanvas.js → MSAPanel/MSACanvas.js} +2 -4
- package/dist/components/MSAPanel/MSACanvas.js.map +1 -0
- package/dist/components/{MSAMouseoverCanvas.d.ts → MSAPanel/MSAMouseoverCanvas.d.ts} +1 -1
- package/dist/components/MSAPanel/MSAMouseoverCanvas.js +29 -0
- package/dist/components/MSAPanel/MSAMouseoverCanvas.js.map +1 -0
- package/dist/components/MSAPanel/index.d.ts +5 -0
- package/dist/components/MSAPanel/index.js +9 -0
- package/dist/components/MSAPanel/index.js.map +1 -0
- package/dist/components/MSAPanel/renderMSABlock.d.ts +8 -0
- package/dist/components/MSAPanel/renderMSABlock.js +80 -0
- package/dist/components/MSAPanel/renderMSABlock.js.map +1 -0
- package/dist/components/MSAPanel/renderMSAMouseover.d.ts +5 -0
- package/dist/components/MSAPanel/renderMSAMouseover.js +24 -0
- package/dist/components/MSAPanel/renderMSAMouseover.js.map +1 -0
- package/dist/components/MSAView.d.ts +2 -2
- package/dist/components/MSAView.js +26 -31
- package/dist/components/MSAView.js.map +1 -1
- package/dist/components/Minimap.d.ts +6 -0
- package/dist/components/Minimap.js +72 -0
- package/dist/components/Minimap.js.map +1 -0
- package/dist/components/ResizeHandles.js.map +1 -1
- package/dist/components/TextTrack.js +3 -2
- package/dist/components/TextTrack.js.map +1 -1
- package/dist/components/Track.js +5 -5
- package/dist/components/Track.js.map +1 -1
- package/dist/components/{TreeBranchMenu.d.ts → TreePanel/TreeBranchMenu.d.ts} +1 -1
- package/dist/components/TreePanel/TreeBranchMenu.js.map +1 -0
- package/dist/components/{TreeCanvas.d.ts → TreePanel/TreeCanvas.d.ts} +1 -1
- package/dist/components/{TreeCanvas.js → TreePanel/TreeCanvas.js} +1 -1
- package/dist/components/TreePanel/TreeCanvas.js.map +1 -0
- package/dist/components/{TreeCanvasBlock.d.ts → TreePanel/TreeCanvasBlock.d.ts} +1 -1
- package/dist/components/TreePanel/TreeCanvasBlock.js +121 -0
- package/dist/components/TreePanel/TreeCanvasBlock.js.map +1 -0
- package/dist/components/{TreeMenu.d.ts → TreePanel/TreeNodeMenu.d.ts} +2 -1
- package/dist/components/{TreeMenu.js → TreePanel/TreeNodeMenu.js} +16 -8
- package/dist/components/TreePanel/TreeNodeMenu.js.map +1 -0
- package/dist/components/{TreeRuler.d.ts → TreePanel/TreeRuler.d.ts} +1 -1
- package/dist/components/TreePanel/TreeRuler.js +8 -0
- package/dist/components/TreePanel/TreeRuler.js.map +1 -0
- package/dist/components/{dialogs/TreeNodeInfoDlg.d.ts → TreePanel/dialogs/TreeNodeInfoDialog.d.ts} +1 -1
- package/dist/components/{dialogs/TreeNodeInfoDlg.js → TreePanel/dialogs/TreeNodeInfoDialog.js} +2 -2
- package/dist/components/TreePanel/dialogs/TreeNodeInfoDialog.js.map +1 -0
- package/dist/components/TreePanel/index.d.ts +6 -0
- package/dist/components/TreePanel/index.js +10 -0
- package/dist/components/TreePanel/index.js.map +1 -0
- package/dist/components/TreePanel/renderTreeCanvas.d.ts +41 -0
- package/dist/components/TreePanel/renderTreeCanvas.js +154 -0
- package/dist/components/TreePanel/renderTreeCanvas.js.map +1 -0
- package/dist/components/dialogs/{AboutDlg.js → AboutDialog.js} +1 -1
- package/dist/components/dialogs/AboutDialog.js.map +1 -0
- package/dist/components/dialogs/{AddTrackDlg.js → AddTrackDialog.js} +1 -1
- package/dist/components/dialogs/AddTrackDialog.js.map +1 -0
- package/dist/components/dialogs/{MetadataDlg.js → MetadataDialog.js} +1 -1
- package/dist/components/dialogs/MetadataDialog.js.map +1 -0
- package/dist/components/dialogs/SettingsDialog.js +63 -0
- package/dist/components/dialogs/SettingsDialog.js.map +1 -0
- package/dist/components/dialogs/{TrackInfoDlg.js → TrackInfoDialog.js} +1 -1
- package/dist/components/dialogs/TrackInfoDialog.js.map +1 -0
- package/dist/components/dialogs/{TracklistDlg.js → TracklistDialog.js} +1 -1
- package/dist/components/dialogs/TracklistDialog.js.map +1 -0
- package/dist/components/util.js.map +1 -1
- package/dist/layout.js.map +1 -1
- package/dist/model.d.ts +179 -88
- package/dist/model.js +287 -175
- package/dist/model.js.map +1 -1
- package/dist/parseNewick.js.map +1 -1
- package/dist/parsers/ClustalMSA.d.ts +1 -1
- package/dist/parsers/ClustalMSA.js +1 -1
- package/dist/parsers/ClustalMSA.js.map +1 -1
- package/dist/parsers/FastaMSA.d.ts +1 -1
- package/dist/parsers/FastaMSA.js +2 -2
- package/dist/parsers/FastaMSA.js.map +1 -1
- package/dist/parsers/StockholmMSA.d.ts +1 -1
- package/dist/parsers/StockholmMSA.js +2 -2
- package/dist/parsers/StockholmMSA.js.map +1 -1
- package/dist/util.d.ts +1 -0
- package/dist/util.js +15 -7
- package/dist/util.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -4
- package/src/DialogQueue.ts +47 -0
- package/src/components/BoxTrackBlock.tsx +3 -1
- package/src/components/Header.tsx +13 -20
- package/src/components/HeaderInfoArea.tsx +21 -0
- package/src/components/ImportForm/ImportFormExamples.tsx +133 -0
- package/src/components/ImportForm/index.tsx +63 -0
- package/src/components/ImportForm/util.ts +20 -0
- package/src/components/MSAPanel/Loading.tsx +16 -0
- package/src/components/MSAPanel/MSABlock.tsx +81 -0
- package/src/components/{MSACanvas.tsx → MSAPanel/MSACanvas.tsx} +3 -6
- package/src/components/MSAPanel/MSAMouseoverCanvas.tsx +44 -0
- package/src/components/MSAPanel/index.tsx +13 -0
- package/src/components/MSAPanel/renderMSABlock.ts +158 -0
- package/src/components/MSAPanel/renderMSAMouseover.ts +51 -0
- package/src/components/MSAView.tsx +36 -56
- package/src/components/Minimap.tsx +102 -0
- package/src/components/TextTrack.tsx +3 -1
- package/src/components/Track.tsx +5 -5
- package/src/components/{TreeBranchMenu.tsx → TreePanel/TreeBranchMenu.tsx} +1 -1
- package/src/components/{TreeCanvas.tsx → TreePanel/TreeCanvas.tsx} +2 -3
- package/src/components/TreePanel/TreeCanvasBlock.tsx +195 -0
- package/src/components/{TreeMenu.tsx → TreePanel/TreeNodeMenu.tsx} +21 -8
- package/src/components/{TreeRuler.tsx → TreePanel/TreeRuler.tsx} +3 -3
- package/src/components/{dialogs/TreeNodeInfoDlg.tsx → TreePanel/dialogs/TreeNodeInfoDialog.tsx} +2 -2
- package/src/components/TreePanel/index.tsx +16 -0
- package/src/components/TreePanel/renderTreeCanvas.ts +254 -0
- package/src/components/dialogs/SettingsDialog.tsx +196 -0
- package/src/model.ts +414 -211
- package/src/parsers/ClustalMSA.ts +1 -1
- package/src/parsers/FastaMSA.ts +1 -1
- package/src/parsers/StockholmMSA.ts +1 -1
- package/src/util.ts +19 -6
- package/src/version.ts +1 -1
- package/dist/components/ImportForm.js +0 -84
- package/dist/components/ImportForm.js.map +0 -1
- package/dist/components/MSABlock.js +0 -103
- package/dist/components/MSABlock.js.map +0 -1
- package/dist/components/MSACanvas.js.map +0 -1
- package/dist/components/MSAMouseoverCanvas.js +0 -61
- package/dist/components/MSAMouseoverCanvas.js.map +0 -1
- package/dist/components/Rubberband.d.ts +0 -8
- package/dist/components/Rubberband.js +0 -173
- package/dist/components/Rubberband.js.map +0 -1
- package/dist/components/Ruler.d.ts +0 -6
- package/dist/components/Ruler.js +0 -52
- package/dist/components/Ruler.js.map +0 -1
- package/dist/components/TreeBranchMenu.js.map +0 -1
- package/dist/components/TreeCanvas.js.map +0 -1
- package/dist/components/TreeCanvasBlock.js +0 -255
- package/dist/components/TreeCanvasBlock.js.map +0 -1
- package/dist/components/TreeMenu.js.map +0 -1
- package/dist/components/TreeRuler.js +0 -8
- package/dist/components/TreeRuler.js.map +0 -1
- package/dist/components/data/seq2.js.map +0 -1
- package/dist/components/dialogs/AboutDlg.js.map +0 -1
- package/dist/components/dialogs/AddTrackDlg.js.map +0 -1
- package/dist/components/dialogs/AnnotationDlg.d.ts +0 -11
- package/dist/components/dialogs/AnnotationDlg.js +0 -65
- package/dist/components/dialogs/AnnotationDlg.js.map +0 -1
- package/dist/components/dialogs/MetadataDlg.js.map +0 -1
- package/dist/components/dialogs/SettingsDlg.js +0 -48
- package/dist/components/dialogs/SettingsDlg.js.map +0 -1
- package/dist/components/dialogs/TrackInfoDlg.js.map +0 -1
- package/dist/components/dialogs/TracklistDlg.js.map +0 -1
- package/dist/components/dialogs/TreeNodeInfoDlg.js.map +0 -1
- package/src/components/ImportForm.tsx +0 -192
- package/src/components/MSABlock.tsx +0 -164
- package/src/components/MSAMouseoverCanvas.tsx +0 -99
- package/src/components/Rubberband.tsx +0 -270
- package/src/components/Ruler.tsx +0 -123
- package/src/components/TreeCanvasBlock.tsx +0 -363
- package/src/components/dialogs/AnnotationDlg.tsx +0 -144
- package/src/components/dialogs/SettingsDlg.tsx +0 -154
- /package/dist/components/{data → ImportForm/data}/seq2.d.ts +0 -0
- /package/dist/components/{data → ImportForm/data}/seq2.js +0 -0
- /package/dist/components/{TreeBranchMenu.js → TreePanel/TreeBranchMenu.js} +0 -0
- /package/dist/components/dialogs/{AboutDlg.d.ts → AboutDialog.d.ts} +0 -0
- /package/dist/components/dialogs/{AddTrackDlg.d.ts → AddTrackDialog.d.ts} +0 -0
- /package/dist/components/dialogs/{MetadataDlg.d.ts → MetadataDialog.d.ts} +0 -0
- /package/dist/components/dialogs/{SettingsDlg.d.ts → SettingsDialog.d.ts} +0 -0
- /package/dist/components/dialogs/{TrackInfoDlg.d.ts → TrackInfoDialog.d.ts} +0 -0
- /package/dist/components/dialogs/{TracklistDlg.d.ts → TracklistDialog.d.ts} +0 -0
- /package/src/components/{data → ImportForm/data}/seq2.ts +0 -0
- /package/src/components/dialogs/{AboutDlg.tsx → AboutDialog.tsx} +0 -0
- /package/src/components/dialogs/{AddTrackDlg.tsx → AddTrackDialog.tsx} +0 -0
- /package/src/components/dialogs/{MetadataDlg.tsx → MetadataDialog.tsx} +0 -0
- /package/src/components/dialogs/{TrackInfoDlg.tsx → TrackInfoDialog.tsx} +0 -0
- /package/src/components/dialogs/{TracklistDlg.tsx → TracklistDialog.tsx} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/components/util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,KAAa,EACb,eAAuB,EACvB,eAAuB;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EAAE,CAAC,CAAA;QAC9C,IAAI,cAAc,EAAE,CAAC;YACnB,OAAO,cAAc,CAAC,IAAI,CAAA;QAC5B,CAAC;QAED,IAAI,UAAU,GAAG,CAAC,CAAA;QAClB,OACE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;YAClB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,UAAU,GAAG,MAAM;SAC1B,CAAC;YACF,UAAU,IAAI,IAAI,CAAC,SAAS,EAC5B,CAAC;YACD,UAAU,IAAI,CAAC,CAAA;QACjB,CAAC;QAED,MAAM,MAAM,GAAG;YACb,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,UAAU,GAAG,MAAM;YACzB,EAAE;YACF,IAAI;SACL,CAAA;QACD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACzB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;QAC/B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;QAC3D,OAAO,UAAU,CAAA;IACnB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAA;IAC1B,CAAC;CACF"}
|
package/dist/model.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
3
3
|
import { HierarchyNode } from 'd3-hierarchy';
|
|
4
4
|
import { FileLocation as FileLocationType } from '@jbrowse/core/util/types';
|
|
5
|
+
import { NodeWithIds, NodeWithIdsAndLength } from './util';
|
|
6
|
+
import ClustalMSA from './parsers/ClustalMSA';
|
|
7
|
+
import StockholmMSA from './parsers/StockholmMSA';
|
|
8
|
+
import FastaMSA from './parsers/FastaMSA';
|
|
9
|
+
import { StructureModel } from './StructureModel';
|
|
5
10
|
export interface RowDetails {
|
|
6
11
|
[key: string]: unknown;
|
|
7
12
|
name: string;
|
|
@@ -10,17 +15,17 @@ export interface RowDetails {
|
|
|
10
15
|
end: number;
|
|
11
16
|
};
|
|
12
17
|
}
|
|
13
|
-
import { NodeWithIds, NodeWithIdsAndLength } from './util';
|
|
14
|
-
import ClustalMSA from './parsers/ClustalMSA';
|
|
15
|
-
import StockholmMSA from './parsers/StockholmMSA';
|
|
16
|
-
import FastaMSA from './parsers/FastaMSA';
|
|
17
|
-
import { StructureModel } from './StructureModel';
|
|
18
18
|
interface BasicTrackModel {
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
associatedRowName?: string;
|
|
22
22
|
height: number;
|
|
23
23
|
}
|
|
24
|
+
interface Structure {
|
|
25
|
+
pdb: string;
|
|
26
|
+
startPos: number;
|
|
27
|
+
endPos: number;
|
|
28
|
+
}
|
|
24
29
|
export interface TextTrackModel extends BasicTrackModel {
|
|
25
30
|
customColorScheme?: Record<string, string>;
|
|
26
31
|
data: string;
|
|
@@ -41,6 +46,7 @@ export interface IBoxTrack {
|
|
|
41
46
|
}
|
|
42
47
|
type BasicTrack = IBoxTrack | ITextTrack;
|
|
43
48
|
type StructureSnap = SnapshotIn<typeof StructureModel>;
|
|
49
|
+
export type DialogComponentType = React.LazyExoticComponent<React.FC<any>> | React.FC<any>;
|
|
44
50
|
declare const model: import("mobx-state-tree").IModelType<{
|
|
45
51
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
46
52
|
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -51,13 +57,10 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
51
57
|
height: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
52
58
|
treeAreaWidth: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
53
59
|
treeWidth: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
60
|
+
treeWidthMatchesArea: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
54
61
|
rowHeight: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
55
62
|
scrollY: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
56
63
|
scrollX: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
57
|
-
resizeHandleWidth: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
58
|
-
blockSize: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
59
|
-
mouseRow: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
60
|
-
mouseCol: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
61
64
|
selectedStructures: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
62
65
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
63
66
|
structure: import("mobx-state-tree").IModelType<{
|
|
@@ -76,6 +79,11 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
76
79
|
highResScaleFactor: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
77
80
|
colorSchemeName: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
78
81
|
treeFilehandle: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISnapshotProcessor<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
82
|
+
/**
|
|
83
|
+
* #property
|
|
84
|
+
* high resolution scale factor, helps make canvas look better on hi-dpi
|
|
85
|
+
* screens
|
|
86
|
+
*/
|
|
79
87
|
locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
|
|
80
88
|
uri: import("mobx-state-tree").ISimpleType<string>;
|
|
81
89
|
baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -105,21 +113,20 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
105
113
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
106
114
|
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
107
115
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
108
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
109
|
-
* #action
|
|
110
|
-
*/
|
|
116
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
111
117
|
}>, import("mobx-state-tree").ModelInstanceType<{
|
|
112
118
|
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
113
119
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
114
120
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
115
121
|
}, {}> | import("mobx-state-tree").ModelInstanceType<{
|
|
116
122
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
117
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
118
|
-
* #action
|
|
119
|
-
*/
|
|
123
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
120
124
|
}, {}> | ({
|
|
121
125
|
locationType: "UriLocation";
|
|
122
|
-
uri: string;
|
|
126
|
+
uri: string; /**
|
|
127
|
+
* #volatile
|
|
128
|
+
* the currently mouse-hovered row
|
|
129
|
+
*/
|
|
123
130
|
} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
124
131
|
locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
|
|
125
132
|
uri: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -128,9 +135,17 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
128
135
|
internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
129
136
|
internetAccountType: import("mobx-state-tree").ISimpleType<string>;
|
|
130
137
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
131
|
-
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
138
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>; /**
|
|
139
|
+
* #action
|
|
140
|
+
* set the height of the view in px
|
|
141
|
+
*/
|
|
132
142
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject)>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
133
143
|
msaFilehandle: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISnapshotProcessor<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
144
|
+
/**
|
|
145
|
+
* #property
|
|
146
|
+
* high resolution scale factor, helps make canvas look better on hi-dpi
|
|
147
|
+
* screens
|
|
148
|
+
*/
|
|
134
149
|
locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
|
|
135
150
|
uri: import("mobx-state-tree").ISimpleType<string>;
|
|
136
151
|
baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -160,21 +175,20 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
160
175
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
161
176
|
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
162
177
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
163
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
164
|
-
* #action
|
|
165
|
-
*/
|
|
178
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
166
179
|
}>, import("mobx-state-tree").ModelInstanceType<{
|
|
167
180
|
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
168
181
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
169
182
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
170
183
|
}, {}> | import("mobx-state-tree").ModelInstanceType<{
|
|
171
184
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
172
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
173
|
-
* #action
|
|
174
|
-
*/
|
|
185
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
175
186
|
}, {}> | ({
|
|
176
187
|
locationType: "UriLocation";
|
|
177
|
-
uri: string;
|
|
188
|
+
uri: string; /**
|
|
189
|
+
* #volatile
|
|
190
|
+
* the currently mouse-hovered row
|
|
191
|
+
*/
|
|
178
192
|
} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
179
193
|
locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
|
|
180
194
|
uri: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -183,9 +197,17 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
183
197
|
internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
184
198
|
internetAccountType: import("mobx-state-tree").ISimpleType<string>;
|
|
185
199
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
186
|
-
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
200
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>; /**
|
|
201
|
+
* #action
|
|
202
|
+
* set the height of the view in px
|
|
203
|
+
*/
|
|
187
204
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject)>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
188
205
|
treeMetadataFilehandle: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISnapshotProcessor<import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
206
|
+
/**
|
|
207
|
+
* #property
|
|
208
|
+
* high resolution scale factor, helps make canvas look better on hi-dpi
|
|
209
|
+
* screens
|
|
210
|
+
*/
|
|
189
211
|
locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
|
|
190
212
|
uri: import("mobx-state-tree").ISimpleType<string>;
|
|
191
213
|
baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -215,21 +237,20 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
215
237
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
216
238
|
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
217
239
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
218
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
219
|
-
* #action
|
|
220
|
-
*/
|
|
240
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
221
241
|
}>, import("mobx-state-tree").ModelInstanceType<{
|
|
222
242
|
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
223
243
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
224
244
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
225
245
|
}, {}> | import("mobx-state-tree").ModelInstanceType<{
|
|
226
246
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
227
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
228
|
-
* #action
|
|
229
|
-
*/
|
|
247
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
230
248
|
}, {}> | ({
|
|
231
249
|
locationType: "UriLocation";
|
|
232
|
-
uri: string;
|
|
250
|
+
uri: string; /**
|
|
251
|
+
* #volatile
|
|
252
|
+
* the currently mouse-hovered row
|
|
253
|
+
*/
|
|
233
254
|
} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
234
255
|
locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
|
|
235
256
|
uri: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -238,10 +259,14 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
238
259
|
internetAccountPreAuthorization: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
239
260
|
internetAccountType: import("mobx-state-tree").ISimpleType<string>;
|
|
240
261
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
241
|
-
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
262
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>; /**
|
|
263
|
+
* #action
|
|
264
|
+
* set the height of the view in px
|
|
265
|
+
*/
|
|
242
266
|
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject)>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
243
267
|
currentAlignment: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
244
268
|
collapsed: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
269
|
+
hidden: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
245
270
|
showOnly: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
246
271
|
boxTracks: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
247
272
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -271,11 +296,6 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
271
296
|
}[] | undefined;
|
|
272
297
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
273
298
|
turnedOffTracks: import("mobx-state-tree").IMapType<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
274
|
-
annotatedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
275
|
-
start: import("mobx-state-tree").ISimpleType<number>;
|
|
276
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
277
|
-
attributes: import("mobx-state-tree").IType<Record<string, string[]>, Record<string, string[]>, Record<string, string[]>>;
|
|
278
|
-
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
279
299
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
280
300
|
tree: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
281
301
|
msa: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -294,14 +314,58 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
294
314
|
setWidth(newWidth: number): void;
|
|
295
315
|
setMinimized(flag: boolean): void;
|
|
296
316
|
} & {
|
|
297
|
-
|
|
317
|
+
queueOfDialogs: [import("@jbrowse/core/util").DialogComponentType, any][];
|
|
318
|
+
} & {
|
|
319
|
+
readonly DialogComponent: import("@jbrowse/core/util").DialogComponentType;
|
|
320
|
+
readonly DialogProps: any;
|
|
321
|
+
} & {
|
|
322
|
+
removeActiveDialog(): void;
|
|
323
|
+
queueDialog(cb: (doneCallback: () => void) => [import("@jbrowse/core/util").DialogComponentType, unknown]): void;
|
|
324
|
+
} & {
|
|
325
|
+
/**
|
|
326
|
+
* #volatile
|
|
327
|
+
* resize handle width between tree and msa area, px
|
|
328
|
+
*/
|
|
329
|
+
resizeHandleWidth: number;
|
|
330
|
+
/**
|
|
331
|
+
* #volatile
|
|
332
|
+
* size of blocks of content to be drawn, px
|
|
333
|
+
*/
|
|
334
|
+
blockSize: number;
|
|
335
|
+
/**
|
|
336
|
+
* #volatile
|
|
337
|
+
* the currently mouse-hovered row
|
|
338
|
+
*/
|
|
339
|
+
mouseRow: number | undefined;
|
|
340
|
+
/**
|
|
341
|
+
* #volatile
|
|
342
|
+
* the currently mouse-hovered column
|
|
343
|
+
*/
|
|
344
|
+
mouseCol: number | undefined;
|
|
345
|
+
/**
|
|
346
|
+
* #volatile
|
|
347
|
+
* a dummy variable that is incremented when ref changes so autorun for
|
|
348
|
+
* drawing canvas commands will run
|
|
349
|
+
*/
|
|
350
|
+
nref: number;
|
|
351
|
+
/**
|
|
352
|
+
* #volatile
|
|
353
|
+
*/
|
|
354
|
+
minimapHeight: number;
|
|
355
|
+
/**
|
|
356
|
+
* #volatile
|
|
357
|
+
*/
|
|
298
358
|
error: unknown;
|
|
359
|
+
/**
|
|
360
|
+
* #volatile
|
|
361
|
+
*/
|
|
299
362
|
margin: {
|
|
300
363
|
left: number;
|
|
301
364
|
top: number;
|
|
302
365
|
};
|
|
303
|
-
|
|
304
|
-
|
|
366
|
+
/**
|
|
367
|
+
* #volatile
|
|
368
|
+
*/
|
|
305
369
|
annotPos: {
|
|
306
370
|
left: number;
|
|
307
371
|
right: number;
|
|
@@ -309,22 +373,22 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
309
373
|
} & {
|
|
310
374
|
/**
|
|
311
375
|
* #action
|
|
312
|
-
|
|
313
|
-
setDialogComponent(dlg?: React.FC<any>, props?: any): void;
|
|
314
|
-
/**
|
|
315
|
-
* #action
|
|
376
|
+
* set the height of the view in px
|
|
316
377
|
*/
|
|
317
378
|
setHeight(height: number): void;
|
|
318
379
|
/**
|
|
319
380
|
* #action
|
|
381
|
+
* add to the selected structures
|
|
320
382
|
*/
|
|
321
383
|
addStructureToSelection(elt: StructureSnap): void;
|
|
322
384
|
/**
|
|
323
385
|
* #action
|
|
386
|
+
* remove from the selected structures
|
|
324
387
|
*/
|
|
325
388
|
removeStructureFromSelection(elt: StructureSnap): void;
|
|
326
389
|
/**
|
|
327
390
|
* #action
|
|
391
|
+
* toggle a structure from the selected structures list
|
|
328
392
|
*/
|
|
329
393
|
toggleStructureSelection(elt: {
|
|
330
394
|
id: string;
|
|
@@ -336,56 +400,75 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
336
400
|
}): void;
|
|
337
401
|
/**
|
|
338
402
|
* #action
|
|
403
|
+
* clear all selected structures
|
|
339
404
|
*/
|
|
340
405
|
clearSelectedStructures(): void;
|
|
341
406
|
/**
|
|
342
407
|
* #action
|
|
408
|
+
* set error state
|
|
343
409
|
*/
|
|
344
410
|
setError(error?: unknown): void;
|
|
345
411
|
/**
|
|
346
412
|
* #action
|
|
413
|
+
* set mouse position (row, column) in the MSA
|
|
347
414
|
*/
|
|
348
415
|
setMousePos(col?: number, row?: number): void;
|
|
349
416
|
/**
|
|
350
417
|
* #action
|
|
418
|
+
* set row height (px)
|
|
351
419
|
*/
|
|
352
420
|
setRowHeight(n: number): void;
|
|
353
421
|
/**
|
|
354
422
|
* #action
|
|
423
|
+
* set col width (px)
|
|
355
424
|
*/
|
|
356
425
|
setColWidth(n: number): void;
|
|
357
426
|
/**
|
|
358
427
|
* #action
|
|
428
|
+
* set color scheme name
|
|
359
429
|
*/
|
|
360
430
|
setColorSchemeName(name: string): void;
|
|
361
431
|
/**
|
|
362
432
|
* #action
|
|
433
|
+
* synchronize the treewidth and treeareawidth
|
|
363
434
|
*/
|
|
364
|
-
|
|
435
|
+
setTreeWidthMatchesArea(arg: boolean): void;
|
|
365
436
|
/**
|
|
366
437
|
* #action
|
|
438
|
+
* set scroll Y-offset (px)
|
|
367
439
|
*/
|
|
368
|
-
|
|
440
|
+
setScrollY(n: number): void;
|
|
369
441
|
/**
|
|
370
442
|
* #action
|
|
443
|
+
* set tree area width (px)
|
|
371
444
|
*/
|
|
372
445
|
setTreeAreaWidth(n: number): void;
|
|
373
446
|
/**
|
|
374
447
|
* #action
|
|
448
|
+
* set tree width (px)
|
|
375
449
|
*/
|
|
376
450
|
setTreeWidth(n: number): void;
|
|
377
451
|
/**
|
|
378
452
|
* #action
|
|
453
|
+
*
|
|
379
454
|
*/
|
|
380
455
|
setCurrentAlignment(n: number): void;
|
|
381
456
|
/**
|
|
382
457
|
* #action
|
|
383
458
|
*/
|
|
384
|
-
|
|
459
|
+
setLabelsAlignRight(arg: boolean): void;
|
|
385
460
|
/**
|
|
386
461
|
* #action
|
|
387
462
|
*/
|
|
388
|
-
|
|
463
|
+
setDrawTree(arg: boolean): void;
|
|
464
|
+
/**
|
|
465
|
+
* #action
|
|
466
|
+
*/
|
|
467
|
+
hideNode(arg: string): void;
|
|
468
|
+
/**
|
|
469
|
+
* #action
|
|
470
|
+
*/
|
|
471
|
+
clearHidden(): void;
|
|
389
472
|
/**
|
|
390
473
|
* #action
|
|
391
474
|
*/
|
|
@@ -397,15 +480,15 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
397
480
|
/**
|
|
398
481
|
* #action
|
|
399
482
|
*/
|
|
400
|
-
|
|
483
|
+
setShowBranchLen(arg: boolean): void;
|
|
401
484
|
/**
|
|
402
485
|
* #action
|
|
403
486
|
*/
|
|
404
|
-
|
|
487
|
+
setBgColor(arg: boolean): void;
|
|
405
488
|
/**
|
|
406
489
|
* #action
|
|
407
490
|
*/
|
|
408
|
-
|
|
491
|
+
setDrawNodeBubbles(arg: boolean): void;
|
|
409
492
|
/**
|
|
410
493
|
* #action
|
|
411
494
|
*/
|
|
@@ -433,7 +516,6 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
433
516
|
* #action
|
|
434
517
|
*/
|
|
435
518
|
setTreeMetadata(result: string): void;
|
|
436
|
-
afterCreate(): void;
|
|
437
519
|
} & {
|
|
438
520
|
/**
|
|
439
521
|
* #getter
|
|
@@ -509,14 +591,15 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
509
591
|
/**
|
|
510
592
|
* #getter
|
|
511
593
|
*/
|
|
512
|
-
readonly
|
|
594
|
+
readonly _tree: NodeWithIds;
|
|
513
595
|
/**
|
|
514
596
|
* #getter
|
|
515
597
|
*/
|
|
516
598
|
readonly rowNames: string[];
|
|
517
599
|
/**
|
|
518
600
|
* #getter
|
|
519
|
-
*/
|
|
601
|
+
*/
|
|
602
|
+
readonly mouseOverRowName: string | undefined;
|
|
520
603
|
/**
|
|
521
604
|
* #method
|
|
522
605
|
*/
|
|
@@ -528,11 +611,7 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
528
611
|
/**
|
|
529
612
|
* #getter
|
|
530
613
|
*/
|
|
531
|
-
readonly structures: Record<string,
|
|
532
|
-
pdb: string;
|
|
533
|
-
startPos: number;
|
|
534
|
-
endPos: number;
|
|
535
|
-
}[]>;
|
|
614
|
+
readonly structures: Record<string, Structure[]>;
|
|
536
615
|
/**
|
|
537
616
|
* #getter
|
|
538
617
|
*/
|
|
@@ -543,6 +622,7 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
543
622
|
};
|
|
544
623
|
/**
|
|
545
624
|
* #getter
|
|
625
|
+
* widget width minus the tree area gives the space for the MSA
|
|
546
626
|
*/
|
|
547
627
|
readonly msaAreaWidth: number;
|
|
548
628
|
/**
|
|
@@ -552,7 +632,7 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
552
632
|
/**
|
|
553
633
|
* #getter
|
|
554
634
|
*/
|
|
555
|
-
readonly rows: [string, string
|
|
635
|
+
readonly rows: [string, string][];
|
|
556
636
|
/**
|
|
557
637
|
* #getter
|
|
558
638
|
*/
|
|
@@ -563,6 +643,10 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
563
643
|
* #getter
|
|
564
644
|
*/
|
|
565
645
|
readonly columns2d: string[];
|
|
646
|
+
/**
|
|
647
|
+
* #getter
|
|
648
|
+
*/
|
|
649
|
+
readonly fontSize: number;
|
|
566
650
|
/**
|
|
567
651
|
* #getter
|
|
568
652
|
*/
|
|
@@ -592,6 +676,10 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
592
676
|
* #action
|
|
593
677
|
*/
|
|
594
678
|
doScrollX(deltaX: number): void;
|
|
679
|
+
/**
|
|
680
|
+
* #action
|
|
681
|
+
*/
|
|
682
|
+
setScrollX(n: number): void;
|
|
595
683
|
/**
|
|
596
684
|
* #action
|
|
597
685
|
*/
|
|
@@ -601,6 +689,10 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
601
689
|
*/
|
|
602
690
|
toggleTrack(id: string): void;
|
|
603
691
|
} & {
|
|
692
|
+
/**
|
|
693
|
+
* #getter
|
|
694
|
+
*/
|
|
695
|
+
readonly labelsWidth: number;
|
|
604
696
|
/**
|
|
605
697
|
* #getter
|
|
606
698
|
*/
|
|
@@ -613,6 +705,14 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
613
705
|
* #getter
|
|
614
706
|
*/
|
|
615
707
|
readonly conservation: string[];
|
|
708
|
+
/**
|
|
709
|
+
* #getter
|
|
710
|
+
*/
|
|
711
|
+
readonly adapterTrackModels: BasicTrack[];
|
|
712
|
+
/**
|
|
713
|
+
* #getter
|
|
714
|
+
*/
|
|
715
|
+
readonly boxTrackModels: BasicTrack[];
|
|
616
716
|
/**
|
|
617
717
|
* #getter
|
|
618
718
|
*/
|
|
@@ -641,31 +741,32 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
641
741
|
/**
|
|
642
742
|
* #method
|
|
643
743
|
*/
|
|
644
|
-
|
|
645
|
-
} & {
|
|
744
|
+
relativePxToBp2(rowName: string, position: number): number;
|
|
646
745
|
/**
|
|
647
|
-
* #
|
|
746
|
+
* #method
|
|
648
747
|
*/
|
|
649
|
-
|
|
748
|
+
getPos(pos: number): number;
|
|
749
|
+
} & {
|
|
650
750
|
/**
|
|
651
|
-
* #
|
|
751
|
+
* #getter
|
|
752
|
+
* total height of track area (px)
|
|
652
753
|
*/
|
|
653
|
-
|
|
754
|
+
readonly totalTrackAreaHeight: number;
|
|
755
|
+
} & {
|
|
654
756
|
/**
|
|
655
757
|
* #action
|
|
758
|
+
* internal, used for drawing to canvas
|
|
656
759
|
*/
|
|
657
|
-
|
|
760
|
+
incrementRef(): void;
|
|
761
|
+
afterCreate(): void;
|
|
658
762
|
}, import("mobx-state-tree")._NotCustomized, {
|
|
659
763
|
id: string;
|
|
660
764
|
type: "MsaView";
|
|
661
765
|
height: number;
|
|
662
|
-
|
|
663
|
-
minimized: boolean;
|
|
766
|
+
treeWidthMatchesArea: boolean;
|
|
664
767
|
rowHeight: number;
|
|
665
768
|
scrollY: number;
|
|
666
769
|
scrollX: number;
|
|
667
|
-
resizeHandleWidth: number;
|
|
668
|
-
blockSize: number;
|
|
669
770
|
labelsAlignRight: boolean;
|
|
670
771
|
colWidth: number;
|
|
671
772
|
showBranchLen: boolean;
|
|
@@ -677,8 +778,6 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
677
778
|
currentAlignment: number;
|
|
678
779
|
treeAreaWidth: number;
|
|
679
780
|
treeWidth: number;
|
|
680
|
-
mouseRow: number | undefined;
|
|
681
|
-
mouseCol: number | undefined;
|
|
682
781
|
selectedStructures: import("mobx-state-tree").ModelSnapshotType<{
|
|
683
782
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
684
783
|
structure: import("mobx-state-tree").IModelType<{
|
|
@@ -702,9 +801,7 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
702
801
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
703
802
|
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
704
803
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
705
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
706
|
-
* #action
|
|
707
|
-
*/
|
|
804
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
708
805
|
}> | undefined;
|
|
709
806
|
msaFilehandle: {
|
|
710
807
|
locationType: "UriLocation";
|
|
@@ -720,9 +817,7 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
720
817
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
721
818
|
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
722
819
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
723
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
724
|
-
* #action
|
|
725
|
-
*/
|
|
820
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
726
821
|
}> | undefined;
|
|
727
822
|
treeMetadataFilehandle: {
|
|
728
823
|
locationType: "UriLocation";
|
|
@@ -738,11 +833,10 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
738
833
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
739
834
|
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
740
835
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
741
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
742
|
-
* #action
|
|
743
|
-
*/
|
|
836
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
744
837
|
}> | undefined;
|
|
745
838
|
collapsed: string[];
|
|
839
|
+
hidden: string[];
|
|
746
840
|
showOnly: string | undefined;
|
|
747
841
|
boxTracks: import("mobx-state-tree").ModelSnapshotType<{
|
|
748
842
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -752,11 +846,8 @@ declare const model: import("mobx-state-tree").IModelType<{
|
|
|
752
846
|
height: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
753
847
|
}>[];
|
|
754
848
|
turnedOffTracks: import("mobx").IKeyValueMap<boolean>;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
758
|
-
attributes: import("mobx-state-tree").IType<Record<string, string[]>, Record<string, string[]>, Record<string, string[]>>;
|
|
759
|
-
}>[];
|
|
849
|
+
displayName: string | undefined;
|
|
850
|
+
minimized: boolean;
|
|
760
851
|
data: {
|
|
761
852
|
treeMetadata?: string | undefined;
|
|
762
853
|
msa?: string | undefined;
|