From ea47217cd058005008c072a6a629a6b2809c3ee2 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Thu, 21 Oct 2021 16:12:40 +0200 Subject: [PATCH] adjustments in jigsaw and robot boxes --- extensions/fablabchemnitz/lasercut_jigsaw/lasercut_jigsaw.py | 2 +- extensions/fablabchemnitz/robot_boxes/robot_boxes.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/fablabchemnitz/lasercut_jigsaw/lasercut_jigsaw.py b/extensions/fablabchemnitz/lasercut_jigsaw/lasercut_jigsaw.py index 2b211908..1abd4ae6 100644 --- a/extensions/fablabchemnitz/lasercut_jigsaw/lasercut_jigsaw.py +++ b/extensions/fablabchemnitz/lasercut_jigsaw/lasercut_jigsaw.py @@ -408,7 +408,7 @@ class LasercutJigsaw(inkex.EffectExtension): def effect(self): # 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, 'stroke-linecap': 'butt', 'stroke-linejoin': 'miter'} self.jigsawLineStyle = {'stroke': self.options.color_jigsaw, 'fill': 'none', 'stroke-width': self.stroke_width, diff --git a/extensions/fablabchemnitz/robot_boxes/robot_boxes.py b/extensions/fablabchemnitz/robot_boxes/robot_boxes.py index 6d7df67a..a3932a6c 100644 --- a/extensions/fablabchemnitz/robot_boxes/robot_boxes.py +++ b/extensions/fablabchemnitz/robot_boxes/robot_boxes.py @@ -307,10 +307,10 @@ class RobotBoxes(inkex.EffectExtension): # Translate group #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.transform = transform + g.transform = transform # 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)} ) # Create SVG paths for crmap slots if set