@@ -1,5 +1,14 @@
Revision history for Graphics-Primitive
+0.65 Mar 31, 2014
+ - Make a TextLayout's component a weak_ref to prevent circular references.
+
+0.64 Feb 17, 2014
+ - POD encoding fixes (thanks Gregor Herrmann)
+
+0.63 Feb 17, 2014
+ - Doc speclling fixes (thanks Gregor Herrmann!)
+
0.61 Jun 2, 2011
- Fix broken merge (thanks Ansgar Burchardt)
@@ -169,7 +178,7 @@ Revision history for Graphics-Primitive
0.14
- TextBox: handle text layout with Text::Flow
- - Component: coercion of Insets from ArrayRef and Num
+ - Component: coercion of Insets from ArrayRef and Num
- Add pop_component to Container for removing the last component.
- POD updates
- Component: explicitly return from outside_width and outside_height
@@ -31,4 +31,4 @@ requires:
resources:
license: http://dev.perl.org/licenses/
repository: git://github.com/gphat/graphics-primitive.git
-version: 0.62
+version: 0.65
@@ -466,7 +466,7 @@ of PostScript.
=item I<prepare>
Method to prepare this component for drawing. This is an empty sub and is
-meant to be overriden by a specific implemntation.
+meant to be overridden by a specific implementation.
=item I<preferred_height>
@@ -191,7 +191,7 @@ arrayref of removed components.
=item I<validate_component>
-Optionally overriden by an implementation, allows it to deem a component as
+Optionally overridden by an implementation, allows it to deem a component as
invalid. If this sub returns false, the component won't be added.
=back
@@ -6,7 +6,8 @@ requires 'slice';
has 'component' => (
is => 'rw',
isa => 'Graphics::Primitive::TextBox',
- required => 1
+ required => 1,
+ weak_ref => 1
);
has 'height' => (
is => 'rw',
@@ -81,4 +82,4 @@ Cory Watson, C<< <gphat@cpan.org> >>
Copyright 2008-2010 by Cory G Watson.
This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl itself.
\ No newline at end of file
+under the same terms as Perl itself.
@@ -205,6 +205,8 @@ no Moose;
__END__
+=encoding UTF-8
+
=head1 NAME
Graphics::Primitive::Path - Collection of primitives
@@ -1,7 +1,7 @@
package Graphics::Primitive;
use Moose;
-our $VERSION = '0.62';
+our $VERSION = '0.65';
__PACKAGE__->meta->make_immutable;