Add parameters to addTopEdgeSettings() for changed defaults

This commit is contained in:
Florian Festi 2019-01-11 21:28:38 +01:00
parent ba3cacbf93
commit d0356a12a3
3 changed files with 13 additions and 10 deletions

View File

@ -24,7 +24,8 @@ class TypeTray(_TopEdge):
def __init__(self):
Boxes.__init__(self)
self.addTopEdgeSettings()
self.addTopEdgeSettings(fingerjoint={"surroundingspaces": 0.5},
roundedtriangle={"outset" : 1})
self.buildArgParser("sx", "sy", "h", "hi", "outside", "bottom_edge",
"top_edge")
self.argparser.add_argument(

View File

@ -25,7 +25,7 @@ class UniversalBox(_TopEdge, _ChestLid):
def __init__(self):
Boxes.__init__(self)
self.addTopEdgeSettings()
self.addTopEdgeSettings(roundedtriangle={"outset" : 1})
self.addSettingsArgs(edges.FlexSettings)
self.buildArgParser("top_edge", "bottom_edge", "x", "y", "h")
self.argparser.add_argument(

View File

@ -90,14 +90,16 @@ class _ChestLid(Boxes):
class _TopEdge(Boxes):
def addTopEdgeSettings(self):
self.addSettingsArgs(edges.FingerJointSettings)
self.addSettingsArgs(edges.StackableSettings)
self.addSettingsArgs(edges.HingeSettings)
self.addSettingsArgs(edges.CabinetHingeSettings)
self.addSettingsArgs(edges.LidSettings)
self.addSettingsArgs(edges.ClickSettings)
self.addSettingsArgs(edges.RoundedTriangleEdgeSettings)
def addTopEdgeSettings(self, fingerjoint={}, stackable={}, hinge={},
cabinethinge={}, lid={}, click={},
roundedtriangle={}):
self.addSettingsArgs(edges.FingerJointSettings, **fingerjoint)
self.addSettingsArgs(edges.StackableSettings, **stackable)
self.addSettingsArgs(edges.HingeSettings, **hinge)
self.addSettingsArgs(edges.CabinetHingeSettings, **cabinethinge)
self.addSettingsArgs(edges.LidSettings, **lid)
self.addSettingsArgs(edges.ClickSettings, **click)
self.addSettingsArgs(edges.RoundedTriangleEdgeSettings, **roundedtriangle)
def topEdges(self, top_edge):
t1 = t2 = t3 = t4 = self.edges.get(top_edge, self.edges["e"])