
    p"h              	       R    S SK Jr  S SKJrJrJrJr  S SKJr   " S S\\\\\5      r	g)    )BaseElement)XLinkViewBox	TransformPresentation)	is_stringc                   B   ^  \ rS rSrSrSrSrSU 4S jjrS	S jrSr	U =r
$ )
Pattern   a  
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patternTransformc                   > [         [        U ]
  " S0 UD6  Ub  US   U S'   US   U S'   Ub  US   U S'   US   U S'   UbA  [        U5      (       a  U R	                  U5        OU R	                  UR                  5       5        U R                  (       a1  U R                  R                  U R                  U R                  5        gg)	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        B/var/www/html/env/lib/python3.13/site-packages/svgwrite/pattern.pyr   Pattern.__init__   s     	gt%..q	DIq	DI GDM!!WDN!!g&goo/0::NN99$:J:JDLLY     c                 0    U R                  5       < SU< 3$ )z'Returns the <FuncIRI> of the gradient.  )get_funciri)r   defaults     r$   get_paint_serverPattern.get_paint_server0   s    **,g66r&   r   )NNN)none)__name__
__module____qualname____firstlineno____doc__r   transformnamer   r+   __static_attributes____classcell__)r#   s   @r$   r
   r
      s$     K&MZ.7 7r&   r
   N)
svgwrite.baser   svgwrite.mixinsr   r   r   r   svgwrite.utilsr   r
   r   r&   r$   <module>r9      s'    & C C $%7k5'9l %7r&   