PokéRogue
    Preparing search index...
    DOMRectReadOnly: {
        prototype: DOMRectReadOnly;
        fromRect(other?: DOMRectInit): DOMRectReadOnly;
        new (
            x?: number,
            y?: number,
            width?: number,
            height?: number,
        ): DOMRectReadOnly;
    }

    Type Declaration

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

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

        Returns DOMRectReadOnly

    • prototype: DOMRectReadOnly
    • fromRect: function
      • The fromRect() static method of the DOMRectReadOnly object creates a new DOMRectReadOnly object with a given location and dimensions.

        MDN Reference

        Parameters

        Returns DOMRectReadOnly