summaryrefslogtreecommitdiff
path: root/lib/Graph/GEXF/Role/Viz/Size.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2011-06-13 18:38:56 +0200
committerfranck cuny <franck@lumberjaph.net>2011-06-13 18:38:56 +0200
commita972089fecb01c62880c6a2a5bc5cbcb96105580 (patch)
tree87468ea945f6e5fb457249142e1d4b5f5dc71c5a /lib/Graph/GEXF/Role/Viz/Size.pm
parentadd flash (diff)
downloadstargit-a972089fecb01c62880c6a2a5bc5cbcb96105580.tar.gz
add Graph::GEXF while it's not on CPAN
Signed-off-by: franck cuny <franck@lumberjaph.net>
Diffstat (limited to 'lib/Graph/GEXF/Role/Viz/Size.pm')
-rw-r--r--lib/Graph/GEXF/Role/Viz/Size.pm21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/Graph/GEXF/Role/Viz/Size.pm b/lib/Graph/GEXF/Role/Viz/Size.pm
new file mode 100644
index 0000000..aef1574
--- /dev/null
+++ b/lib/Graph/GEXF/Role/Viz/Size.pm
@@ -0,0 +1,21 @@
+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',
+ traits => ['Chained'],
+ );
+};
+
+1;