recharts
Version:
React charts
49 lines (48 loc) • 1.56 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 {
/**
* Allow the ticks of axis to be decimals or not.
*
* @defaultValue false
*/
allowDecimals?: boolean;
/**
* @defaultValue 0
*/
radiusAxisId?: string | number;
/**
* @defaultValue 0
*/
angle?: number;
/**
* @defaultValue right
*/
orientation?: TickOrientation;
ticks?: ReadonlyArray<TickItem>;
/**
* @defaultValue false
*/
reversed?: boolean;
/**
* @defaultValue 500
*/
zIndex?: number;
}
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>;
/**
* @provides PolarLabelContext
*/
export declare function PolarRadiusAxis(outsideProps: Props): React.JSX.Element;
export declare namespace PolarRadiusAxis {
var displayName: string;
}
export {};