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:

ParameterTypeDescription
leafWorkspaceLeafThe 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.