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/param_curves.pyo
�
��Yc@s�dZddlZddlZddlZddlTddlTddeeed�Zdej	fd��YZ
ed	kr�e
�Zej
�ndS(
s�
Copyright (C) 2009 Michel Chatelain.
Copyright (C) 2007 Tavmjong Bah, tavmjong@free.fr
Copyright (C) 2006 Georg Wiora, xorx@quarkbox.de
Copyright (C) 2006 Johan Engelen, johan@shouraizou.nl
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.

Changes:
 * This program is derived by Michel Chatelain from funcplot.py. His changes are in the Public Domain.
 * Michel Chatelain, 17-18 janvier 2009, a partir de funcplot.py
 * 20 janvier 2009 : adaptation a la version 0.46 a partir de la nouvelle version de funcplot.py

i����N(t*scos(3*t)ssin(5*t)c(s�|
tkr+dt|}dt|}n||��|	����fd�}||��|
����fd�}|r���kr�|d�}��|	|��|	||�}q�|d�}��||
��|
||�}n|dkr!td|jd��}n|dkrItd|jd��}n|||d}|d	}|d
}g}|r%�dkr�|dkr�|jd|	|d�gg�|jd|dgg�n�dkr%|dkr%|jd
|d�|
gg�|jdd|gg�q%n||�}||�}||}||�}||�}|||}|||} |jd
||�||�gg�x
tt|d��D]�}!|!d||}||}"||�}||"�}#||�}||"�}$||#|}%||$|}&|jd||||�||| |�|||%|�|||&|�||�||�gg�|}'|}|}|%}|&} q�W|S(Nics|���S(N((tx(tscalextxlefttxoff(s./usr/share/inkscape/extensions/param_curves.pyt<lambda>,scs�|��S(N((ty(tscaleytybottomtyoff(s./usr/share/inkscape/extensions/param_curves.pyR/sits
lambda t: t"ig@g����MbP?sM s l s M s C (tTruetpitevaltstriptappendtrangetint((tt_starttt_endRtxrightRtytoptsamplestwidththeighttlefttbottomtfxtfyttimes2pitisoscaletdrawaxistcoordxtcoordytxzerotyzerotf1tf2tsteptthirdtdstatx0ty0tt1tx1ty1tdx0tdy0titt2tx2ty2tdx1tdy1tt0((RRRRRR	s./usr/share/inkscape/extensions/param_curves.pytdrawfunction"sz

 
%
	""
tParamCurvescBseZd�Zd�ZRS(c
Cs�tjj|�|jjddddddddd	d
d�|jjddddddd
ddd
d�|jjddddddddtd
d�|jjdddddddddd
d�|jjdddddddddd
d�|jjdddddddddd
d�|jjdddddddddd
d �|jjd!d"dddd#dd$dd%d
d&�|jjd'dddd(dd)dd*d
d+�|jjd,dddd(dd-dd.d
d/�|jjd0dddddd1dtd
d2�|jjd3dddddd4dtd
d5�|jjd6dddddd7dtd
d8�|jjd9dddd(dd:dd;d
d<�|jjd=dddd(dd>dd?d
d@�|jjdAdddd(ddBdd?d
d@�dS(CNs	--t_starttactiontstorettypetfloattdestRtdefaultgthelps
Start t-values--t_endRg�?sEnd t-values
--times2pitinkboolRsMultiply t-range by 2*pis--xleftRg�sx-value of rectangle's lefts--xrightRsx-value of rectangle's rights	--ybottomRsy-value of rectangle's bottoms--ytopRsy-value of rectangle's tops-ss	--samplesRRitSampless--fofxtstringtfofxscos(3*t)sfx(t) for plottings--fofytfofyssin(5*t)sfy(t) for plottings--removetremoves$If True, source rectangle is removeds
--isoscaleRs"If True, isotropic scaling is useds
--drawaxisR sIf True, axis are drawns--tabttabtsamplings'The selected UI-tab when OK was presseds--paramcurvesusetparamcurvesuseR
tdummys--pythonfunctionstpythonfunctions(tinkextEffectt__init__tOptionParsert
add_optionR(tself((s./usr/share/inkscape/extensions/param_curves.pyRO�s�c
Cs�x�|jj�D]�\}}|jtjdd�krtjjtjdd��}t|jd��}t|jd��}t|jd��}t|jd��}|jd�}|r�|j	d|�n|jd	�}	|	r�|j	d	|	�n|j	d
t
jt|j
j|j
j|j
j|j
j|j
j|j
j|j
j||||||j
j|j
j|j
j|j
j|j
j���|j	d|j
jd|j
j�|j�j|�|j
jr�|j�j|�q�qqWdS(
NtrecttsvgtpathRRRRtstylet	transformtdttitlet (tselectedt	iteritemsttagRMtaddNStetreetElementR>tgettsett
simplepatht
formatPathR9toptionsRRRRRRRRERFRRR t	getparentRRG(
RRtidtnodetnewpathRRtwthtstt((s./usr/share/inkscape/extensions/param_curves.pyteffect�s>										$(t__name__t
__module__RORn(((s./usr/share/inkscape/extensions/param_curves.pyR:�s	Ct__main__(t__doc__RMRctsimplestyletmathtrandomtFalseRR9RNR:Rotetaffect(((s./usr/share/inkscape/extensions/param_curves.pyt<module>s$

as