moorhen 0.6.2 → 0.6.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moorhen",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "private": false,
5
5
  "main": "moorhen.js",
6
6
  "types": "./types/main.d.ts",
@@ -112,6 +112,7 @@
112
112
  "@mui/icons-material": "^5.10.9",
113
113
  "@mui/lab": "^5.0.0-alpha.140",
114
114
  "@mui/material": "^5.10.10",
115
+ "@mui/x-tree-view": "^6.17.0",
115
116
  "@reduxjs/toolkit": "^1.9.7",
116
117
  "@testing-library/jest-dom": "^5.16.4",
117
118
  "@testing-library/react": "^13.2.0",
package/types/main.d.ts CHANGED
@@ -9,6 +9,9 @@ declare module 'moorhen' {
9
9
  let MoorhenContainer: any;
10
10
  module.exports = MoorhenContainer;
11
11
 
12
+ let ErrorBoundary: any;
13
+ module.exports = ErrorBoundary;
14
+
12
15
  let MoorhenDraggableModalBase: any;
13
16
  module.exports = MoorhenDraggableModalBase;
14
17
 
@@ -186,7 +189,7 @@ declare module 'moorhen' {
186
189
  mapRadius: number;
187
190
  mapColour: [number, number, number, number];
188
191
  webMGContour: boolean;
189
- cootContour: boolean;
192
+ isVisible: boolean;
190
193
  displayObjects: any;
191
194
  litLines: boolean;
192
195
  solid: boolean;
@@ -28,6 +28,7 @@ export namespace moorhen {
28
28
  resNum: string;
29
29
  modelName: string;
30
30
  cid: string;
31
+ svg?: string;
31
32
  }
32
33
 
33
34
  type Sequence = {
@@ -189,7 +190,8 @@ export namespace moorhen {
189
190
 
190
191
  type RepresentationStyles = 'VdwSpheres' | 'ligands' | 'CAs' | 'CBs' | 'CDs' | 'gaussian' | 'allHBonds' | 'rama' |
191
192
  'rotamer' | 'CRs' | 'MolecularSurface' | 'DishyBases' | 'VdWSurface' | 'Calpha' | 'unitCell' | 'hover' | 'environment' |
192
- 'ligand_environment' | 'contact_dots' | 'chemical_features' | 'ligand_validation' | 'glycoBlocks' | 'restraints' | 'residueSelection'
193
+ 'ligand_environment' | 'contact_dots' | 'chemical_features' | 'ligand_validation' | 'glycoBlocks' | 'restraints' |
194
+ 'residueSelection' | 'MetaBalls'
193
195
 
194
196
  interface MoleculeRepresentation {
195
197
  setApplyColourToNonCarbonAtoms(newVal: boolean): void;
@@ -230,7 +232,8 @@ export namespace moorhen {
230
232
  molecule: null | moorhen.Molecule;
231
233
  first: null | string;
232
234
  second: null | string;
233
- cid: null | string;
235
+ cid: null | string | string[];
236
+ isMultiCid: boolean;
234
237
  }
235
238
 
236
239
  type HoveredAtom = {
@@ -388,7 +391,7 @@ export namespace moorhen {
388
391
  mapRadius: number;
389
392
  mapColour: [number, number, number, number];
390
393
  webMGContour: boolean;
391
- cootContour: boolean;
394
+ isVisible: boolean;
392
395
  displayObjects: any;
393
396
  litLines: boolean;
394
397
  solid: boolean;
@@ -413,6 +416,7 @@ export namespace moorhen {
413
416
  label?: string;
414
417
  dateTime: string;
415
418
  type: string;
419
+ serNo: string | number;
416
420
  molNames: string[];
417
421
  mapNames?: string[];
418
422
  mtzNames?: string[];
@@ -435,7 +439,7 @@ export namespace moorhen {
435
439
  uniqueId: string;
436
440
  mapData: Uint8Array;
437
441
  reflectionData: Uint8Array;
438
- cootContour: boolean;
442
+ isVisible: boolean;
439
443
  contourLevel: number;
440
444
  radius: number;
441
445
  colour: [number, number, number, number];
@@ -520,7 +524,6 @@ export namespace moorhen {
520
524
  type MapRadiusChangeEvent = CustomEvent<{ factor: number; }>
521
525
 
522
526
  type ScoresUpdateEvent = CustomEvent<{
523
- origin: [number, number, number];
524
527
  modifiedMolecule: number;
525
528
  }>
526
529
 
@@ -541,7 +544,7 @@ export namespace moorhen {
541
544
  type NewMapContourEvent = CustomEvent<{
542
545
  molNo: number;
543
546
  mapRadius: number;
544
- cootContour: boolean;
547
+ isVisible: boolean;
545
548
  contourLevel: number;
546
549
  mapColour: [number, number, number, number],
547
550
  litLines: boolean;
@@ -721,12 +724,6 @@ export namespace moorhen {
721
724
  interface State {
722
725
  molecules: Molecule[];
723
726
  maps: Map[];
724
- canvasStates: {
725
- backgroundColor: [number, number, number, number];
726
- height: number;
727
- width: number;
728
- isDark: boolean
729
- };
730
727
  mapSettings: {
731
728
  defaultMapSamplingRate: number;
732
729
  defaultMapLitLines: boolean;
@@ -779,7 +776,11 @@ export namespace moorhen {
779
776
  doSpinTest: boolean;
780
777
  defaultBondSmoothness: number,
781
778
  resetClippingFogging: boolean;
782
- clipCap: boolean;
779
+ clipCap: boolean;
780
+ backgroundColor: [number, number, number, number];
781
+ height: number;
782
+ width: number;
783
+ isDark: boolean;
783
784
  };
784
785
  miscAppSettings: {
785
786
  defaultExpandDisplayCards: boolean;
@@ -795,6 +796,9 @@ export namespace moorhen {
795
796
  activeMap: Map;
796
797
  theme: string;
797
798
  residueSelection: ResidueSelection;
799
+ isChangingRotamers: boolean;
800
+ isDraggingAtoms: boolean;
801
+ isRotatingAtoms: boolean;
798
802
  };
799
803
  hoveringStates: {
800
804
  enableAtomHovering: boolean;