react-financial-charts
Version:
React charts specific to finance.
30 lines (29 loc) • 960 B
TypeScript
import * as React from "react";
interface TriangleProps {
direction?: "top" | "bottom" | "left" | "right" | "hide" | ((datum: any) => any);
stroke?: string | ((datum: any) => string);
fill?: string | ((datum: any) => string);
opacity?: number;
point: {
x: number;
y: number;
datum: any;
};
className?: string;
strokeWidth?: number;
width?: number | ((datum: any) => number);
}
export declare class Triangle extends React.Component<TriangleProps> {
static defaultProps: {
direction: string;
stroke: string;
strokeWidth: number;
opacity: number;
fill: string;
className: string;
};
static drawOnCanvas: (props: TriangleProps, point: any, ctx: CanvasRenderingContext2D) => void;
static drawOnCanvasWithNoStateChange: (props: TriangleProps, point: any, ctx: CanvasRenderingContext2D) => void;
render(): JSX.Element | null;
}
export {};