]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Set/Rectangle.pm
Kids of Set::{Circle,Line,Rectangle} should be Set::Points, not Points
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Set / Rectangle.pm
index 0c35c9d40a6c5eb9b17593f86925b8a16408e804..ddb66fcf8671ea508998e2758a52c7dee6ce5d9e 100644 (file)
@@ -15,20 +15,24 @@ Version 0.01
 
 our $VERSION = '0.01';
 
+use LaTeX::TikZ::Set::Point;
+
 use Any::Moose;
 
 with 'LaTeX::TikZ::Set::Op';
 
 has 'from' => (
  is       => 'ro',
does     => 'LaTeX::TikZ::Point',
isa      => 'LaTeX::TikZ::Set::Point',
  required => 1,
+ coerce   => 1,
 );
 
 has 'to' => (
  is       => 'ro',
does     => 'LaTeX::TikZ::Point',
isa      => 'LaTeX::TikZ::Set::Point',
  required => 1,
+ coerce   => 1,
 );
 
 has 'width' => (
@@ -77,7 +81,7 @@ Attributes 'width' and 'height' are required when 'to' was not given
  $class->$orig(@_);
 };
 
-use LaTeX::TikZ::API rectangle => sub {
+use LaTeX::TikZ::Interface rectangle => sub {
  shift;
  my ($p, $q) = @_;