UNPKG

2.82 kBTypeScriptView Raw
1import { Component } from '@antv/f-engine';
2import { ChartChildProps, PositionLayout } from '../../chart';
3import { Style, AxisProps } from './types';
4import { DataRecord } from '../../chart/Data';
5type BBox = {
6 height: number;
7 width: number;
8};
9export { AxisProps };
10declare const _default: (View: any) => {
11 new <TRecord extends DataRecord = DataRecord, IProps extends AxisProps<TRecord, keyof TRecord> = AxisProps<TRecord, keyof TRecord>>(props: IProps & ChartChildProps<DataRecord>): {
12 axisStyle: Style;
13 willReceiveProps(nextProps: IProps & ChartChildProps<DataRecord>): void;
14 willMount(): void;
15 willUpdate(): void;
16 getScaleOption(props: IProps): {
17 type: string;
18 tickCount: number;
19 range: any;
20 mask: string;
21 formatter: (value: import("../../chart/Data").DataValue<TRecord, keyof TRecord>) => string | number;
22 min: number;
23 max: number;
24 nice: boolean;
25 ticks: any;
26 };
27 _getDimType(): 'x' | 'y';
28 getMaxBBox(ticks: any, style: Style): BBox;
29 _getPosition(): "left" | "top" | "right" | "bottom";
30 getTicks(): import("../../deps/f2-scale/src").Tick[];
31 /**
32 * 生成极坐标下网格线的交叉点
33 * @param ticks
34 * @returns
35 */
36 _generateGridPoints(ticks: any): any;
37 _setTicksStyle(ticks: any): any;
38 convertTicks(ticks: any): any;
39 measureLayout(): PositionLayout | PositionLayout[];
40 updateCoord(): void;
41 render(): import("@antv/f-engine").JSX.Element;
42 props: IProps & ChartChildProps<DataRecord>;
43 state: {};
44 context: import("@antv/f-engine").IContext;
45 refs: {
46 [key: string]: Component<import("@antv/f-engine").IProps, import("@antv/f-engine").IState>;
47 };
48 updater: import("@antv/f-engine/es/component/updater").Updater<{}>;
49 container: import("@antv/g-lite").Group;
50 layout: import("@antv/f-engine").LayoutProps;
51 children: import("@antv/f-engine/es/canvas/vnode").VNode | import("@antv/f-engine/es/canvas/vnode").VNode[];
52 isMounted: boolean;
53 animate: boolean;
54 animator: import("@antv/f-engine/es/canvas/render/animator").default;
55 destroyed: boolean;
56 _vNode: import("@antv/f-engine/es/canvas/vnode").VNode;
57 didMount(): void;
58 shouldUpdate(_nextProps: IProps & ChartChildProps<DataRecord>): boolean;
59 didUpdate(): void;
60 willUnmount(): void;
61 didUnmount(): void;
62 setState(partialState: {}, callback?: () => void): void;
63 forceUpdate(callback?: () => void): void;
64 setAnimate(animate: boolean): void;
65 destroy(): void;
66 };
67};
68export default _default;