Skip to content

Interface: LayoutResult ​

Where a layout put everything. Arrays are owned by the caller from here on.

Extended by ​

Properties ​

PropertyModifierTypeDescription
clusters?readonlyreadonly LayoutCluster[]-
hidden?readonlyUint8Array<ArrayBufferLike>Nodes a layout left out (a collapsed subtree's descendants): 1 where the node is not drawn. Links with a hidden end are not drawn either.
reversed?readonlyUint8Array<ArrayBufferLike>Links the layout reversed to break cycles (layered): drawn in the back-edge style.
routes?readonlyreadonly (LinkRoute | undefined)[]Routes of the links that are not straight, by link index (sparse: undefined or a missing entry is a straight link). Indices are those of LayoutGraph.source.
xreadonlyFloat64ArrayNode centers, one per node. Always finite.
yreadonlyFloat64Array-
z?readonlyFloat64Array<ArrayBufferLike>Only from a 3D layout.

Released under the MIT License.