diagram: move draw_rect_from_center to the generic Diagram class
authorAntonio Ospite <ao2@ao2.it>
Tue, 26 Jun 2018 13:42:26 +0000 (15:42 +0200)
committerAntonio Ospite <ao2@ao2.it>
Wed, 27 Jun 2018 13:16:35 +0000 (15:16 +0200)
commit33f6577dfdb6b5f075c913b0239c5fa20e21b7a5
tree5e3c46fa2d13ad216a87dd733a3673467917bb49
parent9e3b6f79607747cd0e42ee5ab93a176f40826067
diagram: move draw_rect_from_center to the generic Diagram class

Move draw_rect_from_center from cairo_diagram.py to diagram.py as it
does not depend on any specific backend.
src/diagram/cairo_diagram.py
src/diagram/diagram.py