Home > @jsplumbtoolkit/browser-ui > setSize
setSize() function
Sets the size of the given DOM element, by setting values for width and height on the element's style.
Signature:
export declare function setSize(element: Element, w: number, h: number): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| element | Element | |
| w | number | Width, in pixels. |
| h | number | Height, in pixels. |
Returns:
void