repack_node_style_args¶
-
visualife.diagrams.repack_node_style_args(node_style_dict, text_style_dict, **attrs)¶ Repacks drawing style for node and text
This is a helper function that is used to build a
**kwargsdictionary that is then passed to node’s draw() methodParameters: - node_style_dict – (
dict) a dictionary that provides style for drawing a node - text_style_dict – (
dict) a dictionary that provides style for text - attrs – dictionary of additional attributes, which may contain
"node_style_dict"and"text_style_dict"keys; all other items of this dictionary are considered as node drawing attributes and accordingly packed to"node_style"dictionary
Returns: a dictionary that holds two entries:
"node_style"and"text_style"- node_style_dict – (