SVG-Grid

 view release on metacpan or  search on metacpan

lib/SVG/Grid.pm  view on Meta::CPAN


=head2 x_offset()

Gets the horizontal gap between the edges of the SVG and the grid.

C<x_offset> is a parameter to L</new()>.

=head2 y_cell_count()

Gets the count of cells vertically.

C<y_cell_count> is a parameter to L</new()>.

=head2 y_offset()

Gets the vertical gap between the edges of the SVG and the grid.

C<y_offset> is a parameter to L</new()>.

=head1 FAQ

=head2 Does this module support Unicode?

Yes. The L</write(%options)> method uses an encoding of UTF-8 on the output file handle.

Note: To use Unicode, you must include 'use utf8;' in your programs. See scripts/synopsis.pl.

=head2 Does this module support tootips via MouseOver?

Yes. Just search this document for 'MouseOver'.

=head2 Does this module use the SVG 'g' element?

No. This means there is no grouping done by default. Nevertheless, you can call L</svg()> to get
the internal SVG object, and use 'g' yourself at any time.

See L<https://www.w3.org/TR/SVG11/struct.html#Groups> for details of the 'g' element.

=head2 How does this module handle duplicate element ids?

By using method parameters to generate a hopefully-unique id. This line copied from the
L</image_link(%options)> method shows the general technique I've used:

	id => "image_$options{x}_$options{y}", # Try to make it unique.

=head2 Is there any difference between C<fill> and C<stroke> for text?

I don't think so, but I have had some odd results. Ultimately, you need to read the docs for the
L<SVG> module to see what it expects.

=head2 Is there any way to hide the coordinate numbering system?

Not in V 1.00. However, it is on the TODO list.

=head1 See Also

L<GD>

L<Imager>

L<Image::Magick>

L<Image::Magick::Chart>

L<Image::Magick::PolyText>

L<Image::Magick::Tiler>

L<SVG>

L<https://www.w3.org/Graphics/SVG/>

=head1 Machine-Readable Change Log

The file Changes was converted into Changelog.ini by L<Module::Metadata::Changes>.

=head1 Version Numbers

Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions.

=head1 Repository

L<https://github.com/ronsavage/SVG-Grid>

=head1 Support

Email the author, or log a bug on RT:

L<https://rt.cpan.org/Public/Dist/Display.html?Name=SVG::Grid>.

=head1 Author

L<SVG::Grid> was written by Ron Savage I<E<lt>ron@savage.net.auE<gt>> in 2016.

My homepage: L<http://savage.net.au/>

=head1 Copyright and Licence

Australian copyright (c) 2016, Ron Savage.

	All Programs of mine are 'OSI Certified Open Source Software';
	you can redistribute them and/or modify them under the terms of
	The Perl License, a copy of which is available at:
	http://dev.perl.org/licenses/

=cut



( run in 1.111 second using v1.01-cache-2.11-cpan-39bf76dae61 )