HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/markers_strokepaint.pyc
�
��Yc@sudZddlZddlZddlZddlZdejfd��YZedkrqe�Zej	�ndS(s 
Copyright (C) 2006 Aaron Spike, aaron@ekips.org
Copyright (C) 2010 Nicolas Dufour, nicoduf@yahoo.fr (color options)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
i����NtMyEffectcBseZd�Zd�ZRS(c
Cs�tjj|�|jjddddddddd	td
d�|jjdd
ddddddd	dd
d�|jjddddddddd	td
d�|jjddddddddd	td
d�|jjdddddddd	td
d�|jjdddddddd d	d!d
d"�|jjd#dddddd$d	td
d%�|jjd&d'dddddd(d	d!d
d"�|jjd)dddddd*d
d+�|jjd,dddddd-d
d.�dS(/Ns-ms--modifytactiontstorettypetinkbooltdesttmodifytdefaultthelps(Do not create a copy, modify the markerss-ts--typetstringt	fill_typetstrokes>Replace the markers' fill with the object stroke or fill colors-as--alphatassign_alphas6Assign the object fill and stroke alpha to the markerss-is--inverttinvertsInvert fill and stroke colorss
--assign_filltassign_fills"Assign a fill color to the markerss-fs--fill_colortintt
fill_colori��QQsChoose a custom fill colors--assign_stroket
assign_strokes$Assign a stroke color to the markerss-ss--stroke_colortstroke_colors--tabttabs'The selected UI-tab when OK was presseds
--colortabtcolortabs0The selected cutom color tab when OK was pressed(tinkextEffectt__init__tOptionParsert
add_optiontFalsetTrue(tself((s5/usr/share/inkscape/extensions/markers_strokepaint.pyRsRcCs	|jd�}|dkrHtjj|jj�tjdd��}nx�|jj	�D]�\}}ddddg}yt
j|jd��}Wn!tj
td	�|�qXnX|jjd
kr�|jdd�}|jd
d�}|jjr|}|}	n|}|}	|jjrm|jdd�}
|jdd�}|jjr^|
}|}
qm|}|
}
n|jjdkr�|	}|jjr�|
}q�q�n|jjdkr�|jjd?d@}|jjd?d@}|jjd?d@}d|||f}|jjd@d}|jjd?d@}|jjd?d@}|jjd?d@}d|||f}	|jjd@d}
|jjs�d}n|jjs�d}	q�nx@|D]8}|j|�r�||dkr�||d dkr�||dd!}y;|jd|�}|jjs*tj|�}n|}Wn!tj
td�|�q�nX|j||jj�}d|||<|jd |�|jtjd!d"�|�|j|�|jd#d$tj �}x|D]	}t
j|jd��}d|ko/|jjd
ko/|ddko/|jjd%ks[|	|d<d&t!�kr[|
|d<q[nd
|ko�|jjd
ko�|d
dko�|jjdks�||d
<d't!�kr�||d<q�n|jdt
j"|��q�Wq�q�W|jdt
j"|��qXWdS((Ns/svg:svg//svg:defstdefstsvgtmarkersmarker-starts
marker-mids
marker-endtstyles#No style attribute found for id: %ss"object"Rs#000000tfillsstroke-opacityt1sfill-opacitytsolids"custom"ii�iis
rgb(%s,%s,%s)g�o@tnoneisurl(#i����s/svg:svg//svg:marker[@id="%s"]sunable to locate marker: %ssurl(#%s)tidtstockidtinkscapes.//*[@style]t
namespacestfilledtstroke_opacitytfill_opacity(#txpathSingletNoneRtetreet
SubElementtdocumenttgetroottaddNStselectedt	iteritemstsimplestylet
parseStyletgetterrormsgt_toptionsRR
RR
RRRRthas_keyRtcopytdeepcopytuniqueIdtsettappendtxpathtNSStlocalstformatStyle(RRR%tnodetmpropsR ttemp_stroket	temp_fillR!Rttemp_stroke_opacityttemp_fill_opacityR+R*tfill_redt
fill_greent	fill_bluet
stroke_redtstroke_greentstroke_bluetmpropt	marker_idt	old_mnodetmnodetnew_idtchildrentchildtcstyle((s5/usr/share/inkscape/extensions/markers_strokepaint.pyteffectHs�-				
3


@
@
$(t__name__t
__module__RRY(((s5/usr/share/inkscape/extensions/markers_strokepaint.pyRs	+t__main__(
t__doc__trandomR<RR5RRRZtetaffect(((s5/usr/share/inkscape/extensions/markers_strokepaint.pyt<module>s�