UNPKG

4.83 kBTypeScriptView Raw
1import { GeometryProps } from '../geometry';
2import { DataRecord } from '../../chart/Data';
3import { Point } from '../../chart/types';
4type ZoomRatioCallback<TRecord> = (record: TRecord) => number | null | undefined;
5export interface LineProps<TRecord extends DataRecord = DataRecord> extends GeometryProps<TRecord> {
6 connectNulls?: boolean;
7 /**
8 * 柱子放大缩小的比例
9 */
10 sizeZoom?: number | ZoomRatioCallback<TRecord>;
11 endView?: any;
12}
13declare const _default: (View: any) => {
14 new <TRecord extends DataRecord = DataRecord, IProps extends LineProps<TRecord> = LineProps<TRecord>>(props: IProps & import("../../chart").ChartChildProps<DataRecord>, context?: any): {
15 getDefaultCfg(): {
16 geomType: string;
17 sortable: boolean;
18 };
19 splitPoints(points: any): any[][];
20 splitNulls(points: any, connectNulls: any): any[];
21 mapping(): any[];
22 concatPoints(topPoints: Point[], bottomPoints: Point[]): Point[];
23 render(): import("@antv/f-engine").JSX.Element;
24 isGeometry: boolean;
25 geomType: import("../geometry").GeometryType;
26 attrs: any;
27 adjust: import("../geometry/Adjust").AdjustProps & {
28 adjust: import("../../deps/f2-adjust/src").Adjust;
29 };
30 dataArray: any;
31 dataRecords: any[];
32 records: any[];
33 mappedArray: any;
34 justifyContent: boolean;
35 startOnZero: boolean;
36 connectNulls: boolean;
37 sortable: boolean;
38 attrController: import("../../controller/attr").default;
39 animation: import("@antv/f-engine").AnimationProps;
40 getAttrOptions(props: any): {};
41 willReceiveProps(nextProps: any): void;
42 willMount(): void;
43 willUpdate(): void;
44 didMount(): void;
45 _initEvent(): void;
46 _createAttrs(): void;
47 _getThemeAttrsRange(): {
48 x: import("../../coord/types").Range;
49 y: import("../../coord/types").Range;
50 color: any;
51 size: any;
52 shape: any;
53 };
54 _createAdjust(): import("../geometry/Adjust").AdjustProps & {
55 adjust: import("../../deps/f2-adjust/src").Adjust;
56 };
57 _adjustScales(): void;
58 _groupData(data: any): any[];
59 _saveOrigin(originData: any): any[];
60 _numberic(data: any): void;
61 _adjustData(records: any): any;
62 _processData(): void;
63 _readjustData(records: any): void;
64 _sortData(records: any): void;
65 getY0Value(): any;
66 _getShapeStyle(shape: any, origin: any): any;
67 _mapping(records: any): any[];
68 getClip(): {
69 type: string;
70 style: {
71 x: number;
72 y: number;
73 width: number;
74 height: number;
75 };
76 };
77 getAttr(attrName: string): any;
78 getXScale(): import("../..").Scale;
79 getYScale(): import("../..").Scale;
80 _getXSnap(invertPointX: any): any;
81 _getYSnapRecords(invertPointY: any, records: any): any;
82 _getXSnapRecords(invertPointX: any, records: any): any;
83 flatRecords(): any;
84 getSnapRecords(point: any, inCoordRange?: any): any[];
85 getRecords(data: any, field?: string): any[];
86 getLegendItems(): any;
87 isSelected(record: any): boolean;
88 getSelectionStyle(record: any): import("@antv/f-engine").ShapeStyleProps;
89 props: IProps & import("../../chart").ChartChildProps<DataRecord>;
90 state: import("../geometry/selection").SelectionState;
91 context: import("@antv/f-engine").IContext;
92 refs: {
93 [key: string]: import("@antv/f-engine/es/component").default<import("@antv/f-engine").IProps, import("@antv/f-engine").IState>;
94 };
95 updater: import("@antv/f-engine/es/component/updater").Updater<import("../geometry/selection").SelectionState>;
96 container: import("@antv/g-lite").Group;
97 layout: import("@antv/f-engine").LayoutProps;
98 children: import("@antv/f-engine/es/canvas/vnode").VNode | import("@antv/f-engine/es/canvas/vnode").VNode[];
99 isMounted: boolean;
100 animate: boolean;
101 animator: import("@antv/f-engine/es/canvas/render/animator").default;
102 destroyed: boolean;
103 _vNode: import("@antv/f-engine/es/canvas/vnode").VNode;
104 shouldUpdate(_nextProps: IProps & import("../../chart").ChartChildProps<DataRecord>): boolean;
105 didUpdate(): void;
106 willUnmount(): void;
107 didUnmount(): void;
108 setState(partialState: import("../geometry/selection").SelectionState, callback?: () => void): void;
109 forceUpdate(callback?: () => void): void;
110 setAnimate(animate: boolean): void;
111 destroy(): void;
112 };
113};
114export default _default;