File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/base.pyo
�
���Rc @ s� d Z d d l m Z d d l Z d d l m Z d d l m Z m Z m Z d e
f d � � YZ d e
f d � � YZ d
e f d � � YZ
d e f d
� � YZ d S( s7
The **BaseElement** is the root for all SVG elements.
i����( t etreeN( t Parameter( t AutoIDt
to_unicodet PYTHON3t BaseElementc B s� e Z d Z d Z d � Z d � Z d � Z e d � � Z e d � � Z e d � � Z
e d � � Z d � Z d d
� Z d � Z d � Z d
� Z d � Z d � Z d � Z d � Z d � Z d � Z d d d � Z d � Z RS( s�
The **BaseElement** is the root for all SVG elements. The SVG attributes
are stored in **attribs**, and the SVG subelements are stored in
**elements**.
t baseElementc K s� | j d d � } | d k r- | j | _ n t � | _ | j d d � } | d k rf | | j _ n | j d d � } | d k r� | | j _ n t � | _ | j | � t � | _
d S( s�
:param extra: extra SVG attributes (keyword arguments)
* add trailing '_' to reserved keywords: ``'class_'``, ``'from_'``
* replace inner '-' by '_': ``'stroke_width'``
SVG attribute names will be checked, if **debug** is `True`.
workaround for removed **attribs** parameter in Version 0.2.2::
# replace
element = BaseElement(attribs=adict)
#by
element = BaseElement()
element.update(adict)
t factoryt debugt profileN( t popt Nonet
_parameterR R R t dictt attribst updatet listt elements( t selft extraR R R ( ( s>