| 1 | package Chart::Plotly::Trace::Scatter::Unselected; | ||||||||||||||||||||||||||||
| 2 | 4 | ▶ | use Moose; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 4 | ▶ | use MooseX::ExtraArgs; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 4 | ▶ | use Moose::Util::TypeConstraints qw(enum union); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 4 | ▶ | if ( !defined Moose::Util::TypeConstraints::find_type_constraint('PDL') ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 6 | 0 | Moose::Util::TypeConstraints::type('PDL'); | |||||||||||||||||||||||||||
| 7 | } | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 4 | ▶ | use Chart::Plotly::Trace::Scatter::Unselected::Marker; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | 4 | ▶ | use Chart::Plotly::Trace::Scatter::Unselected::Textfont; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 4 | our $VERSION = '0.042'; # VERSION | |||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | # ABSTRACT: This attribute is one of the possible options for the trace scatter. | ||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||
| 16 | 0 | ▶ | sub TO_JSON { | ||||||||||||||||||||||||||
|
Subroutine
TO_JSON: not called CC=9 SCAR=45.0
Pod
documented
| |||||||||||||||||||||||||||||
| 17 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 18 | 0 | ▶ | my $extra_args = $self->extra_args // {}; | ||||||||||||||||||||||||||
|
Condition0%0/2
$self->extra_args // {}
MC/DC0%0/1
$self->extra_args // {}
$self->extra_args
Truth table0%0/2
A
A= $self->extra_args
| |||||||||||||||||||||||||||||
| 19 | 0 | my $meta = $self->meta; | |||||||||||||||||||||||||||
| 20 | 0 | my %hash = %$self; | |||||||||||||||||||||||||||
| 21 | 0 | for my $name ( sort keys %hash ) { | |||||||||||||||||||||||||||
| 22 | 0 | my $attr = $meta->get_attribute($name); | |||||||||||||||||||||||||||
| 23 | 0 | ▶ | if ( defined $attr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 24 | 0 | my $value = $hash{$name}; | |||||||||||||||||||||||||||
| 25 | 0 | my $type = $attr->type_constraint; | |||||||||||||||||||||||||||
| 26 | 0 | ▶ | if ( $type && $type->equals('Bool') ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$type and $type->equals("Bool")
MC/DC0%0/2
$type and $type->equals("Bool")
$type
$type->equals("Bool")
Truth table0%0/3
A and B
A= $typeB= $type->equals("Bool")
| |||||||||||||||||||||||||||||
| 27 | 0 | ▶ | $hash{$name} = $value ? \1 : \0; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 28 | } | ||||||||||||||||||||||||||||
| 29 | } | ||||||||||||||||||||||||||||
| 30 | } | ||||||||||||||||||||||||||||
| 31 | 0 | %hash = ( %hash, %$extra_args ); | |||||||||||||||||||||||||||
| 32 | 0 | delete $hash{'extra_args'}; | |||||||||||||||||||||||||||
| 33 | 0 | ▶ | if ( $self->can('type') && ( !defined $hash{'type'} ) ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$self->can("type") and not defined $hash{"type"}
MC/DC0%0/2
$self->can("type") and not defined $hash{"type"}
$self->can("type")
not defined $hash{"type"}
Truth table0%0/3
A and not(B)
A= $self->can("type")B= not defined $hash{"type"}
| |||||||||||||||||||||||||||||
| 34 | 0 | $hash{type} = $self->type(); | |||||||||||||||||||||||||||
| 35 | } | ||||||||||||||||||||||||||||
| 36 | 0 | return \%hash; | |||||||||||||||||||||||||||
| 37 | } | ||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | 4 | has marker => ( is => "rw", | |||||||||||||||||||||||||||
| 40 | isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Unselected::Marker", ); | ||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||
| 42 | 4 | has textfont => ( is => "rw", | |||||||||||||||||||||||||||
| 43 | isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Unselected::Textfont", ); | ||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||
| 45 | 4 | __PACKAGE__->meta->make_immutable(); | |||||||||||||||||||||||||||
| 46 | 4 | 1; | |||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||
| 48 | __END__ | ||||||||||||||||||||||||||||