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/jitternodes.pyo
�
��Yc@s~dZddlZddlZddlZddlZd�Zdejfd��YZedkrze�Z	e	j
�ndS(s
Copyright (C) 2012 Juan Pablo Carbajal ajuanpi-dev@gmail.com
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 3 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����Nc	Cs�|\}}|dkr?tjd|�}tjd|�}n'|dkr�tjdd�}ttjd�d�d}ttjd�d�d}|tj||�}|tj||�}n�|dkr1tjdd�}|tjtjdd�d|�}|tjtjdd�d|�}n5|d	krftj||�}tj||�}n||7}||7}||gS(
NtGaussiangtParetog�g�?g4@tLognormg@tUniform(trandomtgausstuniformtmint
paretovariatetmathtcopysigntlognormvariate(	t.0trxtrytdisttxtytr1tr2tsign((s-/usr/share/inkscape/extensions/jitternodes.pyt	randomizes(	&)

tJitterNodescBseZd�Zd�ZRS(c
CsAtjj|�|jjd�|jjdddddddd	d
ddd
�|jjddddddddd
ddd�|jjddddddddd
tdd�|jjddddddddd
tdd�|jjddddddddd
ddd �|jjd!dddddd"dd#�dS($Ns--titles-xs	--radiusxtactiontstorettypetfloattdesttradiusxtdefaultg$@thelps5Randomly move nodes and handles within this radius, Xs-ys	--radiusytradiusys5Randomly move nodes and handles within this radius, Ys-cs--ctrltinkbooltctrlsRandomize control pointss-es--endtendsRandomize nodess-ds--disttstringRRs,Choose the distribution of the displacementss--tabttabs'The selected UI-tab when OK was pressed(tinkextEffectt__init__tOptionParsert
add_optiontTrue(tself((s-/usr/share/inkscape/extensions/jitternodes.pyR'8s4cCs�x�|jj�D]�\}}|jtjdd�kr|jd�}tj|�}xX|D]P}xG|D]?}|jj	r;t
ddg|jj|jj|jj
�}|ddc|d7<|ddc|d7<|ddc|d7<|ddc|d7<|ddc|d7<|ddc|d7<n|jjrit
|d|jj|jj|jj
�|d<t
|d|jj|jj|jj
�|d<qiqiWq\W|jdtj|��qqWdS(Ntpathtsvgtdiii(tselectedt	iteritemsttagR%taddNStgettcubicsuperpatht	parsePathtoptionsR"RRRRR!tsett
formatPath(R+tidtnodeR.tptsubpathtcsptdelta((s-/usr/share/inkscape/extensions/jitternodes.pyteffectTs$

-/:(t__name__t
__module__R'R?(((s-/usr/share/inkscape/extensions/jitternodes.pyR7s	t__main__(t__doc__RR	R%R4RR&RR@tetaffect(((s-/usr/share/inkscape/extensions/jitternodes.pyt<module>s0	!1