blockly > WorkspaceNavigationPolicy > getFirstChild

WorkspaceNavigationPolicy.getFirstChild() method

Returns the first child of the given workspace.

Signature:

getFirstChild(current: WorkspaceSvg): IFocusableNode | null;

Parameters

Parameter Type Description
current WorkspaceSvg The workspace to return the first child of.

Returns:

IFocusableNode | null

The top block of the first block stack, if any.