Skip to content

Refactored footprint generator

This is a little housekeeping. I did one

The changes were:

  • Split off draw_triangle_pointing_south() from TriangleArrowPointingSouth().
  • Updated Readme to reflect that asteval 0.9.31 requires Python 3.7+
  • Slightly reworked SilkArrowSize enum
  • Fixed a few typos along the way

The first change might needs some explanation. The new draw_triangle_pointing_south() only returns a polygon and does not append this to a footprint. This reduces the method to its atomic function and makes it easier to test and validate. One does not have to deal with the added wrapper that the Footprint presents. The TriangleArrowPointingSouth() is left to maintain compatibility.

I would like to use the draw_triangle_pointing_south() function in the larger MR that follows and updates the inductor_SMD generator to support orientation markers.

Edited by Patrick Baus

Merge request reports