版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

31 строка
846 B

  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const HTMLImageElement_1 = __importDefault(require("./HTMLImageElement"));
  7. /**
  8. * Image as constructor.
  9. *
  10. * Reference:
  11. * https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image.
  12. */
  13. class Image extends HTMLImageElement_1.default {
  14. /**
  15. * Constructor.
  16. *
  17. * @param [width] Width.
  18. * @param [height] Height.
  19. */
  20. constructor(width = null, height = null) {
  21. super();
  22. if (width !== null) {
  23. this.width = width;
  24. }
  25. if (height !== null) {
  26. this.height = height;
  27. }
  28. }
  29. }
  30. exports.default = Image;
  31. //# sourceMappingURL=Image.js.map