UNPKG

molstar

Version:

A comprehensive macromolecular library.

71 lines (70 loc) 3.4 kB
/** * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { Structure } from '../../../mol-model/structure'; import { RepresentationContext, RepresentationParamsGetter } from '../../../mol-repr/representation'; import { ThemeRegistryContext } from '../../../mol-theme/theme'; import { ParamDefinition as PD } from '../../../mol-util/param-definition'; import { StructureRepresentation, StructureRepresentationProvider } from '../representation'; export declare const CartoonParams: { sizeFactor: PD.Numeric; visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-block" | "nucleotide-ring" | "direction-wedge">; unitKinds: PD.MultiSelect<"spheres" | "atomic" | "gaussians">; includeParent: PD.BooleanParam; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; alpha: PD.Numeric; quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">; radialSegments: PD.Numeric; detail: PD.Numeric; aspectRatio: PD.Numeric; arrowFactor: PD.Numeric; tubularHelices: PD.BooleanParam; linearSegments: PD.Numeric; }; export declare type CartoonParams = typeof CartoonParams; export declare function getCartoonParams(ctx: ThemeRegistryContext, structure: Structure): { sizeFactor: PD.Numeric; visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-block" | "nucleotide-ring" | "direction-wedge">; unitKinds: PD.MultiSelect<"spheres" | "atomic" | "gaussians">; includeParent: PD.BooleanParam; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; alpha: PD.Numeric; quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">; radialSegments: PD.Numeric; detail: PD.Numeric; aspectRatio: PD.Numeric; arrowFactor: PD.Numeric; tubularHelices: PD.BooleanParam; linearSegments: PD.Numeric; }; export declare type CartoonRepresentation = StructureRepresentation<CartoonParams>; export declare function CartoonRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, CartoonParams>): CartoonRepresentation; export declare const CartoonRepresentationProvider: StructureRepresentationProvider<{ sizeFactor: PD.Numeric; visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-block" | "nucleotide-ring" | "direction-wedge">; unitKinds: PD.MultiSelect<"spheres" | "atomic" | "gaussians">; includeParent: PD.BooleanParam; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; alpha: PD.Numeric; quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">; radialSegments: PD.Numeric; detail: PD.Numeric; aspectRatio: PD.Numeric; arrowFactor: PD.Numeric; tubularHelices: PD.BooleanParam; linearSegments: PD.Numeric; }, "cartoon">;