/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__/image.cpython-311.pyc (3320B)
§ h¹vv`bãóJ—ddlmZddlmZmZmZmZGd„deee¦«ZdS)é)Ú BaseElement)Ú TransformÚ_vertÚ_horizÚClippingcó6‡—eZdZdZdZd ˆfd„ Zd„Zd d „ZˆxZS) ÚImagea% The **image** element indicates that the contents of a complete file are to be rendered into a given rectangle within the current user coordinate system. The **image** element can refer to raster image files such as PNG or JPEG or to files with MIME type of "image/svg+xml". ÚimageNc ó¶•—tt|¦«jd i|¤Ž||d<|�|d|d<|d|d<|�|d|d<|d|d<dSdS) a1 :param string href: hyperlink to the image resource :param 2-tuple insert: insert point (**x**, **y**) :param 2-tuple size: (**width**, **height**) :param dict attribs: additional SVG attributes :param extra: additional SVG attributes as keyword-arguments z xlink:hrefNrÚxéÚyÚwidthÚheight©)Úsuperr Ú__init__)ÚselfÚhrefÚinsertÚsizeÚextraÚ __class__s €ú`/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/svgwrite/image.pyrzImage.__init__s~ø€ð $��e�TÑÔÔ#Ð,Ð, eÐ,Ð,Ð,Ø!ˆˆ\ÑØ Рؘqœ ˆD�‰Iؘqœ ˆD�‰IØ Ð Ø  œGˆD�‰MØ! !œWˆD�‰NˆNˆNð Ð ócó—d|d<dS)zh Stretch viewBox in x and y direction to fill viewport, does not preserve aspect ratio. ÚnoneÚpreserveAspectRatioNr)rs rÚstretchz Image.stretch&s€ð'-ˆÐ "Ñ#Ð#Ð#rÚcenterÚmiddleÚmeetcóŽ—|jr|dvrtd|z¦«‚t|›t|›d|›�|jd<dS)ai 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'ú rN)ÚdebugÚ ValueErrorrrÚattribs)rÚhorizÚvertÚscales rÚfitz Image.fit,sZ€ð Œ:ð E˜%Ð'8Ð8Ð8ÝÐ;¸eÑCÑDÔDÐ DÝ;AÀ%¼=¸=ÍÈtÌÈÈÐV[ÐV[Ð.\ˆŒ Ð*Ñ+Ð+Ð+r)NN)r r!r") Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú elementnamerrr,Ú __classcell__)rs@rr r syø€€€€€ððð €Kð%ð%ð%ð%ð%ð%ð"-ð-ð-ð ]ð]ð]ð]ð]ð]ð]ð]rr N)Ú svgwrite.baserÚsvgwrite.mixinsrrrrr rrrúr5sðð&Ð%Ð%Ð%Ð%Ð%Ø>Ð>Ð>Ð>Ð>Ð>Ð>Ð>Ð>Ð>Ð>Ð>ð1]ð1]ð1]ð1]ð1]ˆK˜ Hñ1]ô1]ð1]ð1]ð1]r