/opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__/base.cpython-311.pyc (12870B)
§
÷kp‰¬ ë²ã ó¦ — d Z ddlmZ ddlZddlmZ ddlmZ G d„ de¦ « Z G d„ d e¦ « Z
G d
„ de
¦ « Z G d„ d
e
¦ « ZdS )z7
The **BaseElement** is the root for all SVG elements.
é )ÚetreeN)Ú Parameter)ÚAutoIDc óø — e Zd ZdZdZd„ Zd„ Zd„ Zed„ ¦ « Z ed„ ¦ « Z
ed„ ¦ « Zej d „ ¦ « Zed
„ ¦ « Z
d„ Zdd
„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zdd„Zd„ ZdS )ÚBaseElementzª
The **BaseElement** is the root for all SVG elements. The SVG attributes
are stored in **attribs**, and the SVG subelements are stored in
**elements**.
ÚbaseElementc ó| — | dd¦ « }|�
|j | _ nt ¦ « | _ | dd¦ « }|�|| j _ | dd¦ « }|�|| j _ t ¦ « | _ | |¦ « t ¦ « | _ dS )aÿ
: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)
ÚfactoryNÚdebugÚprofile)
ÚpopÚ
_parameterr r r ÚdictÚattribsÚupdateÚlistÚelements)ÚselfÚextrar
r r s ú_/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/svgwrite/base.pyÚ__init__zBaseElement.__init__ s¬ € ð* —)’)˜I tÑ,Ô,ˆØÐà%Ô0ˆDŒOˆOõ (™kœkˆDŒOð — ’ ˜' 4Ñ(Ô(ˆØÐØ$)ˆDŒOÔ!ð —)’)˜I tÑ,Ô,ˆØÐØ&-ˆDŒOÔ#å‘v”vˆŒØ�Š�EÑÔÐÝ™œˆŒ
ˆ
ˆ
ó c ó¸ — | ¦ « D ]D\ }}| d¦ « dd¦ « }| ||¦ « ŒEdS )zí Update SVG Attributes from `dict` attribs.
Rules for keys:
1. trailing '_' will be removed (``'class_'`` -> ``'class'``)
2. inner '_' will be replaced by '-' (``'stroke_width'`` -> ``'stroke-width'``)
Ú_ú-N)ÚitemsÚrstripÚreplaceÚ__setitem__)r r ÚkeyÚvalues r r zBaseElement.updateH sc € ð "Ÿ-š-™/œ/ð )ð )‰JˆC�ð —*’*˜S‘/”/×)Ò)¨#¨sÑ3Ô3ˆCØ×Ò˜S %Ñ(Ô(Ð(Ð(ð )ð )r c óæ — t j | ¦ « }t j | j ¦ « |_ t j | j ¦ « |_ d|j v r| ¦ « |d<