UNPKG

3.58 kBTypeScriptView Raw
1import withScrollBar, { ScrollBarProps } from './withScrollBar';
2import ScrollBarView from './scrollBarView';
3export { ScrollBarProps, withScrollBar, ScrollBarView };
4declare const _default: {
5 new (props: ScrollBarProps & import("../../chart").ChartChildProps<import("../../chart/Data").DataRecord>): {
6 willMount(): any;
7 render(): import("@antv/f-engine").JSX.Element;
8 startRange: {
9 x?: import("../zoom").ZoomRange;
10 y?: import("../zoom").ZoomRange;
11 };
12 scale: {};
13 originScale: {};
14 minScale: number;
15 dims: String[];
16 swipeEnd: {
17 startX: number;
18 startY: number;
19 endX: number;
20 endY: number;
21 };
22 loop: number;
23 didMount(): void;
24 willReceiveProps(nextProps: ScrollBarProps & import("../../chart").ChartChildProps<import("../../chart/Data").DataRecord>): void;
25 willUpdate(): void;
26 didUnmount(): void;
27 _requestAnimationFrame(calllback: Function): number;
28 _cancelAnimationFrame(): void;
29 onPanStart: () => void;
30 onPan: (ev: any) => void;
31 onPanEnd: () => void;
32 onPinchStart: () => void;
33 onPinch: (ev: any) => void;
34 onPinchEnd: () => void;
35 _bindEvents(): void;
36 _unBindEvents(): void;
37 onStart: () => void;
38 update(): void;
39 animateSwipe(dim: string, dimRange: import("../zoom").ZoomRange, velocity: number): void;
40 onSwipe: (ev: any) => void;
41 onEnd: () => void;
42 _doXPan(ev: any): import("../zoom").ZoomRange;
43 _doYPan(ev: any): import("../zoom").ZoomRange;
44 _doPan(ratio: number, dim: string): import("../zoom").ZoomRange;
45 _doXPinch(ev: any): any;
46 _doYPinch(ev: any): any;
47 _doPinch(startRatio: number, endRatio: number, zoom: number, dim: string): any;
48 updateRange(originalRange: import("../zoom").ZoomRange, dim: any): import("../zoom").ZoomRange;
49 updateFollow(scales: import("../..").Scale[], mainScale: import("../..").Scale, data: any[]): void;
50 _getScale(dim: any): any;
51 _getFollowScales(dim: any): any[];
52 renderRange(range: any): void;
53 props: ScrollBarProps & import("../../chart").ChartChildProps<import("../../chart/Data").DataRecord>;
54 state: import("../zoom").ZoomState;
55 context: import("@antv/f-engine").IContext;
56 refs: {
57 [key: string]: import("@antv/f-engine/es/component").default<import("@antv/f-engine").IProps, import("@antv/f-engine").IState>;
58 };
59 updater: import("@antv/f-engine/es/component/updater").Updater<import("../zoom").ZoomState>;
60 container: import("@antv/g-lite").Group;
61 layout: import("@antv/f-engine").LayoutProps;
62 children: import("@antv/f-engine/es/canvas/vnode").VNode | import("@antv/f-engine/es/canvas/vnode").VNode[];
63 isMounted: boolean;
64 animate: boolean;
65 animator: import("@antv/f-engine/es/canvas/render/animator").default;
66 destroyed: boolean;
67 _vNode: import("@antv/f-engine/es/canvas/vnode").VNode;
68 shouldUpdate(_nextProps: ScrollBarProps & import("../../chart").ChartChildProps<import("../../chart/Data").DataRecord>): boolean;
69 didUpdate(): void;
70 willUnmount(): void;
71 setState(partialState: import("../zoom").ZoomState, callback?: () => void): void;
72 forceUpdate(callback?: () => void): void;
73 setAnimate(animate: boolean): void;
74 destroy(): void;
75 };
76};
77export default _default;