UNPKG

molstar

Version:

A comprehensive macromolecular library.

46 lines (45 loc) 1.88 kB
/** * Copyright (c) 2018-2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import type { ColorTheme } from '../color'; import { ParamDefinition as PD } from '../../mol-util/param-definition'; import { ThemeDataContext } from '../../mol-theme/theme'; export declare const UnitIndexColorThemeParams: { palette: PD.Mapped<PD.NamedParams<PD.Normalize<{ maxCount: number; hue: [number, number]; chroma: [number, number]; luminance: [number, number]; sort: "none" | "contrast"; clusteringStepCount: number; minSampleCount: number; sampleCountFactor: number; }>, "generate"> | PD.NamedParams<PD.Normalize<{ list: { kind: "interpolate" | "set"; colors: import("../../mol-util/color/color").ColorListEntry[]; }; }>, "colors">>; }; export type UnitIndexColorThemeParams = typeof UnitIndexColorThemeParams; export declare function getUnitIndexColorThemeParams(ctx: ThemeDataContext): { palette: PD.Mapped<PD.NamedParams<PD.Normalize<{ maxCount: number; hue: [number, number]; chroma: [number, number]; luminance: [number, number]; sort: "none" | "contrast"; clusteringStepCount: number; minSampleCount: number; sampleCountFactor: number; }>, "generate"> | PD.NamedParams<PD.Normalize<{ list: { kind: "interpolate" | "set"; colors: import("../../mol-util/color/color").ColorListEntry[]; }; }>, "colors">>; }; export declare function UnitIndexColorTheme(ctx: ThemeDataContext, props: PD.Values<UnitIndexColorThemeParams>): ColorTheme<UnitIndexColorThemeParams>; export declare const UnitIndexColorThemeProvider: ColorTheme.Provider<UnitIndexColorThemeParams, 'unit-index'>;