| 1 | package Chart::GGPlot::Position::Functions; | ||
| 2 | |||
| 3 | # ABSTRACT: Functions for Chart::GGPlot::Position | ||
| 4 | |||
| 5 | 6 | ▶ | use Chart::GGPlot::Setup qw(:base :pdl); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 6 | our $VERSION = '0.002003'; # VERSION | |
| 8 | |||
| 9 | 6 | ▶ | use Module::Load; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 6 | ▶ | use Chart::GGPlot::Aes::Functions qw(:all); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 6 | ▶ | use parent qw(Exporter::Tiny); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 6 | my @position_types = qw(identity dodge dodge2 stack fill); | |
| 16 | |||
| 17 | 6 | our @EXPORT_OK = (map { "position_${_}" } @position_types); | |
| 18 | |||
| 19 | 6 | my @export_ggplot = @EXPORT_OK; | |
| 20 | 6 | our %EXPORT_TAGS = ( all => \@EXPORT_OK, ggplot => \@export_ggplot ); | |
| 21 | |||
| 22 | 6 | for my $type (@position_types) { | |
| 23 | 30 | my $class = 'Chart::GGPlot::Position::' . ucfirst($type); | |
| 24 | 30 | load $class; | |
| 25 | |||
| 26 | 6 | ▶ | no strict 'refs'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 27 | 0 | ▶ | *{"position_${type}"} = sub { $class->new(@_); }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=0.4
| |||
| 28 | } | ||
| 29 | |||
| 30 | 6 | 1; | |
| 31 | |||
| 32 | __END__ | ||