diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2019-01-26 13:52:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 13:52:32 -0500 |
commit | f59d78b7fe92fffcc0afc56c5bec1dd211cc30c6 (patch) | |
tree | 37ea4ae8f0c6936ec7d525c8da19d102f00ae0e9 /gerber/cam.py | |
parent | 292f74dee92bc8c11e7ad51864ee96c411d14094 (diff) | |
parent | 5245fb925684b4ebe056e6509bfeca6b167903b5 (diff) | |
download | gerbonara-f59d78b7fe92fffcc0afc56c5bec1dd211cc30c6.tar.gz gerbonara-f59d78b7fe92fffcc0afc56c5bec1dd211cc30c6.tar.bz2 gerbonara-f59d78b7fe92fffcc0afc56c5bec1dd211cc30c6.zip |
Merge pull request #92 from curtacircuitos/subclass-bugfix
Fix hard requirement of cairo per #83, and add stubs for required sub…
Diffstat (limited to 'gerber/cam.py')
-rw-r--r-- | gerber/cam.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gerber/cam.py b/gerber/cam.py index 15b801a..4f20283 100644 --- a/gerber/cam.py +++ b/gerber/cam.py @@ -250,6 +250,10 @@ class CamFile(object): """ pass + @property + def bounding_box(self): + pass + def to_inch(self): pass @@ -271,12 +275,12 @@ class CamFile(object): from .render import GerberCairoContext ctx = GerberCairoContext() ctx.set_bounds(self.bounding_box) - ctx._paint_background() + ctx.paint_background() ctx.invert = invert - ctx._new_render_layer() + ctx.new_render_layer() for p in self.primitives: ctx.render(p) - ctx._flatten() + ctx.flatten() if filename is not None: ctx.dump(filename) |