circle.d.ts 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import { ILocation } from '../interfaces';
  2. import { CircleCrosshairCfg, CircleLocationCfg, Point } from '../types';
  3. import CrosshairBase from './base';
  4. declare class LineCrosshair extends CrosshairBase<CircleCrosshairCfg> implements ILocation<CircleLocationCfg> {
  5. getDefaultCfg(): {
  6. type: string;
  7. locationType: string;
  8. center: any;
  9. radius: number;
  10. startAngle: number;
  11. endAngle: number;
  12. name: string;
  13. line: {};
  14. text: any;
  15. textBackground: {};
  16. capture: boolean;
  17. defaultCfg: {
  18. line: {
  19. style: {
  20. lineWidth: number;
  21. stroke: string;
  22. };
  23. };
  24. text: {
  25. position: string;
  26. offset: number;
  27. autoRotate: boolean;
  28. content: any;
  29. style: {
  30. fill: string;
  31. textAlign: string;
  32. textBaseline: string;
  33. fontFamily: string;
  34. };
  35. };
  36. textBackground: {
  37. padding: number;
  38. style: {
  39. stroke: string;
  40. };
  41. };
  42. };
  43. container: any;
  44. shapesMap: {};
  45. group: any;
  46. isRegister: boolean;
  47. isUpdating: boolean;
  48. isInit: boolean;
  49. id: string;
  50. offsetX: number;
  51. offsetY: number;
  52. animate: boolean;
  53. updateAutoRender: boolean;
  54. animateOption: {
  55. appear: any;
  56. update: {
  57. duration: number;
  58. easing: string;
  59. };
  60. enter: {
  61. duration: number;
  62. easing: string;
  63. };
  64. leave: {
  65. duration: number;
  66. easing: string;
  67. };
  68. };
  69. events: any;
  70. visible: boolean;
  71. };
  72. protected getRotateAngle(): number;
  73. protected getTextPoint(): Point;
  74. protected getLinePath(): any[];
  75. }
  76. export default LineCrosshair;