Fix padding for SVG
This commit is contained in:
parent
39e2b0cfc3
commit
95dc7f5731
|
@ -53,7 +53,7 @@ class Surface:
|
||||||
m = Affine.translation(-extents.xmin, -extents.ymin)
|
m = Affine.translation(-extents.xmin, -extents.ymin)
|
||||||
if self.invert_y:
|
if self.invert_y:
|
||||||
m = Affine.scale(self.scale, -self.scale) * m
|
m = Affine.scale(self.scale, -self.scale) * m
|
||||||
m = Affine.translation(0, self.scale*extents.ymax) * m
|
m = Affine.translation(0, self.scale*extents.ymax+PADDING) * m
|
||||||
else:
|
else:
|
||||||
m = Affine.scale(self.scale, self.scale) * m
|
m = Affine.scale(self.scale, self.scale) * m
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue