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/dots.pyo
�
��Yc@sudZddlZddlZddlZddlZdejfd��YZedkrqe�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����NtDotscBs5eZd�Zd�Zd�Zd�Zd�ZRS(c
Cstjj|�|jjddddddddd	d
dd�|jjd
dddddddd	ddd�|jjddddddddd	ddd�|jjddddddddd	ddd�|jjddddddddd�dS(Ns-ds	--dotsizetactiontstorettypetstringtdesttdotsizetdefaultt10pxthelps%Size of the dots placed at path nodess-fs
--fontsizetfontsizet20sSize of node label numberss-ss--starttinttstartt1s8First number in the sequence, assigned to the first nodes-ts--steptsteps Numbering step between two nodess--tabttabs'The selected UI-tab when OK was pressed(tinkextEffectt__init__tOptionParsert
add_option(tself((s&/usr/share/inkscape/extensions/dots.pyRs*cCsk|j}|rZxU|j�D]7\}}|jtjdd�kr|j|�qqWn
tjd�dS(NtpathtsvgsPlease select an object.(tselectedt	iteritemsttagRtaddNStaddDotterrormsg(Rt	selectiontidtnode((s&/usr/share/inkscape/extensions/dots.pyteffect.s	cCs�d}||dgkr#d}nt||dd�t|ddd�kr�t||dd�t|ddd�kr�||dd}||dd}||ddd}||ddd}tt||�t||��}tt||�t||��}tj|d|d�}	||	}
||	}||kr_|
d9}
n||krx|d9}n||ddc|
|j|jj�7<||ddc||j|jj�7<ndS(Ni����ii����ii(	troundtabstmaxtmintmathtsqrttunittouutoptionsR(RtptlastDottx1ty1tx2ty2tdxtdytdisttxty((s&/usr/share/inkscape/extensions/dots.pytseparateLastAndFirst7s(	00""



+c
Cstjj|j�tjdd��|_tjj|jtjdd��|_tjj|jtjdd��|_y&|jd�}|jj	d|�WnnXt
jidd6dd6�}g}tj
|jd��}|j|�|jj}x|D]�\}}|d	kr|d
kri|d6t|j|jj�d�d
6t|d�d6t|d�d6}	tjj|jtjdd�|	�|j|j|d|j|jj�d|d|j|jj�d|�||jj7}qqW|j�j|�dS(NtgRt	transformtnonetstrokes#000tfilltdtZtztstyleitri����tcxi����tcytcircle(Rtetreet
SubElementt	getparentRtgrouptdotGrouptnumGrouptgettsettsimplestyletformatStylet
simplepatht	parsePathR6R*R
tstrR)RtaddTextRtremove(
RR!ttR?taR+tnumtcmdtparamstdot_att((s&/usr/share/inkscape/extensions/dots.pyRKs>*''
 	cCs�tjj|tjdd��}i|j|jj�d6dd6dd6dd	6dd
6dd6}|jd
tj	|��|jdt
|��|jdt
|��t
|�|_dS(NttextRs	font-sizes1.0sfill-opacityR9R:tnormalsfont-weights
font-styles#999R;R?R4R5(RRDRERR)R*R
RKRLRMRPRY(RR!R4R5RYtnewts((s&/usr/share/inkscape/extensions/dots.pyRQqs!'(t__name__t
__module__RR"R6RRQ(((s&/usr/share/inkscape/extensions/dots.pyRs
					&t__main__(
t__doc__RRLRNR'RRR]tetaffect(((s&/usr/share/inkscape/extensions/dots.pyt<module>s
0e