Support chars es edge parameters in Boxes.edgeCorner()
This commit is contained in:
parent
a7d0dda9f8
commit
dd6c5560f9
|
@ -602,6 +602,9 @@ class Boxes:
|
||||||
|
|
||||||
def edgeCorner(self, edge1, edge2, angle=90):
|
def edgeCorner(self, edge1, edge2, angle=90):
|
||||||
"""Make a corner between two Edges. Take width of edges into account"""
|
"""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.edge(edge2.startwidth() * math.tan(math.radians(angle/2.)))
|
||||||
self.corner(angle)
|
self.corner(angle)
|
||||||
self.edge(edge1.endwidth() * math.tan(math.radians(angle/2.)))
|
self.edge(edge1.endwidth() * math.tan(math.radians(angle/2.)))
|
||||||
|
|
Loading…
Reference in New Issue