adjustments in jigsaw and robot boxes
This commit is contained in:
parent
efc1baa812
commit
ea47217cd0
@ -408,7 +408,7 @@ class LasercutJigsaw(inkex.EffectExtension):
|
|||||||
def effect(self):
|
def effect(self):
|
||||||
|
|
||||||
# internal useful variables
|
# internal useful variables
|
||||||
self.stroke_width = 0.1 # default for visiblity
|
self.stroke_width =str(self.svg.unittouu("1px")) # default for visiblity
|
||||||
self.borderLineStyle = {'stroke': self.options.color_border, 'fill': 'none', 'stroke-width': self.stroke_width,
|
self.borderLineStyle = {'stroke': self.options.color_border, 'fill': 'none', 'stroke-width': self.stroke_width,
|
||||||
'stroke-linecap': 'butt', 'stroke-linejoin': 'miter'}
|
'stroke-linecap': 'butt', 'stroke-linejoin': 'miter'}
|
||||||
self.jigsawLineStyle = {'stroke': self.options.color_jigsaw, 'fill': 'none', 'stroke-width': self.stroke_width,
|
self.jigsawLineStyle = {'stroke': self.options.color_jigsaw, 'fill': 'none', 'stroke-width': self.stroke_width,
|
||||||
|
@ -307,10 +307,10 @@ class RobotBoxes(inkex.EffectExtension):
|
|||||||
# Translate group
|
# Translate group
|
||||||
#transform = 'translate(' + str( self.svg.namedview.center[0] ) + ',' + str( self.svg.namedview.center[1] ) + ')'
|
#transform = 'translate(' + str( self.svg.namedview.center[0] ) + ',' + str( self.svg.namedview.center[1] ) + ')'
|
||||||
g = etree.SubElement(self.svg.get_current_layer(), 'g', {inkex.addNS('label','inkscape'):'RobotBox'})
|
g = etree.SubElement(self.svg.get_current_layer(), 'g', {inkex.addNS('label','inkscape'):'RobotBox'})
|
||||||
#g.transform = transform
|
g.transform = transform
|
||||||
|
|
||||||
# Create SVG Path for box bounds
|
# Create SVG Path for box bounds
|
||||||
style = { 'stroke': '#000000', 'fill': 'none', 'stroke-width':'0.1' }
|
style = { 'stroke': '#000000', 'fill': 'none', 'stroke-width':str(self.svg.unittouu("1px")) }
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user