UNPKG

react-financial-charts

Version:
28 lines (27 loc) 836 B
import * as React from "react"; interface SquareProps { readonly stroke?: string; readonly fill: string; readonly opacity: number; readonly point: { x: number; y: number; datum: any; }; readonly className?: string; readonly strokeWidth?: number; readonly width: number | ((datum: any) => number); } export declare class Square extends React.Component<SquareProps> { static defaultProps: { stroke: string; strokeWidth: number; opacity: number; fill: string; className: string; }; static drawOnCanvas: (props: SquareProps, point: any, ctx: CanvasRenderingContext2D) => void; static drawOnCanvasWithNoStateChange: (props: SquareProps, point: any, ctx: CanvasRenderingContext2D) => void; render(): JSX.Element; } export {};