§ w<ˆjÊ ãó–—dZddlmZmZeZdZdZdZdZddlm Z dd l m Z Gd „d e ¦«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 zManfred Moitziz me@mozman.atz 2014-2019é)ÚDrawing)Úrgbcó&—eZdZdZdd„Zd„Zd„ZdS)ÚUnitz Add units to values. Úcmcó—||_dS)zL Unit constructor :param str unit: specify the unit string N©Ú_unit)ÚselfÚunits úc/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/svgwrite/__init__.pyÚ__init__z Unit.__init__<s€ð ˆŒ ˆ ˆ ócó—|›|j›�S)z2 add unit-string to 'other'. (e.g. 5*cm => '5cm') r )rÚothers rÚ__rmul__z Unit.__rmul__Cs€à˜ ¤   Ð+Ð+rcóF‡—d ˆfd„|D¦«¦«S)z~ Add unit-strings to all arguments. :param args: list of values e.g.: cm(1,2,3) => '1cm,2cm,3cm' ú,có&•—g|] }|›‰j›�‘ŒS©r )Ú.0Úargrs €rú z!Unit.__call__..Ms$ø€ÐDÐDÐD¸ 3 3¨¬ ¨ Ð3ÐDÐDÐDr)Újoin)rÚargss` rÚ__call__z Unit.__call__Gs,ø€ð �xŠxÐDÐDÐDÐD¸tÐDÑDÔDÑEÔEÐErN)r )Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrr r 9sU€€€€€ððððððð,ð,ð,ðFðFðFðFðFrr r ÚmmÚemÚexÚpxÚinÚpcÚptú%ÚdegÚgradÚradÚHzÚkHzN)r#rrÚVERSIONÚ __author__Ú AUTHOR_NAMEÚ AUTHOR_EMAILÚCYEARÚsvgwrite.drawingrÚsvgwrite.utilsrÚobjectr r r$r%r&r'Úinchr)r*Úpercentr,r-r.r/r0rrrúr;sWðð!ð!ðD*Ð)Ð)Ð)Ð)Ð)Ð)Ð)Ø €à $€ à€ Ø€ Ø€ð%Ð$Ð$Ð$Ð$Ð$ØÐÐÐÐÐðFðFðFðFðFˆ6ñFôFðFð. €Tˆ$�Z„Z€Ø €Tˆ$�Z„Z€Ø €Tˆ$�Z„Z€Ø €Tˆ$�Z„Z€Ø €Tˆ$�Z„Z€Ø €tˆD�z„z€Ø €Tˆ$�Z„Z€Ø €Tˆ$�Z„Z€Ø ˆ$ˆs‰)Œ)€Ø €dˆ5�k„k€Ø €tˆF�|„|€Ø €dˆ5�k„k€Ø €Tˆ$�Z„Z€Ø €dˆ5�k„k€€€r