UNPKG

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