So that we no longer have to load LaTeX::TikZ::Formatter manually.
}
sub load {
+ require LaTeX::TikZ::Formatter; # formatter
+
require LaTeX::TikZ::Set::Raw; # raw
require LaTeX::TikZ::Set::Path; # path
0.8 * $width * ($tikz->scale / 5);
}
+use LaTeX::TikZ::API formatter => sub {
+ shift;
+
+ __PACKAGE__->new(@_);
+};
+
__PACKAGE__->meta->make_immutable;
=head1 AUTHOR
use Test::More tests => 12 + 2 * 7;
use LaTeX::TikZ;
-use LaTeX::TikZ::Formatter;
-my $tikz = LaTeX::TikZ::Formatter->new(
+my $tikz = Tikz->formatter(
format => '%d',
);
use Test::More tests => 14 + 2 * 18;
use LaTeX::TikZ;
-use LaTeX::TikZ::Formatter;
-my $tikz = LaTeX::TikZ::Formatter->new(
+my $tikz = Tikz->formatter(
format => '%d',
);