X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ.pm;h=1d2306c6fd1ca92046997369a7dd62db4c390137;hp=362d136ecc20c6b7fa619ae96e3ea1e4bc33019b;hb=95aada0ec5b3c5a0d78ed0ad53436b0e70860bc7;hpb=1c53f7e28198adfb2905667acd5741f163832d7b diff --git a/lib/LaTeX/TikZ.pm b/lib/LaTeX/TikZ.pm index 362d136..1d2306c 100644 --- a/lib/LaTeX/TikZ.pm +++ b/lib/LaTeX/TikZ.pm @@ -88,7 +88,7 @@ The two TikZ concepts of I and I have been unified with the modif Creates a L object out of the paths C<@kids>. # A path made of two circles - Tikz->path( + Tikz->union( Tikz->circle(0, 1), Tikz->circle(1, 1), ) @@ -97,6 +97,23 @@ Creates a L object out of the paths C<@kids>. 'even odd rule', ); +=head3 C<< Tikz->join($connector, @kids) >> + +Creates a L object that joins the paths C<@kinds> with the given C<$connector> which can be, according to L, a string, an array reference or a code reference. + + # A stair + Tikz->join('-|', map [ $_, $_ ], 0 .. 5); + +=head3 C<< Tikz->chain($kid0, $link0, $kid1, $link1, ... $kidn) >> + +Creates a L object that chains C<$kid0> to C<$kid1> with the string C<$link0>, C<$kid1> to C<$kid2> with C<$link1>, and so on. + + # An heart-like shape + Tikz->chain([ 0, 1 ] + => '.. controls (-1, 1.5) and (-0.75, 0.25) ..' => [ 0, 0 ] + => '.. controls (0.75, 0.25) and (1, 1.5) ..' => [ 0, 1 ] + ); + =head3 C<< Tikz->seq(@kids) >> Creates a L object out of the sequences or paths C<@kids>.