fix: remove backward incompatible 'imagepos' attribute

pull/11/head
mingrammer 6 years ago
parent eaa2bb29f5
commit a2dcb8101c

@ -61,7 +61,8 @@ class Diagram:
"width": "1.4", "width": "1.4",
"height": "1.4", "height": "1.4",
"labelloc": "b", "labelloc": "b",
"imagepos": "tc", # imagepos attribute is not backward compatible
# "imagepos": "tc",
"imagescale": "true", "imagescale": "true",
"fontname": "Sans-Serif", "fontname": "Sans-Serif",
"fontsize": "13", "fontsize": "13",
@ -252,7 +253,7 @@ class Node:
# that label being spanned between icon image and white space. # that label being spanned between icon image and white space.
self.attrs = { self.attrs = {
"shape": "none", "shape": "none",
"height": "1.7", "height": "1.9",
"image": self._load_icon(), "image": self._load_icon(),
} if self._icon else {} } if self._icon else {}
# fmt: on # fmt: on

Loading…
Cancel
Save