NAME
Meta::Grapher::Moose::Renderer::Graphviz - Render a Meta::Grapher::Moose as a graph using GraphViz2
VERSION
version 1.03
SYNOPSIS
Meta::Grapher::Moose->new(
renderer => Meta::Grapher::Moose::Renderer::Graphviz->new(),
...
);
DESCRIPTION
This is one of the standard renderers that ships as part of the Meta-Grapher-Moose distribution.
It uses the GraphViz2 module to use GraphViz to create graphs.
Attributes
output
The name of the file that output should be written to. For example foo.png
. If no output is specified then output will be sent to STDOUT.
format
The format of the output; Accepts any value that GraphViz2 will accept, including png
, jpg
, svg
, pdf
and dot
If this is not specified then, if possible, it will be extracted from the extension of the output
. If either the output
has not been set or the output filename has no file extension then the output will default to outputting raw dot source code.
formatting
The GraphViz attributes that you want to apply to your package nodes depending on what type they are. The default values are:
{
class => {
fontname => 'Helvetica',
fontsize => 9,
shape => 'rect',
style => 'bold',
},
role => {
fontname => 'Helvetica',
fontsize => 9,
shape => 'rect',
},
prole => {
fontname => 'Helvetica',
fontsize => 9,
shape => 'rect',
style => 'dotted',
},
anonrole => {
fontname => 'Helvetica',
fontsize => 9,
shape => 'rect',
style => 'dashed',
},
}
More information on GraphViz attributes can be found at http://www.graphviz.org/doc/info/attrs.html
SUPPORT
Bugs may be submitted through the RT bug tracker (or bug-meta-grapher-moose@rt.cpan.org).
I am also usually active on IRC as 'drolsky' on irc://irc.perl.org
.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2016 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)