Class: Archimate::Svg::Entity::Gap

Inherits:
Representation show all
Defined in:
lib/archimate/svg/entity/gap.rb

Instance Attribute Summary

Attributes inherited from BaseEntity

#background_class, #badge, #badge_bounds, #bounds_offset, #child, #entity, #text_bounds

Instance Method Summary collapse

Methods inherited from Representation

#entity_shape, #representation_path

Methods inherited from BaseEntity

#entity_badge, #entity_label, #group_attrs, #optional_link, #shape_style, #text_lines, #text_style, #to_svg

Constructor Details

#initialize(child, bounds_offset) ⇒ Gap

Returns a new instance of Gap.



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/archimate/svg/entity/gap.rb', line 7

def initialize(child, bounds_offset)
  super
  @background_class = "archimate-implementation2-background"
  @badge = "#archimate-gap-badge"
  @badge_bounds = DataModel::Bounds.new(
    x: child.bounds.right - 25,
    y: child.bounds.top + 5,
    width: 20,
    height: 20
  )
end