db544d449a14962c8c3b142833dc88c546db4baac6a9630475cf793854644e443120c03c79dbddc2e4802203ff0d565abbc3902034f8c66e71719a38d80ade 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import ComponentModel from '../../model/Component.js';
  2. import { AxisModelExtendedInCreator } from '../axisModelCreator.js';
  3. import { AxisModelCommonMixin } from '../axisModelCommonMixin.js';
  4. import { AxisBaseOption } from '../axisCommonTypes.js';
  5. import AngleAxis from './AngleAxis.js';
  6. import RadiusAxis from './RadiusAxis.js';
  7. import { AxisBaseModel } from '../AxisBaseModel.js';
  8. export declare type AngleAxisOption = AxisBaseOption & {
  9. mainType?: 'angleAxis';
  10. /**
  11. * Index of host polar component
  12. */
  13. polarIndex?: number;
  14. /**
  15. * Id of host polar component
  16. */
  17. polarId?: string;
  18. startAngle?: number;
  19. clockwise?: boolean;
  20. axisLabel?: AxisBaseOption['axisLabel'];
  21. };
  22. export declare type RadiusAxisOption = AxisBaseOption & {
  23. mainType?: 'radiusAxis';
  24. /**
  25. * Index of host polar component
  26. */
  27. polarIndex?: number;
  28. /**
  29. * Id of host polar component
  30. */
  31. polarId?: string;
  32. };
  33. declare type PolarAxisOption = AngleAxisOption | RadiusAxisOption;
  34. declare class PolarAxisModel<T extends PolarAxisOption = PolarAxisOption> extends ComponentModel<T> implements AxisBaseModel<T> {
  35. static type: string;
  36. axis: AngleAxis | RadiusAxis;
  37. getCoordSysModel(): ComponentModel;
  38. }
  39. interface PolarAxisModel<T extends PolarAxisOption = PolarAxisOption> extends AxisModelCommonMixin<T>, AxisModelExtendedInCreator {
  40. }
  41. export { PolarAxisModel };
  42. export declare class AngleAxisModel extends PolarAxisModel<AngleAxisOption> {
  43. static type: string;
  44. type: string;
  45. axis: AngleAxis;
  46. }
  47. export declare class RadiusAxisModel extends PolarAxisModel<RadiusAxisOption> {
  48. static type: string;
  49. type: string;
  50. axis: RadiusAxis;
  51. }