import { MouseEvent } from 'react'; import { SpringValue, Interpolation } from '@react-spring/web'; import { DatumWithArcAndColor } from './types'; export type ArcMouseHandler = (datum: Datum, event: MouseEvent) => void; export interface ArcShapeProps { datum: Datum; style: { opacity: SpringValue; color: SpringValue; borderWidth: number; borderColor: SpringValue; path: Interpolation; }; onClick?: ArcMouseHandler; onMouseEnter?: ArcMouseHandler; onMouseMove?: ArcMouseHandler; onMouseLeave?: ArcMouseHandler; } /** * A simple arc component to be used typically with an `ArcsLayer`. * * Please note that the component accepts `SpringValue`s instead of * regular values to support animations. */ export declare const ArcShape: ({ datum, style, onClick, onMouseEnter, onMouseMove, onMouseLeave, }: ArcShapeProps) => JSX.Element; //# sourceMappingURL=ArcShape.d.ts.map