molmoda / data /src /Core /Styling /SelAndStyleInterfaces.ts
introvoyz041's picture
Migrated from GitHub
71174bc verified
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;