DOMRect: {
    prototype: DOMRect;
    fromRect(other?: DOMRectInit): DOMRect;
    new (x?: number, y?: number, width?: number, height?: number): DOMRect;
}

Type declaration

    • new (x?: number, y?: number, width?: number, height?: number): DOMRect
    • Parameters

      • Optionalx: number
      • Optionaly: number
      • Optionalwidth: number
      • Optionalheight: number

      Returns DOMRect

  • prototype: DOMRect
  • fromRect:function