403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.206
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__/addnodes.cpython-310.pyc
o

0�aD
�@sTdZddlZddlZddlmZmZmZGdd�dej�Zedkr(e��	�dSdS)z�
This extension either adds nodes to a path so that

  No segment is longer than a maximum value OR that each segment is divided
  into a given number of equal segments.

�N)�bezier�PathElement�CubicSuperPathc@s eZdZdZdd�Zdd�ZdS)�AddNodesz/Extension to split a path by adding nodes to itcCs6|jdtddd�|jdtddd�|jddd	�dS)
Nz
--segments�z*Number of segments to divide the path into)�type�default�helpz--maxg@z--methodzThe kind of division to perform)r	)�add_argument�int�float)�self�pars�r�*/usr/share/inkscape/extensions/addnodes.py�
add_arguments"s
�
�zAddNodes.add_argumentsc	CsB|jj�t�D]�}g}|j��D]�}|�|ddd�g�d}|t|�dkr�t�	|dd||�}|j
jdkr?|j
j}n	t
�||j
j�}tt|�dd�D].}t�|dd||d|�}dd�|D�}	|	\|dd<}
||<|d�|
dd��qP|d�||�|d7}|t|�dks(qt|�jdd	�|_qdS)
Nr�����bynumg�?cSsg|]	}dd�|D��qS)cSsg|]}t|��qSr)�list)�.0�elrrr�
<listcomp>9sz.AddNodes.effect.<locals>.<listcomp>.<listcomp>r)r�elementsrrrr9sz#AddNodes.effect.<locals>.<listcomp>T)�curves_only)�svg�	selection�filterr�path�to_superpath�append�lenr�cspseglength�options�method�segments�math�ceil�max�ranger�cspbezsplitatlengthr�to_path)r
�node�new�sub�i�length�splits�sel�result�
better_result�nxtrrr�effect)s*
���zAddNodes.effectN)�__name__�
__module__�__qualname__�__doc__rr6rrrrr sr�__main__)
r:r&�inkexrrr�EffectExtensionrr7�runrrrr�<module>s �

Youez - 2016 - github.com/yon3zu
LinuXploit