« Chart/Plotly/Trace/Scatter/Marker/Colorbar/Title/Font.pm
↑ Summary
Chart/Plotly/Trace/Scatter/Marker/Colorbar/Tickformatstop.pm »
| 1 | package Chart::Plotly::Trace::Funnel::Marker::Colorbar::Tickformatstop; | ||||||||||||||||||||||||||||
| 2 | 1 | ▶ | use Moose; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use MooseX::ExtraArgs; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use Moose::Util::TypeConstraints qw(enum union); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 1 | ▶ | if ( !defined Moose::Util::TypeConstraints::find_type_constraint('PDL') ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 6 | 0 | Moose::Util::TypeConstraints::type('PDL'); | |||||||||||||||||||||||||||
| 7 | } | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | 1 | our $VERSION = '0.042'; # VERSION | |||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | # ABSTRACT: This attribute is one of the possible options for the trace funnel. | ||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 0 | ▶ | sub TO_JSON { | ||||||||||||||||||||||||||
|
Subroutine
TO_JSON: not called CC=9 SCAR=45.0
Pod
documented
| |||||||||||||||||||||||||||||
| 14 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 15 | 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
| |||||||||||||||||||||||||||||
| 16 | 0 | my $meta = $self->meta; | |||||||||||||||||||||||||||
| 17 | 0 | my %hash = %$self; | |||||||||||||||||||||||||||
| 18 | 0 | for my $name ( sort keys %hash ) { | |||||||||||||||||||||||||||
| 19 | 0 | my $attr = $meta->get_attribute($name); | |||||||||||||||||||||||||||
| 20 | 0 | ▶ | if ( defined $attr ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 21 | 0 | my $value = $hash{$name}; | |||||||||||||||||||||||||||
| 22 | 0 | my $type = $attr->type_constraint; | |||||||||||||||||||||||||||
| 23 | 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")
| |||||||||||||||||||||||||||||
| 24 | 0 | ▶ | $hash{$name} = $value ? \1 : \0; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||
| 28 | 0 | %hash = ( %hash, %$extra_args ); | |||||||||||||||||||||||||||
| 29 | 0 | delete $hash{'extra_args'}; | |||||||||||||||||||||||||||
| 30 | 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"}
| |||||||||||||||||||||||||||||
| 31 | 0 | $hash{type} = $self->type(); | |||||||||||||||||||||||||||
| 32 | } | ||||||||||||||||||||||||||||
| 33 | 0 | return \%hash; | |||||||||||||||||||||||||||
| 34 | } | ||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||
| 36 | 1 | has dtickrange => ( | |||||||||||||||||||||||||||
| 37 | is => "rw", | ||||||||||||||||||||||||||||
| 38 | isa => "ArrayRef|PDL", | ||||||||||||||||||||||||||||
| 39 | documentation => | ||||||||||||||||||||||||||||
| 40 | "range [*min*, *max*], where *min*, *max* - dtick values which describe some zoom level, it is possible to omit *min* or *max* value by passing *null*", | ||||||||||||||||||||||||||||
| 41 | ); | ||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||
| 43 | 1 | has enabled => ( | |||||||||||||||||||||||||||
| 44 | is => "rw", | ||||||||||||||||||||||||||||
| 45 | isa => "Bool", | ||||||||||||||||||||||||||||
| 46 | documentation => | ||||||||||||||||||||||||||||
| 47 | "Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`.", | ||||||||||||||||||||||||||||
| 48 | ); | ||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||
| 50 | 1 | has name => ( | |||||||||||||||||||||||||||
| 51 | is => "rw", | ||||||||||||||||||||||||||||
| 52 | isa => "Str", | ||||||||||||||||||||||||||||
| 53 | documentation => | ||||||||||||||||||||||||||||
| 54 | "When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: false` or `enabled: false` to hide it). Has no effect outside of a template.", | ||||||||||||||||||||||||||||
| 55 | ); | ||||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||
| 57 | 1 | has templateitemname => ( | |||||||||||||||||||||||||||
| 58 | is => "rw", | ||||||||||||||||||||||||||||
| 59 | isa => "Str", | ||||||||||||||||||||||||||||
| 60 | documentation => | ||||||||||||||||||||||||||||
| 61 | "Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: false` or `enabled: false` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: true`.", | ||||||||||||||||||||||||||||
| 62 | ); | ||||||||||||||||||||||||||||
| 63 | |||||||||||||||||||||||||||||
| 64 | 1 | has value => ( is => "rw", | |||||||||||||||||||||||||||
| 65 | isa => "Str", | ||||||||||||||||||||||||||||
| 66 | documentation => "string - dtickformat for described zoom level, the same as *tickformat*", | ||||||||||||||||||||||||||||
| 67 | ); | ||||||||||||||||||||||||||||
| 68 | |||||||||||||||||||||||||||||
| 69 | 1 | __PACKAGE__->meta->make_immutable(); | |||||||||||||||||||||||||||
| 70 | 1 | 1; | |||||||||||||||||||||||||||
| 71 | |||||||||||||||||||||||||||||
| 72 | __END__ | ||||||||||||||||||||||||||||