blockly > MetricsManager > getSvgMetrics
MetricsManager.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:
The width and height of the workspace's parent SVG element.