]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Set/Path.pm
Abstract the mod antiduplication logic in a new context object
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Set / Path.pm
index f7a5fb21b684deb1afca328d216f41597d42db27..e681828eaa571e21cc241c46d3fe4206a0542145 100644 (file)
@@ -33,15 +33,28 @@ with 'LaTeX::TikZ::Set';
 
 =head1 METHODS
 
-This method is required by the interface :
+These methods are required by the interface :
 
 =over 4
 
 =item *
 
-C<path $formatter>
+C<path $formatter, $context>
 
 Returns the TikZ code that builds a path out of the current set object as a string formatted by the L<LaTeX::TikZ::Formatter> object C<$formatter>.
+The current evaluation context is passed as the L<LaTeX::TikZ::Context> object C<$context>.
+
+=item *
+
+C<begin>
+
+Returns a L<LaTeX::TikZ::Point> object pointing to the beginning of the path, or C<undef> if this path has no beginning.
+
+=item *
+
+C<end>
+
+A L<LaTeX::TikZ::Point> object pointing to the end of the path, or C<undef> if this path has no end.
 
 =back
 
@@ -49,6 +62,8 @@ Returns the TikZ code that builds a path out of the current set object as a stri
 
 requires qw<
  path
+ begin
+ end
 >;
 
 =head2 C<draw>