Workspace.getAdjacentLeafInDirection method
Workspace › getAdjacentLeafInDirection
Unofficial
Get adjacent leaf in specified direction.Signature:
getAdjacentLeafInDirection(leaf: WorkspaceLeaf, direction: "left" | "right" | "bottom" | "top"): null | WorkspaceLeafParameters:
| Parameter | Type | Description |
|---|---|---|
| leaf | WorkspaceLeaf | The reference leaf. |
| direction | "left" | "right" | "bottom" | "top" | The direction to search. |
Returns: null | WorkspaceLeaf — The adjacent leaf or null if none found.
Remarks:
Potentially does not work.