react-financial-charts
Version:
React charts specific to finance.
52 lines (51 loc) • 1.57 kB
TypeScript
import * as PropTypes from "prop-types";
import * as React from "react";
interface ZoomButtonsProps {
readonly zoomMultiplier: number;
readonly size: number[];
readonly heightFromBase: number;
readonly rx: number;
readonly ry: number;
readonly stroke: string;
readonly strokeWidth: number;
readonly strokeOpacity: number;
readonly fill: string;
readonly fillOpacity: number;
readonly fontSize: number;
readonly textDy: string;
readonly textFill: string;
readonly textStrokeWidth: number;
readonly onReset: any;
}
export declare class ZoomButtons extends React.Component<ZoomButtonsProps> {
static defaultProps: {
size: number[];
heightFromBase: number;
rx: number;
ry: number;
stroke: string;
strokeOpacity: number;
strokeWidth: number;
fill: string;
fillOpacity: number;
fontSize: number;
textDy: string;
textFill: string;
textStrokeWidth: number;
zoomMultiplier: number;
onReset: () => void;
};
static contextTypes: {
xScale: PropTypes.Validator<(...args: any[]) => any>;
chartConfig: PropTypes.Validator<object>;
plotData: PropTypes.Validator<any[]>;
xAccessor: PropTypes.Validator<(...args: any[]) => any>;
xAxisZoom: PropTypes.Validator<(...args: any[]) => any>;
};
private interval?;
render(): JSX.Element;
private readonly handleZoomIn;
private readonly handleZoomOut;
private readonly zoom;
}
export {};