UNPKG

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