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

0�a��@sHddlZddlmZgd�ZGdd�dej�Zedkr"e���dSdS)�N)�
inkex_gettext)�markerzmarker-startz
marker-midz
marker-endc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�MarkersStrokePaintz9Add marker stroke to outline markers on selected objects.cCs�|jdtjddd�|jddddd	�|jd
tjddd
d�|jdtjddd�|jdtjddd�|jdtjt�d�dd�|jdtjddd�|jdtjt�d�dd�|jd|�d�|jdd�|jddd�dS)Nz--modifyFz(Do not create a copy, modify the markers)�type�default�helpz--type�	fill_type�strokez>Replace the markers' fill with the object stroke or fill color)�destrrz--alpha�assign_alphaTz6Assign the object fill and stroke alpha to the markers)rr
rrz--invertzInvert fill and stroke colorsz
--assign_fillz"Assign a fill color to the markersz--fill_colori��QQzChoose a custom fill colorz--assign_strokez$Assign a stroke color to the markersz--stroke_colorz--tab�methodz'The selected UI-tab when OK was pressedz
--colortabz1The selected custom color tab when OK was pressed)r)�add_argument�inkex�Boolean�Color�
arg_method�
method_custom)�self�pars�r�5/usr/share/inkscape/extensions/markers_strokepaint.py�
add_argumentss8�
��������z MarkersStrokePaint.add_argumentscCs0|jjr|jjnd}|jjr|jjnd}||fS)zChoose custom colorsN)�options�assign_fill�
fill_color�
assign_stroke�stroke_color)r�_�fillr	rrrr3sz MarkersStrokePaint.method_customcCsj|�d�}|�d�}|jjdkr|}n|jjdkrd}n	|jjr%||}}|jjs1|��}|��}||fS)zUse object colorsrr	�solid�filledN)�	get_colorrr�invertr�to_rgb)r�stylerr	rrr�
method_object9s


z MarkersStrokePaint.method_objectcCs|jj��D]}}|j�|j�\}}tD]o}|j�|d��d�s q|j|dd�}|j�	d|�}|dur?t
�td�|�q|jj
sT|��}|jj�|�|j�|�}d||j|<|�d|�|�d	|�|D]}|durv|j�|d
�|dur�|j�|d�qiqqdS)N�zurl(#����z/svg:svg//svg:marker[@id="%s"]zunable to locate marker: %szurl(#%s)�idzinkscape:stockidr	r)�svg�selected�valuesr�tabr$�MARKERS�get�
startswith�
getElementr�errormsgr�modify�copy�defs�append�
get_unique_id�set�	set_color)r�noderr	�attr�	marker_id�marker_node�childrrr�effectLs4����zMarkersStrokePaint.effectN)�__name__�
__module__�__qualname__�__doc__rrr%r?rrrrrsr�__main__)	r�inkex.localizationrrr.�EffectExtensionrr@�runrrrr�<module>sN�

Youez - 2016 - github.com/yon3zu
LinuXploit