blockly > WorkspaceSvg > getScale

WorkspaceSvg.getScale() method

Get the workspace's zoom factor. If the workspace has a parent, we call into the parent to get the workspace scale.

Signature:

getScale(): number;

Returns:

number

The workspace zoom factor. Units: (pixels / workspaceUnit).