版博士V2.0程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

DOMRect.js 767 B

123456789101112131415161718192021222324252627282930313233
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. /**
  4. * Bounding rect object.
  5. *
  6. * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMRect
  7. */
  8. class DOMRect {
  9. /**
  10. * Constructor.
  11. *
  12. * @param [x] X position.
  13. * @param [y] Y position.
  14. * @param [width] Width.
  15. * @param [height] Height.
  16. */
  17. constructor(x, y, width, height) {
  18. this.x = 0;
  19. this.y = 0;
  20. this.width = 0;
  21. this.height = 0;
  22. this.top = 0;
  23. this.right = 0;
  24. this.bottom = 0;
  25. this.left = 0;
  26. this.x = x || 0;
  27. this.y = y || 0;
  28. this.width = width || 0;
  29. this.height = height || 0;
  30. }
  31. }
  32. exports.default = DOMRect;
  33. //# sourceMappingURL=DOMRect.js.map