From dd6c5560f9a1841a6ef5ba655e3370c2f2c5f00f Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 12 Feb 2017 12:00:01 +0100 Subject: [PATCH] Support chars es edge parameters in Boxes.edgeCorner() --- boxes/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boxes/__init__.py b/boxes/__init__.py index 1581663..fcd5a70 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -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.)))