Fixed line style in robot box
This commit is contained in:
parent
e8a8394b41
commit
df2bd6ea7d
@ -311,7 +311,7 @@ class RobotBox(inkex.Effect):
|
|||||||
g = etree.SubElement(self.svg.get_current_layer(), 'g', g_attribs)
|
g = etree.SubElement(self.svg.get_current_layer(), 'g', g_attribs)
|
||||||
|
|
||||||
# Create SVG Path for box bounds
|
# Create SVG Path for box bounds
|
||||||
style = { 'stroke': '#000000', 'fill': 'none', 'stroke-width':'1' }
|
style = { 'stroke': '#000000', 'fill': 'none', 'stroke-width':'0.1' }
|
||||||
etree.SubElement(g, inkex.addNS('path','svg'), {'style':str(inkex.Style(style)), 'd':dirtyFormat(bound_points)} )
|
etree.SubElement(g, inkex.addNS('path','svg'), {'style':str(inkex.Style(style)), 'd':dirtyFormat(bound_points)} )
|
||||||
|
|
||||||
# Create SVG paths for crmap slots if set
|
# Create SVG paths for crmap slots if set
|
||||||
@ -324,10 +324,11 @@ class RobotBox(inkex.Effect):
|
|||||||
|
|
||||||
# Create SVG Paths for bend lines
|
# Create SVG Paths for bend lines
|
||||||
# draw bend lines with blue
|
# draw bend lines with blue
|
||||||
style = { 'stroke': '#44aaff', 'fill': 'none', 'stroke-width':'1',
|
style = { 'stroke': '#44aaff', 'fill': 'none', 'stroke-width':'0.1',
|
||||||
'stroke-dasharray': str(dashwidth) + ',' + str(dashstep),
|
#'stroke-dasharray': str(dashwidth) + ',' + str(dashstep),
|
||||||
# positive dash offset moves dash backward
|
# positive dash offset moves dash backward
|
||||||
'stroke-dashoffset': str(dashwidth) }
|
#'stroke-dashoffset': str(dashwidth)
|
||||||
|
}
|
||||||
|
|
||||||
# left
|
# left
|
||||||
etree.SubElement(g, inkex.addNS('path','svg'), {'style':str(inkex.Style(style)), 'd':dirtyFormat(bend_line_vl1)} )
|
etree.SubElement(g, inkex.addNS('path','svg'), {'style':str(inkex.Style(style)), 'd':dirtyFormat(bend_line_vl1)} )
|
||||||
|
Reference in New Issue
Block a user