|
|
@ -271,7 +271,6 @@ class Node:
|
|
|
|
# Generates a hash for identifying a node.
|
|
|
|
# Generates a hash for identifying a node.
|
|
|
|
self._hash = self._rand_hash()
|
|
|
|
self._hash = self._rand_hash()
|
|
|
|
self.label = label
|
|
|
|
self.label = label
|
|
|
|
self.attrs.update({"URL": URL, "tooltip": tooltip})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
@ -285,6 +284,8 @@ class Node:
|
|
|
|
} if self._icon else {}
|
|
|
|
} if self._icon else {}
|
|
|
|
# fmt: on
|
|
|
|
# fmt: on
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.attrs.update({"URL": URL, "tooltip": tooltip})
|
|
|
|
|
|
|
|
|
|
|
|
# Node must be belong to a diagrams.
|
|
|
|
# Node must be belong to a diagrams.
|
|
|
|
self._diagram = getdiagram()
|
|
|
|
self._diagram = getdiagram()
|
|
|
|
if self._diagram is None:
|
|
|
|
if self._diagram is None:
|
|
|
|