File size: 868 Bytes
71174bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { IColorScheme } from "./Colors/ColorInterfaces";

export enum HydrogenDisplayType {
 All = "all",
 Polar = "polar",
 None = "none",
}

export interface ISelAndStyle {
    selection?: any;
    sphere?: IColorScheme;
    stick?: IColorScheme;
    line?: IColorScheme;
    cartoon?: IColorScheme;
    surface?: IColorScheme; // NOTE: Not how 3dmoljs handles surface.
    moleculeId?: string;
 hydrogens?: HydrogenDisplayType;
}

export enum AtomsRepresentation {
    Hidden = "atoms-hidden",
    Line = "line",
    Stick = "stick",
    Sphere = "sphere",
}

export enum BackBoneRepresentation {
    Hidden = "backbone-hidden",
    Cartoon = "cartoon",
}

export enum SurfaceRepresentation {
    Hidden = "surface-hidden",
    Surface = "surface",
}

export type Representation =
    | AtomsRepresentation
    | BackBoneRepresentation
    | SurfaceRepresentation;