Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions graphspace_python/graphs/classes/gsgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,9 @@ def set_node_width_property(node_properties, width):

@staticmethod
def set_node_bubble_effect_property(node_properties, color, whitetext=False):
"""Add a "bubble effect" to the node by making the border color the same as the text outline color.
"""
Add a "bubble effect" to the node by adding a border or outline
around the text ('text-outline-width': 4) with the given color ('text-outline-color': color)

Args:
node_properties (dict): Dictionary of node attributes. Key-value pairs will be used to set data associated with the node.
Expand All @@ -803,7 +805,7 @@ def set_node_bubble_effect_property(node_properties, color, whitetext=False):
dict: Dictionary of node attributes.
"""
node_properties.update({'text-outline-color': color})
node_properties = GSGraph.set_node_border_color_property(node_properties, color)
#node_properties = GSGraph.set_node_border_color_property(node_properties, color)
# also make outline thicker and text larger
node_properties.update({'text-outline-width': 4})
if whitetext:
Expand Down