1 package LaTeX::TikZ::Mod::Scale;
8 LaTeX::TikZ::Mod::Scale - A modifier that scales a TikZ set tree.
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]->scale, $_[1]->scale) }
68 sub apply { sprintf 'scale=%0.3f', $_[0]->scale }
70 LaTeX::TikZ::Interface->register(
74 __PACKAGE__->new(scale => $_[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,2011,2012,2013,2014,2015 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::Scale