UNPKG

molstar

Version:

A comprehensive macromolecular library.

342 lines (341 loc) 12.4 kB
/** * Copyright (c) 2018-2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> * @author Gianluca Tomasello <giagitom@gmail.com> */ import { ParamDefinition as PD } from '../../../mol-util/param-definition.js'; import { StructureRepresentation, StructureRepresentationProvider } from '../representation.js'; import { RepresentationParamsGetter, RepresentationContext } from '../../../mol-repr/representation.js'; import { ThemeRegistryContext } from '../../../mol-theme/theme.js'; import { Structure } from '../../../mol-model/structure.js'; export declare const MolecularSurfaceParams: { visuals: PD.MultiSelect<"molecular-surface-mesh" | "structure-molecular-surface-mesh" | "molecular-surface-wireframe" | "structure-molecular-surface-wireframe">; bumpFrequency: PD.Numeric; density: PD.Numeric; sizeFactor: PD.Numeric; ignoreHydrogens: PD.BooleanParam; ignoreHydrogensVariant: PD.Select<"all" | "non-polar">; traceOnly: PD.BooleanParam; includeParent: PD.BooleanParam; resolution: { label?: string; description?: string; legend?: import("../../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../../mol-util/legend.js").Legend; }; type: "number"; immediateUpdate?: boolean; isOptional?: boolean; defaultValue: number; min?: number; max?: number; step?: number; }; probePositions: { label?: string; description?: string; legend?: import("../../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../../mol-util/legend.js").Legend; }; type: "number"; immediateUpdate?: boolean; isOptional?: boolean; defaultValue: number; min?: number; max?: number; step?: number; }; floodfill: PD.Select<"inside" | "outside" | "off">; probeRadius: PD.Numeric; unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">; lineSizeAttenuation: PD.BooleanParam; 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.js").Clip.Variant; objects: PD.Normalize<{ type: /*elided*/ any; invert: /*elided*/ any; position: /*elided*/ any; rotation: /*elided*/ any; scale: /*elided*/ any; transform: /*elided*/ any; }>[]; }>>; emissive: PD.Numeric; instanceGranularity: PD.BooleanParam; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{ resolutionFactor: number; sampleStride: number; }>, "on">>; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select<boolean | "inverted">; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpAmplitude: PD.Numeric; interior: PD.Group<PD.Normalize<{ color: import("../../../mol-util/color/index.js").Color; colorStrength: number; substance: PD.Normalize<{ metalness: number; roughness: number; bumpiness: number; }>; substanceStrength: number; }>>; }; export type MolecularSurfaceParams = typeof MolecularSurfaceParams; export declare function getMolecularSurfaceParams(ctx: ThemeRegistryContext, structure: Structure): { visuals: PD.MultiSelect<"molecular-surface-mesh" | "structure-molecular-surface-mesh" | "molecular-surface-wireframe" | "structure-molecular-surface-wireframe">; bumpFrequency: PD.Numeric; density: PD.Numeric; sizeFactor: PD.Numeric; ignoreHydrogens: PD.BooleanParam; ignoreHydrogensVariant: PD.Select<"all" | "non-polar">; traceOnly: PD.BooleanParam; includeParent: PD.BooleanParam; resolution: { label?: string; description?: string; legend?: import("../../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../../mol-util/legend.js").Legend; }; type: "number"; immediateUpdate?: boolean; isOptional?: boolean; defaultValue: number; min?: number; max?: number; step?: number; }; probePositions: { label?: string; description?: string; legend?: import("../../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../../mol-util/legend.js").Legend; }; type: "number"; immediateUpdate?: boolean; isOptional?: boolean; defaultValue: number; min?: number; max?: number; step?: number; }; floodfill: PD.Select<"inside" | "outside" | "off">; probeRadius: PD.Numeric; unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">; lineSizeAttenuation: PD.BooleanParam; 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.js").Clip.Variant; objects: PD.Normalize<{ type: /*elided*/ any; invert: /*elided*/ any; position: /*elided*/ any; rotation: /*elided*/ any; scale: /*elided*/ any; transform: /*elided*/ any; }>[]; }>>; emissive: PD.Numeric; instanceGranularity: PD.BooleanParam; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{ resolutionFactor: number; sampleStride: number; }>, "on">>; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select<boolean | "inverted">; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpAmplitude: PD.Numeric; interior: PD.Group<PD.Normalize<{ color: import("../../../mol-util/color/index.js").Color; colorStrength: number; substance: PD.Normalize<{ metalness: number; roughness: number; bumpiness: number; }>; substanceStrength: number; }>>; }; export type MolecularSurfaceRepresentation = StructureRepresentation<MolecularSurfaceParams>; export declare function MolecularSurfaceRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, MolecularSurfaceParams>): MolecularSurfaceRepresentation; export declare const MolecularSurfaceRepresentationProvider: StructureRepresentationProvider<{ visuals: PD.MultiSelect<"molecular-surface-mesh" | "structure-molecular-surface-mesh" | "molecular-surface-wireframe" | "structure-molecular-surface-wireframe">; bumpFrequency: PD.Numeric; density: PD.Numeric; sizeFactor: PD.Numeric; ignoreHydrogens: PD.BooleanParam; ignoreHydrogensVariant: PD.Select<"all" | "non-polar">; traceOnly: PD.BooleanParam; includeParent: PD.BooleanParam; resolution: { label?: string; description?: string; legend?: import("../../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../../mol-util/legend.js").Legend; }; type: "number"; immediateUpdate?: boolean; isOptional?: boolean; defaultValue: number; min?: number; max?: number; step?: number; }; probePositions: { label?: string; description?: string; legend?: import("../../../mol-util/legend.js").Legend; fieldLabels?: { [name: string]: string; }; isHidden?: boolean; shortLabel?: boolean; twoColumns?: boolean; isEssential?: boolean; category?: string; hideIf?: (currentGroup: any) => boolean; help?: (value: any) => { description?: string; legend?: import("../../../mol-util/legend.js").Legend; }; type: "number"; immediateUpdate?: boolean; isOptional?: boolean; defaultValue: number; min?: number; max?: number; step?: number; }; floodfill: PD.Select<"inside" | "outside" | "off">; probeRadius: PD.Numeric; unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">; lineSizeAttenuation: PD.BooleanParam; 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.js").Clip.Variant; objects: PD.Normalize<{ type: /*elided*/ any; invert: /*elided*/ any; position: /*elided*/ any; rotation: /*elided*/ any; scale: /*elided*/ any; transform: /*elided*/ any; }>[]; }>>; emissive: PD.Numeric; instanceGranularity: PD.BooleanParam; lod: PD.Vec3; cellSize: PD.Numeric; batchSize: PD.Numeric; smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{ resolutionFactor: number; sampleStride: number; }>, "on">>; doubleSided: PD.BooleanParam; flipSided: PD.BooleanParam; flatShaded: PD.BooleanParam; ignoreLight: PD.BooleanParam; celShaded: PD.BooleanParam; xrayShaded: PD.Select<boolean | "inverted">; transparentBackfaces: PD.Select<"off" | "on" | "opaque">; bumpAmplitude: PD.Numeric; interior: PD.Group<PD.Normalize<{ color: import("../../../mol-util/color/index.js").Color; colorStrength: number; substance: PD.Normalize<{ metalness: number; roughness: number; bumpiness: number; }>; substanceStrength: number; }>>; }, "molecular-surface">;