Home > @jsplumbtoolkit/core > AbstractLayout > setSize
AbstractLayout.setSize() method
Sets what the layout considers to be the size of the node with the given id. This method is not generally necessary if you use the layout methods on the surface widget.
Signature:
setSize(id: string, s: Size): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string | ID of the Node to set the size for. |
| s | Size | Size of the node. |
Returns:
void