blockly > BlockNavigationPolicy > getPreviousSibling
BlockNavigationPolicy.getPreviousSibling() method
Returns the previous peer node of the given block.
Signature:
getPreviousSibling(current: BlockSvg): IFocusableNode | null;
Parameters
Parameter | Type | Description |
|---|---|---|
current | The block to find the preceding element of. |
Returns:
IFocusableNode | null
The block's previous/output connection, or the last connection/block of the previous block stack if it is a root block.