]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blobdiff - lib/LaTeX/TikZ/Formatter.pm
Make the formatter autocoerce the origin
[perl/modules/LaTeX-TikZ.git] / lib / LaTeX / TikZ / Formatter.pm
index d349ed3d207d8794860da79dfd2c472bde903706..b9a6e10de4e7aae925e04899cc2411440a0d73ee 100644 (file)
@@ -51,8 +51,9 @@ has 'height' => (
 );
 
 has 'origin' => (
- is   => 'ro',
- does => 'Maybe[LaTeX::TikZ::Point]',
+ is     => 'ro',
+ isa    => 'Maybe[LaTeX::TikZ::Point::Autocoerce]',
+ coerce => 1,
 );
 
 my $find_mods;
@@ -159,7 +160,7 @@ sub thickness {
  0.8 * $width * ($tikz->scale / 5);
 }
 
-use LaTeX::TikZ::API formatter => sub {
+use LaTeX::TikZ::Interface formatter => sub {
  shift;
 
  __PACKAGE__->new(@_);