index.d.ts 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. declare const _default: new (props: import("./withScrollBar").ScrollBarProps) => {
  2. willMount(): any;
  3. render(): import("../..").JSX.Element;
  4. startRange: {
  5. x?: import("../zoom").ZoomRange;
  6. y?: import("../zoom").ZoomRange;
  7. };
  8. scale: {};
  9. originScale: {};
  10. minScale: number;
  11. dims: String[];
  12. swipeEnd: {
  13. startX: number;
  14. startY: number;
  15. endX: number;
  16. endY: number;
  17. };
  18. loop: any;
  19. didMount(): void;
  20. willReceiveProps(nextProps: import("./withScrollBar").ScrollBarProps): void;
  21. didUnmount(): void;
  22. onStart: () => void;
  23. onPan: (ev: any) => void;
  24. update(): void;
  25. onSwipe: (ev: any) => void;
  26. onPinch: (ev: any) => void;
  27. onEnd: () => void;
  28. _doXPan(ev: any): import("../zoom").ZoomRange;
  29. _doYPan(ev: any): import("../zoom").ZoomRange;
  30. _doPan(ratio: number, dim: string): import("../zoom").ZoomRange;
  31. _doXPinch(ev: any): any;
  32. _doYPinch(ev: any): any;
  33. _doPinch(startRatio: number, endRatio: number, zoom: number, dim: string): any;
  34. updateRange(originalRange: import("../zoom").ZoomRange, dim: any): import("../zoom").ZoomRange;
  35. updateFollow(scales: import("@antv/scale").Scale[], mainScale: import("@antv/scale").Scale, data: any[]): void;
  36. _getScale(dim: any): any;
  37. _getFollowScales(dim: any): any[];
  38. _bindEvents(): void;
  39. _clearEvents(): void;
  40. props: import("./withScrollBar").ScrollBarProps;
  41. state: import("../zoom").ZoomState;
  42. context: import("../../base/component").ComponentContext;
  43. refs: {
  44. [key: string]: import("../../base/component").default<any, any>;
  45. };
  46. updater: import("../../base/component").Updater<import("../zoom").ZoomState>;
  47. children: import("../..").JSX.Element;
  48. container: any;
  49. animate: boolean;
  50. destroyed: boolean;
  51. willUpdate(): void;
  52. didUpdate(): void;
  53. setState(partialState: import("../zoom").ZoomState, callback?: () => void): void;
  54. forceUpdate(callback?: () => void): void;
  55. setAnimate(animate: boolean): void;
  56. destroy(): void;
  57. };
  58. export default _default;
  59. import withScrollBar from "./withScrollBar";
  60. import ScrollBarView from "./scrollBarView";
  61. export { withScrollBar, ScrollBarView };