UNPKG

1.91 kBTypeScriptView Raw
1import { PositionLayout } from '../../chart/index';
2import Component from '../../base/component';
3import { Style, AxisProps } from './types';
4declare type BBox = {
5 height: number;
6 width: number;
7};
8declare const _default: (View: any) => {
9 new (props: AxisProps): {
10 style: Style;
11 willReceiveProps(nextProps: AxisProps): void;
12 willMount(): void;
13 willUpdate(): void;
14 getScaleOption(props: AxisProps): {
15 type: any;
16 tickCount: any;
17 range: any;
18 mask: any;
19 formatter: any;
20 min: any;
21 max: any;
22 nice: any;
23 };
24 _getDimType(): 'x' | 'y';
25 getMaxBBox(ticks: any, style: Style): BBox;
26 _getPosition(): "left" | "top" | "right" | "bottom";
27 getTicks(): import("@antv/scale").Tick[];
28 /**
29 * 生成极坐标下网格线的交叉点
30 * @param ticks
31 * @returns
32 */
33 _generateGridPoints(ticks: any): any;
34 _setTicksStyle(ticks: any): any;
35 convertTicks(ticks: any): any;
36 measureLayout(): PositionLayout | PositionLayout[];
37 updateCoord(): void;
38 render(): import("../..").JSX.Element;
39 props: AxisProps;
40 state: {};
41 context: import("../../base/component").ComponentContext;
42 refs: {
43 [key: string]: Component<any, any>;
44 };
45 updater: import("../../base/component").Updater<{}>;
46 children: import("../..").JSX.Element;
47 container: any;
48 animate: boolean;
49 destroyed: boolean;
50 didMount(): void;
51 didUpdate(): void;
52 didUnmount(): void;
53 setState(partialState: {}, callback?: () => void): void;
54 forceUpdate(callback?: () => void): void;
55 setAnimate(animate: boolean): void;
56 destroy(): void;
57 };
58};
59export default _default;