版博士V2.0程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

42 righe
1.1 KiB

  1. import IHTMLElement from '../html-element/IHTMLElement';
  2. /**
  3. * HTML Image Element.
  4. *
  5. * Reference:
  6. * https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement.
  7. */
  8. export default interface IHTMLImageElement extends IHTMLElement {
  9. alt: string;
  10. readonly complete: boolean;
  11. crossOrigin: string;
  12. readonly currentSrc: string;
  13. decoding: string;
  14. height: number;
  15. isMap: boolean;
  16. loading: string;
  17. readonly naturalHeight: number;
  18. readonly naturalWidth: number;
  19. referrerPolicy: string;
  20. sizes: string;
  21. src: string;
  22. srcset: string;
  23. useMap: string;
  24. width: number;
  25. readonly x: number;
  26. readonly y: number;
  27. /**
  28. * The decode() method of the HTMLImageElement interface returns a Promise that resolves when the image is decoded and it is safe to append the image to the DOM.
  29. *
  30. * @returns Promise.
  31. */
  32. decode(): Promise<void>;
  33. /**
  34. * Clones a node.
  35. *
  36. * @override
  37. * @param [deep=false] "true" to clone deep.
  38. * @returns Cloned node.
  39. */
  40. cloneNode(deep: boolean): IHTMLImageElement;
  41. }