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
| Parameter | Type | Description |
|---|---|---|
| element | Element | |
| origin | PointXY | |
| size | Size |
Returns:
void