Remove no longer needed calls to ctx.stroke()

Boxes.move() take care of that nowadays
This commit is contained in:
Florian Festi 2019-02-07 22:37:08 +01:00
parent b546c5976c
commit ded5addbe9
5 changed files with 1 additions and 12 deletions

View File

@ -820,7 +820,6 @@ class Boxes:
edges[i](side)
self.edgeCorner(edges[i], edges[i+1], 360.0/corners)
self.ctx.stroke()
self.move(tw, th, move)
def grip(self, length, depth):
@ -1502,7 +1501,7 @@ class Boxes:
r = 0
self.hexHolesPlate(x - 2 * holesMargin, y - 2 * holesMargin, r,
settings=holesSettings)
self.ctx.stroke()
self.move(overallwidth, overallheight, move)
def surroundingWall(self, x, y, r, h,
@ -1599,8 +1598,6 @@ class Boxes:
self.edges["X"](c4, h + topwidth + bottomwidth)
tops.append(c4)
self.ctx.stroke()
self.move(overallwidth, overallheight, move)
def rectangularWall(self, x, y, edges="eeee",
@ -1660,8 +1657,6 @@ class Boxes:
holesMargin + edges[0].startwidth())
self.hexHolesRectangle(x - 2 * holesMargin, y - 2 * holesMargin)
self.ctx.stroke()
self.move(overallwidth, overallheight, move)
def flangedWall(self, x, y, edges="FFFF", flanges=None, r=0.0,

View File

@ -95,7 +95,6 @@ class FlexBox4(Boxes):
self.edges["f"](h)
self.edge(self.thickness)
self.corner(90)
self.ctx.stroke()
self.move(tw, th, move)

View File

@ -163,7 +163,6 @@ class Rotary(Boxes):
self.edge(10)
self.edges["F"](60)
self.polyline(x - 70, (180, y / 2.), x, (180, y / 2.))
self.ctx.stroke()
self.move(overallwidth, overallheight, move)

View File

@ -112,8 +112,6 @@ When turned by 90°, it can be also used to create a bottle holder."""
edges[3](h1)
self.edgeCorner(edges[3], edges[3 + 1], 90)
self.ctx.stroke()
self.move(overallwidth, overallheight, move)
def render(self):

View File

@ -65,8 +65,6 @@ class UnevenHeightBox(Boxes):
edges[-1](h0)
self.edgeCorner(edges[-1], edges[0], 90)
self.ctx.stroke()
self.move(overallwidth, overallheight, move)