Commits

saar drimer committed 99b8827

accept circle definition

  • Participants
  • Parent commits 9785f4e

Comments (0)

Files changed (1)

File utils/footprint.py

                                 soldermask_path = svg.width_and_height_to_path(width+shape_soldermask_buffer, 
                                                                                height+shape_soldermask_buffer)
                                 shape_soldermask_scale_factor = 1
+
+                            elif soldermask_type in ['circ', 'circle', 'round']:
+                                offset = soldermask.get('offset') or [0, 0]
+                                soldermask_path = svg.circle_diameter_to_path(float(soldermask.get('diameter')))
+                                shape_soldermask_scale_factor = 1
                             
                             elif soldermask_type == 'path':
                                 soldermask_path = svg.absolute_to_relative_path(soldermask.get('value'))
                     if shape_type in ['text']:
                         text = shape.get('value')
                         if text not in [None, '']:
-                            place.place_text(cfg, shape, silkscreen_outline, 'silkscreen')
+                            place.place_text(cfg, shape, silkscreen_outline, 
+                                             'silkscreen', False, part_rotate)
                         path = None
 
                     elif shape_type in ['path']: