X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FMod%2FPattern%2FLines.pm;h=193b68e661c1ac990c29f6d01e89e9ce78cabbee;hb=95aada0ec5b3c5a0d78ed0ad53436b0e70860bc7;hp=d495ffd2067e7c72eff771c24d5d8ce150bc8b12;hpb=0f9d7c1a2d11bc7001fe450cb2086e67c13a39e9;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ/Mod/Pattern/Lines.pm b/lib/LaTeX/TikZ/Mod/Pattern/Lines.pm index d495ffd..193b68e 100644 --- a/lib/LaTeX/TikZ/Mod/Pattern/Lines.pm +++ b/lib/LaTeX/TikZ/Mod/Pattern/Lines.pm @@ -9,11 +9,11 @@ LaTeX::TikZ::Mod::Pattern::Lines - An hatched pattern modifier. =head1 VERSION -Version 0.01 +Version 0.02 =cut -our $VERSION = '0.01'; +our $VERSION = '0.02'; use Sub::Name (); @@ -24,7 +24,7 @@ use Any::Moose 'Util::TypeConstraints'; =head1 RELATIONSHIPS -This class inherits the L class and its L, L, L and L methods. +This class inherits the L class and its L, L, L and L methods. =cut @@ -63,7 +63,7 @@ has 'line_width' => ( has 'space_width' => ( is => 'ro', isa => subtype('Num' => where { LaTeX::TikZ::Tools::numcmp($_, 0) >= 0 }), - default => 1, + default => 10, ); my $W = Sub::Name::subname('WIDTH' => sub { sprintf '#WIDTH=%0.1f#', @_ }); @@ -125,7 +125,7 @@ around 'BUILDARGS' => sub { confess('Can\'t specify an explicit template for a '. __PACKAGE__ .' pattern') if exists $args{template}; - my @params = qw/direction line_width space_width/; + my @params = qw; my $meta = $class->meta; for (@params) { @@ -147,11 +147,11 @@ around 'BUILDARGS' => sub { sub tag { join '/', ref $_[0], $_[0]->direction } -=head2 C +=head2 C =cut -sub cover { +sub covers { my ($this, $other) = @_; LaTeX::TikZ::Tools::numeq($this->line_width, $other->line_width) or return 0;