recharts
Version:
React charts
36 lines (35 loc) • 1.33 kB
TypeScript
import * as React from 'react';
import { FunctionComponent } from 'react';
import { BaseAxisProps, PresentationAttributesAdaptChildEvent, TickItem } from '../util/types';
import { defaultPolarRadiusAxisProps } from './defaultPolarRadiusAxisProps';
import { RequiresDefaultProps } from '../util/resolveDefaultProps';
import { ZIndexable } from '../zIndex/ZIndexLayer';
type TickOrientation = 'left' | 'right' | 'middle';
export interface PolarRadiusAxisProps extends Omit<BaseAxisProps, 'unit'>, ZIndexable {
/**
* @defaultValue 0
*/
radiusAxisId?: string | number;
/**
* @defaultValue 0
*/
angle?: number;
/**
* @defaultValue right
*/
orientation?: TickOrientation;
ticks?: ReadonlyArray<TickItem>;
/**
* @defaultValue false
*/
reversed?: boolean;
}
type AxisSvgProps = Omit<PresentationAttributesAdaptChildEvent<any, SVGTextElement>, 'scale' | 'type'>;
export type Props = AxisSvgProps & PolarRadiusAxisProps;
type PropsWithDefaults = RequiresDefaultProps<Props, typeof defaultPolarRadiusAxisProps>;
export declare const PolarRadiusAxisWrapper: FunctionComponent<PropsWithDefaults>;
export declare function PolarRadiusAxis(outsideProps: Props): React.JSX.Element;
export declare namespace PolarRadiusAxis {
var displayName: string;
}
export {};