index.d.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. ticks: any;
  16. };
  17. _getDimType(): "x" | "y";
  18. getMaxBBox(ticks: any, style: import("./types").Style<void>): {
  19. height: number;
  20. width: number;
  21. };
  22. _getPosition(): "left" | "top" | "right" | "bottom";
  23. getTicks(): import("@antv/scale").Tick[];
  24. _generateGridPoints(ticks: any): any;
  25. _setTicksStyle(ticks: any): any;
  26. convertTicks(ticks: any): any;
  27. measureLayout(): import("../../chart").PositionLayout | import("../../chart").PositionLayout[];
  28. updateCoord(): void;
  29. render(): import("../..").JSX.Element;
  30. props: import("./types").AxisProps;
  31. state: {};
  32. context: import("../../base/component").ComponentContext;
  33. refs: {
  34. [key: string]: import("../../base/component").default<any, any>;
  35. };
  36. updater: import("../../base/component").Updater<{}>;
  37. children: import("../..").JSX.Element;
  38. container: any;
  39. animate: boolean;
  40. destroyed: boolean;
  41. didMount(): void;
  42. didUpdate(): void;
  43. didUnmount(): void;
  44. setState(partialState: {}, callback?: () => void): void;
  45. forceUpdate(callback?: () => void): void;
  46. setAnimate(animate: boolean): void;
  47. destroy(): void;
  48. };
  49. export default _default;
  50. import withAxis from "./withAxis";
  51. import AxisView from "./axisView";
  52. export { withAxis, AxisView };