fromRect

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

MDN Reference