Size Object
Description
Stores a pair of numbers which specify a height and width.
Syntax
{
width: <number>,
height: <number>
}Examples
The following example demonstrates Size in a practical document-editing workflow. Stores a pair of numbers which specify a height and width.
function inspectSize(size) {
console.log("width:", size.width);
console.log("height:", size.height);
}