molstar
Version:
A comprehensive macromolecular library.
21 lines (20 loc) • 704 B
TypeScript
/**
* Copyright (c) 2018-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { Color } from './color';
import { ColorListEntry } from './color/color';
export type Legend = TableLegend | ScaleLegend;
export interface TableLegend {
kind: 'table-legend';
table: [string, Color][];
}
export declare function TableLegend(table: [string, Color][]): TableLegend;
export interface ScaleLegend {
kind: 'scale-legend';
minLabel: string;
maxLabel: string;
colors: ColorListEntry[];
}
export declare function ScaleLegend(minLabel: string, maxLabel: string, colors: ColorListEntry[]): ScaleLegend;