UNPKG

react-ngl

Version:
69 lines (68 loc) 4.65 kB
import { StructureRepresentationParameters } from '../../@types/ngl/declarations/representation/structure-representation'; import { AngleRepresentationParameters } from '../../@types/ngl/declarations/representation/angle-representation'; import { AxesRepresentationParameters } from '../../@types/ngl/declarations/representation/axes-representation'; import { BallAndStickRepresentationParameters } from '../../@types/ngl/declarations/representation/ballandstick-representation'; import { CartoonRepresentationParameters } from '../../@types/ngl/declarations/representation/cartoon-representation'; import { ContactRepresentationParameters } from '../../@types/ngl/declarations/representation/contact-representation'; import { DihedralRepresentationParameters } from '../../@types/ngl/declarations/representation/dihedral-representation'; import { DihedralHistogramRepresentationParameters } from '../../@types/ngl/declarations/representation/dihedral-histogram-representation'; import { DistanceRepresentationParameters } from '../../@types/ngl/declarations/representation/distance-representation'; import { HyperballRepresentationParameters } from '../../@types/ngl/declarations/representation/hyperball-representation'; import { LabelRepresentationParameters } from '../../@types/ngl/declarations/representation/label-representation'; import { LineRepresentationParameters } from '../../@types/ngl/declarations/representation/line-representation'; import { PointRepresentationParameters } from '../../@types/ngl/declarations/representation/point-representation'; import { SurfaceRepresentationParameters } from '../../@types/ngl/declarations/representation/surface-representation'; import { RibbonRepresentationParameters } from '../../@types/ngl/declarations/representation/ribbon-representation'; import { RocketRepresentationParameters } from '../../@types/ngl/declarations/representation/rocket-representation'; import { TraceRepresentationParameters } from '../../@types/ngl/declarations/representation/trace-representation'; import { UnitcellRepresentationParameters } from '../../@types/ngl/declarations/representation/unitcell-representation'; import { SliceRepresentationParameters } from '../../@types/ngl/declarations/representation/slice-representation'; import { MolecularSurfaceRepresentationParameters } from '../../@types/ngl/declarations/representation/molecularsurface-representation'; import { DotRepresentationParameters } from '../../@types/ngl/declarations/representation/dot-representation'; import { StructureRepresentationType } from '../../@types/ngl/declarations/component/structure-component'; import { SurfaceRepresentationType } from '../../@types/ngl/declarations/component/surface-component'; export interface StructureRepresentationParametersMap { angle: AngleRepresentationParameters; axes: AxesRepresentationParameters; backbone: BallAndStickRepresentationParameters; 'ball+stick': BallAndStickRepresentationParameters; base: BallAndStickRepresentationParameters; cartoon: CartoonRepresentationParameters; contact: ContactRepresentationParameters; dihedral: DihedralRepresentationParameters; 'dihedral-histogram': DihedralHistogramRepresentationParameters; distance: DistanceRepresentationParameters; dot: DotRepresentationParameters; helixorient: StructureRepresentationParameters; hyperball: HyperballRepresentationParameters; label: LabelRepresentationParameters; licorice: BallAndStickRepresentationParameters; line: LineRepresentationParameters; molecularsurface: MolecularSurfaceRepresentationParameters; point: PointRepresentationParameters; ribbon: RibbonRepresentationParameters; rocket: RocketRepresentationParameters; rope: CartoonRepresentationParameters; slice: SliceRepresentationParameters; spacefill: BallAndStickRepresentationParameters; surface: SurfaceRepresentationParameters; trace: TraceRepresentationParameters; tube: CartoonRepresentationParameters; unitcell: UnitcellRepresentationParameters; validation: StructureRepresentationParameters; } export declare type StructureRepresentationDescriptor = { [K in StructureRepresentationType]: { type: K; params?: Partial<StructureRepresentationParametersMap[K]> | { defaultAssembly: string; }; }; }[StructureRepresentationType]; export declare type SurfaceRepresentationDescriptor = { type: SurfaceRepresentationType; params?: { [k: string]: any; }; }; export declare type RepresentationDescriptor = StructureRepresentationDescriptor | SurfaceRepresentationDescriptor;