rectangularTriangle: Close path

for outset first edge
This commit is contained in:
Florian Festi 2023-04-09 22:11:33 +02:00
parent 5c94eac997
commit 56900b8277
1 changed files with 2 additions and 1 deletions

View File

@ -2505,7 +2505,7 @@ class Boxes:
if num > 1: if num > 1:
width = 2*width - x + r - self.spacing width = 2*width - x + r - self.spacing
dx = width - x - edges[1].spacing() - self.spacing / 2 dx = width - x - edges[1].spacing() - self.spacing / 2
dy = edges[0].spacing() + self.spacing / 2 dy = edges[0].margin() + self.spacing / 2
overallwidth = width * (num // 2 + num % 2) - self.spacing overallwidth = width * (num // 2 + num % 2) - self.spacing
overallheight = height - self.spacing overallheight = height - self.spacing
@ -2534,6 +2534,7 @@ class Boxes:
edges[2](((x-r)**2+(y-r)**2)**0.5) edges[2](((x-r)**2+(y-r)**2)**0.5)
self.step(-edges[2].endwidth()) self.step(-edges[2].endwidth())
self.corner(90-alpha, r) self.corner(90-alpha, r)
self.edge(edges[0].startwidth())
self.corner(90) self.corner(90)
self.ctx.stroke() self.ctx.stroke()