| 1 | package SVG::DOM2::Element::Shape::Stroke; | ||
| 2 | =head1 NAME | ||
| 3 | |||
| 4 | SVG::DOM2::Element::Shape::Stroke | ||
| 5 | |||
| 6 | =head1 DESCRIPTION | ||
| 7 | |||
| 8 | Extend a shape element with stroke attributes | ||
| 9 | |||
| 10 | =cut | ||
| 11 | |||
| 12 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | sub stroke | ||
| 16 | 0 | ▶ | { |
|
Subroutine
stroke: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 17 | 0 | my ($self, $p) = @_; | |
| 18 | 0 | my %result; | |
| 19 | 0 | $result{'color'} = $self->stroke_color($p); | |
| 20 | 0 | $result{'opacity'} = $self->stroke_opacity($p); | |
| 21 | 0 | $result{'width'} = $self->stroke_width($p); | |
| 22 | 0 | return \%result; | |
| 23 | } | ||
| 24 | |||
| 25 | 0 | ▶ | sub stroke_color { shift->_style('stroke-color', 'stroke', @_); } |
|
Subroutine
stroke_color: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 26 | 0 | ▶ | sub stroke_width { shift->_style('stroke-width', 'stroke-width', @_); } |
|
Subroutine
stroke_width: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 27 | sub stroke_opacity | ||
| 28 | 0 | ▶ | { |
|
Subroutine
stroke_opacity: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 29 | 0 | my ($self) = @_; | |
| 30 | 0 | $self->_style('stroke-opacity', 'stroke-opacity', @_); | |
| 31 | } | ||
| 32 | |||
| 33 | 1 | return 1; | |