1 | import React, { PureComponent } from 'react';
|
2 | import { BaseAxisProps, TickItem, PresentationAttributesAdaptChildEvent } from '../util/types';
|
3 | export interface PolarRadiusAxisProps extends Omit<BaseAxisProps, 'unit'> {
|
4 | cx?: number;
|
5 | cy?: number;
|
6 | radiusAxisId?: string | number;
|
7 | angle?: number;
|
8 | orientation?: 'left' | 'right' | 'middle';
|
9 | ticks?: TickItem[];
|
10 | reversed?: boolean;
|
11 | }
|
12 | export type Props = PresentationAttributesAdaptChildEvent<any, SVGElement> & PolarRadiusAxisProps;
|
13 | export declare class PolarRadiusAxis extends PureComponent<Props> {
|
14 | static displayName: string;
|
15 | static axisType: string;
|
16 | static defaultProps: {
|
17 | type: string;
|
18 | radiusAxisId: number;
|
19 | cx: number;
|
20 | cy: number;
|
21 | angle: number;
|
22 | orientation: string;
|
23 | stroke: string;
|
24 | axisLine: boolean;
|
25 | tick: boolean;
|
26 | tickCount: number;
|
27 | allowDataOverflow: boolean;
|
28 | scale: string;
|
29 | allowDuplicatedCategory: boolean;
|
30 | };
|
31 | getTickValueCoord({ coordinate }: TickItem): import("../util/types").Coordinate;
|
32 | getTickTextAnchor(): string;
|
33 | getViewBox(): {
|
34 | cx: number;
|
35 | cy: number;
|
36 | startAngle: number;
|
37 | endAngle: number;
|
38 | innerRadius: number;
|
39 | outerRadius: number;
|
40 | };
|
41 | renderAxisLine(): React.JSX.Element;
|
42 | static renderTickItem(option: Props['tick'], props: any, value: string | number): React.JSX.Element;
|
43 | renderTicks(): React.JSX.Element;
|
44 | render(): React.JSX.Element;
|
45 | }
|