1 | import { GeometryProps } from '../geometry';
|
2 | import { DataRecord } from '../../chart/Data';
|
3 | import { Point } from '../../chart/types';
|
4 | type ZoomRatioCallback<TRecord> = (record: TRecord) => number | null | undefined;
|
5 | export interface LineProps<TRecord extends DataRecord = DataRecord> extends GeometryProps<TRecord> {
|
6 | connectNulls?: boolean;
|
7 | |
8 |
|
9 |
|
10 | sizeZoom?: number | ZoomRatioCallback<TRecord>;
|
11 | endView?: any;
|
12 | }
|
13 | declare 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 | willReceiveProps(nextProps: any): void;
|
41 | willMount(): void;
|
42 | willUpdate(): void;
|
43 | didMount(): void;
|
44 | _initEvent(): void;
|
45 | _createAttrs(): void;
|
46 | _getThemeAttrsRange(): {
|
47 | x: import("../../coord/types").Range;
|
48 | y: import("../../coord/types").Range;
|
49 | color: any;
|
50 | size: any;
|
51 | shape: any;
|
52 | };
|
53 | _createAdjust(): import("../geometry/Adjust").AdjustProps & {
|
54 | adjust: import("../../deps/f2-adjust/src").Adjust;
|
55 | };
|
56 | _adjustScales(): void;
|
57 | _groupData(data: any): any[];
|
58 | _saveOrigin(originData: any): any[];
|
59 | _numberic(data: any): void;
|
60 | _adjustData(records: any): any;
|
61 | _updateStackRange(field: any, scale: any, dataArray: any): void;
|
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 | flatRecords(): any;
|
83 | getSnapRecords(point: any, inCoordRange?: any): any[];
|
84 | getRecords(data: any, field?: string): any[];
|
85 | getLegendItems(): any;
|
86 | isSelected(record: any): boolean;
|
87 | getSelectionStyle(record: any): import("@antv/f-engine").ShapeStyleProps;
|
88 | props: IProps & import("../../chart").ChartChildProps<DataRecord>;
|
89 | state: import("../geometry/selection").SelectionState;
|
90 | context: import("@antv/f-engine").IContext;
|
91 | refs: {
|
92 | [key: string]: import("@antv/f-engine/es/component").default<import("@antv/f-engine").IProps, import("@antv/f-engine").IState>;
|
93 | };
|
94 | updater: import("@antv/f-engine/es/component/updater").Updater<import("../geometry/selection").SelectionState>;
|
95 | container: import("@antv/g-lite").Group;
|
96 | layout: import("@antv/f-engine").LayoutProps;
|
97 | children: import("@antv/f-engine/es/canvas/vnode").VNode | import("@antv/f-engine/es/canvas/vnode").VNode[];
|
98 | isMounted: boolean;
|
99 | animate: boolean;
|
100 | animator: import("@antv/f-engine/es/canvas/render/animator").default;
|
101 | destroyed: boolean;
|
102 | _vNode: import("@antv/f-engine/es/canvas/vnode").VNode;
|
103 | shouldUpdate(_nextProps: IProps & import("../../chart").ChartChildProps<DataRecord>): boolean;
|
104 | didUpdate(): void;
|
105 | willUnmount(): void;
|
106 | didUnmount(): void;
|
107 | setState(partialState: import("../geometry/selection").SelectionState, callback?: () => void): void;
|
108 | forceUpdate(callback?: () => void): void;
|
109 | setAnimate(animate: boolean): void;
|
110 | destroy(): void;
|
111 | };
|
112 | };
|
113 | export default _default;
|