AlkantarClanX12

Your IP : 18.191.9.9


Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__/pattern.cpython-311.pyc

�

�܋f��	�Z�ddlmZddlmZmZmZmZddlmZGd�deeeee��Z	dS)�)�BaseElement)�XLink�ViewBox�	Transform�Presentation)�	is_stringc�4��eZdZdZdZdZd�fd�	Zd	d�Z�xZS)
�Patterna�
    A pattern is used to fill or stroke an object using a pre-defined graphic
    object which can be replicated ("tiled") at fixed intervals in x and y to
    cover the areas to be painted. Patterns are defined using a `pattern` element
    and then referenced by properties `fill` and `stroke` on a given graphics
    element to indicate that the given element shall be filled or stroked with
    the referenced pattern.
    �pattern�patternTransformNc���tt|��jdi|��|�|d|d<|d|d<|�|d|d<|d|d<|�Lt|��r|�|��n'|�|�����|jr'|j�|j	|j
��dSdS)	z�
        :param 2-tuple insert: base point of the pattern (**x**, **y**)
        :param 2-tuple size: size of the pattern (**width**, **height**)
        :param inherit: pattern inherits properties from `inherit` see: **xlink:href**

        Nr�x��y�width�height�)�superr
�__init__r�set_href�get_iri�debug�	validator�check_all_svg_attribute_values�elementname�attribs)�self�insert�size�inherit�extra�	__class__s     ��a/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/svgwrite/pattern.pyrzPattern.__init__s����	&��g�t���%�.�.��.�.�.����q�	�D��I��q�	�D��I��� ��G�D��M�!�!�W�D��N�����!�!�
1��
�
�g�&�&�&�&��
�
�g�o�o�/�/�0�0�0��:�	Z��N�9�9�$�:J�D�L�Y�Y�Y�Y�Y�	Z�	Z��nonec�4�|����d|��S)z( Returns the <FuncIRI> of the gradient. � )�get_funciri)r�defaults  r#�get_paint_serverzPattern.get_paint_server0s!���*�*�,�,�,�,�g�g�6�6r$)NNN)r%)	�__name__�
__module__�__qualname__�__doc__r�
transformnamerr*�
__classcell__)r"s@r#r
r

sm����������K�&�M�Z�Z�Z�Z�Z�Z�.7�7�7�7�7�7�7�7r$r
N)
�
svgwrite.baser�svgwrite.mixinsrrrr�svgwrite.utilsrr
rr$r#�<module>r4s���&�%�%�%�%�%�C�C�C�C�C�C�C�C�C�C�C�C�$�$�$�$�$�$�%7�%7�%7�%7�%7�k�5�'�9�l�%7�%7�%7�%7�%7r$