UNPKG

2.63 kBTypeScriptView Raw
1import { px } from '../../types';
2import { ZoomProps } from '../zoom';
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?: px;
16}
17declare const _default: (View: any) => {
18 new (props: ScrollBarProps): {
19 willMount(): any;
20 render(): import("../..").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: any;
36 didMount(): void;
37 willReceiveProps(nextProps: ScrollBarProps): void;
38 didUnmount(): void;
39 onStart: () => void;
40 onPan: (ev: any) => void;
41 update(): void;
42 onSwipe: (ev: any) => void;
43 onPinch: (ev: any) => void;
44 onEnd: () => void;
45 _doXPan(ev: any): import("../zoom").ZoomRange;
46 _doYPan(ev: any): import("../zoom").ZoomRange;
47 _doPan(ratio: number, dim: string): import("../zoom").ZoomRange;
48 _doXPinch(ev: any): any;
49 _doYPinch(ev: any): any;
50 _doPinch(startRatio: number, endRatio: number, zoom: number, dim: string): any;
51 updateRange(originalRange: import("../zoom").ZoomRange, dim: any): import("../zoom").ZoomRange;
52 updateFollow(scales: import("@antv/scale/lib/base").default[], mainScale: import("@antv/scale/lib/base").default, data: any[]): void;
53 _getScale(dim: any): any;
54 _getFollowScales(dim: any): any[];
55 _bindEvents(): void;
56 _clearEvents(): void;
57 props: ScrollBarProps;
58 state: import("../zoom").ZoomState;
59 context: import("../../base/component").ComponentContext;
60 refs: {
61 [key: string]: import("../../base/component").default<any, any>;
62 };
63 updater: import("../../base/component").Updater<import("../zoom").ZoomState>;
64 children: import("../..").JSX.Element;
65 container: any;
66 animate: boolean;
67 destroyed: boolean;
68 willUpdate(): void;
69 didUpdate(): void;
70 setState(partialState: import("../zoom").ZoomState, callback?: () => void): void;
71 forceUpdate(callback?: () => void): void;
72 setAnimate(animate: boolean): void;
73 destroy(): void;
74 };
75};
76export default _default;