403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/inkscape/extensions/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/inkscape/extensions/__pycache__/path_number_nodes.cpython-310.pyc
o

5�ae�@sLddlZddlZddlmZmZGdd�dej�Zedkr$e���dSdS)�N)�TextElement�Circlec@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�NumberNodeszIReplace the selection's nodes with numbered dots according to the optionscCsV|jdddd�|jdddd�|jdtd	d
d�|jdtd	d
d�|jddd�dS)Nz	--dotsize�10pxz"Size of the dots on the path nodes)�default�helpz
--fontsize�20pxzSize of node labelsz--start�zFirst number in the sequence)�typerrz--stepz Numbering step between two nodesz--tabz'The selected UI-tab when OK was pressed)r)�add_argument�int)�self�pars�r�3/usr/share/inkscape/extensions/path_number_nodes.py�
add_argumentss
zNumberNodes.add_argumentscCs6|jj�tj�}|st�d��|D]}|�|�qdS)Nz'Please select at least one path object.)�svg�	selection�filter�inkex�PathElement�AbortExtension�add_dot)r
�filtered�noderrr�effect"s
�zNumberNodes.effectc
Cs|���t���}|�t���}|�t���}|j�|���}|����|_t�ddd��}t|j	�D]G\}\}}	|�t
t|�t|	�t|j�
|jj�d�d��}
||
_|�|�||j�
|jj�d|	|j�
|jj�d|jj|jj|��q4|��dS)z%Add a dot label for this path element�nonez#000)�stroke�fill�)�cx�cy�rN)�	getparent�addr�Group�path�	transform�composed_transform�Style�	enumerate�
end_pointsr�strr�unittouu�options�dotsize�style�append�add_text�start�step�delete)r
r�group�	dot_group�	num_group�path_trans_appliedr0r4�x�y�circlerrrr)s"��zNumberNodes.add_dotcCsBtt|�t|�d�}t|�|_|j�|jj�dddddd�|_|S)z&Add a text label at the given location)r:r;z1.0r�normalz#999)z	font-sizezfill-opacityrzfont-weightz
font-styler)rr,�textrr-r.�fontsizer0)r
r:r;r>�elemrrrr2>s
�zNumberNodes.add_textN)�__name__�
__module__�__qualname__�__doc__rrrr2rrrrrsr�__main__)�mathrrr�EffectExtensionrrA�runrrrr�<module>s2�

Youez - 2016 - github.com/yon3zu
LinuXploit