UNPKG

react-plot

Version:

Library of React components to render SVG 2D plots.

19 lines 698 B
import type { SVGProps } from 'react'; import type { ScalarValue } from '../../types.js'; type AnnotationShapeList = 'circle' | 'triangle' | 'line' | 'none'; export interface AnnotationArrowProps extends Omit<SVGProps<SVGLineElement>, 'x1' | 'x2' | 'y1' | 'y2' | 'stroke'> { x1: ScalarValue; y1: ScalarValue; x2: ScalarValue; y2: ScalarValue; xAxis?: string; yAxis?: string; startPoint?: AnnotationShapeList; endPoint?: AnnotationShapeList; color?: string; strokeWidth?: ScalarValue; markerSize?: number; } export declare function Arrow(props: AnnotationArrowProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=Arrow.d.ts.map