Class: AsciidoctorDiagramLayout::ContainerNode

Inherits:
Struct
  • Object
show all
Defined in:
lib/asciidoctor_diagram_layout/parser.rb

Overview

A container node holding child nodes in a row or column direction.

Instance Attribute Summary collapse

Instance Attribute Details

#childrenArray<ContainerNode, CellNode>

Returns:



151
# File 'lib/asciidoctor_diagram_layout/parser.rb', line 151

ContainerNode = Struct.new(:direction, :size, :children)

#direction:cols, :rows

Returns flex direction.

Returns:

  • (:cols, :rows)

    flex direction



151
# File 'lib/asciidoctor_diagram_layout/parser.rb', line 151

ContainerNode = Struct.new(:direction, :size, :children)

#sizeInteger, :auto

Returns percentage of parent or :auto for flex grow.

Returns:

  • (Integer, :auto)

    percentage of parent or :auto for flex grow



151
# File 'lib/asciidoctor_diagram_layout/parser.rb', line 151

ContainerNode = Struct.new(:direction, :size, :children)