bg dZddlmZmZeZdZdZdZdZddlm Z dd l m Z Gd d e Z e d Ze d Ze dZe dZe dZe dZe dZe dZe dZe dZe dZe dZe dZe dZdS)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 zManfred Moitziz me@mozman.atz 2014-2019)Drawing)rgbc&eZdZdZddZdZdZdS)Unitz Add units to values. cmc||_dS)zL Unit constructor :param str unit: specify the unit string N_unit)selfunits b/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/svgwrite/__init__.py__init__z Unit.__init__<s  c||jS)z2 add unit-string to 'other'. (e.g. 5*cm => '5cm') r )rothers r__rmul__z Unit.__rmul__Cs ++rcFdfd|DS)z~ Add unit-strings to all arguments. :param args: list of values e.g.: cm(1,2,3) => '1cm,2cm,3cm' ,c&g|] }|jSr ).0argrs r z!Unit.__call__..Ms$DDD33 3DDDr)join)rargss` r__call__z Unit.__call__Gs, xxDDDDtDDDEEErN)r )__name__ __module__ __qualname____doc__rrrrrrr r 9sU,,,FFFFFrr r mmemexpxinpcpt%deggradradHzkHzN)r#rrVERSION __author__ AUTHOR_NAME AUTHOR_EMAILCYEARsvgwrite.drawingrsvgwrite.utilsrobjectr r r$r%r&r'inchr)r*percentr,r-r.r/r0rrrr;sW!!D*)))))))  $   %$$$$$FFFFF6FFF. T$ZZ T$ZZ T$ZZ T$ZZ T$ZZ tDzz T$ZZ T$ZZ $s)) d5kk tF|| d5kk T$ZZ d5kkr