UNPKG

@rcsb/rcsb-charts

Version:
23 lines (22 loc) 1 kB
import * as React from "react"; import { ChartDataProviderInterface } from "../RcsbChartDataProvider/ChartDataProviderInterface"; import { AbstractChartImplementationType } from "../RcsbChartImplementations/AbstractChartImplementation"; import { ChartConfigInterface, ChartObjectInterface } from "./ChartConfigInterface"; import { ReactNode } from "react"; export interface ChartInterface { data: ChartObjectInterface[][]; chartConfig?: ChartConfigInterface; chartComponentImplementation: AbstractChartImplementationType; dataProvider: ChartDataProviderInterface; } export interface ChartState { chartConfig: ChartConfigInterface; } export declare class ChartComponent extends React.Component<ChartInterface, ChartState> { readonly state: ChartState; private readonly EXPAND_NUMBER; render(): ReactNode; componentDidUpdate(prevProps: Readonly<ChartInterface>, prevState: Readonly<ChartState>, snapshot?: any): void; private chartUI; private updateCategories; }