molstar
Version:
A comprehensive macromolecular library.
19 lines (18 loc) • 800 B
TypeScript
/**
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import * as React from 'react';
import { Legend as LegendData, ScaleLegend as ScaleLegendData, TableLegend as TableLegendData } from '../../mol-util/legend';
export declare type LegendProps<L extends LegendData> = {
legend: L;
};
export declare type Legend = React.ComponentClass<LegendProps<any>>;
export declare function legendFor(legend: LegendData): Legend | undefined;
export declare class ScaleLegend extends React.PureComponent<LegendProps<ScaleLegendData>> {
render(): JSX.Element;
}
export declare class TableLegend extends React.PureComponent<LegendProps<TableLegendData>> {
render(): JSX.Element;
}