blockly > ConnectionNavigationPolicy
ConnectionNavigationPolicy class
Set of rules controlling keyboard navigation from a connection.
Signature:
export declare class ConnectionNavigationPolicy implements INavigationPolicy<RenderedConnection>
Implements: INavigationPolicy<RenderedConnection>
Methods
| Method | Modifiers | Description |
|---|---|---|
| getFirstChild(current) | Returns the first child of the given connection. | |
| getNextSibling(current) | Returns the next element following the given connection. | |
| getParent(current) | Returns the parent of the given connection. | |
| getParentConnection(block) | protected |
Gets the parent connection on a block. This is either an output connection, previous connection or undefined. If both connections exist return the one that is actually connected to another block. |
| getPreviousSibling(current) | Returns the element preceding the given connection. | |
| isApplicable(current) | Returns whether the given object can be navigated from by this policy. | |
| isNavigable(current) | Returns whether or not the given connection can be navigated to. |