UNPKG

react-financial-charts

Version:
54 lines (53 loc) 1.6 kB
/// <reference types="d3-format" /> import * as React from "react"; import { strokeDashTypes } from "../utils"; interface EdgeIndicatorProps { readonly arrowWidth?: number; readonly className?: string; readonly displayFormat?: any; readonly edgeAt?: "left" | "right"; readonly fill?: string | any; readonly itemType: "first" | "last"; readonly lineStroke?: string | any; readonly lineStrokeDasharray?: strokeDashTypes; readonly orient?: "left" | "right"; readonly rectHeight?: number; readonly rectWidth?: number; readonly textFill?: string | any; readonly type?: "horizontal"; readonly yAccessor?: any; } export declare class EdgeIndicator extends React.Component<EdgeIndicatorProps> { static defaultProps: { className: string; type: string; orient: string; edgeAt: string; textFill: string; displayFormat: (n: number | { valueOf(): number; }) => string; yAxisPad: number; rectHeight: number; rectWidth: number; arrowWidth: number; fontFamily: string; fontSize: number; dx: number; hideLine: boolean; fill: string; opacity: number; stroke: () => void; strokeOpacity: number; strokeWidth: number; lineStroke: string; lineOpacity: number; lineStrokeDasharray: string; }; render(): JSX.Element; private readonly drawOnCanvas; private readonly renderSVG; private readonly helper; private readonly getEdge; } export {};