blockly > common > getMainWorkspace
common.getMainWorkspace() function
Returns the last used top level workspace (based on focus). Try not to use this function, particularly if there are multiple Blockly instances on a page.
Signature:
export declare function getMainWorkspace(): Workspace;
Returns:
The main workspace.