Class: Lutaml::Xsd::Spa::Svg::LayoutNode

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

Overview

Value object representing a positioned layout node

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component:, box:, level:) ⇒ LayoutNode

Returns a new instance of LayoutNode.



73
74
75
76
77
# File 'lib/lutaml/xsd/spa/svg/layout_engine.rb', line 73

def initialize(component:, box:, level:)
  @component = component
  @box = box
  @level = level
end

Instance Attribute Details

#boxObject (readonly)

Returns the value of attribute box.



71
72
73
# File 'lib/lutaml/xsd/spa/svg/layout_engine.rb', line 71

def box
  @box
end

#componentObject (readonly)

Returns the value of attribute component.



71
72
73
# File 'lib/lutaml/xsd/spa/svg/layout_engine.rb', line 71

def component
  @component
end

#levelObject (readonly)

Returns the value of attribute level.



71
72
73
# File 'lib/lutaml/xsd/spa/svg/layout_engine.rb', line 71

def level
  @level
end