1 | import { Component } from '@antv/f-engine';
|
2 | import { ChartChildProps, PositionLayout } from '../../chart';
|
3 | import { Style, AxisProps } from './types';
|
4 | import { DataRecord } from '../../chart/Data';
|
5 | type BBox = {
|
6 | height: number;
|
7 | width: number;
|
8 | };
|
9 | export { AxisProps };
|
10 | declare 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 |
|
34 |
|
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 | };
|
68 | export default _default;
|