| 1 | package SVG::DOM2::Element::Shape::Fill; | ||
| 2 | =head1 NAME | ||
| 3 | |||
| 4 | SVG::DOM2::Element::Shape::Fill | ||
| 5 | |||
| 6 | =head1 DESCRIPTION | ||
| 7 | |||
| 8 | Extend a shape element with fill 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 | =head1 METHODS | ||
| 16 | |||
| 17 | fill - fill style, has color and opacity output | ||
| 18 | |||
| 19 | =cut | ||
| 20 | sub fill | ||
| 21 | 0 | ▶ | { |
|
Subroutine
fill: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 22 | 0 | my ($self) = @_; | |
| 23 | 0 | my %result; | |
| 24 | 0 | $result{'color'} = $self->fill_color; | |
| 25 | 0 | $result{'opacity'} = $self->fill_opacity; | |
| 26 | 0 | return \%result; | |
| 27 | } | ||
| 28 | |||
| 29 | 0 | ▶ | sub fill_color { shift->_style('fill-color','fill', @_); } |
|
Subroutine
fill_color: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 30 | sub fill_opacity | ||
| 31 | 0 | ▶ | { |
|
Subroutine
fill_opacity: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 32 | 0 | my $self = shift; | |
| 33 | 0 | $self->_style('fill-opacity','fill-opacity', @_); | |
| 34 | } | ||
| 35 | |||
| 36 | 1 | return 1; | |