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
Parameter | Type | Description |
---|---|---|
id | string | ID of the vertex whose size to retrieve |
Returns:
Size
Width and height of vertex