molstar
Version:
A comprehensive macromolecular library.
46 lines (45 loc) • 1.9 kB
TypeScript
/**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { ColorTheme } from '../color';
import { ParamDefinition as PD } from '../../mol-util/param-definition';
import { ThemeDataContext } from '../../mol-theme/theme';
export declare const ChainIdColorThemeParams: {
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
maxCount: number;
hue: [number, number];
chroma: [number, number];
luminance: [number, number];
clusteringStepCount: number;
minSampleCount: number;
}>, "generate"> | PD.NamedParams<PD.Normalize<{
list: {
kind: "set" | "interpolate";
colors: import("../../mol-util/color/color").ColorListEntry[];
};
}>, "colors">>;
asymId: PD.Select<AsymIdType>;
};
export declare type ChainIdColorThemeParams = typeof ChainIdColorThemeParams;
export declare function getChainIdColorThemeParams(ctx: ThemeDataContext): {
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
maxCount: number;
hue: [number, number];
chroma: [number, number];
luminance: [number, number];
clusteringStepCount: number;
minSampleCount: number;
}>, "generate"> | PD.NamedParams<PD.Normalize<{
list: {
kind: "set" | "interpolate";
colors: import("../../mol-util/color/color").ColorListEntry[];
};
}>, "colors">>;
asymId: PD.Select<AsymIdType>;
};
declare type AsymIdType = 'auth' | 'label';
export declare function ChainIdColorTheme(ctx: ThemeDataContext, props: PD.Values<ChainIdColorThemeParams>): ColorTheme<ChainIdColorThemeParams>;
export declare const ChainIdColorThemeProvider: ColorTheme.Provider<ChainIdColorThemeParams, 'chain-id'>;
export {};