react-msaview 1.3.2 → 2.1.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/bundle/index.js +285 -97099
- package/dist/StructureModel.d.ts +9 -0
- package/dist/StructureModel.js +11 -0
- package/dist/StructureModel.js.map +1 -0
- package/dist/UniprotTrack.d.ts +27 -0
- package/dist/UniprotTrack.js +53 -0
- package/dist/UniprotTrack.js.map +1 -0
- package/dist/colorSchemes.d.ts +5 -11
- package/dist/colorSchemes.js +27 -32
- package/dist/colorSchemes.js.map +1 -0
- package/dist/components/BoxTrack.d.ts +6 -6
- package/dist/components/BoxTrack.js +9 -137
- package/dist/components/BoxTrack.js.map +1 -0
- package/dist/components/BoxTrackBlock.d.ts +8 -0
- package/dist/components/BoxTrackBlock.js +136 -0
- package/dist/components/BoxTrackBlock.js.map +1 -0
- package/dist/components/Header.d.ts +2 -2
- package/dist/components/Header.js +55 -48
- package/dist/components/Header.js.map +1 -0
- package/dist/components/ImportForm.d.ts +2 -2
- package/dist/components/ImportForm.js +59 -71
- package/dist/components/ImportForm.js.map +1 -0
- package/dist/components/MSABlock.d.ts +8 -0
- package/dist/components/MSABlock.js +103 -0
- package/dist/components/MSABlock.js.map +1 -0
- package/dist/components/MSACanvas.d.ts +2 -2
- package/dist/components/MSACanvas.js +32 -133
- package/dist/components/MSACanvas.js.map +1 -0
- package/dist/components/MSAMouseoverCanvas.d.ts +6 -0
- package/dist/components/MSAMouseoverCanvas.js +52 -0
- package/dist/components/MSAMouseoverCanvas.js.map +1 -0
- package/dist/components/MSAView.d.ts +2 -2
- package/dist/components/MSAView.js +17 -62
- package/dist/components/MSAView.js.map +1 -0
- package/dist/components/MultiAlignmentSelector.d.ts +6 -0
- package/dist/components/MultiAlignmentSelector.js +13 -0
- package/dist/components/MultiAlignmentSelector.js.map +1 -0
- package/dist/components/ResizeHandles.d.ts +5 -5
- package/dist/components/ResizeHandles.js +31 -32
- package/dist/components/ResizeHandles.js.map +1 -0
- package/dist/components/Rubberband.d.ts +3 -2
- package/dist/components/Rubberband.js +41 -64
- package/dist/components/Rubberband.js.map +1 -0
- package/dist/components/Ruler.d.ts +2 -16
- package/dist/components/Ruler.js +19 -88
- package/dist/components/Ruler.js.map +1 -0
- package/dist/components/TextTrack.d.ts +5 -5
- package/dist/components/TextTrack.js +23 -24
- package/dist/components/TextTrack.js.map +1 -0
- package/dist/components/Track.d.ts +5 -5
- package/dist/components/Track.js +41 -40
- package/dist/components/Track.js.map +1 -0
- package/dist/components/TreeBranchMenu.d.ts +14 -0
- package/dist/components/TreeBranchMenu.js +26 -0
- package/dist/components/TreeBranchMenu.js.map +1 -0
- package/dist/components/TreeCanvas.d.ts +2 -2
- package/dist/components/TreeCanvas.js +24 -356
- package/dist/components/TreeCanvas.js.map +1 -0
- package/dist/components/TreeCanvasBlock.d.ts +7 -0
- package/dist/components/TreeCanvasBlock.js +252 -0
- package/dist/components/TreeCanvasBlock.js.map +1 -0
- package/dist/components/TreeMenu.d.ts +12 -0
- package/dist/components/TreeMenu.js +56 -0
- package/dist/components/TreeMenu.js.map +1 -0
- package/dist/components/TreeRuler.d.ts +2 -2
- package/dist/components/TreeRuler.js +3 -3
- package/dist/components/TreeRuler.js.map +1 -0
- package/dist/components/VerticalGuide.d.ts +7 -0
- package/dist/components/VerticalGuide.js +30 -0
- package/dist/components/VerticalGuide.js.map +1 -0
- package/dist/components/ZoomControls.d.ts +6 -0
- package/dist/components/ZoomControls.js +58 -0
- package/dist/components/ZoomControls.js.map +1 -0
- package/dist/components/data/seq2.d.ts +3 -3
- package/dist/components/data/seq2.js +33 -3
- package/dist/components/data/seq2.js.map +1 -0
- package/dist/components/dialogs/AboutDlg.d.ts +4 -0
- package/dist/components/dialogs/AboutDlg.js +40 -0
- package/dist/components/dialogs/AboutDlg.js.map +1 -0
- package/{bundle/components → dist/components/dialogs}/AddTrackDlg.d.ts +3 -3
- package/dist/components/dialogs/AddTrackDlg.js +26 -0
- package/dist/components/dialogs/AddTrackDlg.js.map +1 -0
- package/dist/components/{AnnotationDlg.d.ts → dialogs/AnnotationDlg.d.ts} +3 -3
- package/dist/components/dialogs/AnnotationDlg.js +65 -0
- package/dist/components/dialogs/AnnotationDlg.js.map +1 -0
- package/dist/components/dialogs/DetailsDlg.d.ts +7 -0
- package/dist/components/dialogs/DetailsDlg.js +13 -0
- package/dist/components/dialogs/DetailsDlg.js.map +1 -0
- package/dist/components/dialogs/MoreInfoDlg.d.ts +6 -0
- package/dist/components/dialogs/MoreInfoDlg.js +11 -0
- package/dist/components/dialogs/MoreInfoDlg.js.map +1 -0
- package/dist/components/dialogs/SettingsDlg.d.ts +7 -0
- package/dist/components/dialogs/SettingsDlg.js +48 -0
- package/dist/components/dialogs/SettingsDlg.js.map +1 -0
- package/dist/components/dialogs/TrackInfoDlg.d.ts +9 -0
- package/{bundle/components → dist/components/dialogs}/TrackInfoDlg.js +12 -13
- package/dist/components/dialogs/TrackInfoDlg.js.map +1 -0
- package/dist/components/dialogs/TracklistDlg.d.ts +7 -0
- package/dist/components/dialogs/TracklistDlg.js +18 -0
- package/dist/components/dialogs/TracklistDlg.js.map +1 -0
- package/{bundle/components/Ruler.d.ts → dist/components/util.d.ts} +1 -6
- package/dist/components/util.js +68 -0
- package/dist/components/util.js.map +1 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -0
- package/dist/layout.js +14 -20
- package/dist/layout.js.map +1 -0
- package/dist/model.d.ts +114 -97
- package/dist/model.js +248 -486
- package/dist/model.js.map +1 -0
- package/dist/parseNewick.d.ts +1 -5
- package/dist/parseNewick.js +11 -8
- package/dist/parseNewick.js.map +1 -0
- package/dist/parsers/ClustalMSA.d.ts +6 -18
- package/dist/parsers/ClustalMSA.js +55 -64
- package/dist/parsers/ClustalMSA.js.map +1 -0
- package/dist/parsers/FastaMSA.d.ts +5 -12
- package/dist/parsers/FastaMSA.js +55 -64
- package/dist/parsers/FastaMSA.js.map +1 -0
- package/dist/parsers/StockholmMSA.d.ts +10 -17
- package/dist/parsers/StockholmMSA.js +81 -110
- package/dist/parsers/StockholmMSA.js.map +1 -0
- package/dist/util.d.ts +34 -7
- package/dist/util.js +76 -24
- package/dist/util.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +34 -34
- package/src/StructureModel.ts +11 -0
- package/src/UniprotTrack.ts +59 -0
- package/src/colorSchemes.ts +520 -0
- package/src/components/BoxTrack.tsx +33 -0
- package/src/components/BoxTrackBlock.tsx +198 -0
- package/src/components/Header.tsx +106 -0
- package/src/components/ImportForm.tsx +192 -0
- package/src/components/MSABlock.tsx +164 -0
- package/src/components/MSACanvas.tsx +142 -0
- package/src/components/MSAMouseoverCanvas.tsx +87 -0
- package/src/components/MSAView.tsx +88 -0
- package/src/components/MultiAlignmentSelector.tsx +33 -0
- package/src/components/ResizeHandles.tsx +137 -0
- package/src/components/Rubberband.tsx +270 -0
- package/src/components/Ruler.tsx +123 -0
- package/src/components/TextTrack.tsx +120 -0
- package/src/components/Track.tsx +153 -0
- package/src/components/TreeBranchMenu.tsx +67 -0
- package/src/components/TreeCanvas.tsx +128 -0
- package/src/components/TreeCanvasBlock.tsx +359 -0
- package/src/components/TreeMenu.tsx +105 -0
- package/src/components/TreeRuler.tsx +12 -0
- package/src/components/VerticalGuide.tsx +50 -0
- package/src/components/ZoomControls.tsx +78 -0
- package/src/components/data/seq2.ts +35 -0
- package/src/components/dialogs/AboutDlg.tsx +58 -0
- package/src/components/dialogs/AddTrackDlg.tsx +74 -0
- package/src/components/dialogs/AnnotationDlg.tsx +144 -0
- package/src/components/dialogs/DetailsDlg.tsx +28 -0
- package/src/components/dialogs/MoreInfoDlg.tsx +21 -0
- package/src/components/dialogs/SettingsDlg.tsx +154 -0
- package/src/components/dialogs/TrackInfoDlg.tsx +59 -0
- package/src/components/dialogs/TracklistDlg.tsx +59 -0
- package/src/components/util.ts +93 -0
- package/src/declare.d.ts +1 -0
- package/src/index.ts +2 -0
- package/src/layout.ts +83 -0
- package/src/model.ts +793 -0
- package/{bundle/parseNewick.d.ts → src/parseNewick.ts} +35 -5
- package/src/parsers/ClustalMSA.ts +79 -0
- package/src/parsers/FastaMSA.ts +82 -0
- package/src/parsers/StockholmMSA.ts +137 -0
- package/src/util.ts +142 -0
- package/src/version.ts +1 -0
- package/bundle/colorSchemes.d.ts +0 -16
- package/bundle/colorSchemes.js +0 -455
- package/bundle/components/AboutDlg.d.ts +0 -5
- package/bundle/components/AboutDlg.js +0 -47
- package/bundle/components/AddTrackDlg.js +0 -26
- package/bundle/components/AnnotationDlg.d.ts +0 -11
- package/bundle/components/AnnotationDlg.js +0 -77
- package/bundle/components/BoxTrack.d.ts +0 -7
- package/bundle/components/BoxTrack.js +0 -143
- package/bundle/components/DetailsDlg.d.ts +0 -8
- package/bundle/components/DetailsDlg.js +0 -12
- package/bundle/components/Header.d.ts +0 -6
- package/bundle/components/Header.js +0 -63
- package/bundle/components/ImportForm.d.ts +0 -6
- package/bundle/components/ImportForm.js +0 -89
- package/bundle/components/MSACanvas.d.ts +0 -6
- package/bundle/components/MSACanvas.js +0 -210
- package/bundle/components/MSAView.d.ts +0 -6
- package/bundle/components/MSAView.js +0 -88
- package/bundle/components/MoreInfoDlg.d.ts +0 -6
- package/bundle/components/MoreInfoDlg.js +0 -11
- package/bundle/components/ResizeHandles.d.ts +0 -8
- package/bundle/components/ResizeHandles.js +0 -110
- package/bundle/components/Rubberband.d.ts +0 -7
- package/bundle/components/Rubberband.js +0 -196
- package/bundle/components/Ruler.js +0 -121
- package/bundle/components/SettingsDlg.d.ts +0 -8
- package/bundle/components/SettingsDlg.js +0 -40
- package/bundle/components/TextTrack.d.ts +0 -7
- package/bundle/components/TextTrack.js +0 -72
- package/bundle/components/Track.d.ts +0 -11
- package/bundle/components/Track.js +0 -81
- package/bundle/components/TrackInfoDlg.d.ts +0 -6
- package/bundle/components/TracklistDlg.d.ts +0 -8
- package/bundle/components/TracklistDlg.js +0 -18
- package/bundle/components/TreeCanvas.d.ts +0 -6
- package/bundle/components/TreeCanvas.js +0 -431
- package/bundle/components/TreeRuler.d.ts +0 -6
- package/bundle/components/TreeRuler.js +0 -8
- package/bundle/components/data/seq2.d.ts +0 -3
- package/bundle/components/data/seq2.js +0 -3
- package/bundle/index.d.ts +0 -4
- package/bundle/layout.d.ts +0 -23
- package/bundle/layout.js +0 -53
- package/bundle/model.d.ts +0 -364
- package/bundle/model.js +0 -894
- package/bundle/parseNewick.js +0 -94
- package/bundle/parsers/ClustalMSA.d.ts +0 -39
- package/bundle/parsers/ClustalMSA.js +0 -77
- package/bundle/parsers/FastaMSA.d.ts +0 -26
- package/bundle/parsers/FastaMSA.js +0 -78
- package/bundle/parsers/StockholmMSA.d.ts +0 -75
- package/bundle/parsers/StockholmMSA.js +0 -142
- package/bundle/util.d.ts +0 -17
- package/bundle/util.js +0 -33
- package/dist/components/AboutDlg.d.ts +0 -5
- package/dist/components/AboutDlg.js +0 -50
- package/dist/components/AddTrackDlg.d.ts +0 -8
- package/dist/components/AddTrackDlg.js +0 -26
- package/dist/components/AnnotationDlg.js +0 -77
- package/dist/components/DetailsDlg.d.ts +0 -8
- package/dist/components/DetailsDlg.js +0 -12
- package/dist/components/MoreInfoDlg.d.ts +0 -6
- package/dist/components/MoreInfoDlg.js +0 -11
- package/dist/components/SettingsDlg.d.ts +0 -8
- package/dist/components/SettingsDlg.js +0 -40
- package/dist/components/TrackInfoDlg.d.ts +0 -6
- package/dist/components/TrackInfoDlg.js +0 -33
- package/dist/components/TracklistDlg.d.ts +0 -8
- package/dist/components/TracklistDlg.js +0 -18
- package/dist/components/package.json +0 -62
package/dist/model.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
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
|
+
export interface RowDetails {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
name: string;
|
|
8
|
+
range?: {
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
import { NodeWithIds, NodeWithIdsAndLength } from './util';
|
|
5
14
|
import ClustalMSA from './parsers/ClustalMSA';
|
|
6
15
|
import StockholmMSA from './parsers/StockholmMSA';
|
|
7
16
|
import FastaMSA from './parsers/FastaMSA';
|
|
17
|
+
import { StructureModel } from './StructureModel';
|
|
8
18
|
interface BasicTrackModel {
|
|
9
19
|
id: string;
|
|
10
20
|
name: string;
|
|
@@ -12,9 +22,7 @@ interface BasicTrackModel {
|
|
|
12
22
|
height: number;
|
|
13
23
|
}
|
|
14
24
|
export interface TextTrackModel extends BasicTrackModel {
|
|
15
|
-
customColorScheme?:
|
|
16
|
-
[key: string]: string;
|
|
17
|
-
};
|
|
25
|
+
customColorScheme?: Record<string, string>;
|
|
18
26
|
data: string;
|
|
19
27
|
}
|
|
20
28
|
export interface BoxTrackModel extends BasicTrackModel {
|
|
@@ -23,27 +31,19 @@ export interface BoxTrackModel extends BasicTrackModel {
|
|
|
23
31
|
end: number;
|
|
24
32
|
}[];
|
|
25
33
|
}
|
|
26
|
-
export interface
|
|
34
|
+
export interface ITextTrack {
|
|
27
35
|
ReactComponent: React.FC<any>;
|
|
28
36
|
model: TextTrackModel;
|
|
29
37
|
}
|
|
30
|
-
export interface
|
|
38
|
+
export interface IBoxTrack {
|
|
31
39
|
ReactComponent: React.FC<any>;
|
|
32
40
|
model: BoxTrackModel;
|
|
33
41
|
}
|
|
34
|
-
|
|
35
|
-
declare const StructureModel: import("mobx-state-tree").IModelType<{
|
|
36
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
37
|
-
structure: import("mobx-state-tree").IModelType<{
|
|
38
|
-
pdb: import("mobx-state-tree").ISimpleType<string>;
|
|
39
|
-
startPos: import("mobx-state-tree").ISimpleType<number>;
|
|
40
|
-
endPos: import("mobx-state-tree").ISimpleType<number>;
|
|
41
|
-
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
42
|
-
range: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
43
|
-
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
42
|
+
type BasicTrack = IBoxTrack | ITextTrack;
|
|
44
43
|
declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-state-tree").IModelType<{
|
|
45
44
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
46
45
|
displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
46
|
+
minimized: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
47
47
|
} & {
|
|
48
48
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
49
49
|
type: import("mobx-state-tree").ISimpleType<"MsaView">;
|
|
@@ -83,13 +83,13 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
83
83
|
internetAccountType: import("mobx-state-tree").ISimpleType<string>;
|
|
84
84
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
85
85
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
86
|
-
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
87
|
-
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
88
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
89
86
|
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
90
87
|
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
91
88
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
92
89
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
90
|
+
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
91
|
+
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
92
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
93
93
|
}>>, {
|
|
94
94
|
locationType: "UriLocation";
|
|
95
95
|
uri: string;
|
|
@@ -99,13 +99,23 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
99
99
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
100
100
|
}> | undefined;
|
|
101
101
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
102
|
+
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
103
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
104
|
+
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
105
|
+
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
102
106
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
103
107
|
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
104
|
-
}
|
|
108
|
+
}>, import("mobx-state-tree").ModelInstanceType<{
|
|
105
109
|
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
106
110
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
107
111
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
108
|
-
}
|
|
112
|
+
}, {}> | import("mobx-state-tree").ModelInstanceType<{
|
|
113
|
+
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
114
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
115
|
+
}, {}> | ({
|
|
116
|
+
locationType: "UriLocation";
|
|
117
|
+
uri: string;
|
|
118
|
+
} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
109
119
|
locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
|
|
110
120
|
uri: import("mobx-state-tree").ISimpleType<string>;
|
|
111
121
|
baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -114,14 +124,7 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
114
124
|
internetAccountType: import("mobx-state-tree").ISimpleType<string>;
|
|
115
125
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
116
126
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
117
|
-
}>>
|
|
118
|
-
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
119
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
120
|
-
}> | import("mobx-state-tree").ModelInstanceTypeProps<{
|
|
121
|
-
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
122
|
-
name: import("mobx-state-tree").ISimpleType<string>;
|
|
123
|
-
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
124
|
-
}>>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
127
|
+
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject)>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
125
128
|
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<{
|
|
126
129
|
locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
|
|
127
130
|
uri: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -131,13 +134,13 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
131
134
|
internetAccountType: import("mobx-state-tree").ISimpleType<string>;
|
|
132
135
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
133
136
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
134
|
-
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
135
|
-
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
136
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
137
137
|
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
138
138
|
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
139
139
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
140
140
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
141
|
+
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
142
|
+
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
143
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
141
144
|
}>>, {
|
|
142
145
|
locationType: "UriLocation";
|
|
143
146
|
uri: string;
|
|
@@ -147,13 +150,23 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
147
150
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
148
151
|
}> | undefined;
|
|
149
152
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
153
|
+
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
154
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
155
|
+
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
156
|
+
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
150
157
|
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
151
158
|
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
152
|
-
}
|
|
159
|
+
}>, import("mobx-state-tree").ModelInstanceType<{
|
|
153
160
|
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
154
161
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
155
162
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
156
|
-
}
|
|
163
|
+
}, {}> | import("mobx-state-tree").ModelInstanceType<{
|
|
164
|
+
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
165
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
166
|
+
}, {}> | ({
|
|
167
|
+
locationType: "UriLocation";
|
|
168
|
+
uri: string;
|
|
169
|
+
} & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
157
170
|
locationType: import("mobx-state-tree").ISimpleType<"UriLocation">;
|
|
158
171
|
uri: import("mobx-state-tree").ISimpleType<string>;
|
|
159
172
|
baseUri: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -162,14 +175,7 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
162
175
|
internetAccountType: import("mobx-state-tree").ISimpleType<string>;
|
|
163
176
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
164
177
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
165
|
-
}>>
|
|
166
|
-
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
167
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
168
|
-
}> | import("mobx-state-tree").ModelInstanceTypeProps<{
|
|
169
|
-
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
170
|
-
name: import("mobx-state-tree").ISimpleType<string>;
|
|
171
|
-
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
172
|
-
}>>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
178
|
+
}>> & import("mobx-state-tree/dist/internal").NonEmptyObject)>, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
173
179
|
currentAlignment: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
174
180
|
collapsed: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
175
181
|
showOnly: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -180,10 +186,10 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
180
186
|
associatedRowName: import("mobx-state-tree").ISimpleType<string>;
|
|
181
187
|
height: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
182
188
|
}, {
|
|
183
|
-
error:
|
|
184
|
-
data:
|
|
189
|
+
error: unknown;
|
|
190
|
+
data: string | undefined;
|
|
185
191
|
} & {
|
|
186
|
-
setError(error:
|
|
192
|
+
setError(error: unknown): void;
|
|
187
193
|
setData(data: string): void;
|
|
188
194
|
} & {
|
|
189
195
|
afterCreate(): void;
|
|
@@ -210,8 +216,8 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
210
216
|
tree: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
211
217
|
msa: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
212
218
|
}, {
|
|
213
|
-
setTree(tree?: string
|
|
214
|
-
setMSA(msa?: string
|
|
219
|
+
setTree(tree?: string): void;
|
|
220
|
+
setMSA(msa?: string): void;
|
|
215
221
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
216
222
|
}, {
|
|
217
223
|
width: number;
|
|
@@ -220,13 +226,15 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
220
226
|
} & {
|
|
221
227
|
setDisplayName(name: string): void;
|
|
222
228
|
setWidth(newWidth: number): void;
|
|
229
|
+
setMinimized(flag: boolean): void;
|
|
223
230
|
} & {
|
|
224
|
-
|
|
231
|
+
rulerHeight: number;
|
|
232
|
+
error: unknown;
|
|
225
233
|
margin: {
|
|
226
234
|
left: number;
|
|
227
235
|
top: number;
|
|
228
236
|
};
|
|
229
|
-
DialogComponent:
|
|
237
|
+
DialogComponent: React.FC<any> | undefined;
|
|
230
238
|
DialogProps: any;
|
|
231
239
|
annotPos: {
|
|
232
240
|
left: number;
|
|
@@ -246,8 +254,8 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
246
254
|
};
|
|
247
255
|
}): void;
|
|
248
256
|
clearSelectedStructures(): void;
|
|
249
|
-
setError(error?:
|
|
250
|
-
setMousePos(col?: number
|
|
257
|
+
setError(error?: unknown): void;
|
|
258
|
+
setMousePos(col?: number, row?: number): void;
|
|
251
259
|
setRowHeight(n: number): void;
|
|
252
260
|
setColWidth(n: number): void;
|
|
253
261
|
setColorSchemeName(name: string): void;
|
|
@@ -259,7 +267,7 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
259
267
|
toggleLabelsAlignRight(): void;
|
|
260
268
|
toggleDrawTree(): void;
|
|
261
269
|
toggleCollapsed(node: string): void;
|
|
262
|
-
setShowOnly(node
|
|
270
|
+
setShowOnly(node?: string): void;
|
|
263
271
|
toggleBranchLen(): void;
|
|
264
272
|
toggleBgColor(): void;
|
|
265
273
|
toggleNodeBubbles(): void;
|
|
@@ -267,8 +275,8 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
267
275
|
msa?: string;
|
|
268
276
|
tree?: string;
|
|
269
277
|
}): void;
|
|
270
|
-
setMSAFilehandle(msaFilehandle?: FileLocationType
|
|
271
|
-
setTreeFilehandle(treeFilehandle?: FileLocationType
|
|
278
|
+
setMSAFilehandle(msaFilehandle?: FileLocationType): Promise<void>;
|
|
279
|
+
setTreeFilehandle(treeFilehandle?: FileLocationType): Promise<void>;
|
|
272
280
|
setMSA(result: string): void;
|
|
273
281
|
setTree(result: string): void;
|
|
274
282
|
afterCreate(): void;
|
|
@@ -279,39 +287,49 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
279
287
|
} & {
|
|
280
288
|
readonly blocks2d: number[][];
|
|
281
289
|
readonly done: string | false | undefined;
|
|
282
|
-
readonly colorScheme:
|
|
283
|
-
|
|
290
|
+
readonly colorScheme: Record<string, string>;
|
|
291
|
+
readonly header: {};
|
|
292
|
+
getRowData(name: string): {
|
|
293
|
+
range?: {
|
|
294
|
+
start: number;
|
|
295
|
+
end: number;
|
|
296
|
+
} | undefined;
|
|
297
|
+
data: {
|
|
298
|
+
name: string;
|
|
299
|
+
accession: string;
|
|
300
|
+
dbxref: string;
|
|
301
|
+
} | Record<string, unknown>;
|
|
284
302
|
};
|
|
285
|
-
readonly alignmentDetails: Record<string, any>;
|
|
286
|
-
getRowDetails(name: string): any;
|
|
287
303
|
readonly currentAlignmentName: string;
|
|
288
304
|
readonly alignmentNames: string[];
|
|
289
305
|
readonly noTree: boolean;
|
|
290
306
|
readonly menuItems: never[];
|
|
291
|
-
readonly MSA:
|
|
307
|
+
readonly MSA: StockholmMSA | FastaMSA | ClustalMSA | null;
|
|
292
308
|
readonly numColumns: number;
|
|
293
|
-
readonly tree:
|
|
309
|
+
readonly tree: NodeWithIds;
|
|
294
310
|
readonly rowNames: string[];
|
|
295
311
|
readonly mouseOverRowName: string | undefined;
|
|
296
312
|
getMouseOverResidue(rowName: string): string;
|
|
297
|
-
readonly root: HierarchyNode<
|
|
298
|
-
readonly structures: {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
313
|
+
readonly root: HierarchyNode<NodeWithIds>;
|
|
314
|
+
readonly structures: Record<string, {
|
|
315
|
+
pdb: string;
|
|
316
|
+
startPos: number;
|
|
317
|
+
endPos: number;
|
|
318
|
+
}[]>;
|
|
319
|
+
readonly inverseStructures: {
|
|
320
|
+
[k: string]: {
|
|
321
|
+
id: string;
|
|
322
|
+
};
|
|
304
323
|
};
|
|
305
|
-
readonly inverseStructures: any;
|
|
306
324
|
readonly msaAreaWidth: number;
|
|
307
325
|
readonly blanks: number[];
|
|
308
|
-
readonly rows: string[][];
|
|
309
|
-
readonly columns:
|
|
326
|
+
readonly rows: [string, string[]][];
|
|
327
|
+
readonly columns: {
|
|
328
|
+
[k: string]: string;
|
|
329
|
+
};
|
|
310
330
|
readonly columns2d: string[];
|
|
311
|
-
readonly colStats:
|
|
312
|
-
|
|
313
|
-
}[];
|
|
314
|
-
readonly hierarchy: HierarchyNode<any>;
|
|
331
|
+
readonly colStats: Record<string, number>[];
|
|
332
|
+
readonly hierarchy: HierarchyNode<NodeWithIdsAndLength>;
|
|
315
333
|
readonly totalHeight: number;
|
|
316
334
|
} & {
|
|
317
335
|
addUniprotTrack(node: {
|
|
@@ -334,23 +352,31 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
334
352
|
relativePxToBp(rowName: string, position: number): number;
|
|
335
353
|
getPos(pos: number): number;
|
|
336
354
|
} & {
|
|
337
|
-
addAnnotation(start: number, end: number, attributes:
|
|
338
|
-
[key: string]: string[];
|
|
339
|
-
}): void;
|
|
355
|
+
addAnnotation(start: number, end: number, attributes: Record<string, string[]>): void;
|
|
340
356
|
setOffsets(left: number, right: number): void;
|
|
341
357
|
clearAnnotPos(): void;
|
|
342
358
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, import("mobx-state-tree")._NotCustomized, {
|
|
343
359
|
id: string;
|
|
344
|
-
displayName: string | undefined;
|
|
345
360
|
type: "MsaView";
|
|
346
361
|
height: number;
|
|
347
|
-
|
|
348
|
-
|
|
362
|
+
displayName: string | undefined;
|
|
363
|
+
minimized: boolean;
|
|
349
364
|
rowHeight: number;
|
|
350
365
|
scrollY: number;
|
|
351
366
|
scrollX: number;
|
|
352
367
|
resizeHandleWidth: number;
|
|
353
368
|
blockSize: number;
|
|
369
|
+
labelsAlignRight: boolean;
|
|
370
|
+
colWidth: number;
|
|
371
|
+
showBranchLen: boolean;
|
|
372
|
+
bgColor: boolean;
|
|
373
|
+
drawTree: boolean;
|
|
374
|
+
drawNodeBubbles: boolean;
|
|
375
|
+
highResScaleFactor: number;
|
|
376
|
+
colorSchemeName: string;
|
|
377
|
+
currentAlignment: number;
|
|
378
|
+
treeAreaWidth: number;
|
|
379
|
+
treeWidth: number;
|
|
354
380
|
mouseRow: number | undefined;
|
|
355
381
|
mouseCol: number | undefined;
|
|
356
382
|
selectedStructures: import("mobx-state-tree").ModelSnapshotType<{
|
|
@@ -362,14 +388,6 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
362
388
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
363
389
|
range: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
364
390
|
}>[];
|
|
365
|
-
labelsAlignRight: boolean;
|
|
366
|
-
colWidth: number;
|
|
367
|
-
showBranchLen: boolean;
|
|
368
|
-
bgColor: boolean;
|
|
369
|
-
drawTree: boolean;
|
|
370
|
-
drawNodeBubbles: boolean;
|
|
371
|
-
highResScaleFactor: number;
|
|
372
|
-
colorSchemeName: string;
|
|
373
391
|
treeFilehandle: {
|
|
374
392
|
locationType: "UriLocation";
|
|
375
393
|
uri: string;
|
|
@@ -379,12 +397,12 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
379
397
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
380
398
|
}> | undefined;
|
|
381
399
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
382
|
-
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
383
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
384
|
-
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
385
400
|
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
386
401
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
387
402
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
403
|
+
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
404
|
+
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
405
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
388
406
|
}> | undefined;
|
|
389
407
|
msaFilehandle: {
|
|
390
408
|
locationType: "UriLocation";
|
|
@@ -395,14 +413,13 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
395
413
|
authInfo: import("mobx-state-tree").IType<any, any, any>;
|
|
396
414
|
}> | undefined;
|
|
397
415
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
398
|
-
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
399
|
-
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
400
|
-
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
401
416
|
locationType: import("mobx-state-tree").ISimpleType<"BlobLocation">;
|
|
402
417
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
403
418
|
blobId: import("mobx-state-tree").ISimpleType<string>;
|
|
419
|
+
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
420
|
+
locationType: import("mobx-state-tree").ISimpleType<"LocalPathLocation">;
|
|
421
|
+
localPath: import("mobx-state-tree").ISimpleType<string>;
|
|
404
422
|
}> | undefined;
|
|
405
|
-
currentAlignment: number;
|
|
406
423
|
collapsed: string[];
|
|
407
424
|
showOnly: string | undefined;
|
|
408
425
|
boxTracks: import("mobx-state-tree").ModelSnapshotType<{
|
|
@@ -424,5 +441,5 @@ declare const model: import("mobx-state-tree").ISnapshotProcessor<import("mobx-s
|
|
|
424
441
|
};
|
|
425
442
|
}>;
|
|
426
443
|
export default model;
|
|
427
|
-
export
|
|
428
|
-
export
|
|
444
|
+
export type MsaViewStateModel = typeof model;
|
|
445
|
+
export type MsaViewModel = Instance<MsaViewStateModel>;
|