molstar
Version:
A comprehensive macromolecular library.
48 lines (47 loc) • 2.31 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 { Loci } from '../../../mol-model/loci';
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
import { Representation, RepresentationParamsGetter, RepresentationContext } from '../../representation';
export interface DistanceData {
pairs: Loci.Bundle<2>[];
}
export declare const DistanceParams: {
visuals: PD.MultiSelect<"text" | "lines">;
unitLabel: PD.Text<string>;
borderWidth: PD.Numeric;
customText: PD.Text<string>;
textColor: PD.Color;
textSize: PD.Numeric;
sizeFactor: PD.Numeric;
borderColor: PD.Color;
offsetX: PD.Numeric;
offsetY: PD.Numeric;
offsetZ: PD.Numeric;
background: PD.BooleanParam;
backgroundMargin: PD.Numeric;
backgroundColor: PD.Color;
backgroundOpacity: PD.Numeric;
tether: PD.BooleanParam;
tetherLength: PD.Numeric;
tetherBaseWidth: PD.Numeric;
attachment: PD.Select<"middle-center" | "bottom-left" | "bottom-center" | "bottom-right" | "middle-left" | "middle-right" | "top-left" | "top-center" | "top-right">;
fontFamily: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontFamily>;
fontQuality: PD.Select<number>;
fontStyle: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontStyle>;
fontVariant: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontVariant>;
fontWeight: PD.Select<import("../../../mol-geo/geometry/text/font-atlas").FontWeight>;
alpha: PD.Numeric;
quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">;
lineSizeAttenuation: PD.BooleanParam;
linesColor: PD.Color;
linesSize: PD.Numeric;
dashLength: PD.Numeric;
};
export declare type DistanceParams = typeof DistanceParams;
export declare type DistanceProps = PD.Values<DistanceParams>;
export declare type DistanceRepresentation = Representation<DistanceData, DistanceParams>;
export declare function DistanceRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<DistanceData, DistanceParams>): DistanceRepresentation;