molstar
Version:
A comprehensive macromolecular library.
56 lines (55 loc) • 2.75 kB
TypeScript
/**
* Copyright (c) 2019 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 OrientationParams: {
visuals: PD.MultiSelect<"orientation-ellipsoid-mesh">;
sizeFactor: PD.Numeric;
detail: PD.Numeric;
unitKinds: PD.MultiSelect<"spheres" | "atomic" | "gaussians">;
includeParent: PD.BooleanParam;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: PD.BooleanParam;
ignoreLight: PD.BooleanParam;
xrayShaded: PD.BooleanParam;
alpha: PD.Numeric;
quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">;
};
export declare type OrientationParams = typeof OrientationParams;
export declare function getOrientationParams(ctx: ThemeRegistryContext, structure: Structure): {
visuals: PD.MultiSelect<"orientation-ellipsoid-mesh">;
sizeFactor: PD.Numeric;
detail: PD.Numeric;
unitKinds: PD.MultiSelect<"spheres" | "atomic" | "gaussians">;
includeParent: PD.BooleanParam;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: PD.BooleanParam;
ignoreLight: PD.BooleanParam;
xrayShaded: PD.BooleanParam;
alpha: PD.Numeric;
quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">;
};
export declare type OrientationRepresentation = StructureRepresentation<OrientationParams>;
export declare function OrientationRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, OrientationParams>): OrientationRepresentation;
export declare const OrientationRepresentationProvider: StructureRepresentationProvider<{
visuals: PD.MultiSelect<"orientation-ellipsoid-mesh">;
sizeFactor: PD.Numeric;
detail: PD.Numeric;
unitKinds: PD.MultiSelect<"spheres" | "atomic" | "gaussians">;
includeParent: PD.BooleanParam;
doubleSided: PD.BooleanParam;
flipSided: PD.BooleanParam;
flatShaded: PD.BooleanParam;
ignoreLight: PD.BooleanParam;
xrayShaded: PD.BooleanParam;
alpha: PD.Numeric;
quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">;
}, "orientation">;