UNPKG

molstar

Version:

A comprehensive macromolecular library.

107 lines (106 loc) 5.17 kB
/** * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { ParamDefinition as PD } from '../../../mol-util/param-definition'; import { StructureRepresentation, StructureRepresentationProvider } from '../representation'; import { RepresentationParamsGetter, RepresentationContext } from '../../../mol-repr/representation'; import { ThemeRegistryContext } from '../../../mol-theme/theme'; import { Structure } from '../../../mol-model/structure'; export declare const BallAndStickParams: { includeParent: PD.BooleanParam; unitKinds: PD.MultiSelect<"spheres" | "atomic" | "gaussians">; sizeFactor: PD.Numeric; sizeAspectRatio: PD.Numeric; visuals: PD.MultiSelect<"element-sphere" | "intra-bond" | "inter-bond">; tryUseImpostor: PD.BooleanParam; adjustCylinderLength: PD.BooleanParam; includeTypes: PD.MultiSelect<"covalent" | "computed" | "aromatic" | "metal-coordination" | "hydrogen-bond" | "disulfide">; excludeTypes: PD.MultiSelect<"covalent" | "computed" | "aromatic" | "metal-coordination" | "hydrogen-bond" | "disulfide">; ignoreHydrogens: PD.BooleanParam; aromaticBonds: PD.BooleanParam; multipleBonds: PD.Select<"off" | "symmetric" | "offset">; linkScale: PD.Numeric; linkSpacing: PD.Numeric; linkCap: PD.BooleanParam; dashCount: PD.Numeric; dashScale: PD.Numeric; dashCap: PD.BooleanParam; stubCap: PD.BooleanParam; radialSegments: PD.Numeric; doubleSided: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; alpha: PD.Numeric; quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; traceOnly: PD.BooleanParam; detail: PD.Numeric; }; export declare type BallAndStickParams = typeof BallAndStickParams; export declare function getBallAndStickParams(ctx: ThemeRegistryContext, structure: Structure): { includeParent: PD.BooleanParam; unitKinds: PD.MultiSelect<"spheres" | "atomic" | "gaussians">; sizeFactor: PD.Numeric; sizeAspectRatio: PD.Numeric; visuals: PD.MultiSelect<"element-sphere" | "intra-bond" | "inter-bond">; tryUseImpostor: PD.BooleanParam; adjustCylinderLength: PD.BooleanParam; includeTypes: PD.MultiSelect<"covalent" | "computed" | "aromatic" | "metal-coordination" | "hydrogen-bond" | "disulfide">; excludeTypes: PD.MultiSelect<"covalent" | "computed" | "aromatic" | "metal-coordination" | "hydrogen-bond" | "disulfide">; ignoreHydrogens: PD.BooleanParam; aromaticBonds: PD.BooleanParam; multipleBonds: PD.Select<"off" | "symmetric" | "offset">; linkScale: PD.Numeric; linkSpacing: PD.Numeric; linkCap: PD.BooleanParam; dashCount: PD.Numeric; dashScale: PD.Numeric; dashCap: PD.BooleanParam; stubCap: PD.BooleanParam; radialSegments: PD.Numeric; doubleSided: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; alpha: PD.Numeric; quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; traceOnly: PD.BooleanParam; detail: PD.Numeric; }; export declare type BallAndStickRepresentation = StructureRepresentation<BallAndStickParams>; export declare function BallAndStickRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, BallAndStickParams>): BallAndStickRepresentation; export declare const BallAndStickRepresentationProvider: StructureRepresentationProvider<{ includeParent: PD.BooleanParam; unitKinds: PD.MultiSelect<"spheres" | "atomic" | "gaussians">; sizeFactor: PD.Numeric; sizeAspectRatio: PD.Numeric; visuals: PD.MultiSelect<"element-sphere" | "intra-bond" | "inter-bond">; tryUseImpostor: PD.BooleanParam; adjustCylinderLength: PD.BooleanParam; includeTypes: PD.MultiSelect<"covalent" | "computed" | "aromatic" | "metal-coordination" | "hydrogen-bond" | "disulfide">; excludeTypes: PD.MultiSelect<"covalent" | "computed" | "aromatic" | "metal-coordination" | "hydrogen-bond" | "disulfide">; ignoreHydrogens: PD.BooleanParam; aromaticBonds: PD.BooleanParam; multipleBonds: PD.Select<"off" | "symmetric" | "offset">; linkScale: PD.Numeric; linkSpacing: PD.Numeric; linkCap: PD.BooleanParam; dashCount: PD.Numeric; dashScale: PD.Numeric; dashCap: PD.BooleanParam; stubCap: PD.BooleanParam; radialSegments: PD.Numeric; doubleSided: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; alpha: PD.Numeric; quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; traceOnly: PD.BooleanParam; detail: PD.Numeric; }, "ball-and-stick">;