Home > @jsplumbtoolkit/layout-hierarchical > AbstractHierarchicalLayoutParameters > getRootNode
AbstractHierarchicalLayoutParameters.getRootNode property
Optional. A function that is given the Toolkit instance as argument and is expected to return either a single node/group, or an array of nodes/groups, to use as the root(s) for the layout
Signature:
getRootNode?: (toolkit: JsPlumbToolkit) => Array<Vertex>;