12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/archimate/svg/entity/group.rb', line 12
def entity_shape(xml, bounds)
= 21
xml.rect(
x: bounds.left,
y: bounds.top + ,
width: bounds.width,
height: bounds.height - ,
class: background_class,
style: shape_style
)
xml.rect(
x: bounds.left,
y: bounds.top,
width: bounds.width / 2.0,
height: ,
class: background_class,
style: shape_style
)
xml.rect(
x: bounds.left,
y: bounds.top,
width: bounds.width / 2.0,
height: ,
class: "archimate-decoration"
)
@text_bounds = DataModel::Bounds.new(bounds.to_h.merge(height: ))
@text_align = "left"
end
|