Class: Lutaml::Xsd::Spa::Svg::Config::TreeLayoutConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/xsd/spa/svg/config/layout_config.rb

Overview

Tree layout configuration value object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tree_hash) ⇒ TreeLayoutConfig

Returns a new instance of TreeLayoutConfig.



24
25
26
27
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 24

def initialize(tree_hash)
  @direction = tree_hash["direction"] || "top_down"
  @level_spacing = tree_hash["level_spacing"] || 60
end

Instance Attribute Details

#directionObject (readonly)

Returns the value of attribute direction.



22
23
24
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 22

def direction
  @direction
end

#level_spacingObject (readonly)

Returns the value of attribute level_spacing.



22
23
24
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 22

def level_spacing
  @level_spacing
end