react-financial-charts
Version:
React charts specific to finance.
28 lines (27 loc) • 812 B
TypeScript
import * as React from "react";
import { strokeDashTypes } from "../utils";
interface StraightLineProps {
readonly className?: string;
readonly type?: "vertical" | "horizontal";
readonly stroke?: string;
readonly strokeWidth?: number;
readonly strokeDasharray?: strokeDashTypes;
readonly opacity: number;
readonly yValue?: number;
readonly xValue?: number;
}
export declare class StraightLine extends React.Component<StraightLineProps> {
static defaultProps: {
className: string;
type: string;
stroke: string;
opacity: number;
strokeWidth: number;
strokeDasharray: string;
};
render(): JSX.Element;
private readonly renderSVG;
private readonly drawOnCanvas;
private readonly getLineCoordinates;
}
export {};