fromRect

fun fromRect(other: DOMRectReadOnly = definedExternally): DOMRect(source)

The fromRect() static method of the object with a given location and dimensions.

MDN Reference