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