版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031
  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