Optional
The fromRect() static method of the DOMRect object creates a new DOMRect object with a given location and dimensions.
fromRect()
MDN Reference
The
fromRect()static method of the DOMRect object creates a new DOMRect object with a given location and dimensions.MDN Reference