X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ.pm;h=aca817d6bd46e6177dc94a2890017f73084b9ed2;hb=3661d7849ae4636b74000e33e068493d90ed8337;hp=1d2306c6fd1ca92046997369a7dd62db4c390137;hpb=95aada0ec5b3c5a0d78ed0ad53436b0e70860bc7;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/lib/LaTeX/TikZ.pm b/lib/LaTeX/TikZ.pm index 1d2306c..aca817d 100644 --- a/lib/LaTeX/TikZ.pm +++ b/lib/LaTeX/TikZ.pm @@ -260,7 +260,7 @@ Creates a L object with name C<$name> and optional rela The default layer is C
. -Layers are stored into a global hash, so that when you refer to them by their name, you get the existing layer object. +Layers are stored into a global hash, so that when you refer to them by their name, you get the existing layer object. Layers can also be directly applied to sets with the C<< ->layer >> method. @@ -268,6 +268,13 @@ Layers can also be directly applied to sets with the C<< ->layer >> method. ->mod(Tikz->pattern(class => 'Dots')) ->layer('top'); +=head3 C<< Tikz->scale($factor) >> + +Creates a L object that scales the sets onto which it apply by the given C<$factor>. + + my $circle_of_radius_2 = Tikz->circle(0 => 1) + ->mod(Tikz->scale(2)); + =head3 C<< Tikz->width($line_width) >> Creates a L object that sets the line width to C<$line_width> when applied. @@ -375,12 +382,10 @@ sub import { =head1 DEPENDENCIES -L with L 0.80 or greater. +L 0.80 or greater. L. -L. - L, L. L, L, L.