Method: Archimate::Svg::Entity::Note#entity_shape

Defined in:
lib/archimate/svg/entity/note.rb

#entity_shape(xml, bounds) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/archimate/svg/entity/note.rb', line 13

def entity_shape(xml, bounds)
  xml.path(
    d: [
      ["m", bounds.left, bounds.top],
      ["h", bounds.width],
      ["v", bounds.height - 8],
      ["l", -8, 8],
      ["h", -(bounds.width - 8)],
      "z"
    ].flatten.join(" "),
    class: background_class,
    style: shape_style
  )
end