import { AriaAttributes, FunctionComponent, MouseEvent } from 'react'; import { Box, Dimensions, PropertyAccessor, MotionProps, ValueFormat } from '@nivo/core'; import { PartialTheme } from '@nivo/theming'; import { Arc, ArcGenerator, ArcLabelsProps, ArcTransitionMode } from '@nivo/arcs'; import { CircularAxisConfig, RadialAxisProps } from '@nivo/polar-axes'; import { OrdinalColorScaleConfig, InheritedColorConfig } from '@nivo/colors'; import { ScaleLinear, ScaleBand } from '@nivo/scales'; import { LegendProps } from '@nivo/legends'; export type PolarBarDatum = Record; export interface PolarBarComputedDatum { index: string; key: string; id: string; value: number; formattedValue: string; color: string; arc: Arc; } export interface PolarBarDataProps { data: readonly RawDatum[]; } export type PolarBarLayerId = 'grid' | 'arcs' | 'axes' | 'labels' | 'legends'; export interface PolarBarCustomLayerProps { center: [number, number]; outerRadius: number; innerRadius: number; arcs: PolarBarComputedDatum[]; arcGenerator: ArcGenerator; radiusScale: ScaleLinear; angleScale: ScaleBand; } export type PolarBarCustomLayer = FunctionComponent; export interface PolarBarTooltipProps { arc: PolarBarComputedDatum; } export type PolarBarTooltipComponent = FunctionComponent; export interface PolarBarLegendDatum { id: string; label: string; color: string; } export type PolarBarCommonProps = { indexBy: PropertyAccessor; keys: readonly string[]; adjustValueRange: boolean; valueSteps?: number | readonly number[]; valueFormat?: ValueFormat; margin: Box; startAngle: number; endAngle: number; innerRadius: number; cornerRadius: number; layers: readonly (PolarBarLayerId | PolarBarCustomLayer)[]; colors: OrdinalColorScaleConfig>; theme: PartialTheme; borderWidth: number; borderColor: InheritedColorConfig; enableArcLabels: boolean; enableRadialGrid: boolean; enableCircularGrid: boolean; radialAxis: Omit | null; circularAxisInner: CircularAxisConfig | null; circularAxisOuter: CircularAxisConfig | null; isInteractive: boolean; tooltip: PolarBarTooltipComponent; onClick: (arc: PolarBarComputedDatum, event: MouseEvent) => void; onMouseEnter: (arc: PolarBarComputedDatum, event: MouseEvent) => void; onMouseMove: (arc: PolarBarComputedDatum, event: MouseEvent) => void; onMouseLeave: (arc: PolarBarComputedDatum, event: MouseEvent) => void; legends: readonly LegendProps[]; forwardLegendData: (data: PolarBarLegendDatum[]) => void; renderWrapper: boolean; role: string; ariaLabel: AriaAttributes['aria-label']; ariaLabelledBy: AriaAttributes['aria-labelledby']; ariaDescribedBy: AriaAttributes['aria-describedby']; } & ArcLabelsProps; export type PolarBarSvgProps = PolarBarDataProps & Dimensions & Partial> & { animate?: boolean; motionConfig?: MotionProps['motionConfig']; transitionMode?: ArcTransitionMode; }; //# sourceMappingURL=types.d.ts.map