diff options
author | jaseg <git@jaseg.de> | 2023-07-18 21:15:08 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-07-18 21:15:08 +0200 |
commit | 58142cb0c7c0a38dd07592632a7e0c1622cc99d9 (patch) | |
tree | 01e6ab907049291391b3fda20412e8e7ac75a791 /gerbonara/cad/kicad/graphical_primitives.py | |
parent | 08c4091e57d59b6a08cb0e4f4d684ec7967019fc (diff) | |
download | gerbonara-58142cb0c7c0a38dd07592632a7e0c1622cc99d9.tar.gz gerbonara-58142cb0c7c0a38dd07592632a7e0c1622cc99d9.tar.bz2 gerbonara-58142cb0c7c0a38dd07592632a7e0c1622cc99d9.zip |
kicad: Add schematic file format support
Diffstat (limited to 'gerbonara/cad/kicad/graphical_primitives.py')
-rw-r--r-- | gerbonara/cad/kicad/graphical_primitives.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gerbonara/cad/kicad/graphical_primitives.py b/gerbonara/cad/kicad/graphical_primitives.py index ce02df4..9ddd807 100644 --- a/gerbonara/cad/kicad/graphical_primitives.py +++ b/gerbonara/cad/kicad/graphical_primitives.py @@ -306,6 +306,18 @@ class DimensionStyle: keep_text_aligned: Flag() = False +@sexp_type('image') +class Image: + at: AtPos = field(default_factory=AtPos) + scale: Named(float) = None + layer: Named(str) = None + uuid: UUID = field(default_factory=UUID) + data: str = '' + + def offset(self, x=0, y=0): + self.at = self.at.with_offset(x, y) + + @sexp_type('dimension') class Dimension: locked: Flag() = False |