layout.subtype String (default: "down")

The subtype further defines the layout type by specifying in greater detail the behaviour expected by the layout algorithm. Possible predefined values are:

  • "down" - tree layout and layered layout specific subtype. In the tree layout the root is arranged at the top and its children downwards. For the layered layout the links are directed downwards. This is the default subtype.

  • "up" - tree layout and layered layout specific subtype. In the tree layout the root is arranged at the bottom and its children upwards. For the layered layout the links are directed upwards.

  • "left" - tree layout layered layout specific subtype. In the tree layout the root is arranged at the left and its children sideways to the right. For the layered layout the links are directed to the left.
  • "right" - tree layout layered layout specific subtype. In the tree layout the root is arranged at the right and its children sideways to the left. For the layered layout the links are directed downwards.

  • "mindmapHorizontal" - tree layout specific subtype. The root sits at the center and its children are spread equally to the left and right.

  • "mindmapVertical" - tree layout specific subtype. The root sits at the center and its children are spread equally above and below.

  • "radial" - tree layout specific subtype. The root sits at the center and its children are spread radially around.

  • "tipOver" - tree layout specific subtype. A special version of the tree-down layout where the grand-children (and iteratively) are arranged vertically while the direct children are arranged horizontally. This arrangement has the advantage that it doesn't spread as much as the classic tree-down layout. See below for a concrete example.

  • "horizontal" - layered layout specific subtype. The preferred direction of the links is horizontal.

  • "vertical" - layered layout specific subtype. The preferred direction of the links is vertical.
In this article