- Timestamp:
- 07/24/08 14:52:58 (5 years ago)
- Location:
- lang/perl/Google-Chart/branches/moose/lib/Google/Chart
- Files:
-
- 1 added
- 14 modified
-
Axis.pm (modified) (1 diff)
-
Data.pm (modified) (1 diff)
-
Marker.pm (modified) (1 diff)
-
QueryComponent.pm (modified) (1 diff)
-
Size.pm (modified) (1 diff)
-
Type.pm (modified) (1 diff)
-
Type/Bar.pm (modified) (1 diff)
-
Type/Line.pm (modified) (1 diff)
-
Type/Pie.pm (modified) (3 diffs)
-
Type/QRcode.pm (modified) (1 diff)
-
Type/Radar.pm (modified) (1 diff)
-
Type/ScatterPlot.pm (modified) (1 diff)
-
Type/Simple.pm (added)
-
Type/SparkLine.pm (modified) (1 diff)
-
Type/Venn.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Axis.pm
r16125 r16175 6 6 use Google::Chart::Axis::Item; 7 7 use URI::Escape; 8 9 use constant parameter_name => '';10 use constant parameter_value => '';11 8 12 9 with 'Google::Chart::QueryComponent'; -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Data.pm
r16125 r16175 3 3 package Google::Chart::Data; 4 4 use Moose::Role; 5 5 6 use constant parameter_name => 'chd'; 6 7 7 with 'Google::Chart::QueryComponent ';8 with 'Google::Chart::QueryComponent::Simple'; 8 9 9 10 has 'dataset' => ( -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Marker.pm
r16125 r16175 8 8 use constant parameter_name => 'chm'; 9 9 10 with 'Google::Chart::QueryComponent ';10 with 'Google::Chart::QueryComponent::Simple'; 11 11 12 12 enum 'Google::Chart::Marker::Type' => ( -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/QueryComponent.pm
r16125 r16175 3 3 package Google::Chart::QueryComponent; 4 4 use Moose::Role; 5 use URI::Escape;6 5 7 requires qw(parameter_name parameter_value);6 requires 'as_query'; 8 7 9 8 no Moose; 10 11 sub as_query {12 my $self = shift;13 return wantarray ?14 ($self->parameter_name, $self->parameter_value) :15 join('=', $self->parameter_name, URI::Escape::uri_escape($self->parameter_value))16 ;17 }18 9 19 10 1; -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Size.pm
r16158 r16175 8 8 use constant parameter_name => 'chs'; 9 9 10 with 'Google::Chart::QueryComponent ';10 with 'Google::Chart::QueryComponent::Simple'; 11 11 12 12 coerce 'Google::Chart::Size' -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type.pm
r16101 r16175 3 3 package Google::Chart::Type; 4 4 use Moose::Role; 5 use constant parameter_name => 'cht';6 5 7 6 with 'Google::Chart::QueryComponent'; -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type/Bar.pm
r16125 r16175 5 5 use Moose::Util::TypeConstraints; 6 6 7 with 'Google::Chart::Type ';7 with 'Google::Chart::Type::Simple'; 8 8 9 9 enum 'Google::Chart::Type::Bar::Orientation' => qw(horizontal vertical); -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type/Line.pm
r16101 r16175 5 5 use constant parameter_value => 'lc'; 6 6 7 with 'Google::Chart::Type ';7 with 'Google::Chart::Type::Simple'; 8 8 9 9 no Moose; -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type/Pie.pm
r16164 r16175 5 5 use Moose::Util::TypeConstraints; 6 6 7 with 'Google::Chart::Type ';7 with 'Google::Chart::Type::Simple'; 8 8 9 has ' type' => (9 has 'pie_type' => ( 10 10 is => 'rw', 11 11 isa => enum([ qw(2d 3d) ]), … … 21 21 my $self = shift; 22 22 23 return $self-> type eq '3d' ? 'p3' : 'p';23 return $self->pie_type eq '3d' ? 'p3' : 'p'; 24 24 } 25 25 … … 42 42 module => 'Pie', 43 43 args => { 44 type => '3d'44 pie_type => '3d' 45 45 } 46 46 } -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type/QRcode.pm
r16125 r16175 4 4 use Moose; 5 5 use Moose::Util::TypeConstraints; 6 use constant parameter_value => '';7 6 8 7 enum 'Google::Chart::Type::QRcode::Encoding' => qw(shift_jis utf-8 iso-8859-1); -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type/Radar.pm
r16165 r16175 5 5 use constant parameter_value => 'r'; 6 6 7 with 'Google::Chart::Type ';7 with 'Google::Chart::Type::Simple'; 8 8 9 9 __PACKAGE__->meta->make_immutable; -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type/ScatterPlot.pm
r16161 r16175 5 5 use constant parameter_value => 's'; 6 6 7 with 'Google::Chart::Type ';7 with 'Google::Chart::Type::Simple'; 8 8 9 9 __PACKAGE__->meta->make_immutable; -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type/SparkLine.pm
r16125 r16175 6 6 use constant parameter_value => 'ls'; 7 7 8 with 'Google::Chart::Type ';8 with 'Google::Chart::Type::Simple'; 9 9 10 10 __PACKAGE__->meta->make_immutable; -
lang/perl/Google-Chart/branches/moose/lib/Google/Chart/Type/Venn.pm
r16161 r16175 6 6 use constant parameter_value => 'v'; 7 7 8 with 'Google::Chart::Type ';8 with 'Google::Chart::Type::Simple'; 9 9 10 10 __PACKAGE__->meta->make_immutable;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)