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/summersnight.pyo
�
��Yc@s�dZddlZddlZddlZddlZddlZddlTy ddlmZm	Z	e
ZWn
eZnXdej
fd��YZedkr�e�Zej�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����N(t*(tPopentPIPEtProjectcBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCstjj|�dS(N(tinkextEffectt__init__(tself((s./usr/share/inkscape/extensions/summersnight.pyR$sc
Cs5t|jj�dkr5tjtd��t�n|jd�}|j|jjd}|j|jjd}|j	tj
dd��r�tjtd|j	tj
dd����t�n|jtj
d	d
�ks�|jtj
dd
�kr|jtj
d	d
�kr�tj
|dd
d
gd
dd
gg�}tj|j	d��}t|d�dkr�tjtd��t�ntj||�g|D]8}g|D]%}t|dd|dd�^q�^q�dd }t|d|d�|_t|d|d�|_t|d|d�|_t|d|d�|_idd6dd6dd6dd6|_|jd}|jjd}x�|jj�D]�}	trtd|	||fdtdtdt�}
|
j�}|t|
j j!��|j|	<|
j"j!�}q�t#j$d|	||f�d\}
}|t|
j!��|j|	<|
j%�|j%�q�W|jtj
d	d
�kr�|j&|�n|jtj
dd
�kr|j'|�qq1|jtj
dd
�kr�tjtd��ntjtd��t�ntjtd��t�dS(Nis]This extension requires two selected paths. 
The second path must be exactly four nodes long.t1pxiittypetsodipodisXThe first selected object is of type '%s'.
Try using the procedure Path->Object to Path.tpathtsvgtgg�?gtdisIThis extension requires that the second selected path be four nodes long.itxtytwidththeighti����s&inkscape --query-%s --query-id=%s "%s"tshelltstdouttstderrs[The second selected object is a group, not a path.
Try using the procedure Object->Ungroup.sWThe second selected object is not a path.
Try using the procedure Path->Object to Path.sVThe first selected object is not a path.
Try using the procedure Path->Object to Path.((tlentoptionstidsRterrormsgt_texittunittouutselectedtgettaddNSttagtsimpletransformtcomposeParentstcubicsuperpatht	parsePathtapplyTransformToPathtPointtSegmenttt1tt2tt3tt4tqtargstkeystbsubprocessRtTrueRtwaittfloatRtreadRtostpopen3tclosetprocess_patht
process_group(Rtscaletobjttrafotmattsubstcsptfiletidtquerytptrcterrtf((s./usr/share/inkscape/extensions/summersnight.pyteffect'sZ
,
6*
M%
+ &

cCskxd|D]\}|jtjdd�kr8|j|�n|jtjdd�kr|j|�qqWdS(NRRR
(R RRR7R8(Rtgrouptnode((s./usr/share/inkscape/extensions/summersnight.pyR8bs

cCs�tj|dddgdddgg�}|jd�}tj|�}tj||�xd|D]\}xS|D]K}|j|d�|d<|j|d�|d<|j|d�|d<qlWq_Wtj|�}tj||�|jdtj	|��dS(Ng�?gRiii(
R!R"RR#R$R%t
trafopointtinvertTransformtsett
formatPath(RRR<RRBR=R>((s./usr/share/inkscape/extensions/summersnight.pyR7is*

c
Cs�|\}}tt|jd|jd�t||��}t|j��|jd}t|j��|jd}t|jj|�|jj|��}t|j	j|�|j
j|��}t||�}	|	d|	dgS(NRRRR(R'R&R,tabstdelta_xtdelta_yR(tpointAtRatioR*R+R)tintersectSegments(
Rt.1RRtvectortxratiotyratiothorztvertRB((s./usr/share/inkscape/extensions/summersnight.pyRIws	/''(t__name__t
__module__RRFR8R7RI(((s./usr/share/inkscape/extensions/summersnight.pyR#s
		;		t__main__(t__doc__R4R#Rt
simplepathR!tffgeomt
subprocessRRR0R/tFalseRRRXtetaffect(((s./usr/share/inkscape/extensions/summersnight.pyt<module>s


a