Initialise a rectangle based on the width and height of a HTML element.
import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js"Rects.fromElement(document.querySelector(`body`)); Copy
import { Rects } from "https://unpkg.com/ixfx/dist/geometry.js"Rects.fromElement(document.querySelector(`body`));
Initialise a rectangle based on the width and height of a HTML element.