Skip to main content

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#

ParameterTypeDescription
elementElement
wnumberWidth, in pixels.
hnumberHeight, in pixels.

Returns:

void