UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

16 lines 615 B
/** * Get the SVG path to display a ring (a donut shape) defined by an outer radius and an inner radius. * * @param center - The center of the ring. * @param outerRadius - The outer radius of the ring. * @param innerRadius - The inner radius of the ring. * @param angles - The start and end angles of the ring in radians. If not provided, it defaults to a full circle. * @returns The SVG path string to display the ring. */ export declare function getRingPath(center: { x: number; y: number; }, outerRadius: number, innerRadius: number, angles?: { start: number; end: number; } | undefined): string;