Skip to main content

Home > @jsplumbtoolkit/core > AbstractLayout > _getSize

AbstractLayout._getSize() method

Gets the size of the vertex with the given id, retrieving from the viewport and caching it for later use if not found locally. It is cached only for the duration of one run of the layout.

Signature:

protected _getSize(id: string): Size;

Parameters

ParameterTypeDescription
idstringID of the vertex whose size to retrieve

Returns:

Size

Width and height of vertex