Skip to main content

Home > blockly > Marker > getSourceBlockFromNode

Marker.getSourceBlockFromNode() method

Returns the block that the given node is a child of.

Signature:

getSourceBlockFromNode(node: IFocusableNode | null): BlockSvg | null;

Parameters

ParameterTypeDescription
nodeIFocusableNode | null

Returns:

BlockSvg | null

The parent block of the node if any, otherwise null.