UNPKG

643 BTypeScriptView Raw
1/**
2 * @fileOverview Curve
3 */
4import React, { SVGProps } from 'react';
5import { SymbolType as D3SymbolType } from 'victory-vendor/d3-shape';
6import { SymbolType } from '../util/types';
7type SizeType = 'area' | 'diameter';
8export interface InnerSymbolsProp {
9 className?: string;
10 type: SymbolType;
11 cx?: number;
12 cy?: number;
13 size?: number;
14 sizeType?: SizeType;
15}
16export type SymbolsProps = SVGProps<SVGPathElement> & InnerSymbolsProp;
17export declare const Symbols: {
18 ({ type, size, sizeType, ...rest }: SymbolsProps): React.JSX.Element;
19 registerSymbol: (key: string, factory: D3SymbolType) => void;
20};
21export {};