line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#! perl |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
13
|
use v5.26; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
6
|
use Object::Pad; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
5
|
1
|
|
|
1
|
|
95
|
use utf8; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
4
|
|
6
|
1
|
|
|
1
|
|
50
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
123
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
class SVGPDF::Defs :isa(SVGPDF::Element); |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
0
|
0
|
|
method process () { |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
my $atts = $self->atts; |
12
|
0
|
|
|
|
|
|
my $xo = $self->xo; |
13
|
0
|
0
|
|
|
|
|
return if $atts->{omit}; # for testing/debugging. |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
$self->_dbg( "+", $self->name, " ====" ); |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
for ( $self->get_children ) { |
18
|
0
|
0
|
|
|
|
|
next if ref($_) eq 'SVGPDF::TextElement'; |
19
|
0
|
|
|
|
|
|
my $id = $_->atts->{id}; |
20
|
0
|
0
|
|
|
|
|
unless ( defined($id) ) { |
21
|
0
|
0
|
0
|
|
|
|
warn("SVG: Missing id for ", $_->name, " in defs (skipped)\n") |
22
|
|
|
|
|
|
|
if $self->root->verbose && $_->name ne "style"; |
23
|
0
|
|
|
|
|
|
next; |
24
|
|
|
|
|
|
|
} |
25
|
0
|
|
|
|
|
|
$self->_dbg( "defs: \"$id\" (", $_->name, ")" ); |
26
|
0
|
|
|
|
|
|
$self->root->defs->{ "#$id" } = $_; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
$self->_dbg( "-" ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |