This commit is contained in:
Mario Voigt 2023-03-15 13:12:22 +01:00
parent 4e49bf3449
commit 495dfd8caa

View File

@ -40,7 +40,7 @@ def groupdraw(s, XYstrings, colors) :
grp = etree.SubElement(parent, 'g', grp_attribs)#the group to put everything in grp = etree.SubElement(parent, 'g', grp_attribs)#the group to put everything in
name='part' name='part'
for i in range(len(XYstrings)): for i in range(len(XYstrings)):
style = { 'stroke': colors[i], 'fill': 'none' } style = { 'stroke': colors[i], 'stroke-width': s.svg.unittouu("1px"), 'fill': 'none' }
drw = {'style':str(inkex.Style(style)),inkex.addNS('label','inkscape'):name+str(i),'d':XYstrings[i]} drw = {'style':str(inkex.Style(style)),inkex.addNS('label','inkscape'):name+str(i),'d':XYstrings[i]}
etree.SubElement(grp, inkex.addNS('path','svg'), drw ) etree.SubElement(grp, inkex.addNS('path','svg'), drw )
return return