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

0�aP�@sTdZddlZddlmZmZmZdd�ZGdd�dej�Zedkr(e��	�dSdS)	zF
An Inkscape extension that creates a frame around a selected object.
�N)�Group�PathElement�ClipPathcCs,|jj||jj||jj||jj|fS)z~ Returns a box with an altered size.
    delta -- The amount the box should grow.
    Returns a box with an altered size.
    )�x�minimum�maximum�y)�box�delta�r�'/usr/share/inkscape/extensions/frame.py�size_boxs�r
c@s2eZdZdZdd�Zdd�Zddd�Zd	d
�ZdS)
�FramezN
    An Inkscape extension that creates a frame around a selected object.
    cCs�|jddd�|jdtjdd�|jdtdd�|jd	tjt�d�d�|jd
tjdd�|jddd�|jd
tjt�d�d�|jdtdd�dS)Nz--tab�object)�defaultz--clipF)�typerz--corner_radiusrz--fill_colorz--groupz
--position�outsidez--stroke_colorz--widthg@)�add_argument�inkex�Boolean�int�Color�float)�self�parsrrr�
add_arguments)szFrame.add_argumentscCs\t�}|�tt|j�d��|j�d�}|�d|�|jj�|�|�dd�	t|���dS)z� Adds a new clip path node to the defs and sets
                the clip-path on the node.
            node -- The node that will be clipped.
            clip_path -- The clip path object.
        )�d�clipPath�idz	clip-pathzurl(#{})N)
r�appendr�str�path�svg�
get_unique_id�set�defs�format)r�node�	clip_path�clip�clip_idrrr�add_clip4szFrame.add_cliprcCs�t|t|d|d�dt|d|d�dg�}|dkr�d�dd�gd�|d�|d|�d	�|�|�d
�|d|�|d�d�|d|�|d�d	�|�|�d
�|d�|d|�d�|d�|d|�d	�|�|�d
�|d|�|d�d�|d|�|d�d	�|�|�d
�|d�|d|�d�RD��}n'd�d
d�d|d|dd|d|dd|d|dd|d|ddf
D��}t�}||_||_||_|S)a
            name -- The name of the new frame object.
            box -- The boundary box of the node.
            style -- The style used to draw the path.
            radius -- The corner radius of the frame.
            returns a new frame node.
        �r��� cs��|]}t|�VqdS�N�r ��.0rrrr�	<genexpr>K��z"Frame.add_frame.<locals>.<genexpr>�M�Az0 0 1�L�Zcsr0r1r2r3rrrr5Vr6)�min�abs�joinr�style�labelr!)r�namer	r>�radius�rr�elemrrr�	add_frameAs�6
����
���
�������
���
�����
���
�������
��
�
��zFrame.add_framecCs�|jj}t�d|i�}|�|jjd�|�|jjd�|j��}|jj	�
�D]J}|��}|jjdkr:t
||d�}nt
||d�}|�d|||jj�}|jjrV|�||�|jjrk|�t��}|�|�|�|�q&|�|�q&dS)zPerforms the effect.zstroke-width�fill�strokerr-rN)�options�widthr�Style�	set_color�
fill_color�stroke_colorr"�get_current_layer�selected�values�bounding_box�positionr
rD�
corner_radiusr)r+�group�addrr)rrHr>�layerr'r	�framerSrrr�effectcs&

zFrame.effectN)r)�__name__�
__module__�__qualname__�__doc__rr+rDrWrrrrr%s

"r�__main__)
r[rrrrr
�EffectExtensionrrX�runrrrr�<module>s
Y�

Youez - 2016 - github.com/yon3zu
LinuXploit