UNPKG

@visx/shape

Version:
19 lines 959 B
import type { Ref, ReactNode } from 'react'; import type { Line as LineType } from '@visx/vendor/d3-shape'; import type { AddSVGProps, LinePathConfig } from '../types'; export type LinePathProps<Datum> = { /** Array of data for which to generate a line shape. */ data?: Datum[]; /** React RefObject passed to the path element. */ innerRef?: Ref<SVGPathElement>; /** Override render function which is passed the configured path generator as input. */ children?: (args: { path: LineType<Datum>; }) => ReactNode; /** Fill color of the path element. */ fill?: string; /** className applied to path element. */ className?: string; } & LinePathConfig<Datum>; export default function LinePath<Datum>({ children, data, x, y, fill, className, curve, innerRef, defined, ...restProps }: AddSVGProps<LinePathProps<Datum>, SVGPathElement>): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=LinePath.d.ts.map