blockly > MetricsManager > getAbsoluteMetrics
MetricsManager.getAbsoluteMetrics() method
Gets the absolute left and absolute top in pixel coordinates. This is where the visible workspace starts in relation to the SVG container.
Signature:
getAbsoluteMetrics(): AbsoluteMetrics;
Returns:
AbsoluteMetrics
The absolute metrics for the workspace.