From 299bd8f8abf422a9715227f1fd6c90ea6b073333 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 21 May 2011 14:58:09 +0200 Subject: add new roles to handle all the viz elements Signed-off-by: franck cuny --- lib/Graph/GEXF/Role/Viz/Size.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/Graph/GEXF/Role/Viz/Size.pm (limited to 'lib/Graph/GEXF/Role/Viz/Size.pm') diff --git a/lib/Graph/GEXF/Role/Viz/Size.pm b/lib/Graph/GEXF/Role/Viz/Size.pm new file mode 100644 index 0000000..d192db6 --- /dev/null +++ b/lib/Graph/GEXF/Role/Viz/Size.pm @@ -0,0 +1,20 @@ +package Graph::GEXF::Role::Viz::Size; + +use MooseX::Role::Parameterized; + +parameter as => ( + is => 'ro', + required => 1, +); + +role { + my $p = shift; + + has $p->as => ( + is => 'rw', + isa => 'Num', + default => '1.0', + ); +}; + +1; -- cgit v1.2.3