StrataLayout

extends Layout

The StrataLayout class represents a layout that positions a tree’s children by stratum. The direction property is required. To create a StrataLayout object and apply it to a collection, use the layout function:

let sl = msc.layout("strata", {direction: "t2b", gap: 5});
collection.layout = sl;

Properties

propertyexplanationtypedefault value
refElements the reference elements used by this layoutArray[]
typethe type of the layoutString“strata”

Methods

methodexplanationreturn type
clone()returns a copy of this layoutStrataLayout

Methods inherited from Layout

methodexplanationreturn type
addRefElement(re)adds a reference element to this layoutvoid
clearRefElements()removes all reference elements from this layoutvoid