Skip to main content

Home > @jsplumbtoolkit/browser-ui > setBoundingRect

setBoundingRect() function#

Sets the position and size of the given element. This method is equivalent to first calling setAbsolutePosition and then setSize on the given element.

Signature:

export declare function setBoundingRect(element: Element, origin: PointXY, size: Size): void;

Parameters#

ParameterTypeDescription
elementElement
originPointXY
sizeSize

Returns:

void