function createReadOnlyRect(_a) {
    var x = _a.x,
      y = _a.y,
      width = _a.width,
      height = _a.height // If DOMRectReadOnly is available use it as a prototype for the rectangle.

    var Constr =
      typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object
    var rect = Object.create(Constr.prototype) // Rectangle's properties are not writable and non-enumerable.

    defineConfigurable(rect, {
      x: x,
      y: y,
      width: width,
      height: height,
      top: y,
      right: x + width,
      bottom: height + y,
      left: x,
    })
    return rect
  }
/**
   * Creates rectangle with an interface of the DOMRectReadOnly.
   * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
   *
   * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
   * @returns {DOMRectReadOnly}
   */
Creates rectangle with an interface of the DOMRectReadOnly.

@param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
Creates rectangle with an interface of the DOMRectReadOnly . @param { DOMRectInit } rectInit - Object with rectangle ' s x / y coordinates and dimensions .
function createReadOnlyRect(_a) {
    var x = _a.x,
      y = _a.y,
      width = _a.width,
      height = _a.height 
    var Constr =
      typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object
    var rect = Object.create(Constr.prototype) 
    defineConfigurable(rect, {
      x: x,
      y: y,
      width: width,
      height: height,
      top: y,
      right: x + width,
      bottom: height + y,
      left: x,
    })
    return rect
  }
function createReadOnlyRect ( _a ) { var x = _a . x , y = _a . y , width = _a . width , height = _a . height var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object var rect = Object . create ( Constr . prototype ) defineConfigurable ( rect , { x : x , y : y , width : width , height : height , top : y , right : x + width , bottom : height + y , left : x , } ) return rect }
Creates rectangle with an interface of the DOMRectReadOnly.
Creates rectangle with an interface of the DOMRectReadOnly .
// If DOMRectReadOnly is available use it as a prototype for the rectangle. // Rectangle's properties are not writable and non-enumerable.