Server IP : 192.158.238.246 / Your IP : 18.117.216.191 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__/ |
Upload File : |
� ��bg� � �X � d Z ddlZddlmZmZ ddlmZ ddlmZ G d� 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 � � e Zd ZdZd� fd� Z� fd�Zdd�Zdd�Zdd�Zdd �Z d� Z � xZS )�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 �� t t | � � j dd|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)�selfr r �extra� __class__s ��a/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/svgwrite/drawing.pyr zDrawing.__init__+ sB �� � &��g�t���%�9�9�4�9�5�9�9�9� �� ������ c �� �� | j }| j }d| j d<