$79 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__//image.cpython-311.pyc
�

�|oi�	��J�ddlmZddlmZmZmZmZGd�deee��ZdS)�)�BaseElement)�	Transform�_vert�_horiz�Clippingc�6��eZdZdZdZd
�fd�	Zd�Zdd	�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.10/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�<module>r5s��&�%�%�%�%�%�>�>�>�>�>�>�>�>�>�>�>�>�1]�1]�1]�1]�1]�K��H�1]�1]�1]�1]�1]r


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
11 Feb 2026 9.30 AM
root / root
0755
__init__.cpython-311.pyc
3.625 KB
20 Jan 2026 1.01 PM
root / root
0644
animate.cpython-311.pyc
8.181 KB
20 Jan 2026 1.01 PM
root / root
0644
base.cpython-311.pyc
12.568 KB
20 Jan 2026 1.01 PM
root / root
0644
container.cpython-311.pyc
14.571 KB
20 Jan 2026 1.01 PM
root / root
0644
drawing.cpython-311.pyc
6.39 KB
20 Jan 2026 1.01 PM
root / root
0644
elementfactory.cpython-311.pyc
3.637 KB
20 Jan 2026 1.01 PM
root / root
0644
etree.cpython-311.pyc
1.566 KB
20 Jan 2026 1.01 PM
root / root
0644
filters.cpython-311.pyc
15.286 KB
20 Jan 2026 1.01 PM
root / root
0644
gradients.cpython-311.pyc
6.91 KB
20 Jan 2026 1.01 PM
root / root
0644
image.cpython-311.pyc
3.242 KB
20 Jan 2026 1.01 PM
root / root
0644
masking.cpython-311.pyc
2.477 KB
20 Jan 2026 1.01 PM
root / root
0644
mixins.cpython-311.pyc
13.727 KB
20 Jan 2026 1.01 PM
root / root
0644
params.cpython-311.pyc
2.948 KB
20 Jan 2026 1.01 PM
root / root
0644
path.cpython-311.pyc
4.426 KB
20 Jan 2026 1.01 PM
root / root
0644
pattern.cpython-311.pyc
2.76 KB
20 Jan 2026 1.01 PM
root / root
0644
shapes.cpython-311.pyc
7.94 KB
20 Jan 2026 1.01 PM
root / root
0644
solidcolor.cpython-311.pyc
2.413 KB
20 Jan 2026 1.01 PM
root / root
0644
text.cpython-311.pyc
11.47 KB
20 Jan 2026 1.01 PM
root / root
0644
utils.cpython-311.pyc
10.72 KB
20 Jan 2026 1.01 PM
root / root
0644
validator2.cpython-311.pyc
8.764 KB
20 Jan 2026 1.01 PM
root / root
0644
version.cpython-311.pyc
0.267 KB
20 Jan 2026 1.01 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF