From 6f8d4bb999e780f38776938599dab4b9b7ed8403 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 7 Jul 2024 17:08:06 +0200 Subject: protoboard: Finish up sides of Alio better --- gerbonara/cad/protoserve.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gerbonara/cad/protoserve.py') diff --git a/gerbonara/cad/protoserve.py b/gerbonara/cad/protoserve.py index c3224e3..a2aa7d6 100644 --- a/gerbonara/cad/protoserve.py +++ b/gerbonara/cad/protoserve.py @@ -141,6 +141,7 @@ def to_board(obj): w = float(obj.get('width', unit(100, MM))) h = float(obj.get('height', unit(80, MM))) corner_radius = float(obj.get('round_corners', {}).get('radius', unit(1.5, MM))) + margin = float(obj.get('margin', unit(2.0, MM))) holes = obj.get('mounting_holes', {}) mounting_hole_dia = float(holes.get('diameter', unit(3.2, MM))) mounting_hole_offset = float(holes.get('offset', unit(5, MM))) @@ -157,6 +158,7 @@ def to_board(obj): corner_radius=corner_radius, mounting_hole_dia=mounting_hole_dia, mounting_hole_offset=mounting_hole_offset, + margin=margin, unit=unit) @app.route('/preview_.svg', methods=['POST']) -- cgit