Server IP : 192.158.238.246 / Your IP : 18.221.20.252 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/svgwrite/__pycache__/ |
Upload File : |
B ��]( � @ s d dl mZ G dd� de�ZdS )� )� get_validatorc @ sh e Zd ZdZdddgZddd�Zd d � Zedd� �Zej d d� �Zdd� Z edd� �Zej dd� �ZdS )� Parametera .. 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�_profileT�fullc C s || _ || _d S )N)r �profile)�self�debugr � r �@/opt/alt/python37/lib/python3.7/site-packages/svgwrite/params.py�__init__! s zParameter.__init__c C s t | j| j�| _d S )N)r r r r )r r r r �_init_validator% s zParameter._init_validatorc C s | j S )N)r )r r r r r ( s zParameter.debugc C s || _ | �� d S )N)r r )r r r r r r , s c C s | j dkrdS dS d S )N�tinyz1.2z1.1)r )r r r r �get_version1 s zParameter.get_versionc C s | j S )N)r )r r r r r 7 s zParameter.profilec C s0 |� � }|dkr || _| �� ntd| ��dS )zt :param string profile: name of the SVG profile, valid profiles are: ``'full|basic|tiny'`` )r Zbasicr z'%s' is not a valid profile.N)�lowerr r � ValueError)r r r r r r ; s N)Tr )�__name__� __module__�__qualname__�__doc__� __slots__r r �propertyr �setterr r r r r r r s r N)Zsvgwrite.validator2r �objectr r r r r �<module> s