%PDF- %PDF-
Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/ |
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyo |
� "3Sc @ s d Z d Z d e Z d Z d Z d Z d d l m Z d d l m Z d e f d � � YZ e d � Z e d � Z e d � Z e d � Z e d � Z e d � Z e d � Z e d � Z e d � Z e d � Z e d � Z e d � Z e d � Z e d � Z d S( 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'``) i i s %d.%d.%ds Manfred Moitzis mozman@gmx.att 2014i����( t Drawing( t rgbt Unitc B s, e Z d Z d d � Z d � Z d � Z RS( s Add units to values. t cmc C s | | _ d S( sL Unit constructor :param str unit: specify the unit string N( t _unit( t selft unit( ( sB /opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyt __init__9 s c C s d | | j f S( s2 add unit-string to 'other'. (e.g. 5*cm => '5cm') s %s%s( R ( R t other( ( sB /opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyt __rmul__@ s c G s- d j g | D] } d | | j f ^ 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( t joinR ( R t argst arg( ( sB /opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyt __call__D s ( t __name__t __module__t __doc__R R R ( ( ( sB /opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyR 6 s R t mmt emt ext pxt int pct ptt %t degt gradt radt Hzt kHzN( i i i ( R t versiont VERSIONt AUTHOR_NAMEt AUTHOR_EMAILt CYEARt svgwrite.drawingR t svgwrite.utilsR t objectR R R R R R t inchR R t percentR R R R R ( ( ( sB /opt/alt/python27/lib/python2.7/site-packages/svgwrite/__init__.pyt <module>) s,