Rectangle Object
Description
Stores a Point and a Size object that represent the location and size of a rectangle.
Syntax
{
location: <Point>,
size: <Size>
}Examples
The following example demonstrates Rectangle in a practical document-editing workflow. Stores a Point and a Size object that represent the location and size of a rectangle.
function inspectRectangle(rectangle) {
console.log("location:", rectangle.location);
console.log("size:", rectangle.size);
}