forked from BLC/AyposWeb
25 lines
764 B
TypeScript
25 lines
764 B
TypeScript
declare module 'react-plotly.js' {
|
|
import * as Plotly from 'plotly.js';
|
|
import * as React from 'react';
|
|
|
|
interface PlotParams {
|
|
data: Plotly.Data[];
|
|
layout?: Partial<Plotly.Layout>;
|
|
frames?: Plotly.Frame[];
|
|
config?: Partial<Plotly.Config>;
|
|
onClick?: (event: Plotly.PlotMouseEvent) => void;
|
|
onHover?: (event: Plotly.PlotMouseEvent) => void;
|
|
onUnHover?: (event: Plotly.PlotMouseEvent) => void;
|
|
onSelected?: (event: Plotly.PlotSelectionEvent) => void;
|
|
onDeselect?: () => void;
|
|
onDoubleClick?: () => void;
|
|
style?: React.CSSProperties;
|
|
className?: string;
|
|
debug?: boolean;
|
|
useResizeHandler?: boolean;
|
|
[key: string]: any;
|
|
}
|
|
|
|
class Plot extends React.Component<PlotParams> {}
|
|
export default Plot;
|
|
}
|