|
|
@ -304,8 +304,11 @@ class Node:
|
|
|
|
raise EnvironmentError("Global diagrams context not set up")
|
|
|
|
raise EnvironmentError("Global diagrams context not set up")
|
|
|
|
|
|
|
|
|
|
|
|
if self._diagram.autolabel:
|
|
|
|
if self._diagram.autolabel:
|
|
|
|
# import pdb; pdb.set_trace()
|
|
|
|
prefix = self.__class__.__name__
|
|
|
|
self.label = self.__class__.__name__ + "\n" + self.label
|
|
|
|
if self.label:
|
|
|
|
|
|
|
|
self.label = prefix + "\n" + self.label
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
self.label = prefix
|
|
|
|
|
|
|
|
|
|
|
|
# fmt: off
|
|
|
|
# fmt: off
|
|
|
|
# If a node has an icon, increase the height slightly to avoid
|
|
|
|
# If a node has an icon, increase the height slightly to avoid
|
|
|
|