moorhen 0.9.0 → 0.9.2
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/README.md +12 -2
- package/moorhen.js +91 -14
- package/package.json +22 -12
- package/public/CootWorker.js +1 -0
- package/{baby-gru → public}/CootWorker.ts +58 -10
- package/public/favicon.ico +0 -0
- package/public/manifest.json +25 -0
- package/{baby-gru → public}/moorhen.css +18 -3
- package/public/moorhen.js +1 -0
- package/{baby-gru → public}/moorhen.wasm +0 -0
- package/public/pixmaps/MoorhenLogo.svg +96 -0
- package/public/pixmaps/README +10 -0
- package/public/pixmaps/add-alt-conf.png +0 -0
- package/public/pixmaps/add-peptide-1.png +0 -0
- package/public/pixmaps/atom-at-pointer.png +0 -0
- package/public/pixmaps/auto-fit-rotamer.png +0 -0
- package/public/pixmaps/delete.png +0 -0
- package/public/pixmaps/density-fit.svg +96 -0
- package/public/pixmaps/edit-chi.png +0 -0
- package/public/pixmaps/flip-peptide.png +0 -0
- package/public/pixmaps/lhasa_icons/icons/hicolor_apps_scalable_coot-layla.svg +105 -0
- package/public/pixmaps/lhasa_icons/layla_3c.svg +82 -0
- package/public/pixmaps/lhasa_icons/layla_4c.svg +82 -0
- package/public/pixmaps/lhasa_icons/layla_5c.svg +82 -0
- package/public/pixmaps/lhasa_icons/layla_6arom.svg +89 -0
- package/public/pixmaps/lhasa_icons/layla_6c.svg +82 -0
- package/public/pixmaps/lhasa_icons/layla_7c.svg +82 -0
- package/public/pixmaps/lhasa_icons/layla_8c.svg +82 -0
- package/public/pixmaps/lhasa_icons/layla_charge_tool.svg +78 -0
- package/public/pixmaps/lhasa_icons/layla_delete_hydrogens_tool.svg +384 -0
- package/public/pixmaps/lhasa_icons/layla_double_bond.svg +78 -0
- package/public/pixmaps/lhasa_icons/layla_format_tool.svg +283 -0
- package/public/pixmaps/lhasa_icons/layla_geometry_tool-dark.svg +105 -0
- package/public/pixmaps/lhasa_icons/layla_geometry_tool.svg +105 -0
- package/public/pixmaps/lhasa_icons/layla_key.svg +76 -0
- package/public/pixmaps/lhasa_icons/layla_move_tool.svg +110 -0
- package/public/pixmaps/lhasa_icons/layla_single_bond.svg +73 -0
- package/public/pixmaps/lhasa_icons/layla_triple_bond.svg +87 -0
- package/public/pixmaps/lhasa_icons/lhasa_delete_tool.svg +401 -0
- package/public/pixmaps/lhasa_icons/lhasa_flip_x_tool.svg +106 -0
- package/public/pixmaps/lhasa_icons/lhasa_flip_y_tool.svg +106 -0
- package/public/pixmaps/lhasa_icons/lhasa_rotate_tool.svg +112 -0
- package/public/pixmaps/mutate.png +0 -0
- package/public/pixmaps/rama_all.png +0 -0
- package/public/pixmaps/rama_gly.png +0 -0
- package/public/pixmaps/rama_non_gly_pro.png +0 -0
- package/public/pixmaps/rama_pro.png +0 -0
- package/public/pixmaps/ramachandran.png +0 -0
- package/public/pixmaps/refine-1.png +0 -0
- package/public/pixmaps/refine.png +0 -0
- package/public/pixmaps/rigid-body.png +0 -0
- package/public/pixmaps/rotamers.png +0 -0
- package/public/pixmaps/rtz.png +0 -0
- package/public/pixmaps/side-chain-180.png +0 -0
- package/public/pixmaps/spin-view.png +0 -0
- package/public/pixmaps/temperature.png +0 -0
- package/public/pixmaps/torsion-general.png +0 -0
- package/public/pixmaps/torsion-general.svg +320 -0
- package/public/robots.txt +3 -0
- package/public/web_example.js +1 -0
- package/{baby-gru → public}/web_example.wasm +0 -0
- package/types/index.d.ts +1 -0
- package/types/lhasa.d.ts +313 -0
- package/types/libcoot.d.ts +21 -2
- package/types/main.d.ts +57 -54
- package/types/mgWebGL.d.ts +4 -2
- package/types/moorhen.d.ts +137 -50
- package/baby-gru/CootWorker.js +0 -1
- package/baby-gru/moorhen.js +0 -1
- package/baby-gru/web_example.js +0 -1
- /package/{baby-gru → public}/coot_env_web.js +0 -0
- /package/{baby-gru → public}/darkly.css +0 -0
- /package/{baby-gru → public}/flatly.css +0 -0
- /package/{baby-gru → public}/monomers/a/A.cif +0 -0
- /package/{baby-gru → public}/monomers/a/ALA.cif +0 -0
- /package/{baby-gru → public}/monomers/a/ARG.cif +0 -0
- /package/{baby-gru → public}/monomers/a/ASN.cif +0 -0
- /package/{baby-gru → public}/monomers/a/ASP.cif +0 -0
- /package/{baby-gru → public}/monomers/c/C.cif +0 -0
- /package/{baby-gru → public}/monomers/c/CIT.cif +0 -0
- /package/{baby-gru → public}/monomers/c/CYS.cif +0 -0
- /package/{baby-gru → public}/monomers/d/DA.cif +0 -0
- /package/{baby-gru → public}/monomers/d/DC.cif +0 -0
- /package/{baby-gru → public}/monomers/d/DG.cif +0 -0
- /package/{baby-gru → public}/monomers/d/DT.cif +0 -0
- /package/{baby-gru → public}/monomers/e/EDO.cif +0 -0
- /package/{baby-gru → public}/monomers/g/G.cif +0 -0
- /package/{baby-gru → public}/monomers/g/GLN.cif +0 -0
- /package/{baby-gru → public}/monomers/g/GLU.cif +0 -0
- /package/{baby-gru → public}/monomers/g/GLY.cif +0 -0
- /package/{baby-gru → public}/monomers/g/GOL.cif +0 -0
- /package/{baby-gru → public}/monomers/h/HIS.cif +0 -0
- /package/{baby-gru → public}/monomers/h/HOH.cif +0 -0
- /package/{baby-gru → public}/monomers/i/ILE.cif +0 -0
- /package/{baby-gru → public}/monomers/l/LEU.cif +0 -0
- /package/{baby-gru → public}/monomers/l/LYS.cif +0 -0
- /package/{baby-gru → public}/monomers/m/MET.cif +0 -0
- /package/{baby-gru → public}/monomers/m/MSE.cif +0 -0
- /package/{baby-gru → public}/monomers/n/NA.cif +0 -0
- /package/{baby-gru → public}/monomers/p/PHE.cif +0 -0
- /package/{baby-gru → public}/monomers/p/PO4.cif +0 -0
- /package/{baby-gru → public}/monomers/p/PRO.cif +0 -0
- /package/{baby-gru → public}/monomers/s/SER.cif +0 -0
- /package/{baby-gru → public}/monomers/s/SO4.cif +0 -0
- /package/{baby-gru → public}/monomers/t/THR.cif +0 -0
- /package/{baby-gru → public}/monomers/t/TRP.cif +0 -0
- /package/{baby-gru → public}/monomers/t/TYR.cif +0 -0
- /package/{baby-gru → public}/monomers/u/U.cif +0 -0
- /package/{baby-gru → public}/monomers/v/VAL.cif +0 -0
- /package/{baby-gru → public}/moorhen.data +0 -0
- /package/{baby-gru → public}/moorhen.worker.js +0 -0
- /package/{baby-gru → public}/pixmaps/MoorhenLogo.png +0 -0
- /package/{baby-gru → public}/pixmaps/add-alt-conf.svg +0 -0
- /package/{baby-gru → public}/pixmaps/add-peptide-1.svg +0 -0
- /package/{baby-gru → public}/pixmaps/atom-at-pointer.svg +0 -0
- /package/{baby-gru → public}/pixmaps/auto-fit-rotamer.svg +0 -0
- /package/{baby-gru → public}/pixmaps/cis-trans.svg +0 -0
- /package/{baby-gru → public}/pixmaps/delete.svg +0 -0
- /package/{baby-gru → public}/pixmaps/drag.svg +0 -0
- /package/{baby-gru → public}/pixmaps/edit-chi.svg +0 -0
- /package/{baby-gru → public}/pixmaps/flip-peptide.svg +0 -0
- /package/{baby-gru → public}/pixmaps/jed-flip-reverse.svg +0 -0
- /package/{baby-gru → public}/pixmaps/keyboard-blank.svg +0 -0
- /package/{baby-gru → public}/pixmaps/map-grey.svg +0 -0
- /package/{baby-gru → public}/pixmaps/moorhen-ligand.svg +0 -0
- /package/{baby-gru → public}/pixmaps/mutate.svg +0 -0
- /package/{baby-gru → public}/pixmaps/rama-plot-gly-normal.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama-plot-gly-outlier.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama-plot-other-normal.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama-plot-other-outlier.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama-plot-pro-normal.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama-plot-pro-outlier.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama2_all.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama2_gly.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama2_ileval.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama2_non_gly_pro.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama2_non_gly_pro_pre_pro_ileval.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama2_pre_pro.png +0 -0
- /package/{baby-gru → public}/pixmaps/rama2_pro.png +0 -0
- /package/{baby-gru → public}/pixmaps/refine-1.svg +0 -0
- /package/{baby-gru → public}/pixmaps/rigid-body.svg +0 -0
- /package/{baby-gru → public}/pixmaps/rotamers.svg +0 -0
- /package/{baby-gru → public}/pixmaps/rtz.svg +0 -0
- /package/{baby-gru → public}/pixmaps/secondary-structure-grey.svg +0 -0
- /package/{baby-gru → public}/pixmaps/side-chain-180.svg +0 -0
- /package/{baby-gru → public}/pixmaps/spin-view.svg +0 -0
- /package/{baby-gru → public}/pixmaps/temperature.svg +0 -0
- /package/{baby-gru → public}/tutorials/NUT.cif +0 -0
- /package/{baby-gru → public}/tutorials/moorhen-tutorial-map-number-1.mtz +0 -0
- /package/{baby-gru → public}/tutorials/moorhen-tutorial-map-number-2.mtz +0 -0
- /package/{baby-gru → public}/tutorials/moorhen-tutorial-map-number-3.mtz +0 -0
- /package/{baby-gru → public}/tutorials/moorhen-tutorial-map-number-4.mtz +0 -0
- /package/{baby-gru → public}/tutorials/moorhen-tutorial-structure-number-1.pdb +0 -0
- /package/{baby-gru → public}/tutorials/moorhen-tutorial-structure-number-2.pdb +0 -0
- /package/{baby-gru → public}/tutorials/moorhen-tutorial-structure-number-3.pdb +0 -0
- /package/{baby-gru → public}/tutorials/moorhen-tutorial-structure-number-4.pdb +0 -0
package/types/lhasa.d.ts
ADDED
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { libcootApi } from './libcoot';
|
|
2
|
+
|
|
3
|
+
export interface DisplayModeValue<T extends number> {
|
|
4
|
+
value: T;
|
|
5
|
+
}
|
|
6
|
+
export type DisplayMode = DisplayModeValue<0>|DisplayModeValue<1>|DisplayModeValue<2>;
|
|
7
|
+
|
|
8
|
+
export interface DrawingCommandVector {
|
|
9
|
+
size(): number;
|
|
10
|
+
get(_0: number): DrawingCommand | undefined;
|
|
11
|
+
push_back(_0: DrawingCommand): void;
|
|
12
|
+
resize(_0: number, _1: DrawingCommand): void;
|
|
13
|
+
set(_0: number, _1: DrawingCommand): boolean;
|
|
14
|
+
delete(): void;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PathElementVector {
|
|
18
|
+
size(): number;
|
|
19
|
+
get(_0: number): PathElement | undefined;
|
|
20
|
+
push_back(_0: PathElement): void;
|
|
21
|
+
resize(_0: number, _1: PathElement): void;
|
|
22
|
+
set(_0: number, _1: PathElement): boolean;
|
|
23
|
+
delete(): void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface TextMeasurementCache {
|
|
27
|
+
delete(): void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface Renderer {
|
|
31
|
+
get_commands(): DrawingCommandVector;
|
|
32
|
+
delete(): void;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type Color = {
|
|
36
|
+
r: number,
|
|
37
|
+
g: number,
|
|
38
|
+
b: number,
|
|
39
|
+
a: number
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type BrushStyle = {
|
|
43
|
+
color: Color,
|
|
44
|
+
line_width: number
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export type GraphenePoint = {
|
|
48
|
+
x: number,
|
|
49
|
+
y: number
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type Line = {
|
|
53
|
+
start: GraphenePoint,
|
|
54
|
+
end: GraphenePoint
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type Arc = {
|
|
58
|
+
origin: GraphenePoint,
|
|
59
|
+
radius: number,
|
|
60
|
+
angle_one: number,
|
|
61
|
+
angle_two: number
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export interface PathElement {
|
|
65
|
+
is_arc(): boolean;
|
|
66
|
+
as_arc(): Arc;
|
|
67
|
+
as_line(): Line;
|
|
68
|
+
is_line(): boolean;
|
|
69
|
+
delete(): void;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface Path {
|
|
73
|
+
fill_color: Color;
|
|
74
|
+
has_fill: boolean;
|
|
75
|
+
stroke_style: BrushStyle;
|
|
76
|
+
has_stroke: boolean;
|
|
77
|
+
get_elements(): PathElementVector;
|
|
78
|
+
delete(): void;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface TextPositioningValue<T extends number> {
|
|
82
|
+
value: T;
|
|
83
|
+
}
|
|
84
|
+
export type TextPositioning = TextPositioningValue<0>|TextPositioningValue<1>|TextPositioningValue<2>;
|
|
85
|
+
|
|
86
|
+
export interface TextStyle {
|
|
87
|
+
positioning: TextPositioning;
|
|
88
|
+
weight: string;
|
|
89
|
+
size: string;
|
|
90
|
+
color: Color;
|
|
91
|
+
specifies_color: boolean;
|
|
92
|
+
delete(): void;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface TextSpan {
|
|
96
|
+
style: TextStyle;
|
|
97
|
+
specifies_style: boolean;
|
|
98
|
+
has_subspans(): boolean;
|
|
99
|
+
as_caption(): string;
|
|
100
|
+
as_subspans(): TextSpanVector;
|
|
101
|
+
delete(): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface TextSpanVector {
|
|
105
|
+
push_back(_0: TextSpan): void;
|
|
106
|
+
resize(_0: number, _1: TextSpan): void;
|
|
107
|
+
size(): number;
|
|
108
|
+
get(_0: number): TextSpan | undefined;
|
|
109
|
+
set(_0: number, _1: TextSpan): boolean;
|
|
110
|
+
delete(): void;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type TextSize = {
|
|
114
|
+
width: number,
|
|
115
|
+
height: number
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export interface Text {
|
|
119
|
+
origin: GraphenePoint;
|
|
120
|
+
style: TextStyle;
|
|
121
|
+
spans: TextSpanVector;
|
|
122
|
+
delete(): void;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface DrawingCommand {
|
|
126
|
+
is_path(): boolean;
|
|
127
|
+
as_path(): Path;
|
|
128
|
+
is_text(): boolean;
|
|
129
|
+
as_text(): Text;
|
|
130
|
+
delete(): void;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface DeleteTool {
|
|
134
|
+
delete(): void;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface ChargeModifier {
|
|
138
|
+
delete(): void;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface GeometryModifier {
|
|
142
|
+
delete(): void;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface FormatTool {
|
|
146
|
+
delete(): void;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface RemoveHydrogensTool {
|
|
150
|
+
delete(): void;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface LhasaElementValue<T extends number> {
|
|
154
|
+
value: T;
|
|
155
|
+
}
|
|
156
|
+
export type LhasaElement = LhasaElementValue<0>|LhasaElementValue<1>|LhasaElementValue<2>|LhasaElementValue<3>|LhasaElementValue<4>|LhasaElementValue<5>|LhasaElementValue<6>|LhasaElementValue<7>|LhasaElementValue<8>|LhasaElementValue<9>;
|
|
157
|
+
|
|
158
|
+
export interface ElementInsertion {
|
|
159
|
+
delete(): void;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface LhasaStructureValue<T extends number> {
|
|
163
|
+
value: T;
|
|
164
|
+
}
|
|
165
|
+
export type LhasaStructure = LhasaStructureValue<0>|LhasaStructureValue<1>|LhasaStructureValue<2>|LhasaStructureValue<3>|LhasaStructureValue<4>|LhasaStructureValue<5>|LhasaStructureValue<6>;
|
|
166
|
+
|
|
167
|
+
export interface StructureInsertion {
|
|
168
|
+
delete(): void;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface BondModifierModeValue<T extends number> {
|
|
172
|
+
value: T;
|
|
173
|
+
}
|
|
174
|
+
export type BondModifierMode = BondModifierModeValue<0>|BondModifierModeValue<1>|BondModifierModeValue<2>;
|
|
175
|
+
|
|
176
|
+
export interface BondModifier {
|
|
177
|
+
delete(): void;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface TransformModeValue<T extends number> {
|
|
181
|
+
value: T;
|
|
182
|
+
}
|
|
183
|
+
export type TransformMode = TransformModeValue<0>|TransformModeValue<1>;
|
|
184
|
+
|
|
185
|
+
export interface TransformTool {
|
|
186
|
+
delete(): void;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface FlipModeValue<T extends number> {
|
|
190
|
+
value: T;
|
|
191
|
+
}
|
|
192
|
+
export type FlipMode = FlipModeValue<0>|FlipModeValue<1>;
|
|
193
|
+
|
|
194
|
+
export interface FlipTool {
|
|
195
|
+
delete(): void;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface ActiveTool {
|
|
199
|
+
delete(): void;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type SizingInfo = {
|
|
203
|
+
requested_size: number
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export interface MeasurementDirectionValue<T extends number> {
|
|
207
|
+
value: T;
|
|
208
|
+
}
|
|
209
|
+
export type MeasurementDirection = MeasurementDirectionValue<0>|MeasurementDirectionValue<1>;
|
|
210
|
+
|
|
211
|
+
export type QEDInfo = {
|
|
212
|
+
number_of_hydrogen_bond_acceptors: number,
|
|
213
|
+
number_of_hydrogen_bond_donors: number,
|
|
214
|
+
number_of_rotatable_bonds: number,
|
|
215
|
+
number_of_aromatic_rings: number,
|
|
216
|
+
number_of_alerts: number,
|
|
217
|
+
molecular_weight: number,
|
|
218
|
+
alogp: number,
|
|
219
|
+
molecular_polar_surface_area: number,
|
|
220
|
+
qed_score: number
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export interface ImplWidgetCoreData {
|
|
224
|
+
render(_0: Renderer): void;
|
|
225
|
+
delete(): void;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface SmilesMap {
|
|
229
|
+
size(): number;
|
|
230
|
+
get(_0: number): string | undefined;
|
|
231
|
+
set(_0: number, _1: string): void;
|
|
232
|
+
keys(): MoleculeIdVector;
|
|
233
|
+
delete(): void;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface MoleculeIdVector {
|
|
237
|
+
push_back(_0: number): void;
|
|
238
|
+
resize(_0: number, _1: number): void;
|
|
239
|
+
size(): number;
|
|
240
|
+
get(_0: number): number | undefined;
|
|
241
|
+
set(_0: number, _1: number): boolean;
|
|
242
|
+
delete(): void;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface Canvas extends ImplWidgetCoreData {
|
|
246
|
+
set_active_tool(_0: ActiveTool): void;
|
|
247
|
+
set_scale(_0: number): void;
|
|
248
|
+
get_scale(): number;
|
|
249
|
+
undo_edition(): void;
|
|
250
|
+
redo_edition(): void;
|
|
251
|
+
get_molecule_count(): number;
|
|
252
|
+
get_idx_of_first_molecule(): number;
|
|
253
|
+
get_max_molecule_idx(): number;
|
|
254
|
+
set_allow_invalid_molecules(_0: boolean): void;
|
|
255
|
+
get_allow_invalid_molecules(): boolean;
|
|
256
|
+
get_display_mode(): DisplayMode;
|
|
257
|
+
set_display_mode(_0: DisplayMode): void;
|
|
258
|
+
get_smiles(): SmilesMap;
|
|
259
|
+
get_smiles_for_molecule(_0: number): string;
|
|
260
|
+
get_pickled_molecule(_0: number): string;
|
|
261
|
+
get_pickled_molecule_base64(_0: number): string;
|
|
262
|
+
clear_molecules(): void;
|
|
263
|
+
on_hover(_0: number, _1: number, _2: boolean): void;
|
|
264
|
+
on_scroll(_0: number, _1: number, _2: boolean): void;
|
|
265
|
+
on_left_click(_0: number, _1: number, _2: boolean, _3: boolean, _4: boolean): void;
|
|
266
|
+
on_left_click_released(_0: number, _1: number, _2: boolean, _3: boolean, _4: boolean): void;
|
|
267
|
+
on_right_click(_0: number, _1: number, _2: boolean, _3: boolean, _4: boolean): void;
|
|
268
|
+
on_right_click_released(_0: number, _1: number, _2: boolean, _3: boolean, _4: boolean): void;
|
|
269
|
+
measure(_0: MeasurementDirection): SizingInfo;
|
|
270
|
+
connect(_0: string, _1: any): void;
|
|
271
|
+
delete(): void;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
interface EmbindModule {
|
|
275
|
+
DisplayMode: {Standard: DisplayModeValue<0>, AtomIndices: DisplayModeValue<1>, AtomNames: DisplayModeValue<2>};
|
|
276
|
+
DrawingCommandVector: {new(): DrawingCommandVector};
|
|
277
|
+
PathElementVector: {new(): PathElementVector};
|
|
278
|
+
TextMeasurementCache: {new(): TextMeasurementCache};
|
|
279
|
+
Renderer: {new(_0: any): Renderer; new(_0: any, _1: TextMeasurementCache): Renderer};
|
|
280
|
+
PathElement: {};
|
|
281
|
+
Path: {};
|
|
282
|
+
TextPositioning: {Normal: TextPositioningValue<0>, Sub: TextPositioningValue<1>, Super: TextPositioningValue<2>};
|
|
283
|
+
TextStyle: {new(): TextStyle};
|
|
284
|
+
TextSpan: {new(): TextSpan; new(_0: TextSpanVector): TextSpan};
|
|
285
|
+
TextSpanVector: {new(): TextSpanVector};
|
|
286
|
+
Text: {new(): Text};
|
|
287
|
+
DrawingCommand: {};
|
|
288
|
+
DeleteTool: {new(): DeleteTool};
|
|
289
|
+
ChargeModifier: {new(): ChargeModifier};
|
|
290
|
+
GeometryModifier: {new(): GeometryModifier};
|
|
291
|
+
FormatTool: {new(): FormatTool};
|
|
292
|
+
RemoveHydrogensTool: {new(): RemoveHydrogensTool};
|
|
293
|
+
LhasaElement: {C: LhasaElementValue<0>, N: LhasaElementValue<1>, O: LhasaElementValue<2>, S: LhasaElementValue<3>, P: LhasaElementValue<4>, H: LhasaElementValue<5>, F: LhasaElementValue<6>, Cl: LhasaElementValue<7>, Br: LhasaElementValue<8>, I: LhasaElementValue<9>};
|
|
294
|
+
ElementInsertion: {new(_0: LhasaElement): ElementInsertion};
|
|
295
|
+
element_insertion_from_symbol(_0: string): ElementInsertion;
|
|
296
|
+
LhasaStructure: {CycloPropaneRing: LhasaStructureValue<0>, CycloButaneRing: LhasaStructureValue<1>, CycloPentaneRing: LhasaStructureValue<2>, CycloHexaneRing: LhasaStructureValue<3>, BenzeneRing: LhasaStructureValue<4>, CycloHeptaneRing: LhasaStructureValue<5>, CycloOctaneRing: LhasaStructureValue<6>};
|
|
297
|
+
StructureInsertion: {new(_0: LhasaStructure): StructureInsertion};
|
|
298
|
+
BondModifierMode: {Single: BondModifierModeValue<0>, Double: BondModifierModeValue<1>, Triple: BondModifierModeValue<2>};
|
|
299
|
+
BondModifier: {new(_0: BondModifierMode): BondModifier};
|
|
300
|
+
TransformMode: {Rotation: TransformModeValue<0>, Translation: TransformModeValue<1>};
|
|
301
|
+
TransformTool: {new(_0: TransformMode): TransformTool};
|
|
302
|
+
FlipMode: {Horizontal: FlipModeValue<0>, Vertical: FlipModeValue<1>};
|
|
303
|
+
FlipTool: {new(_0: FlipMode): FlipTool};
|
|
304
|
+
ActiveTool: {new(): ActiveTool};
|
|
305
|
+
make_active_tool(_0: any): ActiveTool;
|
|
306
|
+
MeasurementDirection: {HORIZONTAL: MeasurementDirectionValue<0>, VERTICAL: MeasurementDirectionValue<1>};
|
|
307
|
+
ImplWidgetCoreData: {};
|
|
308
|
+
SmilesMap: {new(): SmilesMap};
|
|
309
|
+
MoleculeIdVector: {new(): MoleculeIdVector};
|
|
310
|
+
Canvas: {new(): Canvas};
|
|
311
|
+
append_from_smiles(_0: Canvas, _1: string): number;
|
|
312
|
+
append_from_pickle_base64(_0: Canvas, _1: string): number;
|
|
313
|
+
}
|
package/types/libcoot.d.ts
CHANGED
|
@@ -50,6 +50,18 @@ export namespace libcootApi {
|
|
|
50
50
|
Fractional: { new(x: number, y: number, z: number): gemmi.Fractional };
|
|
51
51
|
cifDocument: { new(): gemmi.cifDocument };
|
|
52
52
|
}
|
|
53
|
+
type headerInfo = {
|
|
54
|
+
title: string;
|
|
55
|
+
journal_lines: emscriptem.vector<string>;
|
|
56
|
+
author_lines: emscriptem.vector<string>;
|
|
57
|
+
compound_lines: emscriptem.vector<string>;
|
|
58
|
+
}
|
|
59
|
+
type headerInfoJS = {
|
|
60
|
+
title: string;
|
|
61
|
+
journal_lines: string[];
|
|
62
|
+
author_lines: string[];
|
|
63
|
+
compound_lines: string[];
|
|
64
|
+
}
|
|
53
65
|
type SequenceResInfo = {
|
|
54
66
|
resNum: number;
|
|
55
67
|
resCode: string;
|
|
@@ -449,6 +461,10 @@ export namespace libcootApi {
|
|
|
449
461
|
cluster_idx: number;
|
|
450
462
|
ligand_idx: number;
|
|
451
463
|
}
|
|
464
|
+
type compoundInfo = {
|
|
465
|
+
name: string;
|
|
466
|
+
three_letter_code: string;
|
|
467
|
+
}
|
|
452
468
|
type CootModule = {
|
|
453
469
|
SmilesToPDB(arg0: string, arg1: string, arg2: number, arg3: number): PairType<string, string>;
|
|
454
470
|
FS: {
|
|
@@ -466,6 +482,7 @@ export namespace libcootApi {
|
|
|
466
482
|
getPositionsFromSimpleMesh2( arg0: any, arg1: any ): void;
|
|
467
483
|
getNormalsFromSimpleMesh2( arg0: any, arg1: any ): void;
|
|
468
484
|
getReversedNormalsFromSimpleMesh2( arg0: any, arg1: any ): void;
|
|
485
|
+
getReversedNormalsFromSimpleMesh3( arg0: any, arg1: any ): void;
|
|
469
486
|
getColoursFromSimpleMesh2( arg0: any, arg1: any ): void;
|
|
470
487
|
getLineIndicesFromSimpleMesh( arg0: any ): Uint32Array;
|
|
471
488
|
getPermutedTriangleIndicesFromSimpleMesh( arg0: any ): Uint32Array;
|
|
@@ -474,12 +491,14 @@ export namespace libcootApi {
|
|
|
474
491
|
getPermutedTriangleIndicesFromSimpleMesh2( arg0: any, arg1: any ): void;
|
|
475
492
|
getTriangleIndicesFromSimpleMesh2( arg0: any, arg1: any ): void;
|
|
476
493
|
getRamachandranData(arg0: string, arg1: string): emscriptem.vector<RamaData>;
|
|
477
|
-
validate(arg0: string, arg1: string): emscriptem.vector<PrivateerResultsEntry
|
|
494
|
+
validate(arg0: string, arg1: string): emscriptem.vector<PrivateerResultsEntry>;
|
|
495
|
+
parse_mon_lib_list_cif(arg0: string): emscriptem.vector<compoundInfo>;
|
|
478
496
|
molecules_container_js: { new(verbose: boolean): MoleculesContainerJS };
|
|
479
497
|
Vectormoved_residue_t: { new(): emscriptem.vector<MovedResidueT>};
|
|
480
498
|
moved_residue_t: { new(arg0: string, arg1: number, arg2: string): MovedResidueT};
|
|
481
499
|
moved_atom_t: { new(arg0: string, arg1: string, arg2: number, arg3: number, arg4: number, arg5: number): MovedAtomT};
|
|
482
500
|
MapIntFloat3: { new(): emscriptem.map<[number, number, number], number>};
|
|
501
|
+
MapIntFloat4: { new(): emscriptem.map<[number, number, number, number], number>};
|
|
483
502
|
VectorStringUInt_pair: { new(): emscriptem.vector<{ first: string, second: number }>};
|
|
484
503
|
}
|
|
485
504
|
interface MoleculesContainerJS {
|
|
@@ -500,7 +519,7 @@ export namespace libcootApi {
|
|
|
500
519
|
set_map_sampling_rate(arg0: number): void;
|
|
501
520
|
fill_rotamer_probability_tables(): void;
|
|
502
521
|
set_user_defined_atom_colour_by_selection(imol: number, indexedResiduesVec: emscriptem.vector<{ first: string; second: number; }>, nonCarbon: boolean): void;
|
|
503
|
-
set_user_defined_bond_colours(imol: number, colourMap: emscriptem.map<[number, number, number], number>): void;
|
|
522
|
+
set_user_defined_bond_colours(imol: number, colourMap: emscriptem.map<[number, number, number, number], number>): void;
|
|
504
523
|
read_ccp4_map(arg0: string, arg2: boolean): number;
|
|
505
524
|
associate_data_mtz_file_with_map(arg0: number, arg1: string, arg2: string, arg3: string, arg5: string): void;
|
|
506
525
|
read_mtz(arg0: string, arg1: string, arg2: string, arg3: string, arg4: boolean, arg5: boolean): number;
|
package/types/main.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ declare module 'moorhen' {
|
|
|
35
35
|
let hoveringStatesReducer: any;
|
|
36
36
|
module.exports = hoveringStatesReducer
|
|
37
37
|
|
|
38
|
-
let
|
|
39
|
-
module.exports =
|
|
38
|
+
let modalsReducer: any;
|
|
39
|
+
module.exports = modalsReducer
|
|
40
40
|
|
|
41
41
|
let mapContourSettingsReducer: any;
|
|
42
42
|
module.exports = mapContourSettingsReducer
|
|
@@ -89,6 +89,9 @@ declare module 'moorhen' {
|
|
|
89
89
|
interface MoorhenColourRule extends _moorhen.ColourRule { }
|
|
90
90
|
class MoorhenColourRule implements MoorhenColourRule {
|
|
91
91
|
constructor(ruleType: string, cid: string, color: string, commandCentre: React.RefObject<_moorhen.CommandCentre>, isMultiColourRule?: boolean, applyColourToNonCarbonAtoms?: boolean)
|
|
92
|
+
static initFromString: (stringifiedObject: string, commandCentre: React.RefObject<_moorhen.CommandCentre>, molecule: _moorhen.Molecule) => _moorhen.ColourRule;
|
|
93
|
+
static initFromDataObject: (data: _moorhen.ColourRuleObject, commandCentre: React.RefObject<_moorhen.CommandCentre>, molecule: _moorhen.Molecule) => _moorhen.ColourRule;
|
|
94
|
+
static parseHexToRgba: (hex: string) => [number, number, number, number];
|
|
92
95
|
}
|
|
93
96
|
module.exports.MoorhenColourRule = MoorhenColourRule
|
|
94
97
|
|
|
@@ -98,6 +101,57 @@ declare module 'moorhen' {
|
|
|
98
101
|
}
|
|
99
102
|
module.exports.MoorhenMoleculeRepresentation = MoorhenMoleculeRepresentation
|
|
100
103
|
|
|
104
|
+
interface MoorhenTimeCapsule extends _moorhen.TimeCapsule { }
|
|
105
|
+
class MoorhenTimeCapsule implements MoorhenTimeCapsule {
|
|
106
|
+
constructor(moleculesRef: React.RefObject<_moorhen.Molecule[]>, mapsRef: React.RefObject<_moorhen.Map[]>, activeMapRef: React.RefObject<_moorhen.Map>, glRef: React.RefObject<webGL.MGWebGL>, store: any)
|
|
107
|
+
static getBackupLabel(key: _moorhen.backupKey): string;
|
|
108
|
+
static loadSessionData(
|
|
109
|
+
sessionData: _moorhen.backupSession,
|
|
110
|
+
monomerLibraryPath: string,
|
|
111
|
+
molecules: _moorhen.Molecule[],
|
|
112
|
+
maps: _moorhen.Map[],
|
|
113
|
+
commandCentre: React.RefObject<_moorhen.CommandCentre>,
|
|
114
|
+
timeCapsuleRef: React.RefObject<_moorhen.TimeCapsule>,
|
|
115
|
+
glRef: React.RefObject<webGL.MGWebGL>,
|
|
116
|
+
store: any,
|
|
117
|
+
dispatch: any
|
|
118
|
+
): Promise<number>;
|
|
119
|
+
static loadSessionFromArrayBuffer(
|
|
120
|
+
sessionArrayBuffer: ArrayBuffer,
|
|
121
|
+
monomerLibraryPath: string,
|
|
122
|
+
molecules: _moorhen.Molecule[],
|
|
123
|
+
maps: _moorhen.Map[],
|
|
124
|
+
commandCentre: React.RefObject<_moorhen.CommandCentre>,
|
|
125
|
+
timeCapsuleRef: React.RefObject<_moorhen.TimeCapsule>,
|
|
126
|
+
glRef: React.RefObject<webGL.MGWebGL>,
|
|
127
|
+
store: any,
|
|
128
|
+
dispatch: any
|
|
129
|
+
): Promise<number>;
|
|
130
|
+
static loadSessionFromProtoMessage(
|
|
131
|
+
sessionProtoMessage: any,
|
|
132
|
+
monomerLibraryPath: string,
|
|
133
|
+
molecules: _moorhen.Molecule[],
|
|
134
|
+
maps: _moorhen.Map[],
|
|
135
|
+
commandCentre: React.RefObject<_moorhen.CommandCentre>,
|
|
136
|
+
timeCapsuleRef: React.RefObject<_moorhen.TimeCapsule>,
|
|
137
|
+
glRef: React.RefObject<webGL.MGWebGL>,
|
|
138
|
+
store: any,
|
|
139
|
+
dispatch: any
|
|
140
|
+
): Promise<number>;
|
|
141
|
+
static loadSessionFromJsonString(
|
|
142
|
+
sessionDataString: string,
|
|
143
|
+
monomerLibraryPath: string,
|
|
144
|
+
molecules: _moorhen.Molecule[],
|
|
145
|
+
maps: _moorhen.Map[],
|
|
146
|
+
commandCentre: React.RefObject<_moorhen.CommandCentre>,
|
|
147
|
+
timeCapsuleRef: React.RefObject<_moorhen.TimeCapsule>,
|
|
148
|
+
glRef: React.RefObject<webGL.MGWebGL>,
|
|
149
|
+
store: any,
|
|
150
|
+
dispatch: any
|
|
151
|
+
): Promise<number>;
|
|
152
|
+
}
|
|
153
|
+
module.exports.MoorhenTimeCapsule = MoorhenTimeCapsule
|
|
154
|
+
|
|
101
155
|
interface MoorhenMolecule extends _moorhen.Molecule { }
|
|
102
156
|
class MoorhenMolecule implements MoorhenMolecule {
|
|
103
157
|
constructor(commandCentre: React.RefObject<_moorhen.CommandCentre>, glRef: React.RefObject<webGL.MGWebGL>, store?: any, monomerLibrary?: string)
|
|
@@ -107,61 +161,10 @@ declare module 'moorhen' {
|
|
|
107
161
|
interface MoorhenMap extends _moorhen.Map { }
|
|
108
162
|
class MoorhenMap implements MoorhenMap {
|
|
109
163
|
constructor(commandCentre: React.RefObject<_moorhen.CommandCentre>, glRef: React.RefObject<webGL.MGWebGL>, store?: any)
|
|
164
|
+
static autoReadMtz(source: File, commandCentre: React.RefObject<_moorhen.CommandCentre>, glRef: React.RefObject<webGL.MGWebGL>, store: any): Promise<_moorhen.Map[]>;
|
|
110
165
|
}
|
|
111
166
|
module.exports.MoorhenMap = MoorhenMap
|
|
112
167
|
|
|
113
|
-
function loadSessionFromJsonString(
|
|
114
|
-
sessionDataString: string,
|
|
115
|
-
monomerLibraryPath: string,
|
|
116
|
-
molecules: _moorhen.Molecule[],
|
|
117
|
-
maps: _moorhen.Map[],
|
|
118
|
-
commandCentre: React.RefObject<_moorhen.CommandCentre>,
|
|
119
|
-
timeCapsuleRef: React.RefObject<_moorhen.TimeCapsule>,
|
|
120
|
-
glRef: React.RefObject<webGL.MGWebGL>,
|
|
121
|
-
store: any,
|
|
122
|
-
dispatch: (reduxStoreAction: any) => void,
|
|
123
|
-
): Promise<number>;
|
|
124
|
-
module.exports = loadSessionFromJsonString;
|
|
125
|
-
|
|
126
|
-
function loadSessionFromProtoMessage(
|
|
127
|
-
sessionProtoMessage: any,
|
|
128
|
-
monomerLibraryPath: string,
|
|
129
|
-
molecules: _moorhen.Molecule[],
|
|
130
|
-
maps: _moorhen.Map[],
|
|
131
|
-
commandCentre: React.RefObject<_moorhen.CommandCentre>,
|
|
132
|
-
timeCapsuleRef: React.RefObject<_moorhen.TimeCapsule>,
|
|
133
|
-
glRef: React.RefObject<webGL.MGWebGL>,
|
|
134
|
-
store: any,
|
|
135
|
-
dispatch: (reduxStoreAction: any) => void,
|
|
136
|
-
): Promise<number>;
|
|
137
|
-
module.exports = loadSessionFromProtoMessage;
|
|
138
|
-
|
|
139
|
-
function loadSessionFromArrayBuffer(
|
|
140
|
-
sessionArrayBuffer: ArrayBuffer,
|
|
141
|
-
monomerLibraryPath: string,
|
|
142
|
-
molecules: _moorhen.Molecule[],
|
|
143
|
-
maps: _moorhen.Map[],
|
|
144
|
-
commandCentre: React.RefObject<_moorhen.CommandCentre>,
|
|
145
|
-
timeCapsuleRef: React.RefObject<_moorhen.TimeCapsule>,
|
|
146
|
-
glRef: React.RefObject<webGL.MGWebGL>,
|
|
147
|
-
store: any,
|
|
148
|
-
dispatch: (reduxStoreAction: any) => void,
|
|
149
|
-
): Promise<number>;
|
|
150
|
-
module.exports = loadSessionFromArrayBuffer;
|
|
151
|
-
|
|
152
|
-
function loadSessionData(
|
|
153
|
-
sessionData: _moorhen.backupSession,
|
|
154
|
-
monomerLibraryPath: string,
|
|
155
|
-
molecules: _moorhen.Molecule[],
|
|
156
|
-
maps: _moorhen.Map[],
|
|
157
|
-
commandCentre: React.RefObject<_moorhen.CommandCentre>,
|
|
158
|
-
timeCapsuleRef: React.RefObject<_moorhen.TimeCapsule>,
|
|
159
|
-
glRef: React.RefObject<webGL.MGWebGL>,
|
|
160
|
-
store: any,
|
|
161
|
-
dispatch: (reduxStoreAction: any) => void,
|
|
162
|
-
): Promise<number>;
|
|
163
|
-
module.exports = loadSessionData;
|
|
164
|
-
|
|
165
168
|
function setPositiveMapColours(arg0: {molNo: number, rgb: {r: number; g: number; b: number}}): any;
|
|
166
169
|
module.exports = setPositiveMapColours;
|
|
167
170
|
|
package/types/mgWebGL.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export namespace webGL {
|
|
|
127
127
|
buildBuffers(): void;
|
|
128
128
|
drawScene() : void;
|
|
129
129
|
textureBlur(width: number,height: number,inputTexture: WebGLTexture) : void;
|
|
130
|
-
depthBlur() : void;
|
|
130
|
+
depthBlur(invMat) : void;
|
|
131
131
|
appendOtherData(jsondata: any, skipRebuild?: boolean, name?: string) : any;
|
|
132
132
|
setZoom(z: number, drawScene?: boolean);
|
|
133
133
|
setOriginOrientationAndZoomAnimated(o: number[],q: quat4,z: number) : void;
|
|
@@ -166,7 +166,8 @@ export namespace webGL {
|
|
|
166
166
|
setEdgeDetectNormalScale(normalScale: number): void;
|
|
167
167
|
setOccludeDiffuse(doOccludeDiffuse: boolean): void;
|
|
168
168
|
setOutlinesOn(doOutline: boolean): void;
|
|
169
|
-
setDoOrderIndependentTransparency(
|
|
169
|
+
setDoOrderIndependentTransparency(doOrderIndependentTransparency: boolean): void;
|
|
170
|
+
setDoTransparentScreenshotBackground(transparentScreenshotBackground: boolean): void;
|
|
170
171
|
setSpinTestState(doSpinTest: boolean): void;
|
|
171
172
|
setBlurSize(blurSize: number): void;
|
|
172
173
|
setSSAORadius(radius: number): void;
|
|
@@ -229,6 +230,7 @@ export namespace webGL {
|
|
|
229
230
|
gBuffersFramebufferSize : number;
|
|
230
231
|
save_pixel_data: boolean;
|
|
231
232
|
renderToTexture: boolean;
|
|
233
|
+
transparentScreenshotBackground: boolean;
|
|
232
234
|
doDepthPeelPass: boolean;
|
|
233
235
|
showShortCutHelp: string[];
|
|
234
236
|
WEBGL2: boolean;
|