HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/motion.pyo
�
��Yc@s�dZddlZddlZddlZddlZddlZdejfd��YZedkr}e�Z	e	j
�ndS(s�
Copyright (C) 2005 Aaron Spike, aaron@ekips.org

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
i����NtMotioncBs#eZd�Zd�Zd�ZRS(c
Csvtjj|�|jjddddddddd	d
dd�|jjd
dddddddd	ddd�dS(Ns-as--angletactiontstorettypetfloattdesttangletdefaultg�F@thelpsdirection of the motion vectors-ms--magnitudet	magnitudegY@smagnitude of the motion vector(tinkextEffectt__init__tOptionParsert
add_option(tself((s(/usr/share/inkscape/extensions/motion.pyRscCs�|\}}g}|jd|g�|j||g�|}tj|}xlt|d�D]Z}|d|dkr�||c|j7<q_|d|dkr_||c|j7<q_q_W|jd|d|dgg�|d	|j|d|jf|d)|d
kr?|dd!|d f}	\|d*|dd+n|j||g�|jd
gg�tjj|j	tj
dd�itj|�d6�}
dS(NtMiitxtytLi����i����itCiitZtpathtsvgtd(tappendt
simplepathtpathdefstrangetvxtvyR
tetreet
SubElementt	facegrouptaddNSt
formatPath(Rtlastt.2tcmdtparamstatnptdefstitc1tface((s(/usr/share/inkscape/extensions/motion.pytmakeface!s$	
!&/c	Cstjtj|jj��|jj|_tjtj|jj��|jj|_x�|j	j
�D]�\}}|jtj
dd�krftjj|j�tj
dd��}tjj|tj
dd��|_|j|�|jd�}|r|jd|�|jdd�n|jd�}|jjd|�tj|jd��}x�|D]�\}}g}	|dkr�|
|d	 |d	d
!|df}gtj||j|jf�D](}d|ko�d
knr�|^q�}	|	j�ng}t|	�dkr2|dkr2|j||g�n_t|	�d
kr�tj||	d�\}
}|j|t|
d
|
d	|
d�g�|j|t|d
|d	|d�g�n�t|	�d	kr�tj||	d�\}
}tj||	d
�\}}|j|t|
d
|
d	|
d�g�|j|t|d
|d	|d�g�|j|t|d
|d	|d�g�nx,|D]$}|j|
|�|d
d}
q�W|dkr�|d}n|dkr�|}
q^|d}
q^WqfqfWdS(NRRtgt	transformttstyleRRiii����iiRiRR(RR(tmathtcostradianstoptionsRR	RtsinRtselectedt	iteritemsttagR
R"RR t	getparentR!RtgettsetRt	parsePathtbezmisctbeziertatslopetsorttlentbeziersplitatttlistR.(RtidtnodetgrouptttstpR&R'tteesR$tbeztsegmentstonettwotthreetsegtsubPathStart((s(/usr/share/inkscape/extensions/motion.pyteffect:sR++'$
!M
-0--0

	(t__name__t
__module__RR.RS(((s(/usr/share/inkscape/extensions/motion.pyRs		t__main__(t__doc__R3R
tsimplestyleRR?RRRTtetaffect(((s(/usr/share/inkscape/extensions/motion.pyt<module>s
<W