From 08c4091e57d59b6a08cb0e4f4d684ec7967019fc Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 17 Jul 2023 23:23:19 +0200 Subject: kicad: Improve API and fix kicad-nightly compat --- gerbonara/cad/kicad/primitives.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gerbonara/cad/kicad/primitives.py') diff --git a/gerbonara/cad/kicad/primitives.py b/gerbonara/cad/kicad/primitives.py index 6e9f41d..58a5b2c 100644 --- a/gerbonara/cad/kicad/primitives.py +++ b/gerbonara/cad/kicad/primitives.py @@ -49,7 +49,7 @@ class ZoneSmoothing: @sexp_type('fill') class ZoneFill: yes: Flag() = False - mode: Flag(atom=Atom.hatched) = False + mode: Named(Flag(atom=Atom.hatch)) = False thermal_gap: Named(float) = 0.508 thermal_bridge_width: Named(float) = 0.508 smoothing: ZoneSmoothing = None @@ -60,7 +60,7 @@ class ZoneFill: hatch_orientation: Named(int) = None hatch_smoothing_level: Named(int) = None hatch_smoothing_value: Named(float) = None - hatch_border_algorithm: Named(int) = None + hatch_border_algorithm: Named(AtomChoice(Atom.hatch_thickness, Atom.min_thickness)) = None hatch_min_hole_area: Named(float) = None -- cgit