1 package LaTeX::TikZ::Mod::Width;
8 LaTeX::TikZ::Mod::Width - A modifier that sets the line width.
16 our $VERSION = '0.01';
18 use LaTeX::TikZ::Tools;
22 with 'LaTeX::TikZ::Mod';
32 sub cover { LaTeX::TikZ::Tools::numeq($_[0]->width, $_[1]->width) }
36 sub apply { sprintf 'line width=%0.1fpt', $_[1]->thickness($_[0]->width) }
38 use LaTeX::TikZ::Interface width => sub {
41 __PACKAGE__->new(width => $_[0]);
44 __PACKAGE__->meta->make_immutable;
48 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
50 You can contact me by mail or on C<irc.perl.org> (vincent).
54 Please report any bugs or feature requests to C<bug-latex-tikz at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-TikZ>.
55 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
59 You can find documentation for this module with the perldoc command.
63 =head1 COPYRIGHT & LICENSE
65 Copyright 2010 Vincent Pit, all rights reserved.
67 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
71 1; # End of LaTeX::TikZ::Mod::Width