Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets

Allow Text element to be pickle-able

authored by

Casey Duckering and committed by
GitHub
bde07aec f0ceaa17

+1 -1
+1 -1
drawsvg/elements.py
··· 239 239 ''' 240 240 TAG_NAME = 'text' 241 241 has_content = True 242 - def __new__(cls, text, *args, path=None, id=None, _skip_check=False, 242 + def __new__(cls, text='', *args, path=None, id=None, _skip_check=False, 243 243 **kwargs): 244 244 # Check for the special case of multi-line text on a path 245 245 # This is inconsistently implemented by renderers so we return a group