Home > blockly > utils > style > getSize
utils.style.getSize() function
Gets the height and width of an element. Similar to Closure's goog.style.getSize
Signature:
export declare function getSize(element: Element): Size;
Parameters
| Parameter | Type | Description |
|---|---|---|
| element | Element | Element to get size of. |
Returns:
Object with width/height properties.