recharts
Version:
React charts
10 lines (9 loc) • 454 B
TypeScript
import type { SymbolType as D3SymbolType } from 'victory-vendor/d3-shape';
/**
* Returns SVG path data of a d3 symbol, centered at the given point.
* @param symbolType d3 symbol type, such as `symbolStar`
* @param size area of the symbol, in square pixels
* @param cx x coordinate of the center
* @param cy y coordinate of the center
*/
export declare function getSymbolPath(symbolType: D3SymbolType, size: number, cx: number, cy: number): string;