image.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { IGroup } from '@antv/g-base';
  2. import GroupComponent from '../abstract/group-component';
  3. import { ILocation } from '../interfaces';
  4. import { ImageAnnotationCfg, RegionLocationCfg } from '../types';
  5. declare class ImageAnnotation extends GroupComponent<ImageAnnotationCfg> implements ILocation<RegionLocationCfg> {
  6. /**
  7. * @protected
  8. * 默认的配置项
  9. * @returns {object} 默认的配置项
  10. */
  11. getDefaultCfg(): {
  12. name: string;
  13. type: string;
  14. locationType: string;
  15. start: any;
  16. end: any;
  17. src: any;
  18. style: {};
  19. container: any;
  20. shapesMap: {};
  21. group: any;
  22. capture: boolean;
  23. isRegister: boolean;
  24. isUpdating: boolean;
  25. isInit: boolean;
  26. id: string;
  27. offsetX: number;
  28. offsetY: number;
  29. animate: boolean;
  30. updateAutoRender: boolean;
  31. animateOption: {
  32. appear: any;
  33. update: {
  34. duration: number;
  35. easing: string;
  36. };
  37. enter: {
  38. duration: number;
  39. easing: string;
  40. };
  41. leave: {
  42. duration: number;
  43. easing: string;
  44. };
  45. };
  46. events: any;
  47. defaultCfg: {};
  48. visible: boolean;
  49. };
  50. renderInner(group: IGroup): void;
  51. private getImageAttrs;
  52. private renderImage;
  53. }
  54. export default ImageAnnotation;