import type * as React from 'react'; import { type RadarClasses } from "../radarClasses.js"; import { type RadarItemIdentifier } from "../../models/seriesType/radar.js"; interface CommonRadarSeriesPlotProps { /** * A CSS class name applied to the root element. */ className?: string; /** * The id of the series to display. * If undefined all series are displayed. */ seriesId?: string; /** * Override or extend the styles applied to the component. */ classes?: Partial; } export interface RadarSeriesPlotProps extends CommonRadarSeriesPlotProps { /** * Callback fired when an area is clicked. * @param {React.MouseEvent} event The event source of the callback. * @param {RadarItemIdentifier} radarItemIdentifier The radar item identifier. */ onAreaClick?: RadarSeriesAreaProps['onItemClick']; /** * Callback fired when a mark is clicked. * @param {React.MouseEvent} event The event source of the callback. * @param {RadarItemIdentifier} radarItemIdentifier The radar item identifier. */ onMarkClick?: RadarSeriesMarksProps['onItemClick']; } type RadarClickIdentifier = Required; export interface RadarSeriesMarksProps extends CommonRadarSeriesPlotProps, React.SVGAttributes { /** * Callback fired when a mark is clicked. * @param {React.MouseEvent} event The event source of the callback. * @param {RadarItemIdentifier} radarItemIdentifier The radar item identifier. */ onItemClick?: (event: React.MouseEvent, radarItemIdentifier: RadarClickIdentifier) => void; } export interface RadarSeriesAreaProps extends CommonRadarSeriesPlotProps, React.SVGAttributes { /** * Callback fired when an area is clicked. * @param {React.MouseEvent} event The event source of the callback. * @param {RadarItemIdentifier} radarItemIdentifier The radar item identifier. */ onItemClick?: (event: React.MouseEvent, radarItemIdentifier: RadarClickIdentifier) => void; } export {};