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/straightseg.pyo
�
��Yc@s~dZddlZddlZddlZddlZd�Zdejfd��YZedkrze�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����Nc	CsP|\}}|\}}|d:}||||}||||}||gS(NgY@((	t.0t.1tpercenttx1ty1tx2ty2txty((s-/usr/share/inkscape/extensions/straightseg.pytpointAtPercents

tSegmentStraightenercBseZd�Zd�ZRS(c
Csvtjj|�|jjddddddddd	d
dd�|jjd
dddddddd	ddd�dS(Ns-ps	--percenttactiontstorettypetfloattdestRtdefaultg$@thelps<move curve handles PERCENT percent closer to a straight lines-bs
--behaviortinttbehaveis)straightening behavior for cubic segments(tinkextEffectt__init__tOptionParsert
add_option(tself((s-/usr/share/inkscape/extensions/straightseg.pyRscCsx�|jj�D]�\}}|jtjdd�kr|jd�}tj|�}g}g}xx|D]p\}}|dkrY|jj	dkr�t
|d ||jj�|d*t
|dd!|d|jj�|dd+q�t
||dd	�}	t
|d|d	�}
t
|d |	|jj�|d*t
|dd!|
|jj�|dd+nF|d
kr�t
||dd�}t
|d ||jj�|d*n|dkr�|d}n|d
kr�|}qh|d}qhW|jdtj
|��qqWdS(NtpathtsvgtdtCiiii����gfffff�@@tQi2tMtZ(tselectedt	iteritemsttagRtaddNStgett
simplepatht	parsePathtoptionsRR	Rtsett
formatPath(RtidtnodeRtptlasttsubPathStarttcmdtparamstdest1tdest2R((s-/usr/share/inkscape/extensions/straightseg.pyteffect&s0!-!*#

(t__name__t
__module__RR4(((s-/usr/share/inkscape/extensions/straightseg.pyR
s	
t__main__(t__doc__tmathRR&tsysR	RR
R5tetaffect(((s-/usr/share/inkscape/extensions/straightseg.pyt<module>s0	)