fromRect

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

MDN Reference