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/foldablebox.pyc
�
��Yc@s�dZdZddlZddlZddlTddlmZddlZdejfd��YZ	e
dkr�e	�Zej�ndS(	s�
Copyright (C) 2009 Aurelio A. Heckert <aurium (a) gmail dot com>

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.
s0.2i����N(t*(t
formatPathtFoldableBoxcBseZd�Zd�ZRS(c
Csktjj|�|jjddddddddd	d
dd�|jjd
dddddddd	ddd�|jjddddddddd	ddd�|jjddddddddd	ddd�|jjddddddddd	d dd!�|jjd"d#dddddd$d	d%dd&�|jjd'd(dddd)dd*d	tdd+�dS(,Ns-xs--widthtactiontstorettypetfloattdesttwidthtdefaultg$@thelps"The Box Width - in the X dimensions-ys--heighttheightg.@s#The Box Height - in the Y dimensions-zs--depthtdepthg@s"The Box Depth - in the Z dimensions-us--unittstringtunittcmsThe unit of the box dimensionss-ps--paper-thicknesst	thicknessg{�G�z�?s-Paper Thickness - sometimes that is importants-ts--tab-proportiont
tabProportiong333333�?s!Inner tab propotion for upper tabs-gs--guide-linetinkboolt	guideLines*Add guide lines to help the drawing limits(tinkextEffectt__init__tOptionParsert
add_optiontTrue(tself((s-/usr/share/inkscape/extensions/foldablebox.pyRs:cCs||j|jj�jd��}|j|jj�jd��}|jt|jj�|jj�}|jt|jj�|jj�}|jt|jj	�|jj�}|jj
}||}|jd�}tj
j|jdi|d6�|_}	tjidd6dd	6t|jd
��d6�}
d||d
dggd||dd||d||dggd||ggdd|ggdd|dggdd|d|dd|d
dggdggg}i|
d6|dd6t|�d6}tj
j|	tjdd�|�||}
d}d||ggd|||ggd|||
ggd|d|
ggdggg}i|
d6|dd6t|�d6}tj
j|	tjdd�|�||7}|
|d}||kr�|}nd||ggd||d|ggd|||
d|dggd|||
ggd|d|
ggdggg}i|
d6|dd6t|�d6}tj
j|	tjdd�|�|||7}d|||ggd||d|ggd||
d|dggd||
ggd|||
ggdggg}i|
d6|d d6t|�d6}tj
j|	tjdd�|�d}d||
ggd||d|
|d!ggd||d|
||d!ggd||
|ggdggg}i|
d6|d"d6t|�d6}tj
j|	tjdd�|�d||
ggd|||
ggd|||
|ggd||
|ggdggg}i|
d6|d#d6t|�d6}tj
j|	tjdd�|�||7}d||
ggd|||
ggd|||
|ggd||
|ggdggg}i|
d6|d$d6t|�d6}tj
j|	tjdd�|�||7}d||
ggd|||
ggd|||
|ggd||
|ggdggg}i|
d6|d%d6t|�d6}tj
j|	tjdd�|�||7}d||
ggd|||
ggd|||
|ggd||
|ggdggg}i|
d6|d&d6t|�d6}tj
j|	tjdd�|�|
|7}
d}|
|}||d'kr&|d'}nd||
ggd||
|dggd|||
|dggd|||
ggdggg}i|
d6|d(d6t|�d6}tj
j|	tjdd�|�||7}d||
ggd||
|ggd|||
|ggd|||
ggdggg}i|
d6|d)d6t|�d6}tj
j|	tjdd�|�||7}d||
ggd||
|dggd|||
|dggd|||
ggdggg}i|
d6|d*d6t|�d6}tj
j|	tjdd�|�||7}d||
ggd||
|ggd|||
|ggd|||
ggdggg}i|
d6|d+d6t|�d6}tj
j|	tjdd�|�||7}|
|7}
|	jd,d-||d||
df�|jj�dk	rxtj|jd.d/d/gd/d.d/gg�}tjtj|�|	�ndS(0NRRtboxtgtids#000000tstroketnonetfillt1pxsstroke-widthtMgffffff�?itCg�?g333333�?g�������?tLtZtstyles-inner-close-tabtdtpathtsvgs-upper-close-tabig�������?is-upper-right-tabg�������?s-upper-left-tabis	-left-tabs-fronts-rights-backs-leftg@s-bottom-front-tabs-bottom-right-tabs-bottom-back-tabs-bottom-left-tabt	transformstranslate(%f,%f)g�?g(tunittouutdocumenttgetroottgettstrtoptionsRRRRRtuniqueIdRtetreet
SubElementt
current_layerRtsimplestyletformatStyleRtaddNStsett	getparenttNonetsimpletransformtcomposeParentstapplyTransformToNodetinvertTransform(RtdocWtdocHtboxWtboxHtboxDttabPropttabHtbox_idRt
line_stylet	line_patht	line_attst	lower_postleft_postsideTabHtbTabtmat((s-/usr/share/inkscape/extensions/foldablebox.pyteffect<s!!%%%
)3+'%"
%"
	%"%"#%"%"
%"
%"
%"


%"
%"
%"
%"

*-(t__name__t
__module__RRO(((s-/usr/share/inkscape/extensions/foldablebox.pyRs	t__main__(
t__doc__t__version__RR5tmatht
simplepathRR;RRRPtetaffect(((s-/usr/share/inkscape/extensions/foldablebox.pyt<module>s
�