]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Point.pm
Just use Mouse instead of Any::Moose
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Point.pm
index 316624860c33e0ad95985437b176ccd3af609edb..151f50fcbf28a0c4157c4a5ae61627deba23f6c7 100644 (file)
@@ -9,20 +9,26 @@ LaTeX::TikZ::Point - Internal representation of what LaTeX::TikZ consider as 2D
 
 =head1 VERSION
 
-Version 0.01
+Version 0.02
 
 =cut
 
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
-use Any::Moose;
-use Any::Moose 'Util::TypeConstraints' => [ qw/
- coerce
- from
- via
+use Mouse;
+use Mouse::Util::TypeConstraints qw<
+ coerce from via
  find_type_constraint
  register_type_constraint
-/ ];
+>;
+
+=head1 ATTRIBUTES
+
+=head2 C<x>
+
+The abscissa of the point.
+
+=cut
 
 has 'x' => (
  is       => 'ro',
@@ -30,6 +36,12 @@ has 'x' => (
  required => 1,
 );
 
+=head2 C<y>
+
+The ordinate of the point.
+
+=cut
+
 has 'y' => (
  is       => 'ro',
  isa      => 'Num',
@@ -41,7 +53,7 @@ use LaTeX::TikZ::Meta::TypeConstraint::Autocoerce;
 register_type_constraint(
  LaTeX::TikZ::Meta::TypeConstraint::Autocoerce->new(
   name   => 'LaTeX::TikZ::Point::Autocoerce',
-  parent => find_type_constraint(__PACKAGE__),
+  target => find_type_constraint(__PACKAGE__),
  ),
 );
 
@@ -59,6 +71,10 @@ coerce 'LaTeX::TikZ::Point::Autocoerce'
 
 __PACKAGE__->meta->make_immutable;
 
+=head1 SEE ALSO
+
+L<LaTeX::TikZ>.
+
 =head1 AUTHOR
 
 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.