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

5�a<�@sLddlmZddlZddlmZGdd�dej�Zedkr$e��	�dSdS)�)�UnionN)�
inkex_gettextc@s@eZdZdZdd�Zdedeeefde	j
fdd�Zd	d
�ZdS)�SetupTypographyCanvasz=Resizes the canvas and creates typography-relevant guidelinescCs`|jddtdd�|jddtddd	�|jd
dtdd�|jd
dtdd�|jddtdd�dS)Nz-ez--emsizei�)�type�defaultz-cz--capsi�zCaps Height)rr�helpz-xz	--xheighti�z-az
--ascenderi�z-dz--descender�)�add_argument�int)�self�pars�r
�9/usr/share/inkscape/extensions/setup_typography_canvas.py�
add_argumentss
�z#SetupTypographyCanvas.add_arguments�name�position�returncCs$|jj�t���d|d�j|d��S)aCreate a horizontal guideline with name and position

        Args:
            name (str): the name of the guideline
            position (Union[int, float]): the vertical position of the guideline

        Returns:
            inkex.BaseElement: the created guideline
        r)r�)�inkscape__label)�svg�	namedview�add�inkex�Guide�move_to�update)rrrr
r
r�create_horizontal_guideline&s�z1SetupTypographyCanvas.create_horizontal_guidelinecCs|jj}|jj}|jj}|jj}|jj}|j�dt|��|j�dt|��|j�ddt|�dt|��|}|�	t
d�|�|�	t
d�||�|�	t
d�||�|�	t
d	�||�|�	t
d
�||�|jj}|�dd�|�d
t|d��|�dt|d��dS)N�width�height�viewBoxz0 0 � �baseline�ascender�caps�xheight�	descenderzinkscape:document-units�pxzinkscape:cxg@zinkscape:cy)�options�emsizer"r#r$r%r�set�strr�_r)rr(r"r#r$r%r!rr
r
r�effect4s$"zSetupTypographyCanvas.effectN)
�__name__�
__module__�__qualname__�__doc__rr*rr
�floatr�BaseElementrr,r
r
r
rrs
�r�__main__)
�typingrr�inkex.localizationrr+�EffectExtensionrr-�runr
r
r
r�<module>s4�

Youez - 2016 - github.com/yon3zu
LinuXploit