관리-도구
편집 파일: svgparser.cpython-37.pyc
B ��]� � @ s` d ddgZ ddlZddlT ddlmZ ddd d ddd ddddddddddddddddddd gZed!�Zed"�d# Z ed$�d# Z ee�Z ed%�ee� e Zeee �d& e �ee d& �A Zeeee� �ee e �A Zeee�e �eee�e �A Zd'd(� Zd)d*� Ze� Zeeed+�Zd,d-� Ze� Zeeed+�Zd.d/� Zd0d1� Zd2d3� Ze� Zeeed+�Z dS )4�is_valid_transferlist�is_valid_pathdata�is_valid_animation_timing� N)�*)�partialZfocusinZfocusout�activateZclickZ mousedownZmouseupZ mouseoverZ mousemoveZmouseoutZDOMSubtreeModifiedZDOMNodeInsertedZDOMNodeRemovedZDOMNodeRemovedFromDocumentZDOMNodeInsertedtoDocumentZDOMAttrModifiedZDOMCharacterDataModifiedZSVGLoadZ SVGUnloadZSVGAbortZSVGErrorZ SVGResizeZ SVGScrollZSVGZoomZ beginEventZendEventZrepeatEventz+ -�,)r � �;�E�.c C s, y|j | dd� dS tk r& dS X d S )NT)�parseAllF)�parseString�ParseException)Zterm�parser� r �H/opt/alt/python37/lib/python3.7/site-packages/svgwrite/data/svgparser.py�has_valid_syntax% s r c C s� t d�d t tt�t d d } t d�d t ttt � d }t d�d t ttt � d }t d�d t ttt t t � d }t d�d t d }t d �d t d }| |B |B |B |B |B }|tt| � S ) N�matrix�(� �)� translate�scale�rotate�skewX�skewY)�Literal�number�Suppress�comma�Optional� ZeroOrMore)r r r r r r Z transformr r r �build_transferlist_parser- s $ (r# )r c C s| t } | t | }ttA }td�}| tt| � }|tt| � }td�}td�| }td�| }td�| } td�| } |t | t | }td�| tt| � }|t | } td�| tt| � }|t | }td �| tt| � }td �| tt| � }|t | t t t | t | t | }td�| tt| � }||B | B | B |B |B |B |B |B }t|t|� �S )Nz0 1zZ zzM mzL lzH hzV vzC czS szQ qzT tzA a)r r �integer_constant�scientific_constant�oneOfr"