HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/svgwrite/__pycache__/image.cpython-311.pyc
�

h�vv`b��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.8/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