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

33 строки
767 B

  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