use LaTeX::TikZ::Tools;
-use Any::Moose 'Role';
+use Mouse::Role;
=head1 ATTRIBUTES
draw
>;
-=head2 C<mod @mods>
+=head2 C<mod>
+
+ $set->mod(@mods)
Apply the given list of L<LaTeX::TikZ::Mod> objects to the current set.
my @mods = $cxt->effective_mods;
if (@mods) {
- $body = LaTeX::TikZ::Scope->new
- ->mod(map $_->apply($tikz), @mods)
- ->body($body);
+ $body = LaTeX::TikZ::Scope->new(
+ mods => [ map $_->apply($tikz), @mods ],
+ body => $body,
+ );
}
$body;
};
-=head2 C<layer $layer>
+=head2 C<layer>
+
+ $set->layer($layer)
Puts the current set in the corresponding layer.
This is a shortcut for C<< $set->mod(Tikz->layer($layer)) >>.
)
}
-=head2 C<clip $path>
+=head2 C<clip>
+
+ $set->clip($path)
Clips the current set by the path given by C<$path>.
This is a shortcut for C<< $set->mod(Tikz->clip($path)) >>.
=head1 COPYRIGHT & LICENSE
-Copyright 2010 Vincent Pit, all rights reserved.
+Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.