%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyo

�
"3Sc@s
dZdZdeZdZdZdZddlmZdd	lm	Z	d
e
fd��YZed�Zed
�Z
ed�Zed�Zed�Zed�Zed�Zed�Zed�Zed�Zed�Zed�Zed�Zed�ZdS(ss
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 composited 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'``)

iis%d.%d.%dsManfred Moitzis
mozman@gmx.att2014i����(tDrawing(trgbtUnitcBs,eZdZdd�Zd�Zd�ZRS(s Add units to values.
    tcmcCs
||_dS(sL Unit constructor

        :param str unit: specify the unit string
        N(t_unit(tselftunit((sB/opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyt__init__9scCsd||jfS(s2 add unit-string to 'other'. (e.g. 5*cm => '5cm') s%s%s(R(Rtother((sB/opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyt__rmul__@scGs-djg|D]}d||jf^q
�S(s~ Add unit-strings to all arguments.

        :param args: list of values
            e.g.: cm(1,2,3) => '1cm,2cm,3cm'
        t,s%s%s(tjoinR(Rtargstarg((sB/opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyt__call__Ds(t__name__t
__module__t__doc__RR
R(((sB/opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyR6s	Rtmmtemtextpxtintpctptt%tdegtgradtradtHztkHzN(iii(RtversiontVERSIONtAUTHOR_NAMEtAUTHOR_EMAILtCYEARtsvgwrite.drawingRtsvgwrite.utilsRtobjectRRRRRRtinchRRtpercentRRRRR(((sB/opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyt<module>)s,


Zerion Mini Shell 1.0