/opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__
NameSizeModeActions
animate.cpython-311.pyc83770644editdlrm
base.cpython-311.pyc128700644editdlrm
container.cpython-311.pyc149210644editdlrm
drawing.cpython-311.pyc65430644editdlrm
elementfactory.cpython-311.pyc37240644editdlrm
etree.cpython-311.pyc16040644editdlrm
filters.cpython-311.pyc156530644editdlrm
gradients.cpython-311.pyc70760644editdlrm
image.cpython-311.pyc33200644editdlrm
masking.cpython-311.pyc25360644editdlrm
mixins.cpython-311.pyc140560644editdlrm
params.cpython-311.pyc30190644editdlrm
path.cpython-311.pyc45320644editdlrm
pattern.cpython-311.pyc28260644editdlrm
shapes.cpython-311.pyc81310644editdlrm
solidcolor.cpython-311.pyc24710644editdlrm
text.cpython-311.pyc117450644editdlrm
utils.cpython-311.pyc109770644editdlrm
validator2.cpython-311.pyc89740644editdlrm
version.cpython-311.pyc2730644editdlrm
__init__.cpython-311.pyc37120644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__/mixins.cpython-311.pyc (14056B)
§ 6ÆFE´TÍãóú—ddlmZddlmZddddœZddd d œZGd „d e¦«ZGd „de¦«ZGd„de¦«ZGd„de¦«Z Gd„de¦«Z Gd„de¦«Z Gd„de¦«Z dS)é©Ústrlist©Ú is_stringÚxMidÚxMinÚxMax)ÚcenterÚleftÚrightÚYMidÚYMinÚYMax)ÚmiddleÚtopÚbottomcó(—eZdZdZd d„Zd„Zd d„Zd S) ÚViewBoxaô The **ViewBox** mixin provides the ability to specify that a given set of graphics stretch to fit a particular container element. The value of the **viewBox** attribute is a list of four numbers **min-x**, **min-y**, **width** and **height**, separated by whitespace and/or a comma, which specify a rectangle in **user space** which should be mapped to the bounds of the viewport established by the given element, taking into account attribute **preserveAspectRatio**. rcó2—t||||g¦«|d<dS)a~ Specify a rectangle in **user space** (no units allowed) which should be mapped to the bounds of the viewport established by the given element. :param number minx: left border of the viewBox :param number miny: top border of the viewBox :param number width: width of the viewBox :param number height: height of the viewBox ÚviewBoxNr)ÚselfÚminxÚminyÚwidthÚheights úa/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/svgwrite/mixins.pyÚviewboxzViewBox.viewboxs"€õ" D¨$°°vÐ#>Ñ@Ô@ˆˆY‰ˆˆócó—d|d<dS)zh Stretch viewBox in x and y direction to fill viewport, does not preserve aspect ratio. ÚnoneÚpreserveAspectRatioN©)rs rÚstretchzViewBox.stretch's€ð'-ˆÐ "Ñ#Ð#Ð#rr rÚmeetcó„—|jr|dvrtd|z¦«‚t|›t|›d|›�|d<dS)a Set the **preserveAspectRatio** attribute. :param string horiz: horizontal alignment ``'left | center | right'`` :param string vert: vertical alignment ``'top | middle | bottom'`` :param string scale: scale method ``'meet | slice'`` ============= ======================================================= Scale methods Description ============= ======================================================= ``'meet'`` preserve aspect ration and zoom to limits of viewBox ``'slice'`` preserve aspect ration and viewBox touch viewport on all bounds, viewBox will extend beyond the bounds of the viewport ============= ======================================================= )r$ÚslicezInvalid scale parameter '%s'ú r!N)ÚdebugÚ ValueErrorÚ_horizÚ_vert)rÚhorizÚvertÚscales rÚfitz ViewBox.fit-sV€ð" Œ:ð E˜%Ð'8Ð8Ð8ÝÐ;¸eÑCÑDÔDÐ DÝ39¸%´=°=ÅÀtÄÀÀÈeÈeÐ&TˆÐ "Ñ#Ð#Ð#rN)rrrr)r rr$)Ú__name__Ú __module__Ú __qualname__Ú__doc__rr#r/r"rrrrs_€€€€€ð ð ð Að Að Að Að-ð-ð-ð UðUðUðUðUðUrrcóF—eZdZdZdZd d„Zd d„Zd d„Zd„Zd„Z d „Z d „Z dS) Ú Transforma| The **Transform** mixin operates on the **transform** attribute. The value of the **transform** attribute is a ``, which is defined as a list of transform definitions, which are applied in the order provided. The individual transform definitions are separated by whitespace and/or a comma. All coordinates are **user space coordinates**. Ú transformNcóT—| dt||g¦«z¦«dS)z÷ Specifies a translation by **tx** and **ty**. If **ty** is not provided, it is assumed to be zero. :param number tx: user coordinate - no units allowed :param number ty: user coordinate - no units allowed z translate(%s)N©Ú_add_transformationr)rÚtxÚtys rÚ translatezTransform.translateLs/€ð × Ò  µ7¸RÀ¸HÑ3FÔ3FÑ!FÑGÔGÐGÐGÐGrcóT—| dt||g¦«z¦«dS)ac Specifies a rotation by **angle** degrees about a given point. If optional parameter **center** are not supplied, the rotate is about the origin of the current user coordinate system. :param number angle: rotate-angle in degrees :param 2-tuple center: rotate-center as user coordinate - no units allowed z rotate(%s)Nr8)rÚangler s rÚrotatezTransform.rotateVs/€ð × Ò  µ¸%À¸Ñ0JÔ0JÑ!JÑKÔKÐKÐKÐKrcóT—| dt||g¦«z¦«dS)a Specifies a scale operation by **sx** and **sy**. If **sy** is not provided, it is assumed to be equal to **sx**. :param number sx: scalar factor x-axis, no units allowed :param number sy: scalar factor y-axis, no units allowed z scale(%s)Nr8)rÚsxÚsys rr.zTransform.scalebs/€ð × Ò  ­w¸¸B°xÑ/@Ô/@Ñ!@ÑAÔAÐAÐAÐArcó6—| d|z¦«dS)z‚ Specifies a skew transformation along the x-axis. :param number angle: skew-angle in degrees, no units allowed z skewX(%s)N©r9©rr>s rÚskewXzTransform.skewXmó#€ð × Ò  ¨uÑ!4Ñ5Ô5Ð5Ð5Ð5rcó6—| d|z¦«dS)z‚ Specifies a skew transformation along the y-axis. :param number angle: skew-angle in degrees, no units allowed z skewY(%s)NrDrEs rÚskewYzTransform.skewYurGrc ó\—| dt||||||g¦«z¦«dS)Nz matrix(%s)r8)rÚaÚbÚcÚdÚeÚfs rÚmatrixzTransform.matrix}s6€Ø × Ò  µ¸!¸QÀÀ1ÀaÈÐ9KÑ0MÔ0MÑ!MÑNÔNÐNÐNÐNrcóˆ—|j |jd¦«}|›d|›� ¦«||j<dS)NÚr')ÚattribsÚgetÚ transformnameÚstrip)rÚ new_transformÚ old_transforms rr9zTransform._add_transformation€sF€Øœ ×(Ò(¨Ô);¸RÑ@Ô@ˆ Ø/<¨}¨}¸m¸mÐ$L×#SÒ#SÑ#UÔ#UˆˆTÔ Ñ Ð Ð r)N) r0r1r2r3rVr<r?r.rFrIrQr9r"rrr5r5Bs±€€€€€ððð €MðHðHðHðHð Lð Lð Lð Lð Bð Bð Bð Bð6ð6ð6ð6ð6ð6ðOðOðOðVðVðVðVðVrr5có&—eZdZdZd„Zdd„Zd„ZdS)ÚXLinkz XLink mixin có<—||_| ¦«dS)a  Create a reference to **element**. :param element: if element is a `string` its the **id** name of the referenced element, if element is a **BaseElement** class the **id** SVG Attribute is used to create the reference. N)ÚhrefÚ update_id)rÚelements rÚset_hrefzXLink.set_href‡s!€ðˆŒ Ø �ŠÑÔÐÐÐrNcóB—|�||d<|�||d<|�||d<|�||d<dSdS)zA Set XLink attributes (for `href` use :meth:`set_href`). Nz xlink:rolez xlink:arcrolez xlink:titlez xlink:showr")rÚtitleÚshowÚroleÚarcroles rÚ set_xlinkzXLink.set_xlink“sR€ð Ð Ø!%ˆD�Ñ Ø Ð Ø$+ˆD�Ñ !Ø Ð Ø"'ˆD�Ñ Ø Ð Ø!%ˆD�Ñ Ð Ð ð Ð rcó¨—t|d¦«sdSt|j¦«r|j}n|j ¦«}||jd<dS)Nr]z xlink:href)Úhasattrrr]Úget_irirT)rÚidstrs rr^zXLink.update_idŸsY€Ý�t˜VÑ$Ô$ð Ø ˆFÝ �T”YÑ Ô ð (Ø”IˆEˆEà”I×%Ò%Ñ'Ô'ˆEØ%*ˆŒ �\Ñ"Ð"Ð"r)NNNN)r0r1r2r3r`rfr^r"rrr[r[…sL€€€€€ØÐð ð ð ð &ð &ð &ð &ð+ð+ð+ð+ð+rr[có.—eZdZdZdd„Z dd„Zdd„ZdS) Ú Presentationz8 Helper methods to set presentation attributes. Ncó~—|�,t|¦«r||d<n| ¦«|d<|�||d<|�||d<|S)zS Set SVG Properties **fill**, **fill-rule** and **fill-opacity**. NÚfillz fill-rulez fill-opacity©rÚget_paint_server)rÚcolorÚruleÚopacitys rrnzPresentation.fill­s_€ð РݘÑÔð 8Ø$��V‘ � à$×5Ò5Ñ7Ô7��V‘ Ø Ð Ø $ˆD�Ñ Ø Ð Ø#*ˆD�Ñ Øˆ rcó¨—|�,t|¦«r||d<n| ¦«|d<|�||d<|�||d<|�||d<|�||d<|�||d<|S)z� Set SVG Properties **stroke**, **stroke-width**, **stroke-opacity**, **stroke-linecap** and **stroke-miterlimit**. NÚstrokez stroke-widthzstroke-opacityzstroke-linecapzstroke-linejoinzstroke-miterlimitro)rrqrrsÚlinecapÚlinejoinÚ miterlimits rruzPresentation.stroke½s“€ð РݘÑÔð :Ø!&��X‘�à!&×!7Ò!7Ñ!9Ô!9��X‘Ø Ð Ø#(ˆD�Ñ Ø Ð Ø%,ˆDÐ!Ñ "Ø Ð Ø%,ˆDÐ!Ñ "Ø Ð Ø&.ˆDÐ"Ñ #Ø Ð !Ø(2ˆDÐ$Ñ %؈ rcó>—|�t|d¦«|d<|�||d<|S)at Set SVG Properties **stroke-dashoffset** and **stroke-dasharray**. Where *dasharray* specify the lengths of alternating dashes and gaps as of or values or a of comma and/or white space separated or . (e.g. as dasharray=[1, 0.5] or as dasharray='1 0.5') Nr'zstroke-dasharrayzstroke-dashoffsetr)rÚ dasharrayÚoffsets rrzzPresentation.dasharrayÖs5€ð Ð Ý'.¨y¸#Ñ'>Ô'>ˆDÐ#Ñ $Ø Ð Ø(.ˆDÐ$Ñ %؈ r)NNN)NNNNNN©NN)r0r1r2r3rnrurzr"rrrlrl©sd€€€€€ððððððð DHØ)-ððððð2 ð ð ð ð ð rrlcó—eZdZdZdd„ZdS)Ú MediaGroupz8 Helper methods to set media group attributes. Ncó"—|�||d<|�||d<|S)zV Set SVG Properties **viewport-fill** and **viewport-fill-opacity**. Nz viewport-fillzviewport-fill-opacityr")rrqrss rÚ viewport_fillzMediaGroup.viewport_fillìs*€ð Ð Ø$)ˆD�Ñ !Ø Ð Ø,3ˆDÐ(Ñ )؈ rr|)r0r1r2r3r€r"rrr~r~æs2€€€€€ððð ð ð ð ð ð rr~có—eZdZdZd„ZdS)ÚMarkersz3 Helper methods to set marker attributes. có—d„}t|¦«r||¦«|d<dS |\}}}|r||¦«|d<|r||¦«|d<|r||¦«|d<dSdS#ttf$r||¦«|d<YdSwxYw)a£ Set markers for line elements (line, polygon, polyline, path) to values specified by `markers`. * if `markers` is a 3-tuple: * attribute 'marker-start' = markers[0] * attribute 'marker-mid' = markers[1] * attribute 'marker-end' = markers[2] * `markers` is a `string` or a `Marker` class: * attribute 'marker' = `FuncIRI` of markers có@—t|¦«rd|zSd|dzS)Nzurl(%s)zurl(#%s)Úidr)Úvalues rÚ get_funciriz(Markers.set_markers..get_funciri s.€Ý˜ÑÔð 0à  5Ñ(Ð(ð" E¨$¤KÑ/Ð/rÚmarkerz marker-startz marker-midz marker-endN)rÚ TypeErrorÚKeyError)rÚmarkersr‡Ú start_markerÚ mid_markerÚ end_markers rÚ set_markerszMarkers.set_markersýsí€ð  0ð 0ð 0õ �WÑ Ô ð 6Ø(˜[¨Ñ1Ô1ˆD�‰NˆNˆNð 6Ø7>Ñ4� ˜j¨*ØðEØ+6¨;°|Ñ+DÔ+D�D˜Ñ(ØðAØ)4¨°ZÑ)@Ô)@�D˜Ñ&ØðAØ)4¨°ZÑ)@Ô)@�D˜Ñ&Ð&Ð&ðAðAøå�xÐ(ð 6ð 6ð 6Ø!, ¨WÑ!5Ô!5��X‘���ð 6øøøs¤6AÁBÂBN)r0r1r2r3r�r"rrr‚r‚øs-€€€€€ððð$6ð$6ð$6ð$6ð$6rr‚có—eZdZdd„ZdS)ÚClippingÚautoc ó*—d|›d|›d|›d|›d� |d<dS)z- Set SVG Property **clip**. zrect(ú,ú)ÚclipNr")rrr rr s rÚ clip_rectzClipping.clip_rect%s,€€ð /2¨c¨c°5°5°5¸&¸&¸&À$À$À$ÐGˆˆV‰ ˆ ˆ rN)r’r’r’r’)r0r1r2r—r"rrr‘r‘$s.€€€€€ðHðHðHðHðHðHrr‘N) Úsvgwrite.utilsrrr*r+Úobjectrr5r[rlr~r‚r‘r"rrúršs ðð#Ð"Ð"Ð"Ð"Ð"Ø$Ð$Ð$Ð$Ð$Ð$à F°VÐ <Ð <€Ø 6°FÐ ;Ð ;€ð1Uð1Uð1Uð1Uð1Uˆfñ1Uô1Uð1Uðf@Vð@Vð@Vð@Vð@V�ñ@Vô@Vð@VðF!+ð!+ð!+ð!+ð!+ˆFñ!+ô!+ð!+ðH:ð:ð:ð:ð:�6ñ:ô:ð:ðzðððð�ñôðð$)6ð)6ð)6ð)6ð)6ˆfñ)6ô)6ð)6ðXHðHðHðHðHˆvñHôHðHðHðHr