blockly > IMetricsManager > getSvgMetrics

IMetricsManager.getSvgMetrics() method

Gets the width and height of the workspace's parent SVG element in pixel coordinates. This area includes the toolbox and the visible workspace area.

Signature:

getSvgMetrics(): Size;

Returns:

Size

The width and height of the workspace's parent SVG element.