
    p"ho                     &    S SK Jr   " S S\5      rg)    )get_validatorc                       \ rS rSrSr/ SQrSS jrS r\S 5       r	\	R                  S 5       r	S r\S	 5       r\R                  S
 5       rSrg)	Parameter   a  
.. attribute:: Parameter.debug

   *read/write* property

   * *True* : debug mode is on, all SVG attributes are checked if valid
     in the element context. Also the included SVG subelements will be
     checked if they are valid for the parent SVG element.

   * *False*: no validation checks will be done, but program execution is
     faster.

.. attribute:: Parameter.profile

   *read/write* property

   name of the SVG profile, valid profiles are: ``'full|basic|tiny'``
)_debug	validator_profilec                     Xl         X l        g N)r   profile)selfdebugr   s      A/var/www/html/env/lib/python3.13/site-packages/svgwrite/params.py__init__Parameter.__init__!   s        c                 N    [        U R                  U R                  5      U l        g r   )r   r   r   r   r   s    r   _init_validatorParameter._init_validator%   s    &t||djjAr   c                     U R                   $ r   )r   r   s    r   r   Parameter.debug(   s    {{r   c                 0    Xl         U R                  5         g r   )r   r   )r   r   s     r   r   r   ,   s    r   c                 &    U R                   S:X  a  gg)Ntinyz1.2z1.1r	   r   s    r   get_versionParameter.get_version1   s    ==F"r   c                     U R                   $ r   r   r   s    r   r   Parameter.profile7   s    }}r   c                 x    UR                  5       nUS;   a  Xl        U R                  5         g[        SU-  5      e)z\
:param string profile: name of the SVG profile, valid profiles are:
``'full|basic|tiny'``

)r   basicfullz'%s' is not a valid profile.N)lowerr	   r   
ValueError)r   r   s     r   r   r    ;   s:     --///#M  ";gEFFr   )r   r	   r   r   N)Tr#   )__name__
__module____qualname____firstlineno____doc__	__slots__r   r   propertyr   setterr   r   __static_attributes__ r   r   r   r      sx    $ 4IB   \\    ^^G Gr   r   N)svgwrite.validator2r   objectr   r/   r   r   <module>r2      s    .;G ;Gr   