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
| Parameter | Type | Description |
|---|---|---|
| node | IFocusableNode | null |
Returns:
BlockSvg | null
The parent block of the node if any, otherwise null.