| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | use Moose; | 
| 2 | 5 |  |  | 5 |  | 31 | use MooseX::ExtraArgs; | 
|  | 5 |  |  |  |  | 10 |  | 
|  | 5 |  |  |  |  | 40 |  | 
| 3 | 5 |  |  | 5 |  | 29965 | use Moose::Util::TypeConstraints qw(enum union); | 
|  | 5 |  |  |  |  | 13 |  | 
|  | 5 |  |  |  |  | 38 |  | 
| 4 | 5 |  |  | 5 |  | 9348 | if ( !defined Moose::Util::TypeConstraints::find_type_constraint('PDL') ) { | 
|  | 5 |  |  |  |  | 12 |  | 
|  | 5 |  |  |  |  | 44 |  | 
| 5 |  |  |  |  |  |  | Moose::Util::TypeConstraints::type('PDL'); | 
| 6 |  |  |  |  |  |  | } | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | our $VERSION = '0.042';    # VERSION | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | # ABSTRACT: This attribute is one of the possible options for the trace scatter. | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | my $self       = shift; | 
| 13 |  |  |  |  |  |  | my $extra_args = $self->extra_args // {}; | 
| 14 | 0 |  |  | 0 | 1 |  | my $meta       = $self->meta; | 
| 15 | 0 |  | 0 |  |  |  | my %hash       = %$self; | 
| 16 | 0 |  |  |  |  |  | for my $name ( sort keys %hash ) { | 
| 17 | 0 |  |  |  |  |  | my $attr = $meta->get_attribute($name); | 
| 18 | 0 |  |  |  |  |  | if ( defined $attr ) { | 
| 19 | 0 |  |  |  |  |  | my $value = $hash{$name}; | 
| 20 | 0 | 0 |  |  |  |  | my $type  = $attr->type_constraint; | 
| 21 | 0 |  |  |  |  |  | if ( $type && $type->equals('Bool') ) { | 
| 22 | 0 |  |  |  |  |  | $hash{$name} = $value ? \1 : \0; | 
| 23 | 0 | 0 | 0 |  |  |  | } | 
| 24 | 0 | 0 |  |  |  |  | } | 
| 25 |  |  |  |  |  |  | } | 
| 26 |  |  |  |  |  |  | %hash = ( %hash, %$extra_args ); | 
| 27 |  |  |  |  |  |  | delete $hash{'extra_args'}; | 
| 28 | 0 |  |  |  |  |  | if ( $self->can('type') && ( !defined $hash{'type'} ) ) { | 
| 29 | 0 |  |  |  |  |  | $hash{type} = $self->type(); | 
| 30 | 0 | 0 | 0 |  |  |  | } | 
| 31 | 0 |  |  |  |  |  | return \%hash; | 
| 32 |  |  |  |  |  |  | } | 
| 33 | 0 |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | has color => ( | 
| 35 |  |  |  |  |  |  | is            => "rw", | 
| 36 |  |  |  |  |  |  | isa           => "Str|ArrayRef[Str]", | 
| 37 |  |  |  |  |  |  | documentation => | 
| 38 |  |  |  |  |  |  | "Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical.", | 
| 39 |  |  |  |  |  |  | ); | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | has colorsrc => ( is            => "rw", | 
| 42 |  |  |  |  |  |  | isa           => "Str", | 
| 43 |  |  |  |  |  |  | documentation => "Sets the source reference on Chart Studio Cloud for `color`.", | 
| 44 |  |  |  |  |  |  | ); | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | has typesrc => ( is            => "rw", | 
| 47 |  |  |  |  |  |  | isa           => "Str", | 
| 48 |  |  |  |  |  |  | documentation => "Sets the source reference on Chart Studio Cloud for `type`.", | 
| 49 |  |  |  |  |  |  | ); | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | __PACKAGE__->meta->make_immutable(); | 
| 52 |  |  |  |  |  |  | 1; | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  |  | 
| 55 |  |  |  |  |  |  | =pod | 
| 56 |  |  |  |  |  |  |  | 
| 57 |  |  |  |  |  |  | =encoding utf-8 | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | =head1 NAME | 
| 60 |  |  |  |  |  |  |  | 
| 61 |  |  |  |  |  |  | Chart::Plotly::Trace::Scatter::Marker::Gradient - This attribute is one of the possible options for the trace scatter. | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | =head1 VERSION | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | version 0.042 | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | use HTML::Show; | 
| 70 |  |  |  |  |  |  | use Chart::Plotly; | 
| 71 |  |  |  |  |  |  | use Chart::Plotly::Trace::Scatter; | 
| 72 |  |  |  |  |  |  | my $scatter = Chart::Plotly::Trace::Scatter->new( x => [ 1 .. 5 ], y => [ 1 .. 5 ] ); | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | HTML::Show::show( Chart::Plotly::render_full_html( data => [$scatter] ) ); | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 77 |  |  |  |  |  |  |  | 
| 78 |  |  |  |  |  |  | This attribute is part of the possible options for the trace scatter. | 
| 79 |  |  |  |  |  |  |  | 
| 80 |  |  |  |  |  |  | This file has been autogenerated from the official plotly.js source. | 
| 81 |  |  |  |  |  |  |  | 
| 82 |  |  |  |  |  |  | If you like Plotly, please support them: L<https://plot.ly/> | 
| 83 |  |  |  |  |  |  | Open source announcement: L<https://plot.ly/javascript/open-source-announcement/> | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  | Full reference: L<https://plot.ly/javascript/reference/#scatter> | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | =head1 DISCLAIMER | 
| 88 |  |  |  |  |  |  |  | 
| 89 |  |  |  |  |  |  | This is an unofficial Plotly Perl module. Currently I'm not affiliated in any way with Plotly. | 
| 90 |  |  |  |  |  |  | But I think plotly.js is a great library and I want to use it with perl. | 
| 91 |  |  |  |  |  |  |  | 
| 92 |  |  |  |  |  |  | =head1 METHODS | 
| 93 |  |  |  |  |  |  |  | 
| 94 |  |  |  |  |  |  | =head2 TO_JSON | 
| 95 |  |  |  |  |  |  |  | 
| 96 |  |  |  |  |  |  | Serialize the trace to JSON. This method should be called only by L<JSON> serializer. | 
| 97 |  |  |  |  |  |  |  | 
| 98 |  |  |  |  |  |  | =head1 ATTRIBUTES | 
| 99 |  |  |  |  |  |  |  | 
| 100 |  |  |  |  |  |  | =over | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  | =item * color | 
| 103 |  |  |  |  |  |  |  | 
| 104 |  |  |  |  |  |  | Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. | 
| 105 |  |  |  |  |  |  |  | 
| 106 |  |  |  |  |  |  | =item * colorsrc | 
| 107 |  |  |  |  |  |  |  | 
| 108 |  |  |  |  |  |  | Sets the source reference on Chart Studio Cloud for `color`. | 
| 109 |  |  |  |  |  |  |  | 
| 110 |  |  |  |  |  |  | =item * typesrc | 
| 111 |  |  |  |  |  |  |  | 
| 112 |  |  |  |  |  |  | Sets the source reference on Chart Studio Cloud for `type`. | 
| 113 |  |  |  |  |  |  |  | 
| 114 |  |  |  |  |  |  | =back | 
| 115 |  |  |  |  |  |  |  | 
| 116 |  |  |  |  |  |  | =head1 AUTHOR | 
| 117 |  |  |  |  |  |  |  | 
| 118 |  |  |  |  |  |  | Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com> | 
| 119 |  |  |  |  |  |  |  | 
| 120 |  |  |  |  |  |  | =head1 COPYRIGHT AND LICENSE | 
| 121 |  |  |  |  |  |  |  | 
| 122 |  |  |  |  |  |  | This software is Copyright (c) 2022 by Pablo Rodríguez González. | 
| 123 |  |  |  |  |  |  |  | 
| 124 |  |  |  |  |  |  | This is free software, licensed under: | 
| 125 |  |  |  |  |  |  |  | 
| 126 |  |  |  |  |  |  | The MIT (X11) License | 
| 127 |  |  |  |  |  |  |  | 
| 128 |  |  |  |  |  |  | =cut |