Skip to content

Workspace.getAdjacentLeafInDirection method

Workspace › getAdjacentLeafInDirection

Unofficial

Get adjacent leaf in specified direction.

Signature:

getAdjacentLeafInDirection(leaf: WorkspaceLeaf, direction: "left" | "right" | "bottom" | "top"): null | WorkspaceLeaf

Parameters:

Parameter Type Description
leaf WorkspaceLeaf The reference leaf.
direction "left" | "right" | "bottom" | "top" The direction to search.

Returns: null | WorkspaceLeafThe adjacent leaf or null if none found.

Remarks:

Potentially does not work.