index.d.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. declare const _default: new (props: import("./types").AxisProps) => {
  2. style: import("./types").Style<void>;
  3. willReceiveProps(nextProps: import("./types").AxisProps): void;
  4. willMount(): void;
  5. willUpdate(): void;
  6. getScaleOption(props: import("./types").AxisProps): {
  7. type: any;
  8. tickCount: any;
  9. range: any;
  10. mask: any;
  11. formatter: any;
  12. min: any;
  13. max: any;
  14. nice: any;
  15. };
  16. _getDimType(): "x" | "y";
  17. getMaxBBox(ticks: any, style: import("./types").Style<void>): {
  18. height: number;
  19. width: number;
  20. };
  21. _getPosition(): "left" | "top" | "right" | "bottom";
  22. getTicks(): import("@antv/scale").Tick[];
  23. _generateGridPoints(ticks: any): any;
  24. _setTicksStyle(ticks: any): any;
  25. convertTicks(ticks: any): any;
  26. measureLayout(): import("../../chart").PositionLayout | import("../../chart").PositionLayout[];
  27. updateCoord(): void;
  28. render(): import("../..").JSX.Element;
  29. props: import("./types").AxisProps;
  30. state: {};
  31. context: import("../../base/component").ComponentContext;
  32. refs: {
  33. [key: string]: import("../../base/component").default<any, any>;
  34. };
  35. updater: import("../../base/component").Updater<{}>;
  36. children: import("../..").JSX.Element;
  37. container: any;
  38. animate: boolean;
  39. destroyed: boolean;
  40. didMount(): void;
  41. didUpdate(): void;
  42. didUnmount(): void;
  43. setState(partialState: {}, callback?: () => void): void;
  44. forceUpdate(callback?: () => void): void;
  45. setAnimate(animate: boolean): void;
  46. destroy(): void;
  47. };
  48. export default _default;
  49. import withAxis from "./withAxis";
  50. import AxisView from "./axisView";
  51. export { withAxis, AxisView };