line.d.ts 2.0 KB

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