/opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__
NameSizeModeActions
animate.cpython-311.pyc83770644editdlrm
base.cpython-311.pyc128700644editdlrm
container.cpython-311.pyc149210644editdlrm
drawing.cpython-311.pyc65430644editdlrm
elementfactory.cpython-311.pyc37240644editdlrm
etree.cpython-311.pyc16040644editdlrm
filters.cpython-311.pyc156530644editdlrm
gradients.cpython-311.pyc70760644editdlrm
image.cpython-311.pyc33200644editdlrm
masking.cpython-311.pyc25360644editdlrm
mixins.cpython-311.pyc140560644editdlrm
params.cpython-311.pyc30190644editdlrm
path.cpython-311.pyc45320644editdlrm
pattern.cpython-311.pyc28260644editdlrm
shapes.cpython-311.pyc81310644editdlrm
solidcolor.cpython-311.pyc24710644editdlrm
text.cpython-311.pyc117450644editdlrm
utils.cpython-311.pyc109770644editdlrm
validator2.cpython-311.pyc89740644editdlrm
version.cpython-311.pyc2730644editdlrm
__init__.cpython-311.pyc37120644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__/base.cpython-311.pyc (12870B)
§ ÷kp‰¬ ë²ãó¦—dZddlmZddlZddlmZddlmZGd„de¦«Z Gd„d e¦«Z Gd „d e ¦«Z Gd „d e ¦«Z dS)z7 The **BaseElement** is the root for all SVG elements. é)ÚetreeN)Ú Parameter)ÚAutoIDcóø—eZdZdZdZd„Zd„Zd„Zed„¦«Z ed„¦«Z ed„¦«Z e j d „¦«Z ed „¦«Z d „Zdd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zd S)Ú 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Ú _parameterrr 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__)rrÚkeyÚvalues rrzBaseElement.updateHsc€ð"Ÿ-š-™/œ/ð )ð )‰JˆC�ð—*’*˜S‘/”/×)Ò)¨#¨sÑ3Ô3ˆCØ × Ò ˜S %Ñ (Ô (Ð (Ð (ð  )ð )rcóæ—tj|¦«}tj|j¦«|_tj|j¦«|_d|jvr| ¦«|d<|S)NÚid)ÚcopyrrÚnext_id)rÚnewobjs rr$zBaseElement.copyWsZ€Ý”˜4‘”ˆÝœ 4¤<Ñ0Ô0ˆŒÝœ) D¤MÑ2Ô2ˆŒØ �6”>Ð !Ð !Ø!Ÿ>š>Ñ+Ô+ˆF�4‰L؈ rcó—|jjS©N)rr ©rs rr zBaseElement.debug_s €àŒÔ$Ð$rcó—|jjSr()rr r)s rr zBaseElement.profilecs €àŒÔ&Ð&rcó—|jjSr(©rÚ validatorr)s rr-zBaseElement.validatorgs €àŒÔ(Ð(rcó—||j_dSr(r,©rr!s rr-zBaseElement.validatorks€à$)ˆŒÔ!Ð!Ð!rcó4—|j ¦«Sr()rÚ get_versionr)s rÚversionzBaseElement.versionos€àŒ×*Ò*Ñ,Ô,Ð,rcó—||_dSr()r)rÚ parameters rÚ set_parameterzBaseElement.set_parameterss €Ø#ˆŒˆˆrNcó*—tj|¦«Sr()rr%r/s rr%zBaseElement.next_idvs€ÝŒ~˜eÑ$Ô$Ð$rcóf—d|jvr| ¦«|jd<|jdS)zŠ Get the object `id` string, if the object does not have an `id`, a new `id` will be created. :returns: `string` r#)rr%r)s rÚget_idzBaseElement.get_idys2€ð �t”|Ð #Ð #Ø!%§¢¡¤ˆDŒL˜Ñ ØŒ|˜DÔ!Ð!rcó0—d| ¦«zS)zn Get the `IRI` reference string of the object. (i.e., ``'#id'``). :returns: `string` z#%s)r8r)s rÚget_irizBaseElement.get_iriƒs€ð �t—{’{‘}”}Ñ$Ð$rcó0—d| ¦«zS)zv Get the `FuncIRI` reference string of the object. (i.e. ``'url(#id)'``). :returns: `string` zurl(%s))r:r)s rÚ get_funcirizBaseElement.get_funciri‹s€ð ˜4Ÿ<š<™>œ>Ñ)Ð)rcó—|j|S)zz Get SVG attribute by `key`. :param string key: SVG attribute name :return: SVG attribute value )r)rr s rÚ __getitem__zBaseElement.__getitem__“s€ðŒ|˜CÔ Ð rcój—|jr!|j |j||¦«||j|<dS)z‘ Set SVG attribute by `key` to `value`. :param string key: SVG attribute name :param object value: SVG attribute value N)r r-Úcheck_svg_attribute_valueÚ elementnamer)rr r!s rrzBaseElement.__setitem__œs>€ð Œ:ð SØ ŒN× 4Ò 4°TÔ5EÀsÈEÑ RÔ RÐ RØ!ˆŒ �SÑÐÐrcó’—|jr%|j |j|j¦«|j |¦«|S)z� Add an SVG element as subelement. :param element: append this SVG element :returns: the added element )r r-Úcheck_valid_childrenrArÚappend)rÚelements rÚaddzBaseElement.add©sH€ð Œ:ð WØ ŒN× /Ò /°Ô0@À'ÔBUÑ VÔ VÐ VØ Œ ×Ò˜WÑ%Ô%Ð%؈rcó€—| ¦«}tj|d¬¦«}| d¦«S)z† Get the XML representation as unicode `string`. :return: unicode XML string of this object and all its subelements zutf-8)Úencoding)Úget_xmlrÚtostringÚdecode)rÚxmlÚ xml_utf8_strs rrJzBaseElement.tostringµs9€ð �lŠl‰nŒnˆå”~ c°GÐ<Ñ<Ô<ˆ Ø×"Ò" 7Ñ+Ô+Ð+rcó*—| ¦«S)z� Show SVG in IPython, Jupyter Notebook, and Jupyter Lab :return: unicode XML string of this object and all its subelements )rJr)s rÚ _repr_svg_zBaseElement._repr_svg_Ás€ð �}Š}‰ŒÐrcó¨—tj|j¦«}|jr%|j |j|j¦«t|j ¦«¦«D]4\}}|�-|  |¦«}|r|  ||¦«Œ5|j D])}|  |  ¦«¦«Œ*|S)z‰ Get the XML representation as `ElementTree` object. :return: XML `ElementTree` of this object and all its subelements )rÚElementrAr r-Úcheck_all_svg_attribute_valuesrÚsortedrÚvalue_to_stringÚsetrrDrI)rrLÚ attributer!rEs rrIzBaseElement.get_xmlÉsÓ€õ Œm˜DÔ,Ñ-Ô-ˆØ Œ:ð ZØ ŒN× 9Ò 9¸$Ô:JÈDÌLÑ YÔ YÐ YÝ & t¤|×'9Ò'9Ñ';Ô';Ñ <Ô <ð .ð .Ñ ˆI�uàÐ Ø×,Ò,¨UÑ3Ô3�Øð.Ø—G’G˜I uÑ-Ô-Ð-øà”}ð *ð *ˆGØ �JŠJ�w—’Ñ(Ô(Ñ )Ô )Ð )Ð )؈ rcóü—t|ttf¦«rR|jr|j |d¦«t|t¦«r|jdkrt|d¦«}t|¦«S)z� Converts *value* into a includes a value check, depending on :attr:`self.debug` and :attr:`self.profile`. ÚnumberÚtinyé) Ú isinstanceÚintÚfloatr r-Úcheck_svg_typer ÚroundÚstrr/s rrTzBaseElement.value_to_stringÝss€õ �e�c¥5˜\Ñ *Ô *ð (ØŒzð ?Ø”×-Ò-¨e°XÑ>Ô>Ð>ݘ%¥Ñ'Ô'ð (¨D¬L¸FÒ,BÐ,Bݘe Q™œ�Ý�5‰zŒzÐrcó²—|�(|j dt|¦«¦«|�*|j dt|¦«¦«dSdS)zK Insert a **title** and/or a **desc** element as first subelement. Nr)rÚinsertÚDescÚTitle)rÚtitleÚdescs rÚset_desczBaseElement.set_descêsZ€ð Ð Ø ŒM× Ò  ¥D¨¡J¤JÑ /Ô /Ð /Ø Ð Ø ŒM× Ò  ¥E¨%¡L¤LÑ 1Ô 1Ð 1Ð 1Ð 1ð Ð rcó—t|¦«}t|j¦«dkr|j |¦«dSd}|j|jdvrM|dz }|t|j¦«kr|j |¦«dS|j|jdv°M|j|jdkr'|j|j |¦«dS|j ||¦«dS)úN :param xmldata: an xml.etree.ElementTree - Element() object. r)rerféNÚmetadata)ÚMetadataÚlenrrDrArLrb)rÚxmldatarkÚposs rÚ set_metadatazBaseElement.set_metadataòs€õ˜GÑ$Ô$ˆÝ ˆtŒ}Ñ Ô  Ò "Ð "Ø ŒM× Ò  Ñ *Ô *Ð *Ð *Ð *àˆCØ”- Ô$Ô0Ð4EÐEÐEØ�q‘�Ø�#˜dœmÑ,Ô,Ò,Ð,Ø”M×(Ò(¨Ñ2Ô2Ð2Ø�Fð ”- Ô$Ô0Ð4EÐEÐEð Œ}˜SÔ!Ô-°Ò;Ð;Ø” ˜cÔ"Ô&×-Ò-¨gÑ6Ô6Ð6Ð6Ð6à” ×$Ò$ S¨(Ñ3Ô3Ð3Ð3Ð3rr()NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rArrr$Úpropertyr r r-Úsetterr2r5r%r8r:r<r>rrFrJrOrIrTrgrp©rrrrsº€€€€€ððð  €Kð)ð)ð)ðV )ð )ð )ððððð%ð%ñ„Xð%ðð'ð'ñ„Xð'ðð)ð)ñ„Xð)ðÔð*ð*ñÔð*ðð-ð-ñ„Xð-ð$ð$ð$ð%ð%ð%ð%ð"ð"ð"ð%ð%ð%ð*ð*ð*ð!ð!ð!ð "ð "ð "ð ð ð ð ,ð ,ð ,ððððððð( ð ð ð2ð2ð2ð2ð4ð4ð4ð4ð4rrcó—eZdZdZd„Zd„ZdS)rdrecót—tj|j¦«|_t |¦«|j_dSr()rrQrArLr`Útext)rrzs rrzTitle.__init__ s)€Ý”= Ô!1Ñ2Ô2ˆŒÝ˜D™ œ ˆŒŒ ˆ ˆ rcó—|jSr()rLr)s rrIz Title.get_xml s €ØŒxˆrN)rqrrrsrArrIrwrrrdrds7€€€€€Ø€Kð"ð"ð"ðððððrrdcó—eZdZdZdS)rcrfN)rqrrrsrArwrrrcrcs€€€€€Ø€K€K€Krrccó—eZdZdZd„ZdS)rlrkcól—tjd¦«|_|j |¦«dS)rirkN)rrQrLrD)rrns rrzMetadata.__init__s/€õ”= Ñ,Ô,ˆŒØ Œ�Š˜Ñ Ô Ð Ð Ð rN)rqrrrsrArrwrrrlrls(€€€€€Ø€Kð!ð!ð!ð!ð!rrl) rtÚsvgwrite.etreerr$Úsvgwrite.paramsrÚsvgwrite.utilsrÚobjectrrdrcrlrwrrúrƒs ðððð!Ð Ð Ð Ð Ð à € € € à%Ð%Ð%Ð%Ð%Ð%Ø!Ð!Ð!Ð!Ð!Ð!ðo4ðo4ðo4ðo4ðo4�&ño4ôo4ðo4ðdððððˆFñôððððððˆ5ñôðð!ð!ð!ð!ð!ˆuñ!ô!ð!ð!ð!r