UNPKG

@visx/shape

Version:
17 lines 926 B
import type { ReactNode, Ref } from 'react'; import type { Arc as ArcType } from '@visx/vendor/d3-shape'; import type { $TSFIXME, AddSVGProps, ArcPathConfig } from '../types'; export type ArcProps<Datum> = { /** className applied to path element. */ className?: string; /** A Datum for which to generate an arc. */ data?: Datum; /** Override render function which is passed the configured arc generator as input. */ children?: (args: { path: ArcType<$TSFIXME, Datum>; }) => ReactNode; /** React ref to the path element. */ innerRef?: Ref<SVGPathElement>; } & ArcPathConfig<Datum>; export default function Arc<Datum>({ className, data, innerRadius, outerRadius, cornerRadius, startAngle, endAngle, padAngle, padRadius, children, innerRef, ...restProps }: AddSVGProps<ArcProps<Datum>, SVGPathElement>): import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=Arc.d.ts.map