Skip to main content

Home > @jsplumbtoolkit/layout-hierarchy > HierarchyLayoutParameters > respectEdgeDirection

HierarchyLayoutParameters.respectEdgeDirection property

If true, the layout will take into account 'directed' edges, and attempt to place the source of any given edge in a higher layer than the edge's target. This flag also has the effect of positioning any nodes that act only as the source of one or more edges on the root layer of the layout.

It isn't always possible to place the source of some edge in a higher layer than the edge's target, due to the graph's topology, but this flag will ensure the layout makes every effort to do so.

Signature:

respectEdgeDirection?: boolean;