/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__/drawing.cpython-311.pyc (6543B)
§ Iôbÿ&�wãóX—dZddlZddlmZmZddlmZddlmZGd„dee¦«Z dS)aï The *Drawing* object is the overall container for all SVG elements. It provides the methods to store the drawing into a file or a file-like object. If you want to use stylesheets, the reference links to this stylesheets were also stored (`add_stylesheet`) in the *Drawing* object. set/get SVG attributes:: element['attribute'] = value value = element['attribute'] The Drawing object also includes a defs section, add elements to the defs section by:: drawing.defs.add(element) éN)ÚSVGÚDefs)ÚElementFactory)Ú pretty_xmlcóT‡—eZdZdZdˆfd„ Zˆfd„Zdd„Zdd „Zdd „Zdd „Z d„Z ˆxZ S)ÚDrawingaÍ This is the SVG drawing represented by the top level *svg* element. A drawing consists of any number of SVG elements contained within the drawing element, stored in the *elements* attribute. A drawing can range from an empty drawing (i.e., no content inside of the drawing), to a very simple drawing containing a single SVG element such as a *rect*, to a complex, deeply nested collection of container elements and graphics elements. ú noname.svg©ú100%r c óh•—tt|¦«jdd|i|¤Ž||_g|_dS)a“ :param string filename: filesystem filename valid for :func:`open` :param 2-tuple size: width, height :param keywords extra: additional svg-attributes for the *SVG* object Important (and not SVG Attributes) **extra** parameters: :param string profile: ``'tiny | full'`` - define the SVG baseProfile :param bool debug: switch validation on/off ÚsizeN©)ÚsuperrÚ__init__ÚfilenameÚ _stylesheets)Úselfrr ÚextraÚ __class__s €úb/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/svgwrite/drawing.pyrzDrawing.__init__+sBø€ð &��g�tÑÔÔ%Ð9Ð9¨4Ð9°5Ð9Ð9Ð9Ø ˆŒ ؈ÔÐÐócóÒ•—|j}|j}d|jd<d|jd<d|jd<||jd<||jd<tt|¦« ¦«S) z‰ Get the XML representation as `ElementTree` object. :return: XML `ElementTree` of this object and all its subelements zhttp://www.w3.org/2000/svgÚxmlnszhttp://www.w3.org/1999/xlinkz xmlns:xlinkz!http://www.w3.org/2001/xml-eventszxmlns:evÚ baseProfileÚversion)ÚprofilerÚattribsrrÚget_xml)rrrrs €rrzDrawing.get_xml;skø€ð ”,ˆØ”,ˆØ <ˆŒ �WÑØ&DˆŒ �]Ñ#Ø#FˆŒ �ZÑ à&-ˆŒ �]Ñ#Ø")ˆŒ �YÑÝ•W˜dÑ#Ô#×+Ò+Ñ-Ô-Ð-rÚnoÚscreencóB—|j ||||f¦«dS)a5 Add a stylesheet reference. :param string href: link to stylesheet :param string title: name of stylesheet :param string alternate: ``'yes'|'no'`` :param string media: ``'all | aureal | braille | embossed | handheld | print | projection | screen | tty | tv'`` N)rÚappend)rÚhrefÚtitleÚ alternateÚmedias rÚadd_stylesheetzDrawing.add_stylesheetKs*€ð Ô× Ò  $¨¨y¸%Ð!@ÑAÔAÐAÐAÐArFécóð—| d¦«d}|jD]}| ||z¦«Œ| ¦«}|rt||¬¦«}| |¦«dS)aK Write XML string to `fileobj`. :param fileobj: a file-like object :param pretty: True for easy readable output :param indent: how much to indent if pretty is enabled, by default 2 spaces Python 3.x - set encoding at the open command:: open('filename', 'w', encoding='utf-8') z( zR )ÚindentN)ÚwriterÚtostringr)rÚfileobjÚprettyr*Ústylesheet_templateÚ stylesheetÚ xml_strings rr+z Drawing.writeVs�€ð � Š ÐAÑBÔBÐBð 7ÐðÔ+ð <ð <ˆJØ �MŠMÐ-° Ñ:Ñ ;Ô ;Ð ;Ð ;à—]’]‘_”_ˆ Ø ð ?Ý# J°vÐ>Ñ>Ô>ˆJØ� Š �jÑ!Ô!Ð!Ð!Ð!rcó–—tj|jdd¬¦«}| |||¬¦«| ¦«dS)z¼ Write the XML string to `self.filename`. :param pretty: True for easy readable output :param indent: how much to indent if pretty is enabled, by default 2 spaces Úwzutf-8)ÚmodeÚencoding©r.r*N)ÚioÚopenrr+Úclose)rr.r*r-s rÚsavez Drawing.saversE€õ ”'˜$œ-¨c¸GÐDÑDÔDˆØ � Š �7 6°&ˆ Ñ9Ô9Ð9Ø� Š ‰ŒˆˆˆrcóB—||_| ||¬¦«dS)a Write the XML string to `filename`. :param string filename: filesystem filename valid for :func:`open` :param pretty: True for easy readable output :param indent: how much to indent if pretty is enabled, by default 2 spaces r6N)rr:)rrr.r*s rÚsaveaszDrawing.saveas|s'€ð!ˆŒ Ø � Š ˜¨ˆ Ñ/Ô/Ð/Ð/Ð/rcó*—| ¦«S)z� Show SVG in IPython, Jupyter Notebook, and Jupyter Lab :return: unicode XML string of this object and all its subelements )r,)rs rÚ _repr_svg_zDrawing._repr_svg_†s€ð �}Š}‰ŒÐr)r r )rr )Fr() Ú__name__Ú __module__Ú __qualname__Ú__doc__rrr'r+r:r<r>Ú __classcell__)rs@rrr!sÃø€€€€€ððððððððð .ð.ð.ð.ð.ð Bð Bð Bð Bð"ð"ð"ð"ð8ðððð0ð0ð0ð0ðððððððrr) rBr7Úsvgwrite.containerrrÚsvgwrite.elementfactoryrÚsvgwrite.utilsrrrrrúrGs–ðððð$ € € € à(Ð(Ð(Ð(Ð(Ð(Ð(Ð(Ø2Ð2Ð2Ð2Ð2Ð2Ø%Ð%Ð%Ð%Ð%Ð%ðkðkðkðkðkˆc�>ñkôkðkðkðkr