Skip to content

Interface: HiveLayoutResult ​

What hiveLayout returns: the positions and routes, and the axes it made.

Extends ​

Properties ​

PropertyModifierTypeDescriptionOverridesInherited from
axisreadonlyInt32ArrayThe axis of each node.--
axisAnglereadonlyFloat64ArrayThe angle of each axis in degrees, counter-clockwise from the +x axis.--
clusters?readonlyreadonly LayoutCluster[]--LayoutResult.clusters
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.-LayoutResult.hidden
omittedreadonlyUint8Array1 for each link that is not drawn: both ends on one axis (self-links too), or an end that is not a node (the contract rules those out).--
reversed?readonlyUint8Array<ArrayBufferLike>Links the layout reversed to break cycles (layered): drawn in the back-edge style.-LayoutResult.reversed
routesreadonlyreadonly (LinkRoute | undefined)[]One entry per link: a 'spline' route of 4 points, undefined where omitted is 1.LayoutResult.routes-
xreadonlyFloat64ArrayNode centers, one per node. Always finite.-LayoutResult.x
yreadonlyFloat64Array--LayoutResult.y
z?readonlyFloat64Array<ArrayBufferLike>Only from a 3D layout.-LayoutResult.z

Released under the MIT License.