summaryrefslogtreecommitdiff
path: root/gerber/render/rs274x_backend.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hkibbe@entic.com>2018-06-05 08:57:37 -0400
committerHamilton Kibbe <hkibbe@entic.com>2018-06-05 08:57:37 -0400
commit5245fb925684b4ebe056e6509bfeca6b167903b5 (patch)
tree56615e66b5a9a2b3e04cf58b0b94604bac7af3f4 /gerber/render/rs274x_backend.py
parent31062ba2ce326bf3165c15b325b31b226dc69a11 (diff)
downloadgerbonara-5245fb925684b4ebe056e6509bfeca6b167903b5.tar.gz
gerbonara-5245fb925684b4ebe056e6509bfeca6b167903b5.tar.bz2
gerbonara-5245fb925684b4ebe056e6509bfeca6b167903b5.zip
Fix hard requirement of cairo per #83, and add stubs for required subclass methods to GerberContext per #84
Diffstat (limited to 'gerber/render/rs274x_backend.py')
-rw-r--r--gerber/render/rs274x_backend.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gerber/render/rs274x_backend.py b/gerber/render/rs274x_backend.py
index d32602a..30048c4 100644
--- a/gerber/render/rs274x_backend.py
+++ b/gerber/render/rs274x_backend.py
@@ -148,10 +148,10 @@ class Rs274xContext(GerberContext):
def statements(self):
return self.comments + self.header + self.body + self.end
- def set_bounds(self, bounds):
+ def set_bounds(self, bounds, *args, **kwargs):
pass
- def _paint_background(self):
+ def paint_background(self):
pass
def _select_aperture(self, aperture):
@@ -173,7 +173,7 @@ class Rs274xContext(GerberContext):
self.body.append(ApertureStmt(aper.d))
self._dcode = aper.d
- def _pre_render_primitive(self, primitive):
+ def pre_render_primitive(self, primitive):
if hasattr(primitive, 'comment'):
self.body.append(CommentStmt(primitive.comment))
@@ -489,11 +489,11 @@ class Rs274xContext(GerberContext):
def _render_inverted_layer(self):
pass
- def _new_render_layer(self):
+ def new_render_layer(self):
# TODO Might need to implement this
pass
- def _flatten(self):
+ def flatten(self):
# TODO Might need to implement this
pass