line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#! perl |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
12
|
use v5.26; |
|
1
|
|
|
|
|
4
|
|
4
|
1
|
|
|
1
|
|
9
|
use Object::Pad; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
5
|
1
|
|
|
1
|
|
97
|
use utf8; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
6
|
1
|
|
|
1
|
|
23
|
use Carp; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
123
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
class SVGPDF::Line :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
|
|
|
|
|
|
my ( $x1, $y1, $x2, $y2, $tf ) = |
16
|
|
|
|
|
|
|
$self->get_params( $atts, qw( x1:H y1:V x2:H y2:V transform:s ) ); |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
$self->_dbg( $self->name, " x1=$x1 y1=$y1 x2=$x2 y2=$y2" ); |
19
|
0
|
|
|
|
|
|
$self->_dbg( "+ xo save" ); |
20
|
0
|
|
|
|
|
|
$xo->save; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
$self->set_graphics; |
23
|
0
|
0
|
|
|
|
|
$self->set_transform($tf) if $tf; |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
$xo->move( $x1, $y1 ); |
26
|
0
|
|
|
|
|
|
$xo->line( $x2, $y2 ); |
27
|
0
|
|
|
|
|
|
$self->_paintsub->(); |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
$self->_dbg( "- xo restore" ); |
30
|
0
|
|
|
|
|
|
$xo->restore; |
31
|
0
|
|
|
|
|
|
$self->css_pop; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |