Support chars es edge parameters in Boxes.edgeCorner()

This commit is contained in:
Florian Festi 2017-02-12 12:00:01 +01:00
parent a7d0dda9f8
commit dd6c5560f9
1 changed files with 3 additions and 0 deletions

View File

@ -602,6 +602,9 @@ class Boxes:
def edgeCorner(self, edge1, edge2, angle=90):
"""Make a corner between two Edges. Take width of edges into account"""
edge1 = self.edges.get(edge1, edge1)
edge2 = self.edges.get(edge2, edge2)
self.edge(edge2.startwidth() * math.tan(math.radians(angle/2.)))
self.corner(angle)
self.edge(edge1.endwidth() * math.tan(math.radians(angle/2.)))