UNPKG

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