1 package LaTeX::TikZ::Mod::Width;
8 LaTeX::TikZ::Mod::Width - A modifier that sets the line width.
16 our $VERSION = '0.02';
18 use LaTeX::TikZ::Interface;
20 use LaTeX::TikZ::Tools;
26 This class consumes the L<LaTeX::TikZ::Mod> role, and as such implements the L</tag>, L</covers>, L</declare> and L</apply> methods.
30 with 'LaTeX::TikZ::Mod';
56 sub covers { LaTeX::TikZ::Tools::numeq($_[0]->width, $_[1]->width) }
68 sub apply { sprintf 'line width=%0.1fpt', $_[1]->thickness($_[0]->width) }
70 LaTeX::TikZ::Interface->register(
74 __PACKAGE__->new(width => $_[0]);
78 __PACKAGE__->meta->make_immutable;
82 L<LaTeX::TikZ>, L<LaTeX::TikZ::Mod>.
86 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
88 You can contact me by mail or on C<irc.perl.org> (vincent).
92 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>.
93 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
97 You can find documentation for this module with the perldoc command.
101 =head1 COPYRIGHT & LICENSE
103 Copyright 2010 Vincent Pit, all rights reserved.
105 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
109 1; # End of LaTeX::TikZ::Mod::Width