polar.d.ts 537 B

1234567891011121314151617181920212223
  1. import Base from './base';
  2. import { Option } from './types';
  3. interface PolarOption extends Option {
  4. radius: number;
  5. innerRadius: number;
  6. }
  7. declare class Polar extends Base {
  8. type: string;
  9. isPolar: boolean;
  10. startAngle: number;
  11. endAngle: number;
  12. radius: number;
  13. innnerRadius: number;
  14. option: PolarOption;
  15. update(option: PolarOption): this;
  16. isCyclic(): boolean;
  17. convertPoint(point: any): {
  18. x: number;
  19. y: number;
  20. };
  21. invertPoint(point: any): {};
  22. }
  23. export default Polar;