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#
| property | explanation | type | default value |
|---|
refElements  | the reference elements used by this layout | Array | [] |
| type | the type of the layout | String | “strata” |
Methods#
| method | explanation | return type |
|---|
| clone() | returns a copy of this layout | StrataLayout |
Methods inherited from Layout#
| method | explanation | return type |
|---|
| addRefElement(re) | adds a reference element to this layout | void |
| clearRefElements() | removes all reference elements from this layout | void |