import { AriaAttributes, FunctionComponent, MouseEvent } from 'react'; import { Box, Dimensions, MotionProps, PropertyAccessor, ValueFormat, SvgDefsAndFill } from '@nivo/core'; import { PartialTheme } from '@nivo/theming'; import { Arc, ArcGenerator, ArcLabelsProps, ArcTransitionMode } from '@nivo/arcs'; import { InheritedColorConfig, OrdinalColorScaleConfig } from '@nivo/colors'; import { LegendProps } from '@nivo/legends'; import { ScaleLinear, ScaleBand } from '@nivo/scales'; import { RadialAxisConfig, CircularAxisConfig } from '@nivo/polar-axes'; export interface RadialBarDatum { x: string; y: number; } export interface RadialBarSerie { id: string; data: D[]; } export interface ComputedBar { id: string; data: D; groupId: string; category: string; value: number; formattedValue: string; color: string; stackedValue: number; arc: Arc; } export interface RadialBarDataProps { data: RadialBarSerie[]; } export type RadialBarLayerId = 'grid' | 'tracks' | 'bars' | 'labels' | 'legends'; export interface RadialBarCustomLayerProps { center: [number, number]; outerRadius: number; innerRadius: number; bars: ComputedBar[]; arcGenerator: ArcGenerator; radiusScale: ScaleBand; valueScale: ScaleLinear; } export type RadialBarCustomLayer = FunctionComponent; export interface RadialBarTooltipProps { bar: ComputedBar; } export type RadialBarTooltipComponent = FunctionComponent>; export interface RadialBarTrackDatum { id: string; color: string; arc: Arc; } export type RadialBarCommonProps = { maxValue: 'auto' | number; valueFormat: ValueFormat; margin: Box; theme: PartialTheme; colors: OrdinalColorScaleConfig, 'color'>>; borderWidth: number; borderColor: InheritedColorConfig>; padAngle: number; cornerRadius: number; layers: (RadialBarLayerId | RadialBarCustomLayer)[]; startAngle: number; endAngle: number; innerRadius: number; padding: number; enableTracks: boolean; tracksColor: string; enableRadialGrid: boolean; enableCircularGrid: boolean; radialAxisStart: RadialAxisConfig | null; radialAxisEnd: RadialAxisConfig | null; circularAxisInner: CircularAxisConfig | null; circularAxisOuter: CircularAxisConfig | null; enableLabels: boolean; label: PropertyAccessor, string>; labelsSkipAngle: ArcLabelsProps>['arcLabelsSkipAngle']; labelsSkipRadius: ArcLabelsProps>['arcLabelsSkipRadius']; labelsRadiusOffset: ArcLabelsProps>['arcLabelsRadiusOffset']; labelsTextColor: ArcLabelsProps>['arcLabelsTextColor']; isInteractive: boolean; tooltip: RadialBarTooltipComponent; onClick: (bar: ComputedBar, event: MouseEvent) => void; onMouseEnter: (bar: ComputedBar, event: MouseEvent) => void; onMouseMove: (bar: ComputedBar, event: MouseEvent) => void; onMouseLeave: (bar: ComputedBar, event: MouseEvent) => void; legends: LegendProps[]; renderWrapper: boolean; transitionMode: ArcTransitionMode; role: string; ariaLabel: AriaAttributes['aria-label']; ariaLabelledBy: AriaAttributes['aria-labelledby']; ariaDescribedBy: AriaAttributes['aria-describedby']; }; export type RadialBarSvgProps = Partial> & RadialBarDataProps & Dimensions & MotionProps & SvgDefsAndFill; //# sourceMappingURL=types.d.ts.map