UNPKG

4.76 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 willReceiveProps(nextProps: any): void;
44 willMount(): void;
45 willUpdate(): void;
46 didMount(): void;
47 _initEvent(): void;
48 _createAttrs(): void;
49 _getThemeAttrsRange(): {
50 x: import("../../coord/types").Range;
51 y: import("../../coord/types").Range;
52 color: any;
53 size: any;
54 shape: any;
55 };
56 _createAdjust(): import("../geometry/Adjust").AdjustProps & {
57 adjust: import("../../deps/f2-adjust/src").Adjust;
58 };
59 _adjustScales(): void;
60 _groupData(data: any): any[];
61 _saveOrigin(originData: any): any[];
62 _numberic(data: any): void;
63 _adjustData(records: any): any;
64 _updateStackRange(field: any, scale: any, dataArray: any): void;
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 flatRecords(): any;
86 getSnapRecords(point: any, inCoordRange?: any): any[];
87 getRecords(data: any, field?: string): any[];
88 getLegendItems(): any;
89 isSelected(record: any): boolean;
90 getSelectionStyle(record: any): import("@antv/f-engine").ShapeStyleProps;
91 props: IProps & import("../../chart").ChartChildProps<DataRecord>;
92 state: import("../geometry/selection").SelectionState;
93 context: import("@antv/f-engine").IContext;
94 refs: {
95 [key: string]: import("@antv/f-engine/es/component").default<import("@antv/f-engine").IProps, import("@antv/f-engine").IState>;
96 };
97 updater: import("@antv/f-engine/es/component/updater").Updater<import("../geometry/selection").SelectionState>;
98 container: import("@antv/g-lite").Group;
99 layout: import("@antv/f-engine").LayoutProps;
100 children: import("@antv/f-engine/es/canvas/vnode").VNode | import("@antv/f-engine/es/canvas/vnode").VNode[];
101 isMounted: boolean;
102 animate: boolean;
103 animator: import("@antv/f-engine/es/canvas/render/animator").default;
104 destroyed: boolean;
105 _vNode: import("@antv/f-engine/es/canvas/vnode").VNode;
106 shouldUpdate(_nextProps: IProps & import("../../chart").ChartChildProps<DataRecord>): boolean;
107 didUpdate(): void;
108 willUnmount(): void;
109 didUnmount(): void;
110 setState(partialState: import("../geometry/selection").SelectionState, callback?: () => void): void;
111 forceUpdate(callback?: () => void): void;
112 setAnimate(animate: boolean): void;
113 destroy(): void;
114 };
115};
116export default _default;