Skip to main content

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

ParameterTypeDescription
idstringID of the Node to set the size for.
sSizeSize of the node.

Returns:

void