UNPKG

molstar

Version:

A comprehensive macromolecular library.

73 lines (72 loc) 3.01 kB
/** * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> * @author Ludovic Autin <ludovic.autin@gmail.com> */ import { ParamDefinition as PD } from '../../mol-util/param-definition'; import { Vec3 } from '../../mol-math/linear-algebra'; import { RepresentationParamsGetter, Representation, RepresentationContext } from '../../mol-repr/representation'; interface MembraneSphereData { radius: number; center: Vec3; } export declare const MBParams: { cellColor: PD.Color; cellScale: PD.Numeric; radius: PD.Numeric; center: PD.Vec3; quality: { isEssential: boolean; type: "select"; options: readonly (readonly ["auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest", string] | readonly ["auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest", string, string | undefined])[]; cycle?: boolean | undefined; isOptional?: boolean | undefined; defaultValue: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest"; label?: string | undefined; description?: string | undefined; legend?: import("../../mol-util/legend").Legend | undefined; fieldLabels?: { [name: string]: string; } | undefined; isHidden?: boolean | undefined; shortLabel?: boolean | undefined; twoColumns?: boolean | undefined; category?: string | undefined; hideIf?: ((currentGroup: any) => boolean) | undefined; help?: ((value: any) => { description?: string | undefined; legend?: import("../../mol-util/legend").Legend | undefined; }) | undefined; }; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; xrayShaded: PD.BooleanParam; transparentBackfaces: PD.Select<string>; bumpFrequency: PD.Numeric; bumpAmplitude: PD.Numeric; alpha: PD.Numeric; 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; }; export declare type MBParams = typeof MBParams; export declare type UnitcellProps = PD.Values<MBParams>; export declare type MBRepresentation = Representation<MembraneSphereData, MBParams>; export declare function MBRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<MembraneSphereData, MBParams>): MBRepresentation; export {};