Jacquard/Role/Render/QnD/SVG/Group.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use Renard::Incunabula::Common::Setup;
2 package Intertangle::Jacquard::Role::Render::QnD::SVG::Group;
3 # ABSTRACT: Quick-and-dirty SVG group rendering
4 $Intertangle::Jacquard::Role::Render::QnD::SVG::Group::VERSION = '0.001';
5 use Moo::Role;
6  
7 method render($svg) {
8 my $group = $svg->group( transform => "translate(@{[ $self->x->value ]},@{[ $self->y->value ]})" );
9 for my $child (@{$self->children}) {
10 $child->render($group);
11 }
12 }
13  
14 with qw(Intertangle::Jacquard::Role::Render::QnD::SVG);
15  
16 1;
17  
18 __END__
19  
20 =pod
21  
22 =encoding UTF-8
23  
24 =head1 NAME
25  
26 Intertangle::Jacquard::Role::Render::QnD::SVG::Group - Quick-and-dirty SVG group rendering
27  
28 =head1 VERSION
29  
30 version 0.001
31  
32 =head1 CONSUMES
33  
34 =over 4
35  
36 =item * L<Intertangle::Jacquard::Role::Render::QnD::SVG>
37  
38 =back
39  
40 =head1 METHODS
41  
42 =head2 render
43  
44 ...
45  
46 =head1 AUTHOR
47  
48 Zakariyya Mughal <zmughal@cpan.org>
49  
50 =head1 COPYRIGHT AND LICENSE
51  
52 This software is copyright (c) 2017 by Zakariyya Mughal.
53  
54 This is free software; you can redistribute it and/or modify it under
55 the same terms as the Perl 5 programming language system itself.
56  
57 =cut