blockly > Workspace > getRootWorkspace
Workspace.getRootWorkspace() method
Returns the root workspace of this workspace if the workspace has parent(s).
E.g. workspaces in flyouts and mini workspace bubbles have parent workspaces.
Signature:
getRootWorkspace(): Workspace | null;
Returns:
Workspace | null