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

0�a�?�@sddZddlZddlmZddlmZmZdd�Zdd�ZGd	d
�d
ej�Z	e
dkr0e	���dSdS)aK
This extension allow you to draw a isometric grid with inkscape
There is some options including subdivision, subsubdivions and custom line width
All elements are grouped with similar elements
These grid are used for isometric view in mechanical drawing or piping schematic
!!! Y Divisions can't be smaller than half the X Divions
�N)�	Rectangle)�Move�LinecCsF|�t���}dt|�dd�|_|�d|�t||�t||�g|_dS)N�#000000�none��strokezstroke-width�fill�inkscape:label)	�add�inkex�PathElement�str�style�setrr�path)�x1�y1�x2�y2�width�name�parent�elem�r�0/usr/share/inkscape/extensions/grid_isometric.py�	draw_line srcCsBtt|�t|�t|�t|�d�}dt|�|d�|_|�d|�|S)N)�x�yr�heightrrr
)rrrr)rr�w�hrr	rrrrr�	draw_rect&s r"c@s(eZdZdd�Zedd��Zdd�ZdS)�
GridIsometriccCs�|jdtdddd�|jdtdddd�|jd	td
ddd�|jd
tdddd�|jdtdddd�|jdtdddd�|jdtdddd�|jdtdddd�|jdtd d!d"d�dS)#Nz--x_divs�x_divs�zMajor X Divisions)�type�dest�default�helpz--y_divs�y_divszMajor Y Divisionsz--dx�dxg$@zMajor X division Spacingz	--subdivs�subdivs�z!Subdivisions per Major X divisionz--subsubdivs�
subsubdivsz$Subsubdivisions per Minor X divisionz	--divs_th�divs_thzMajor X Division Line thicknessz--subdivs_th�
subdivs_th�zMinor X Division Line thicknessz--subsubdivs_th�
subsubdivs_thg333333�?z"Subminor X Division Line thicknessz--border_th�	border_th�zBorder Line thickness)�add_argument�int�float)�self�parsrrr�
add_arguments.s6�������
�
�zGridIsometric.add_argumentscCsd�|j�S)zGenerate label from optionsz"Grid_Polar:X{0.x_divs}:Y{0.y_divs})�format�options)r8rrr�container_labelBszGridIsometric.container_labelc
cs�	�|j�t|jj�d�|j_|j�t|jj�d�|j_|j�t|jj�d�|j_|j�t|jj�d�|j_|j�t|jj�d�|j_|jj	|jj
ddkr_t|jj
dd�|j_	|jjd|jj
}|jjd|jj	d}tj
�d�}|Vtj
�d�}|Vtj
�d�}|V|jjdkr�tj
�d�}|V|jjdkr�tj
�d	�}|V|jjdkr�tj
�d
�}|V|jjdkr�tj
�d�}	|	V|jjdkr�tj
�d�}
|
V|jjdkr�tj
�d
�}|Vtdd|||jjdd�V|jj}|jj}
d}d}d}d}d}d}tdd|jj
||
�D]�}|d7}d}||jjk�r3d}|d7}d}d}d}||jjk�rBd}d}d}d}|dk�rgt|jj|||
d|jj|||
||jjdt|�|�|dk�r�d}t|jj|||
d|jj|||
||jjdt|�|�|dk�r�d}t|jj|||
d|jj|||
||jjdt|�|��q|jj}|jj}
|jj||
}|jj
|jj	|jj|jj}|jj
|jj|jj}|jj	|jj|jj}d}d}d}d}d}d}tdt|d��D�]�}|d7}d}||jjk�r d}|d7}d}d}d}||jjk�r/d}d}d}d}d|dd|k�r�|d|d}|}d}||d||dd}|dk�r}t|||||jjdt|�|	�t|||||||jjdt|�|�|dk�r�d}t|||||jjdt|�|�t|||||||jjdt|�|
�|dk�r�d}t|||||jjdt|�|�t|||||||jjdt|�|�d|dd|k�rw|d|d}|}d}||d||dd}|dk�r!t|||||jjdt|�|	�t|||||||jjdt|�|�|dk�rLd}t|||||jjdt|�|�t|||||||jjdt|�|
�|dk�rwd}t|||||jjdt|�|�t|||||||jjdt|�|�d|dd|k�r�|}||d||dd|dd}d}||d||dd}|dk�rW|}||d||dd|dd}|d|d|d}d}||k�rU|dk�r�t|||||jjdt|�|	�t|||||||jjdt|�|�|dk�r*d}t|||||jjdt|�|�t|||||||jjdt|�|
�|dk�rUd}t|||||jjdt|�|�t|||||||jjdt|�|��q||k�r�|dk�r�t|||||jjdt|�|	�t|||||||jjdt|�|�|dk�r�d}t|||||jjdt|�|�t|||||||jjdt|�|
�|dk�r�d}t|||||jjdt|�|�t|||||||jjdt|�|��qdS)N�pxr1r-g���z��?�MajorXGridlines�MajorYGridlines�MajorZGridlines�MinorXGridlines�SubMinorXGridlines�MinorYGridlines�SubMinorYGridlines�MinorZGridlines�SubMinorZGridlinesrr�Border�	MajorXDiv�g���z��?�	MajorYDiv�	MajorZDiv)�svg�unittouurr<r+r/r0r2r3r*r$r6r�Group�newr,r.r"�ranger)r8�xmax�ymax�majglx�majgly�majglz�minglx�mminglx�mingly�mmingly�minglz�mminglz�sd�ssd�cpt_div�
cpt_subdiv�
cpt_subsubdiv�com_div�
com_subdiv�
com_subsubdiv�i�taille�nb_ligne�
nb_ligne_x�
nb_ligne_y�l�txa�tya�txb�tybrrr�generateGs�
�
�
�� 
�
�
�
�
�
�
�
�
�
�
�
�(
(

�
�
�
�
�
��

�
�
�
�
�
����zGridIsometric.generateN)�__name__�
__module__�__qualname__r:�propertyr=rorrrrr#-s

r#�__main__)�__doc__rr�inkex.pathsrrrr"�GenerateExtensionr#rp�runrrrr�<module>s9�

Youez - 2016 - github.com/yon3zu
LinuXploit