| 1 | #! perl | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use v5.26; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use Object::Pad; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | class SVGPDF::Line :isa(SVGPDF::Element); | ||||||||||
| 9 | |||||||||||
| 10 | 5 | ▶ | method process () { | ||||||||
|
Subroutine
process: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 11 | 5 | my $atts = $self->atts; | |||||||||
| 12 | 5 | my $xo = $self->xo; | |||||||||
| 13 | 5 | ▶ | return if $atts->{omit}; # for testing/debugging. | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | |||||||||||
| 15 | 5 | my ( $x1, $y1, $x2, $y2, $tf ) = | |||||||||
| 16 | $self->get_params( $atts, qw( x1:H y1:V x2:H y2:V transform:s ) ); | ||||||||||
| 17 | |||||||||||
| 18 | 5 | $self->_dbg( $self->name, " x1=$x1 y1=$y1 x2=$x2 y2=$y2" ); | |||||||||
| 19 | 5 | $self->_dbg( "+ xo save" ); | |||||||||
| 20 | 5 | $xo->save; | |||||||||
| 21 | |||||||||||
| 22 | 5 | $self->set_graphics; | |||||||||
| 23 | 5 | ▶ | $self->set_transform($tf) if $tf; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | |||||||||||
| 25 | 5 | $xo->move( $x1, $y1 ); | |||||||||
| 26 | 5 | $xo->line( $x2, $y2 ); | |||||||||
| 27 | 5 | $self->_paintsub->(); | |||||||||
| 28 | |||||||||||
| 29 | 5 | $self->_dbg( "- xo restore" ); | |||||||||
| 30 | 5 | $xo->restore; | |||||||||
| 31 | 5 | $self->css_pop; | |||||||||
| 32 | 2 | } | |||||||||
| 33 | |||||||||||
| 34 | |||||||||||
| 35 | 2 | 1; | |||||||||