UNPKG

molstar

Version:

A comprehensive macromolecular library.

63 lines (62 loc) 2.64 kB
/** * Copyright (c) 2019 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 LabelData { infos: { loci: Loci; label?: string; }[]; } export declare const LabelParams: { scaleByRadius: PD.BooleanParam; visuals: PD.MultiSelect<"text">; offsetZ: PD.Numeric; 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; background: PD.BooleanParam; backgroundMargin: PD.Numeric; backgroundColor: PD.Color; backgroundOpacity: PD.Numeric; tether: PD.BooleanParam; tetherLength: PD.Numeric; tetherBaseWidth: PD.Numeric; attachment: PD.Select<"bottom-left" | "bottom-center" | "bottom-right" | "middle-left" | "middle-center" | "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<"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; }; export declare type LabelParams = typeof LabelParams; export declare type LabelProps = PD.Values<LabelParams>; export declare type LabelRepresentation = Representation<LabelData, LabelParams>; export declare function LabelRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<LabelData, LabelParams>): LabelRepresentation;