molstar
Version:
A comprehensive macromolecular library.
119 lines (118 loc) • 4.62 kB
TypeScript
/**
* Copyright (c) 2019-2020 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 { Structure } from '../../../mol-model/structure';
import { ThemeRegistryContext } from '../../../mol-theme/theme';
export declare const PuttyParams: {
sizeFactor: PD.Numeric;
visuals: PD.MultiSelect<"polymer-gap" | "polymer-tube">;
bumpFrequency: PD.Numeric;
radialSegments: PD.Numeric;
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
includeParent: PD.BooleanParam;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: 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;
detail: PD.Numeric;
linearSegments: PD.Numeric;
};
export declare type PuttyParams = typeof PuttyParams;
export declare function getPuttyParams(ctx: ThemeRegistryContext, structure: Structure): {
sizeFactor: PD.Numeric;
visuals: PD.MultiSelect<"polymer-gap" | "polymer-tube">;
bumpFrequency: PD.Numeric;
radialSegments: PD.Numeric;
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
includeParent: PD.BooleanParam;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: 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;
detail: PD.Numeric;
linearSegments: PD.Numeric;
};
export declare type PuttyRepresentation = StructureRepresentation<PuttyParams>;
export declare function PuttyRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, PuttyParams>): PuttyRepresentation;
export declare const PuttyRepresentationProvider: StructureRepresentationProvider<{
sizeFactor: PD.Numeric;
visuals: PD.MultiSelect<"polymer-gap" | "polymer-tube">;
bumpFrequency: PD.Numeric;
radialSegments: PD.Numeric;
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
includeParent: PD.BooleanParam;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: 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;
detail: PD.Numeric;
linearSegments: PD.Numeric;
}, "putty">;