Skip to content

Commit

Permalink
Added an extra option to set any graphviz options.
Browse files Browse the repository at this point in the history
  • Loading branch information
nawroth committed Jun 28, 2012
1 parent f23c09c commit 21b48f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/resources/dot/dot-filter.conf
@@ -1,6 +1,6 @@

[dot-filter-style]
dot-style=template="dot-block",subs=(),posattrs=("style","target","colorset"),filter='dot.sh "src/bin/fonts" "target/classes/images/{target}" {colorset?{colorset}}'
dot-style=template="dot-block",subs=(),posattrs=("style","target","colorset","graphattrs"),filter='dot.sh "src/bin/fonts" "target/classes/images/{target}" {colorset?{colorset}} {graphattrs?"{graphattrs}"}'

[blockdef-listing]
template::[dot-filter-style]
Expand Down
2 changes: 2 additions & 0 deletions src/bin/resources/dot/dot.sh
Expand Up @@ -15,6 +15,7 @@ nodeshape=box
fontpath=$1
targetimage=$2
colorset=$3
graphattrs=$4

# "#a8e270" # lighter green
# "#95bbe3" # lighter blue
Expand Down Expand Up @@ -63,6 +64,7 @@ prepend="digraph g{ $graphsettings\
edge [color=\"$boxcolor\" penwidth=2 arrowhead=\"$arrowhead\" arrowtail=\"$arrowhead\" \
arrowsize=$arrowsize fontcolor=\"$edgefontcolor\"\
fontsize=$edgefontsize fontname=\"$edgefont\"] \
$graphattrs \
nodesep=$nodesep \
fontname=\"$graphfont\" "

Expand Down

0 comments on commit 21b48f4

Please sign in to comment.