circle.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import { CircleGridCfg, Point } from '../types';
  2. import GridBase from './base';
  3. declare class Circle extends GridBase<CircleGridCfg> {
  4. getDefaultCfg(): {
  5. type: string;
  6. /**
  7. * 中心点
  8. * @type {object}
  9. */
  10. center: any;
  11. /**
  12. * 栅格线是否封闭
  13. * @type {true}
  14. */
  15. closed: boolean;
  16. name: string;
  17. line: {}; /**
  18. * 栅格线是否封闭
  19. * @type {true}
  20. */
  21. alternateColor: any;
  22. capture: boolean;
  23. items: any[];
  24. defaultCfg: {
  25. line: {
  26. type: string;
  27. style: {
  28. lineWidth: number;
  29. stroke: string;
  30. };
  31. };
  32. };
  33. container: any;
  34. shapesMap: {};
  35. group: any;
  36. isRegister: boolean;
  37. isUpdating: boolean;
  38. isInit: boolean;
  39. id: string;
  40. locationType: string;
  41. offsetX: number;
  42. offsetY: number;
  43. animate: boolean;
  44. updateAutoRender: boolean;
  45. animateOption: {
  46. appear: any;
  47. update: {
  48. duration: number;
  49. easing: string;
  50. };
  51. enter: {
  52. duration: number;
  53. easing: string;
  54. };
  55. leave: {
  56. duration: number;
  57. easing: string;
  58. };
  59. };
  60. events: any;
  61. visible: boolean;
  62. };
  63. protected getGridPath(points: Point[], reversed: boolean): any[];
  64. }
  65. export default Circle;