Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #39 from nawroth/moredots
Browse files Browse the repository at this point in the history
Added an extra option to set any graphviz options.
  • Loading branch information
systay committed Jun 28, 2012
2 parents cd69c91 + b83cb49 commit 5c2c95b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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
4 changes: 3 additions & 1 deletion 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 @@ -64,7 +65,8 @@ prepend="digraph g{ $graphsettings\
arrowsize=$arrowsize fontcolor=\"$edgefontcolor\"\
fontsize=$edgefontsize fontname=\"$edgefont\"] \
nodesep=$nodesep \
fontname=\"$graphfont\" "
fontname=\"$graphfont\" \
$graphattrs"

echo "${prepend} ${indata} }" | dot -Tpng -o"$pngfile"
echo "${prepend} ${indata} }" | dot -Tsvg -o"$svgfile"
Expand Down

0 comments on commit 5c2c95b

Please sign in to comment.