html.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import HtmlComponent from '../abstract/html-component';
  2. import { ILocation } from '../interfaces';
  3. import { HtmlAnnotationCfg, PointLocationCfg } from '../types';
  4. export default class HtmlAnnotation extends HtmlComponent<HtmlAnnotationCfg> implements ILocation<PointLocationCfg> {
  5. getDefaultCfg(): {
  6. name: string;
  7. type: string;
  8. locationType: string;
  9. x: number;
  10. y: number;
  11. containerTpl: string;
  12. alignX: string;
  13. alignY: string;
  14. html: string;
  15. zIndex: number;
  16. container: any;
  17. updateAutoRender: boolean;
  18. containerClassName: string;
  19. parent: any;
  20. id: string;
  21. offsetX: number;
  22. offsetY: number;
  23. animate: boolean;
  24. capture: boolean;
  25. animateOption: {
  26. appear: any;
  27. update: {
  28. duration: number;
  29. easing: string;
  30. };
  31. enter: {
  32. duration: number;
  33. easing: string;
  34. };
  35. leave: {
  36. duration: number;
  37. easing: string;
  38. };
  39. };
  40. events: any;
  41. defaultCfg: {};
  42. visible: boolean;
  43. };
  44. render(): void;
  45. protected resetPosition(): void;
  46. }