@react-financial-charts/coordinates
Version:
Coordinates for react-financial-charts
33 lines (32 loc) • 1.01 kB
TypeScript
import * as React from "react";
export interface EdgeCoordinateProps {
readonly className?: string;
readonly type: "vertical" | "horizontal";
readonly coordinate?: any;
readonly x1: number;
readonly y1: number;
readonly x2: number;
readonly y2: number;
readonly orient?: "bottom" | "top" | "left" | "right";
readonly rectWidth?: number;
readonly hideLine?: boolean;
readonly fill?: string;
readonly fontFamily: string;
readonly fontSize: number;
readonly lineStroke?: string;
}
export declare class EdgeCoordinate extends React.Component<EdgeCoordinateProps> {
static defaultProps: {
className: string;
orient: string;
hideLine: boolean;
fill: string;
fontFamily: string;
fontSize: number;
textFill: string;
lineStroke: string;
arrowWidth: number;
};
static drawOnCanvasStatic: (ctx: CanvasRenderingContext2D, props: any) => void;
render(): JSX.Element | null;
}