コード例 #1
0
 def __call__(self, tools):
     for tool_type in sorted(tool_types.keys()):
         tools.setdefault(tool_type, [])
     setdefault(tools, "painter", "navisvg")
     setdefault(tools, "layout-engine", "dot")
     setdefault(tools, "layout", "Feynman")
     defstyle = "Default"
     if not defstyle in [s.name for s in tools["style"]]:
         tools["style"].insert(0, ToolSetting(defstyle))
コード例 #2
0
 def __call__(self, tools):
     for tool_type in sorted(tool_types.keys()):
         tools[tool_type] = []
     setdefault(tools, "painter", "navisvg")
     setdefault(tools, "layout", self.options["layout"])
     setdefault(tools, "layout", "FixIni")
     tools["style"].append(ToolSetting("Default"))
     tools["style"].append(ToolSetting("SimpleColors"))
     tools["style"].append(ToolSetting("FancyLines"))
     tools["transform"].append(ToolSetting("NoKinks"))
     tools["transform"].append(ToolSetting("Gluballs"))
     tools["transform"].append(ToolSetting("Chainmail"))
     log.info("--demo is equivalent to '-pnavisvg:mcviz.svg -sSimpleColors -sFancyLines -tNoKinks -tGluballs -tChainmail -l%s -lFixIni'" % self.options["layout"])
     return super(DemoOptionSet, self).__call__(tools)