Mercurial > projects > dil
diff trunk/src/docgen/graphutils/dotwriter.d @ 462:b7503e02fbe7
Docgen code for handling public imports.
author | Jari-Matti M?kel? <jmjm@iki.fi> |
---|---|
date | Tue, 30 Oct 2007 20:52:29 +0200 |
parents | 1b5f1ce09f38 |
children | db7e27b5c180 |
line wrap: on
line diff
--- a/trunk/src/docgen/graphutils/dotwriter.d Tue Oct 30 18:17:14 2007 +0100 +++ b/trunk/src/docgen/graphutils/dotwriter.d Tue Oct 30 20:52:29 2007 +0200 @@ -50,25 +50,27 @@ module_.name; image ~= sprint.format( - ` n{0} [label="{1}"{2}];`\n, + ` n{} [label="{}",style=filled,fillcolor={}];`\n, module_.id, nodeName, - (module_.isCyclic && factory.options.graph.highlightCyclicVertices ? - ",style=filled,fillcolor=" ~ factory.options.graph.nodeColor : - (module_.type == VertexType.UnlocatableModule ? - ",style=filled,fillcolor=" ~ factory.options.graph.unlocatableNodeColor : - "" - ) - ) + module_.isCyclic && factory.options.graph.highlightCyclicVertices ? + factory.options.graph.cyclicNodeColor : + module_.type == VertexType.UnlocatableModule ? + factory.options.graph.unlocatableNodeColor : + factory.options.graph.nodeColor ); } foreach (edge; edges) image ~= sprint.format( - ` n{0} -> n{1}{2};`\n, + ` n{} -> n{}[color={}];`\n, edge.outgoing.id, edge.incoming.id, - (edge.isCyclic ? "[color=" ~ factory.options.graph.cyclicNodeColor ~ "]" : "") + edge.isCyclic ? + factory.options.graph.cyclicDepColor : + edge.type == EdgeType.PublicDependency ? + factory.options.graph.publicDepColor ~ ",style=bold" : + factory.options.graph.depColor ); if (factory.options.graph.groupByPackageNames)