UNPKG

molstar

Version:

A comprehensive macromolecular library.

173 lines (172 loc) 7.21 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" | "gaussians" | "atomic">; sizeFactor: PD.Numeric; sizeAspectRatio: PD.Numeric; visuals: PD.MultiSelect<"element-sphere" | "intra-bond" | "inter-bond">; bumpFrequency: PD.Numeric; tryUseImpostor: PD.BooleanParam; adjustCylinderLength: PD.BooleanParam; includeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">; excludeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">; ignoreHydrogens: PD.BooleanParam; aromaticBonds: PD.BooleanParam; multipleBonds: PD.Select<"offset" | "off" | "symmetric">; linkScale: PD.Numeric; linkSpacing: PD.Numeric; linkCap: PD.BooleanParam; aromaticScale: PD.Numeric; aromaticSpacing: PD.Numeric; aromaticDashCount: PD.Numeric; dashCount: PD.Numeric; dashScale: PD.Numeric; dashCap: PD.BooleanParam; stubCap: PD.BooleanParam; radialSegments: PD.Numeric; doubleSided: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; transparentBackfaces: PD.Select<string>; bumpAmplitude: PD.Numeric; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group<PD.Normalize<{ metalness: number; roughness: number; bumpiness: number; }>>; clip: PD.Group<PD.Normalize<{ variant: import("../../../mol-util/clip").Clip.Variant; objects: PD.Normalize<{ type: any; invert: any; position: any; rotation: any; scale: any; }>[]; }>>; instanceGranularity: PD.BooleanParam; 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" | "gaussians" | "atomic">; sizeFactor: PD.Numeric; sizeAspectRatio: PD.Numeric; visuals: PD.MultiSelect<"element-sphere" | "intra-bond" | "inter-bond">; bumpFrequency: PD.Numeric; tryUseImpostor: PD.BooleanParam; adjustCylinderLength: PD.BooleanParam; includeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">; excludeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">; ignoreHydrogens: PD.BooleanParam; aromaticBonds: PD.BooleanParam; multipleBonds: PD.Select<"offset" | "off" | "symmetric">; linkScale: PD.Numeric; linkSpacing: PD.Numeric; linkCap: PD.BooleanParam; aromaticScale: PD.Numeric; aromaticSpacing: PD.Numeric; aromaticDashCount: PD.Numeric; dashCount: PD.Numeric; dashScale: PD.Numeric; dashCap: PD.BooleanParam; stubCap: PD.BooleanParam; radialSegments: PD.Numeric; doubleSided: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; transparentBackfaces: PD.Select<string>; bumpAmplitude: PD.Numeric; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group<PD.Normalize<{ metalness: number; roughness: number; bumpiness: number; }>>; clip: PD.Group<PD.Normalize<{ variant: import("../../../mol-util/clip").Clip.Variant; objects: PD.Normalize<{ type: any; invert: any; position: any; rotation: any; scale: any; }>[]; }>>; instanceGranularity: PD.BooleanParam; 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" | "gaussians" | "atomic">; sizeFactor: PD.Numeric; sizeAspectRatio: PD.Numeric; visuals: PD.MultiSelect<"element-sphere" | "intra-bond" | "inter-bond">; bumpFrequency: PD.Numeric; tryUseImpostor: PD.BooleanParam; adjustCylinderLength: PD.BooleanParam; includeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">; excludeTypes: PD.MultiSelect<"covalent" | "metal-coordination" | "hydrogen-bond" | "disulfide" | "aromatic" | "computed">; ignoreHydrogens: PD.BooleanParam; aromaticBonds: PD.BooleanParam; multipleBonds: PD.Select<"offset" | "off" | "symmetric">; linkScale: PD.Numeric; linkSpacing: PD.Numeric; linkCap: PD.BooleanParam; aromaticScale: PD.Numeric; aromaticSpacing: PD.Numeric; aromaticDashCount: PD.Numeric; dashCount: PD.Numeric; dashScale: PD.Numeric; dashCap: PD.BooleanParam; stubCap: PD.BooleanParam; radialSegments: PD.Numeric; doubleSided: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; transparentBackfaces: PD.Select<string>; bumpAmplitude: PD.Numeric; alpha: PD.Numeric; quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">; material: PD.Group<PD.Normalize<{ metalness: number; roughness: number; bumpiness: number; }>>; clip: PD.Group<PD.Normalize<{ variant: import("../../../mol-util/clip").Clip.Variant; objects: PD.Normalize<{ type: any; invert: any; position: any; rotation: any; scale: any; }>[]; }>>; instanceGranularity: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; traceOnly: PD.BooleanParam; detail: PD.Numeric; }, "ball-and-stick">;